tsa.task.tasks#

TaskAPI.tasks(domain=None, operation=None, status=None, limit=50)#

List the tasks, most recent first.

tsa.task.tasks(operation='migrate_series_storage', status='failed')

The status is one of queued, running, done, failed, aborting or aborted. It is computed from several columns, hence applied after the query: it filters the limit most recent tasks rather than selecting the limit most recent ones having that status.

The input and output carry the non-file values only. Use the dedicated endpoints to fetch the file ones.

Parameters:
  • domain (str | None)

  • operation (str | None)

  • status (str | None)

  • limit (int)

Return type:

list[dict]