Skip to content

Commit

Permalink
Celery update changes receiver syntax: episode 2
Browse files Browse the repository at this point in the history
  • Loading branch information
cpfair committed Jul 22, 2017
1 parent e6fb58b commit 0e97b8e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion rollback_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class _celeryConfig:
celery_app.config_from_object(_celeryConfig())

@worker_shutdown.connect
def celery_shutdown():
def celery_shutdown(**kwargs):
close_connections()

@celery_app.task()
Expand Down
2 changes: 1 addition & 1 deletion sync_poll_triggers.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class _celeryConfig:
celery_app.config_from_object(_celeryConfig())

@worker_shutdown.connect
def celery_shutdown():
def celery_shutdown(**kwargs):
close_connections()

@celery_app.task(acks_late=True)
Expand Down

0 comments on commit 0e97b8e

Please sign in to comment.