110
110
job shells have been started, and a ``finish `` event once all the job shells
111
111
have exited. The state transitions to CLEANUP.
112
112
113
+ REATTACH
114
+ The job was started, but the job manager has lost tracking to it
115
+ due to an error (for example, a system crash). The job manager is
116
+ attempting to reattach itself to the running job. A
117
+ ``reattach `` event is logged to indicate transition into this
118
+ state. ``attached `` will be logged when the tracking has been
119
+ reestablished and we can re-enter the RUN state.
120
+
113
121
CLEANUP
114
122
The job has completed or an exception has occurred. Under normal termination,
115
123
the job manager waits for notification from the exec service that job
@@ -133,10 +141,10 @@ PENDING
133
141
The job is in DEPEND, PRIORITY, or SCHED states.
134
142
135
143
RUNNING
136
- The job is in RUN or CLEANUP states.
144
+ The job is in RUN, REATTACH, or CLEANUP states.
137
145
138
146
ACTIVE
139
- The job is in DEPEND, PRIORITY, SCHED, RUN, or CLEANUP states.
147
+ The job is in DEPEND, PRIORITY, SCHED, RUN, REATTACH, or CLEANUP states.
140
148
141
149
142
150
Exceptions
@@ -391,6 +399,37 @@ status
391
399
{"timestamp" :1552594348.0 ,"name" :" epilog-finish" ,"context" :{"description" :" /usr/sbin/job-epilog.sh" , "status" :0 }}
392
400
393
401
402
+ Reattach Event
403
+ ^^^^^^^^^^^^^^
404
+
405
+ The job manager is attempting to reattach to a running job.
406
+
407
+ The following keys are OPTIONAL in the event context object:
408
+
409
+ id
410
+ (long long) job ID to reattach to
411
+
412
+ Example:
413
+
414
+ .. code :: json
415
+
416
+ {"timestamp" :1636747761.5495925 ,"name" :" reattach" ,"context" :{"id" :341835776000 }}
417
+
418
+
419
+ Attached Event
420
+ ^^^^^^^^^^^^^^
421
+
422
+ The job manager has re-connected to the job shells.
423
+
424
+ The context SHALL be empty.
425
+
426
+ Example:
427
+
428
+ .. code :: json
429
+
430
+ {"timestamp" :1636747761.827836 ,"name" :" reattached" }
431
+
432
+
394
433
Free Event
395
434
^^^^^^^^^^
396
435
0 commit comments