Repository navigation
feat(harness): migrate runtime suspension to DATA snapshots #3165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
08ff02a
65f242f
8a95bb0
d678d5d
2df17ef
bcd07c8
e5ab20e
b3a9a9f
5130f4b
a387ebb
1d0c36e
d6ec533
80f73ec
e7b9390
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,7 +28,7 @@ func (w *ActorWorkflow) wakeQuiescence() { | |
| } | ||
| } | ||
|
|
||
| // Start pauses or suspends idle sessions independently of task publication. | ||
| // Start suspends idle sessions to DATA independently of task publication. | ||
| // Startup and periodic recovery scans discover work missed by local signals. | ||
| // Workers drain claims with bounded concurrency; task reads never wait for them. | ||
| func (w *ActorWorkflow) Start(ctx context.Context) error { | ||
|
|
@@ -74,13 +74,7 @@ func (w *ActorWorkflow) Start(ctx context.Context) error { | |
|
|
||
| func (w *ActorWorkflow) quiesceIdleSession(ctx context.Context, work *database.SessionQuiescence) { | ||
| runtimeCtx, cancel := context.WithTimeout(ctx, 2*time.Minute) | ||
| var snapshot *database.SessionTaskSnapshot | ||
| var err error | ||
| if work.State.Terminal() { | ||
| snapshot, err = w.Quiesce(runtimeCtx, work.Session) | ||
| } else { | ||
| err = w.Pause(runtimeCtx, work.Session) | ||
| } | ||
| snapshot, err := w.Quiesce(runtimeCtx, work.Session) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we add E2E coverage that waits for a verified DATA snapshot and suspended Actor before answering pending input? The approval helper replies immediately after Approval, denial, cancellation, and native ask-user responses should exercise that restore boundary.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Extended E2E coverage |
||
| cancel() | ||
| if err != nil { | ||
| // No timeout-based takeover: the Substrate request may still complete. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small docs correction: can we also update the automatic-quiescence section and its sequence diagram? They still say waiting tasks pause on-node while only terminal tasks suspend externally, which contradicts the DATA behavior described here.