mirror of
https://github.com/PostHog/posthog.git
synced 2024-12-01 12:21:02 +01:00
chore(plugin-server): Restart async migration if status.FAILED (#11297)
This is happening on cloud as a result of autoscaling killing pods with sigterm
This commit is contained in:
parent
2a7aa4e7cd
commit
6bf71eece7
@ -44,7 +44,7 @@ def check_async_migration_health() -> None:
|
||||
# failures and successes are handled elsewhere
|
||||
# pending means we haven't picked up the task yet
|
||||
# retry is not possible as max_retries == 0
|
||||
if migration_task_celery_state not in (states.STARTED, states.PENDING):
|
||||
if migration_task_celery_state not in (states.STARTED, states.PENDING, states.FAILURE):
|
||||
return
|
||||
|
||||
inspector = app.control.inspect()
|
||||
|
Loading…
Reference in New Issue
Block a user