Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/celery beat #395

Merged
merged 3 commits into from
Sep 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.18.2 (2024-08-28)
-------------------
- Fix call to start celery beat for celery 5

1.18.1 (2024-08-28)
-------------------
- Update celery config to turn off gossip and mingle as workers were missing lots of heartbeats and were throwing errors. See https://www.cloudamqp.com/docs/celery.html#commandline-arguments for details
Expand Down
4 changes: 1 addition & 3 deletions banzai/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,8 @@ def start_stacking_scheduler():
schedule_calibration_stacking.s(site=site, runtime_context=vars(runtime_context)),
queue=runtime_context.CELERY_TASK_QUEUE_NAME)

beat = celery.bin.beat.beat(app=app)
app.Beat(schedule='/tmp/celerybeat-schedule', pidfile='/tmp/celerybeat.pid', working_directory='/tmp').run()
logger.info('Starting celery beat')
beat.run(schedule='/tmp/celerybeat-schedule', pidfile='/tmp/celerybeat.pid', working_directory='/tmp')


def run_realtime_pipeline():
extra_console_arguments = [{'args': ['--n-processes'],
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ install_requires =
pytest>=4.0
pyyaml
psycopg2-binary
celery[redis]>5
celery[redis]>5,<6
apscheduler
python-dateutil
ocs_ingester>=3.0.4,<4.0.0
Expand Down
Loading