Skip to content

Commit

Permalink
make schedule end on nocodb end time, update timeout (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmccrackan authored Feb 11, 2025
1 parent 2809886 commit ee8b4b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ RUN pip install .

# Run server
EXPOSE 8010
ENTRYPOINT ["dumb-init", "gunicorn", "--bind", "0.0.0.0:8010", "--timeout", "120", "scheduler_server.app:app"]
ENTRYPOINT ["dumb-init", "gunicorn", "--bind", "0.0.0.0:8010", "--timeout", "180", "scheduler_server.app:app"]
2 changes: 1 addition & 1 deletion src/scheduler_server/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def rest_handler(t0, t1, policy_config={}):
module = importlib.util.module_from_spec(spec)
spec.loader.exec_module(module)

schedule = module.main(t0=t0, t1=t1, **config)
schedule = module.main(t0=t0, t1=min(t1, datetime.fromisoformat(best_plan['to'])), **config)

return schedule

Expand Down

0 comments on commit ee8b4b7

Please sign in to comment.