Skip to content
Discussion options

You must be logged in to vote

Hallo @karjaljo,

Yes, this is possible with CeleryExecutor. You can keep separate worker images for different applications rather than install everything into one image.

For example:

  • Build an Airflow worker image containing application A and its dependencies.
  • Run a persistent worker group listening to an app_a queue with airflow celery worker -q app_a.
  • Run that application's commands through ordinary BashOperator tasks assigned to queue="app_a".

You can repeat that setup for another application and queue 😀 Those tasks execute on the existing Celery workers, avoiding a separate KubernetesPodOperator pod for each application invocation.

Each image still needs Airflow and the appropriate c…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@karjaljo
Comment options

@raphaelauv
Comment options

Answer selected by karjaljo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants