[Bug]: An execution that is RUNNING with no live stage cannot be cancelled

Open
#709 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
aws, javascript
Domain
backend, cloud

Research direction

Start by tracing POST /intents/{id}/cancel and the watchdog paths described in the issue, then inspect how parked runs supersede gates, retire grants, and update META. Reproduce the suspended durable execution with no running stage and determine how long it must remain in that state to be considered stale. Done means cancellation or watchdog retirement sets META to CANCELLED and performs the same cleanup as for a parked run.

Written by the indexing model from the issue text.

Description

area/backend nfr/reliability topic/intents

An execution can be left with META RUNNING while its durable execution is suspended and no stage is running, for example after a stage callback is lost. Nothing in the product can retire it:

  • POST /intents/{id}/cancel only accepts WAITING, CREATED and FAILED, and returns 409 for RUNNING.
  • The watchdog only repairs durable executions that ended or expired, and this one expires a year after it started.
  • Rewind does not accept RUNNING.

The execution then stays active: it counts against the deploy-time active-execution check, and only aws lambda stop-durable-execution clears it.

Expected: cancel, or the watchdog, treats RUNNING with a suspended durable execution and no running stage for some time as stale, and retires it the same way as a parked run. It supersedes the gates, retires the grants and sets META to CANCELLED.

Dominant language
JavaScript
Stars
128
Forks
62
Avg merge
3d 16h
Merged PRs (30d)
102

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from aws-samples/sample-collaborative-ai-dlc

All issues in aws-samples/sample-collaborative-ai-dlc

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.