Skip to content

Race Condition in FAB Provider #63833

@Pyasma

Description

@Pyasma

Apache Airflow Provider(s)

fab

Versions of Apache Airflow Providers

FAB Provider 3.5.0

Apache Airflow version

3.1.7

Operating System

Linux

Deployment

Virtualenv installation

Deployment details

No response

What happened

When running airflow api-server after airflow db reset -y, a race condition
occurs during startup when multiple workers initialize simultaneously.

What you think should happen instead

If another worker has already completed the initialization task, subsequent
workers should silently ignore the duplicate — not raise an error.

How to reproduce

run breeze
reset db
run api server with 4 workers

Anything else

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions