Task¶
arkindex_worker.worker.task ¶
BaseWorker methods for tasks.
Classes¶
TaskMixin ¶
Functions¶
list_artifacts ¶
list_artifacts(task_id: uuid.UUID) -> Iterator[Artifact]
List artifacts associated to a task.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_id |
UUID
|
Task ID to find artifacts from. |
required |
Returns:
Type | Description |
---|---|
Iterator[Artifact]
|
An iterator of |
Source code in arkindex_worker/worker/task.py
13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
|
download_artifact ¶
download_artifact(
task_id: uuid.UUID, artifact: Artifact
) -> DownloadedFile
Download an artifact content.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task_id |
UUID
|
Task ID the Artifact is from. |
required |
artifact |
Artifact
|
Artifact to download content from. |
required |
Returns:
Type | Description |
---|---|
DownloadedFile
|
A temporary file containing the |
Source code in arkindex_worker/worker/task.py
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
|