Skip to content

Enforce Connections & Pools #8291

@RosterIn

Description

@RosterIn

Description

Airflow allows Polls and Connection yet the integration between them is up to the user.

We have 40+ users who upload DAGs. It's impossible to manually enforce that if user choose to use Connection "X" then he must also use Pool "X_P".

We would love a feature where in the Connection you can associate it to a Pool. So whenever the user is specifying this connection in Operator/Hook he must also specify the Pool - Otherwise the Operator will fail!

Or even better save the trouble of having the users to manually specify the pool in the Operator - and stack up the tasks in the pool by itself.

I'm not asking to change the current behavior of Pools. This can be an extension of the current behavior. Think of it like queues... The user who writing operator doesn't need to specify to which worker queue the tasks will go. Airflow handle it for him. then why not with Connections and Pools?

Related Issues

Moved from https://issues.apache.org/jira/browse/AIRFLOW-4955

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions