Was this page helpful?
Caution
You're viewing documentation for an unstable version of ScyllaDB Open Source. Switch to the latest stable version.
tasks wait - Waits until a task manager task is finished and gets its status. If timeout is set and it expires, the appropriate message with failure reason will be printed.
nodetool tasks wait <task_id> [(--quiet|-q)] [--timeout <time_in_second>]
--quiet
or -q
- if set, status of a task isn’t printed. Instead the proper exit code is returned:
0 - if task finished successfully
123 - if task failed
124 - if request timed out
125 - if an error occurred and the task status is undetermined
--timeout
- timeout in seconds.
nodetool tasks wait <task_id>
For example:
> nodetool tasks wait ef1b7a61-66c8-494c-bb03-6f65724e6eee
id : 29dd6552-1e9a-4f17-b2c9-231d088fbee6
type : repair
kind : node
scope : keyspace
state : done
is_abortable : true
start_time : 2024-07-29T17:00:53Z
end_time : 2024-07-29T17:00:53Z
error :
parent_id : none
sequence_number : 2
shard : 0
keyspace : abc
table :
entity :
progress_units : ranges
progress_total : 4
progress_completed : 4
children_ids : [{task_id: 5d74a62e-aaf6-4993-b0f1-973899d89cd0, node: 127.0.0.1 }, {task_id: 055d5a59-d97c-45a8-a7e6-dcad39ed61ca, node: 127.0.0.1 }]
Was this page helpful?