Skip to content

Add aggregate wakeups for grouped remote jobs - #279

Merged
ruoyuwang1995nya merged 4 commits into
develfrom
copilot/add-user-terminated-status
Sep 14, 2026
Merged

ruoyuwang1995nya merged 4 commits into
develfrom
copilot/add-user-terminated-status

Conversation

Copilot AI commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Manually stopped Bohrium jobs could become lost, while parallel jobs generated excessive per-job agent wakeups.

Changes

  • Cancellation semantics

    • Normalize provider-reported stopped, terminated, or cancelled jobs to cancelled.
    • Record termination_origin=provider_observed without assuming who initiated termination.
  • Durable job groups

    • Add session-scoped groups with an expected job count.
    • Support all-terminal, failure-ratio, and deadline wakeup policies.
    • Suppress individual lifecycle wakeups and emit one aggregate, restart-safe notification.
  • Agent and harness integration

    • Expose group creation and group_id on Batch Job submission and attachment tools.
    • Include member outcomes and the triggering policy in the resumed agent turn.
    • Preserve session and explicit-control suppression behavior.
group = create_remote_job_group(
    name="parameter-sweep",
    expected_jobs=4,
    failure_ratio=0.5,
)

submit_bohr_batchjob(
    name="sweep-1",
    # ...
    group_id=group["group_id"],
)

Co-authored-by: ruoyuwang1995nya <53182543+ruoyuwang1995nya@users.noreply.github.com>
Co-authored-by: ruoyuwang1995nya <53182543+ruoyuwang1995nya@users.noreply.github.com>
Co-authored-by: ruoyuwang1995nya <53182543+ruoyuwang1995nya@users.noreply.github.com>
Co-authored-by: ruoyuwang1995nya <53182543+ruoyuwang1995nya@users.noreply.github.com>
@ruoyuwang1995nya
ruoyuwang1995nya merged commit f7fd113 into devel Sep 14, 2026
2 checks passed
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.

2 participants