Skip to content

Commit

Permalink
Merge pull request #48 from airflow-laminar/tkp/ssh
Browse files Browse the repository at this point in the history
Bugfix, use dag id from dag instance
  • Loading branch information
timkpaine authored Dec 12, 2024
2 parents 9a67e04 + a0d55a0 commit e180b2d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion airflow_supervisor/airflow/ssh.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,11 @@ def get_step_operator(self, step: SupervisorTaskStep) -> Operator:
"force-kill",
):
return SSHOperator(
**{"task_id": f"{self.dag_id}-{step}", **self.get_base_operator_kwargs(), **self.get_step_kwargs(step)}
**{
"task_id": f"{self.dag.dag_id}-{step}",
**self.get_base_operator_kwargs(),
**self.get_step_kwargs(step),
}
)
else:
# can be done via XMLRPC API
Expand Down

0 comments on commit e180b2d

Please sign in to comment.