Skip to content

Commit

Permalink
Fix bad "code cleanup" in celery executor (#34192)
Browse files Browse the repository at this point in the history
Fixes error introduced in code cleanup PR #33987
  • Loading branch information
dstandish committed Sep 8, 2023
1 parent a09a823 commit 50cccbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/providers/celery/executors/celery_executor.py
Expand Up @@ -368,7 +368,7 @@ def update_task_state(self, key: TaskInstanceKey, state: str, info: Any) -> None
self.success(key, info)
elif state in (celery_states.FAILURE, celery_states.REVOKED):
self.fail(key, info)
elif state in (celery_states.STARTEDstate, celery_states.PENDING):
elif state in (celery_states.STARTED, celery_states.PENDING):
pass
else:
self.log.info("Unexpected state for %s: %s", key, state)
Expand Down

0 comments on commit 50cccbd

Please sign in to comment.