Skip to content

docs: shell_jobs_list status lags shell_job_complete wake-up events - #142

Open
chrispatil wants to merge 1 commit into
tkellogg:mainfrom
chrispatil:docs/shell-job-stragglers-gotcha
Open

docs: shell_jobs_list status lags shell_job_complete wake-up events#142
chrispatil wants to merge 1 commit into
tkellogg:mainfrom
chrispatil:docs/shell-job-stragglers-gotcha

Conversation

@chrispatil

Copy link
Copy Markdown
Contributor

What

Closes interest-tracking issue #47 (internal tracker, not a GitHub issue).

Repeated wrong "final straggler" predictions when wrapping up a batch of
async jobs launched via the long-running-jobs pattern, traced to treating
shell_jobs_list's exited_ok/status field as authoritative for "have I
been notified about every finished job yet." The two are decoupled -- a job
can show as done in shell_jobs_list a turn or more before its
shell_job_complete wake-up event actually lands.

Fix

Doc-only: adds a 7th "Key Gotcha" to the (builtin, read-only)
long-running-jobs skill, explaining the decoupling and recommending
tracking distinct job_ids actually woken up for via shell_job_complete
events, rather than trusting a shell_jobs_list snapshot, before declaring
a batch fully complete.

Testing

No code touched, N/A for the test suite. Content proofread against the
existing gotcha style/tone in the same file. No dependency on the other PRs
in this batch -- safe to merge independently, any time.

…st/wake-up event lag

Repeated wrong 'final straggler' predictions traced to treating
shell_jobs_list's exited_ok/status field as authoritative for 'have all
async jobs finished notifying me yet.' The two are decoupled: a job can
show as done in shell_jobs_list a turn or more before its
shell_job_complete wake-up event actually lands. Documents the correct
check (track distinct job_ids seen via wake-up events vs. jobs launched)
as a 7th Key Gotcha.

Doc-only change, no code touched. Addresses tkellogg#47.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant