Commit 3fd6045
committed
rfc21: add job prolog and epilog events
Problem: There is no way in the job manager for a plugin or other
entity to delay the start of a job after the alloc event, nor the
free of job resources after a finish event. However, this would be
useful in numerous cases including global, per-job initialization or
teardown tasks, instance wide job prolog and epilog etc.
Add a set of new events to be used by these job prolog and epilog
actions: `prolog-start`, `prolog-finish`, `epilog-start`, and
`epilog-finish`.
A `prolog-start` event prevents the job manager from issuing a start
request to the execution system until the corresponding `prolog-finish`
event is posted, and an `epilog-start` event prevents the job manager
from issuing a free request to the scheduler until the corresponding
`epilog-finish` event.
This allows arbitrary, asynchronous work to be done in the job manager
while a job has allocated resources, but before the job either starts
executing, or fully releases those resources to the scheduler.1 parent 4972637 commit 3fd6045
1 file changed
+74
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
320 | 394 | | |
321 | 395 | | |
322 | 396 | | |
| |||
0 commit comments