Open
Conversation
Documents the approach for using Jobbers as an Airflow executor, replacing CeleryExecutor with a JobbersExecutor plugin while keeping Airflow responsible for DAG orchestration. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
Apache Airflow uses an executor abstraction to decouple DAG/task orchestration from actual task execution. The CeleryExecutor sends tasks to Celery queues; workers execute them and report status back. The goal is to replace this Celery layer with Jobbers while keeping Airflow responsible for DAG definition, dependency resolution, scheduling, and the UI.
Integration Model: Jobbers as an Airflow Executor
What Needs to Be Built
1.
JobbersExecutorAirflow plugin (newairflow-jobberspackage)Implements
BaseExecutorwith:execute_async(): Submits a task to the Jobbers Manager API (POST /submit-task)sync(): Polls Jobbers for status changes and reports back to Airflow's schedulerTaskInstanceState2. Built-in Airflow runner task in Jobbers
A
@register_taskfunction that receives an Airflow task instance descriptor (dag_id, task_id, run_id) and executes it viaairflow tasks run— the same mechanism CeleryExecutor workers use. This is the bridge between the two systems.3. Optional: bulk status endpoint on the Manager
POST /task-status/bulkso the executor can poll many task states in one call rather than N individual requests.Key Gaps
asyncio.to_thread()handles thisWhy This Is Viable
Scope
Two deliverables:
airflow-jobberspackage:JobbersExecutorclass + state mapping + configNo changes to Airflow core are needed.
🤖 Generated with Claude Code