Cancelling jobs
Cancel your own running or waiting jobs from the job pane, or several at once from the selection bar. Each cancel is confirmed and runs scancel.
In short
- With job control on, Cancel job in the job pane stops one of your running or waiting jobs after a confirmation that names it.
- Cancel n of mine… in the selection bar cancels several at once; the confirmation lists exactly which.
- The server checks every job again against the live queue and skips, with a reason, anything finished or not yours.
- A cancel cannot be undone, and Guardian never cancels anything.
With job control on for a server,
you can cancel your own running or waiting jobs there: one from its job pane,
or several at once from the bar under the job list. Every cancel is confirmed
first, and runs scancel on the server. A cancelled job cannot be brought
back; you would have to submit it again.
Cancel one job
- Open the job from the list.
- Press Cancel job in the pane’s header. It is there only for a running or waiting job of yours on a server with job control on. (The page counts the jobs of people under Highlight users as yours here too; the server refuses to cancel them.)
- The confirmation, Cancel job 419122?, says what will happen: “This runs scancel 419122 on the server and stops the job immediately. Any unwritten progress in the current step is lost.”
- Press Cancel the job — or Keep it, or Esc, to leave it running.
A message confirms it (“Job 419122 cancelled.”), and the list and the pane are read again.
Cancel several jobs
- Tick the jobs in the list. The box in the table’s header ticks every job in it.
- The bar at the bottom of the list shows Cancel n of mine… once any of your servers has job control on.
- Press it. The confirmation, Cancel 3 jobs? for example, lists each job by number, name and server. When the jobs span several servers it says so: each server is asked separately. It also says how many of the ticked jobs will be skipped.
- Press Cancel 3 jobs (with your number).
A message says how many were cancelled and, if some were skipped, why — for example “not in the queue (already finished?)” after a job’s number.
What the count counts
n is the ticked jobs that are still running or waiting, are yours, and are on a server with job control on. Everything else ticked — finished jobs, other people’s, jobs on read-only servers — is left out of the count and skipped. When nothing qualifies, the button is greyed out.
The page decides “yours” the way the job list does, so jobs of people you named under Highlight users can appear in the count. The server does not accept them: it skips any job that is not your login user’s.
What the server checks again
Before cancelling anything, HiveBoard reads the live queue from the server — not a copy kept from the last refresh — and checks each job against it. A job is skipped, with its reason, if it is no longer in the queue, if it belongs to someone else, or if it is no longer running or waiting. If the queue cannot be read, nothing is cancelled.
At most 50 jobs on one server can be cancelled in one go. A larger selection is refused whole rather than cut short: “Select at most 50 and repeat — HiveBoard will not silently cancel part of a selection.”
Guardian never cancels
Guardian reports a job that seems stuck but never cancels it: a slow calculation and a hung one look the same from outside, and a cancel cannot be undone. Cancelling is always something you do.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
You tick five jobs on Ember, which has job control on: three of your running jobs, one of yours that has finished, and one of a colleague you have not highlighted. What does the bar offer?
- Cancel 3 of mine…
- Cancel 5 of mine…
- Cancel 4 of mine…
- Nothing — mixed selections cannot be cancelled
Show the answer
Cancel 3 of mine… The count is only your active jobs on servers with job control; the rest are skipped.
-
Can a cancelled job be resumed from HiveBoard?
- No — a cancel cannot be undone; you would submit the job again
- Yes, from the Activity list
- Yes, Guardian resubmits it
- Yes, within ten minutes
Show the answer
No — a cancel cannot be undone; you would submit the job again scancel stops the job on the cluster; HiveBoard does not resubmit a cancelled job, and Guardian never does either.
Try it in the app
On your own computer, with HiveBoard open. Tick them off as you go.
Related
Written for HiveBoard 0.1.7, the version on the download page. Examples use a made-up cluster (Ember) and person (zoe). Something here not what you see? Report it from the app.