jobber examples: task queue information
This page shows how task queue information can be displayed for:
- completed tasks
- actions
count,done, andfailedprint the total number of tasks, the number of tasks completed with zero exit status, and the number of tasks completed with non-zero exit status, respectively. - action
reportgenerates a table containing information on the latest execution of all tasks. The table is sorted bytask_id. - in conjunction with the
--historyoptionreportgenerates a table containing information on all tasks that ever ran. The table is sorted byworker_id. - action
timesprints the number of tasks run as well as average, minimum, maximum and the the sum of individual task run times.
- actions
- running tasks
- jobber is executed in the background in order to demonstrate action
runningand the output ofreportfor tasks that are currently running.
The columns of the table generated by report are: the task_id, the worker_id, the run time in seconds, the Unix time when execution started, the 16-bit cyclic redundancy check (CRC) of the corresponding command line, the exit status, and the signal that (possibly) led to the termination of the task. Unknown values are represented by -1.
Information on completed tasks
shell$cat task.listsleep 1; echo '### this is task 1 ###' sleep 1; echo '### this is task 2 ###' sleep 1; echo '### this is task 3 ###' sleep 1; echo '### this is task 4 ###' sleep 1; echo '### this is task 5 ###' sleep 1; echo '### this is task 6 ###' sleep 1; echo '### this is task 7 ###' sleep 1; echo '### this is task 8 ###' sleep 1; echo '### this is task 9 ###' sleep 1; echo '### this is task 10 ###' shell$jobber task.list init[2022-04-05T10:45:30] appended 10 tasks shell$jobber task.list 3[2022-04-05T10:45:30] 1.1 task.worker: sleep 1; echo '### this is task 1 ###' ### this is task 1 ### [2022-04-05T10:45:31] 1.1 exit status: 0 [2022-04-05T10:45:31] 2.2 task.worker: sleep 1; echo '### this is task 2 ###' ### this is task 2 ### [2022-04-05T10:45:32] 2.2 exit status: 0 [2022-04-05T10:45:32] 3.3 task.worker: sleep 1; echo '### this is task 3 ###' ### this is task 3 ### [2022-04-05T10:45:33] 3.3 exit status: 0 shell$jobber task.list exec:5,7-8[2022-04-05T10:45:33] 5.4 task.worker: sleep 1; echo '### this is task 5 ###' ### this is task 5 ### [2022-04-05T10:45:34] 5.4 exit status: 0 [2022-04-05T10:45:34] 7.5 task.worker: sleep 1; echo '### this is task 7 ###' ### this is task 7 ### [2022-04-05T10:45:35] 7.5 exit status: 0 [2022-04-05T10:45:35] 8.6 task.worker: sleep 1; echo '### this is task 8 ###' ### this is task 8 ### [2022-04-05T10:45:36] 8.6 exit status: 0 shell$jobber task.list 3[2022-04-05T10:45:36] 4.7 task.worker: sleep 1; echo '### this is task 4 ###' ### this is task 4 ### [2022-04-05T10:45:37] 4.7 exit status: 0 [2022-04-05T10:45:37] 6.8 task.worker: sleep 1; echo '### this is task 6 ###' ### this is task 6 ### [2022-04-05T10:45:38] 6.8 exit status: 0 [2022-04-05T10:45:38] 9.9 task.worker: sleep 1; echo '### this is task 9 ###' ### this is task 9 ### [2022-04-05T10:45:39] 9.9 exit status: 0 shell$jobber task.list count10 shell$jobber task.list done9 shell$jobber task.list failed0 shell$jobber task.list report# job report # selection: all #task worker runtime/s begin_epoch/s crc exit signal 1 1 1 1649148330 25256 0 -1 2 2 1 1649148331 44104 0 -1 3 3 1 1649148332 59880 0 -1 4 7 1 1649148336 8617 0 -1 5 4 1 1649148333 25609 0 -1 6 8 1 1649148337 43753 0 -1 7 5 1 1649148334 61257 0 -1 8 6 1 1649148335 10826 0 -1 9 9 1 1649148338 28650 0 -1 10 -1 -1 -1 35059 0 -1 shell$jobber --history task.list report# job execution history # selection: all #task worker runtime/s begin_epoch/s crc exit signal 1 1 1 1649148330 25256 0 -1 2 2 1 1649148331 44104 0 -1 3 3 1 1649148332 59880 0 -1 5 4 1 1649148333 25609 0 -1 7 5 1 1649148334 61257 0 -1 8 6 1 1649148335 10826 0 -1 4 7 1 1649148336 8617 0 -1 6 8 1 1649148337 43753 0 -1 9 9 1 1649148338 28650 0 -1 shell$jobber task.list timesruns=9 mean_runtime=1 max_runtime=1 min_runtime=1 sum_runtime=9 shell$
Information on running tasks
shell$cat task.listsleep 1; echo '### this is task 1 ###' sleep 1; echo '### this is task 2 ###' sleep 1; echo '### this is task 3 ###' sleep 1; echo '### this is task 4 ###' sleep 1; echo '### this is task 5 ###' sleep 1; echo '### this is task 6 ###' sleep 1; echo '### this is task 7 ###' sleep 1; echo '### this is task 8 ###' sleep 1; echo '### this is task 9 ###' sleep 1; echo '### this is task 10 ###' shell$jobber task.list init[2022-04-05T11:18:17] appended 10 tasks shell$jobber --parallel=4 task.list 10 &shell$sleep 0.5[2022-04-05T11:18:17] 1.1 task.worker: sleep 1; echo '### this is task 1 ###' [2022-04-05T11:18:17] 2.2 task.worker: sleep 1; echo '### this is task 2 ###' [2022-04-05T11:18:17] 3.3 task.worker: sleep 1; echo '### this is task 3 ###' [2022-04-05T11:18:17] 4.4 task.worker: sleep 1; echo '### this is task 4 ###' shell$jobber task.list running4 shell$jobber task.list report# job report # selection: all #task worker runtime/s begin_epoch/s crc exit signal 1 1 -1 1649150297 25256 0 -1 2 2 -1 1649150297 44104 0 -1 3 3 -1 1649150297 59880 0 -1 4 4 -1 1649150297 8617 0 -1 5 -1 -1 -1 25609 0 -1 6 -1 -1 -1 43753 0 -1 7 -1 -1 -1 61257 0 -1 8 -1 -1 -1 10826 0 -1 9 -1 -1 -1 28650 0 -1 10 -1 -1 -1 35059 0 -1 [[2022-04-05T11:18:18] 1.1 exit status: 0 ### this is task 1 ### [2022-04-05T11:18:18] 5.5 task.worker: sleep 1; echo '### this is task 5 ###' [2022-04-05T11:18:18] 2.2 exit status: 0 [2022-04-05T11:18:18] 3.3 exit status: 0 [2022-04-05T11:18:18] 4.4 exit status: 0 ### this is task 2 ### ### this is task 3 ### ### this is task 4 ### [2022-04-05T11:18:18] 6.6 task.worker: sleep 1; echo '### this is task 6 ###' [2022-04-05T11:18:18] 7.7 task.worker: sleep 1; echo '### this is task 7 ###' [2022-04-05T11:18:18] 8.8 task.worker: sleep 1; echo '### this is task 8 ###' [2022-04-05T11:18:19] 5.5 exit status: 0 ### this is task 5 ### [2022-04-05T11:18:19] 9.9 task.worker: sleep 1; echo '### this is task 9 ###' [2022-04-05T11:18:19] 6.6 exit status: 0 ### this is task 6 ### [2022-04-05T11:18:19] 10.10 task.worker: sleep 1; echo '### this is task 10 ###' [2022-04-05T11:18:19] 7.7 exit status: 0 [2022-04-05T11:18:19] 8.8 exit status: 0 ### this is task 7 ### ### this is task 8 ### [2022-04-05T11:18:20] 9.9 exit status: 0 ### this is task 9 ### [2022-04-05T11:18:20] 10.10 exit status: 0 ### this is task 10 ### shell$