Skip to content

Commit

Permalink
Merge pull request #395 from LCOGT/fix/celery-beat
Browse files Browse the repository at this point in the history
Fix/celery beat
  • Loading branch information
mgdaily authored Sep 6, 2024
2 parents fda317b + 1985958 commit 6bc7240
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
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

0 comments on commit 6bc7240

Please sign in to comment.