You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I'm using HttpSensor to poll SLURM's REST API for job status. I'm using deferrable mode with response_check. The task only goes to the triggerer if I remove the response_check.
Airflow Docker Image apache/airflow:latest-python3.9
Airflow Version 2.9.0
apache-airflow-providers-http 4.10.0
Does not move to triggerer:
check_slurm_job = HttpSensor(
task_id="check_slurm_job",
http_conn_id="slurm_conn_id",
method="get",
endpoint="slurm/v0.0.40/job/999",
response_check=lambda response: "COMPLETED" in response.text,
poke_interval=10,
timeout=60 * 60 * 5,
deferrable=True, # not deferring to triggerer ?
dag=dag,
)
Moves to triggerer:
check_slurm_job = HttpSensor(
task_id="check_slurm_job",
http_conn_id="slurm_conn_id",
method="get",
endpoint="slurm/v0.0.40/job/999",
# response_check=lambda response: "COMPLETED" in response.text,
poke_interval=10,
timeout=60 * 60 * 5,
deferrable=True, # not deferring to triggerer ?
dag=dag,
)
In digging further, I see that HttpTrigger has no response_check method. I will attempt to add one, unless there is a better approach to this problem?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I'm using HttpSensor to poll SLURM's REST API for job status. I'm using
deferrable
mode withresponse_check
. The task only goes to the triggerer if I remove theresponse_check
.Airflow Docker Image
apache/airflow:latest-python3.9
Airflow Version
2.9.0
apache-airflow-providers-http
4.10.0
Does not move to triggerer:
Moves to triggerer:
In digging further, I see that HttpTrigger has no
response_check
method. I will attempt to add one, unless there is a better approach to this problem?Beta Was this translation helpful? Give feedback.
All reactions