pyslurmutils.client.job_io.tcp_io.Future#
- class pyslurmutils.client.job_io.tcp_io.Future(job_id, future, stop, client=None)[source]#
Bases:
Future
- Parameters:
job_id (
int
) –future (
Future
) –stop (
Event
) –
- cancel()[source]#
Cancel the future if possible. The SLURM job is not affected.
Returns True if the future was cancelled, False otherwise. A future cannot be cancelled if it is running or has already completed.
- Return type:
bool
- property client#
- exception(timeout=None)[source]#
Waits for the result indefinitely by default.
- Raises:
TimeoutError: the job is not finished CancelledError: the job IO was cancelled
- Parameters:
timeout (
Optional
[Number
]) –- Return type:
Optional
[Exception
]