JobEventLog
Class
- class htcondor2.JobEventLog(filename)
Produce an iterator over job events in a user job event log. You may block or poll for new events.
A pickled
JobEventLog
resumes generating events if and only if, after being unpickled, the job event log file is identical except for appended events.- Parameters
filename (
str
) – A file containing a job event log.
- close()
Close any open underlying file. This object’s iterators will no longer produce new events.
- Return type
- events(stop_after=None)
Returns an iterator over events in the log.
- Parameters
stop_after (
int
) –After how many seconds should the iterator stop waiting for events?
If
None
, the iterator waits forever (blocks).If
0
, the iterator never waits (does not block; a pure polling iterator).For any other value, wait (block) for that many seconds for a new event, raising
StopIteration
if one does not appear. (This does not invalidate the iterator.)- Return type