uniqc.gateway.api.archive module

Archive management API — /api/archive and /api/tasks/{id}/archive.

uniqc.gateway.api.archive.archive_task(task_id)[source]

Move a task from the active tasks table into the archive.

Parameters:

task_id (str)

Return type:

dict[str, str]

uniqc.gateway.api.archive.delete_archived(task_id)[source]

Permanently delete an archived task.

Parameters:

task_id (str)

Return type:

dict[str, str]

uniqc.gateway.api.archive.get_archived(task_id)[source]

Return full details of an archived task.

Parameters:

task_id (str)

Return type:

dict[str, Any]

uniqc.gateway.api.archive.list_archived(status=None, backend=None, limit=100, offset=0)[source]

List archived tasks.

Parameters:
  • status (str | None)

  • backend (str | None)

  • limit (int | None)

  • offset (int | None)

Return type:

dict[str, Any]

uniqc.gateway.api.archive.restore_task(task_id)[source]

Restore an archived task back to the active task list.

Parameters:

task_id (str)

Return type:

dict[str, str]