Skip to content

An executor similar to KubernetesExecutor but one that runs tasks from one DAG on the same pod #31883

Answered by potiuk
llamageddon83 asked this question in Ideas
Discussion options

You must be logged in to vote

You can run Celery in a Pod and use CeleryKubernetesExecutor for that purpose.

\You can have multiple queues and have a single Celery worker run as a pod (withs several parallell processes) - then have the DAG assigned to that Queue. If you have 1 worker with that Queue and all your tasks in your dags have the same queue (via default_args) - they will all run in that Celery worker.

You will have the worker idle when there are no running tasks for that queue, but this is the price to pay. Usually when you want to achieve affinity (this is what you try to do) you have to pay some price -usually underutilisation of the machines you have.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@llamageddon83
Comment options

@llamageddon83
Comment options

@potiuk
Comment options

potiuk Jun 14, 2023
Collaborator

@llamageddon83
Comment options

Answer selected by llamageddon83
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants