Skip to content

Commit

Permalink
Fill the "job_id" field for airflow task run without --local/`--r…
Browse files Browse the repository at this point in the history
…aw` for KubeExecutor (apache#16108)

(cherry picked from commit cdc9f1a)
(cherry picked from commit 55fc6f6)
(cherry picked from commit 7a6492e)
  • Loading branch information
sighingnow authored and kaxil committed Jun 2, 2021
1 parent ebb9c30 commit b84ded1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/cli/commands/task_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ def _run_task_by_executor(args, dag, ti):
print(e)
raise e
executor = ExecutorLoader.get_default_executor()
executor.job_id = "manual"
executor.start()
print("Sending to executor.")
executor.queue_task_instance(
Expand Down

0 comments on commit b84ded1

Please sign in to comment.