arxiv.submission.domain.event.process module

Events related to external or long-running processes.

class arxiv.submission.domain.event.process.AddProcessStatus(creator, created=None, proxy=None, client=None, submission_id=None, committed=False, before=None, after=None, event_type=<factory>, event_version=<factory>, process_id=None, process=None, step=None, status=<Status.PENDING: 'pending'>, reason=None)[source]

Bases: arxiv.submission.domain.event.base.Event

Add the status of an external/long-running process to a submission.

NAME = 'add status of a process'
NAMED = 'added status of a process'
class Status

Bases: enum.Enum

Supported statuses.

FAILED = 'failed'
FAILED_TO_END = 'failed_to_end'
FAILED_TO_START = 'failed_to_start'
IN_PROGRESS = 'in_progress'
PENDING = 'pending'
SUCCEEDED = 'succeeded'
TERMINATED = 'terminated'
process = None
process_id = None
project(submission)[source]

Add the process status to the submission.

Return type

Submission

reason = None
status = 'pending'
step = None
validate(submission)[source]

Verify that we have a ProcessStatus.

Return type

None