arxiv.submission.domain.process module

Status information for external or long-running processes.

class arxiv.submission.domain.process.ProcessStatus(creator, created, process, step=None, status=<Status.PENDING: 'pending'>, reason=None)[source]

Bases: object

Represents the status of a long-running remote process.

class Status[source]

Bases: enum.Enum

Supported statuses.

FAILED = 'failed'

The process failed while running.

FAILED_TO_END = 'failed_to_end'

The process ran, but failed to end gracefully.

FAILED_TO_START = 'failed_to_start'

Could not start the process.

IN_PROGRESS = 'in_progress'

Process has started, and is running remotely.

PENDING = 'pending'

The process is waiting to start.

SUCCEEDED = 'succeeded'

The process ended successfully.

TERMINATED = 'terminated'

The process was terminated, e.g. cancelled by operator.

created = None

Time when the process status was created (not the process itself).

reason = None

Optional context or explanatory details related to the status.

status = 'pending'
step = None