Process¶
arkindex_worker.worker.process ¶
Classes¶
ActivityState ¶
Bases: Enum
Processing state of an element.
Attributes¶
Queued
class-attribute
instance-attribute
¶
Queued = 'queued'
The element has not yet been processed by a worker.
Started
class-attribute
instance-attribute
¶
Started = 'started'
The element is being processed by a worker.
Processed
class-attribute
instance-attribute
¶
Processed = 'processed'
The element has been successfully processed by a worker.
Error
class-attribute
instance-attribute
¶
Error = 'error'
An error occurred while processing this element.
ProcessMode ¶
ProcessMixin ¶
Functions¶
list_process_elements ¶
list_process_elements(
with_image: bool = False,
) -> Iterator[dict]
List the elements of a process.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
with_image
|
bool
|
whether or not to include zone and image information in the elements response. |
False
|
Returns:
Type | Description |
---|---|
Iterator[dict]
|
the process’ elements. |
Source code in arkindex_worker/worker/process.py
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
|