Skip to content

Commit

Permalink
Merge pull request #296 from acsone/celery-tweak
Browse files Browse the repository at this point in the history
Tweak Celery config following 6.0 upgrade
  • Loading branch information
sbidoul authored Jul 6, 2024
2 parents ab34a25 + cadda1f commit 087ce98
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"celery[redis]",
# Odoo
"odoorpc",
# Sentry
"sentry-sdk[celery]",
# Sentry SDK (<2 because we use an old version of self-hosted Sentry)
"sentry-sdk[celery]<2",
# twine to check and upload wheels
"twine",
# lxml for parsing PyPI index pages
Expand Down
6 changes: 5 additions & 1 deletion src/oca_github_bot/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

from . import config

app = celery.Celery(broker=config.BROKER_URI)
app = celery.Celery(
broker=config.BROKER_URI,
broker_connection_retry_on_startup=True,
broker_conn_retry=True,
)

getLogger = get_task_logger

Expand Down

0 comments on commit 087ce98

Please sign in to comment.