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 (#16108)
  • Loading branch information
sighingnow committed May 27, 2021
1 parent 436e0d0 commit cdc9f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions airflow/cli/commands/task_command.py
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 cdc9f1a

Please sign in to comment.