Romain
10/04/2022, 8:42 PMsandy
10/04/2022, 10:33 PMprha
10/04/2022, 11:04 PMdef backfill_statuses(instance, backfill_id):
run_partition_data = instance.get_run_partition_data(
runs_filter=RunsFilter(tags={'dagster/backfill': backfill_id})
)
statuses = {}
for item in run_partition_data:
statuses[item.partition] = item.status
return statuses
And here’s the matching GraphQL fragment:
fragment BackfillFragment on PartitionBackfill {
partitionStatuses {
results {
id
partitionName
runId
runStatus
}
}
}
One is not really preferred over the other. They’re pretty stable (no plans to change them), but we don’t have back-compat guarantees over these APIs.Romain
10/04/2022, 11:19 PM