Skip to content

is_scheduled REST API parameter - #72029

Merged
RNHTTR merged 5 commits into
apache:mainfrom
RNHTTR:oss/53741-goal-add-an-only
Aug 25, 2026
Merged

RNHTTR merged 5 commits into
apache:mainfrom
RNHTTR:oss/53741-goal-add-an-only

Conversation

@RNHTTR

@RNHTTR RNHTTR commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

closes: #53741

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Roborchestra] following the guidelines

Roborchestra is a collection of Airflow Dags that invoke AgentOperator (and other Airflow-native tools) to address open issues in Airflow.


API="http://localhost:28080/api/v2/dags?exclude_stale=false&limit=1"
H="Authorization: Bearer $TOKEN"

curl -s -H "$H" "$API"                   -o all.json
curl -s -H "$H" "$API&is_scheduled=true"  -o sched.json
curl -s -H "$H" "$API&is_scheduled=false" -o unsched.json

jq -n \
  --slurpfile a all.json \
  --slurpfile s sched.json \
  --slurpfile u unsched.json \
  '{
     total:             $a[0].total_entries,
     scheduled:         $s[0].total_entries,
     unscheduled:       $u[0].total_entries,
     sums_correctly:    ($s[0].total_entries + $u[0].total_entries == $a[0].total_entries)
   }'
{
  "total": 211,
  "scheduled": 71,
  "unscheduled": 140,
  "sums_correctly": true
}

@jason810496 jason810496 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the follow-up.

Another good question I came up with is that should we consider the OnceTimetable as unscheduled or scheduled?

@RNHTTR

RNHTTR commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the follow-up.

Another good question I came up with is that should we consider the OnceTimetable as unscheduled or scheduled?

My gut reaction is that we should consider anything that doesn't have schedule=None as "scheduled". It's possible that the OnceTimetable is configured to be run at a future time via start_date.

@RNHTTR
RNHTTR merged commit abdc023 into apache:main Aug 25, 2026
156 checks passed

@pierrejeambrun pierrejeambrun left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one comment from me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add API Support for Filtering Unscheduled DAGs

4 participants