Skip to content

fix (WMS): reserve the post-processing margin before advertising the slot - #8746

Merged
fstagni merged 1 commit into
DIRACGrid:integrationfrom
aldbr:wms-allocated-time-v3
Oct 5, 2026
Merged

fstagni merged 1 commit into
DIRACGrid:integrationfrom
aldbr:wms-allocated-time-v3

Conversation

@aldbr

@aldbr aldbr commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

The Watchdog kept StopMargin (300 s by default) at the end of the slot for the uploads, but nothing upstream of it knew: the Matcher was offered, and elastic payloads sized themselves against, CPU work they would never be allowed to spend. Both were then killed with StopMargin still to go.

  • The JobAgent takes StopMargin off /LocalSite/CPUTimeLeft once, in initialize(). The CE advertises, and the configuration publishes, what a payload may actually consume.
  • The PushJobAgent, which builds that figure per queue itself, takes it off in the same way.
  • The Watchdog no longer deducts it a second time: it stops the payload once the published budget is exhausted.

BEGINRELEASENOTES
*WorkloadManagement
FIX: the JobAgent (and PushJobAgent) reserve the JobWrapper's StopMargin before advertising the slot to the Matcher and publishing it in /LocalSite/CPUTimeLeft, so that jobs are neither matched nor sized against time the post-processing will need. The Watchdog no longer deducts it a second time.
ENDRELEASENOTES

@aldbr
aldbr marked this pull request as draft August 25, 2026 13:30
@aldbr
aldbr force-pushed the wms-allocated-time-v3 branch from 5fc3f1c to 9645ee7 Compare September 30, 2026 06:44
@aldbr aldbr linked an issue Sep 30, 2026 that may be closed by this pull request
…slot

The Watchdog kept StopMargin (300 s by default) at the end of the slot for
the uploads, but nothing upstream knew: the Matcher was offered, and elastic
payloads sized themselves against, CPU work they would never be allowed to
spend.

The JobAgent now takes StopMargin off /LocalSite/CPUTimeLeft once, in
initialize(), so the CE advertises and the configuration publishes what a
payload may actually consume. The PushJobAgent, which builds that figure
per queue itself, takes it off in the same way. The Watchdog no longer
deducts it a second time: it stops the payload once that published budget
is exhausted.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@aldbr
aldbr force-pushed the wms-allocated-time-v3 branch from 9645ee7 to 2f2687d Compare October 1, 2026 14:18
@aldbr
aldbr marked this pull request as ready for review October 1, 2026 14:18
@fstagni fstagni closed this Oct 5, 2026
@fstagni fstagni reopened this Oct 5, 2026
@fstagni
fstagni merged commit 34b4a65 into DIRACGrid:integration Oct 5, 2026
47 of 49 checks passed
@DIRACGridBot DIRACGridBot added the sweep:ignore Prevent sweeping from being ran for this PR label Oct 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sweep:ignore Prevent sweeping from being ran for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Follow up] Time management after #8416

3 participants