kkrunner.backends.PsijExecutor

class kkrunner.backends.PsijExecutor(backend='slurm', *, url=None, config=None, job_executor=None, poll_interval=0.1)[source]

Bases: Executor

Execute calculations through a PSI/J backend such as Slurm or PBS.

name = 'psij'
create_run(spec, callback=None)[source]
Parameters:

spec (ExecutionSpec)

create_managed_run(spec, *, run_id, callback=None)[source]

Create backend execution for a caller-supplied persistent run ID.

RunManager owns the durable record; project membership is optional. Backends can override this hook to provide supervision and receipts.

Parameters:

spec (ExecutionSpec)

status(*runs)[source]
attach_native_job(native_id)[source]
status_native(native_id)[source]

Return the currently known native job status without waiting.

wait_status_native(native_id, timeout)[source]

Wait up to timeout seconds for a known state of a native job.

Unlike status_native(), this method may wait. A timeout returns UNKNOWN if the scheduler has still not provided a meaningful job state.

recover_native(run_id, directory, *, submitted_at=None)[source]

Return Slurm’s native recovery facts without a client RunRecord.

recover_submission(run_id, submission, *, submitted_at=None)[source]
attach(run, callback=None, output_listener=None, start=True)[source]