Skip to content

Commit

Permalink
update gql endpoint to update status to deleting
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiedemaria committed Oct 15, 2024
1 parent 152060c commit 0f8001e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ def delete_partition_backfill(
if backfill.status not in BULK_ACTION_TERMINAL_STATUSES:
# TODO - cancel the backfill if not in terminal state?
raise DagsterInvariantViolationError(
f"Cannot re-execute backfill {backfill_id} because it is still in progress."
f"Cannot delete backfill {backfill_id} because it is still in progress."
)

if backfill.is_asset_backfill:
Expand All @@ -467,6 +467,6 @@ def delete_partition_backfill(
graphene_info, Permissions.DELETE_PIPELINE_RUN, location_name
)

graphene_info.context.instance.delete_backfill(backfill_id)
graphene_info.context.instance.update_backfill(backfill.with_status(BulkActionStatus.DELETING))

return GrapheneDeleteBackfillSuccess(backfillId=backfill_id)

0 comments on commit 0f8001e

Please sign in to comment.