Turning on job control
HiveBoard is read-only until you turn on job control for a server. Then it may cancel, continue and delete your own jobs, each after a confirmation.
In short
- Every server starts read-only: job control is off until you switch it on, one server at a time.
- Turn it on with the Job control switch on the server's General tab in Connections, and confirm.
- It allows cancelling, continuing and deleting files of your own jobs only — your login user on that server — each confirmed.
- Turning it off needs no confirmation and can be done for several servers at once; importing servers never turns it on.
Switch on job control
Allow HiveBoard to cancel, continue and delete your own jobs on one server — confirmed when switched on, and again before every action.
HiveBoard is read-only until you say otherwise. Job control is the switch, one per server, that lets it change things there for you: cancel a job, continue a VASP run, delete files in a job’s folder. It acts only on your own jobs, and asks you to confirm every action. It is off for every server until you turn it on.
What it allows
| Action | Where you start it | On the server |
|---|---|---|
| Cancel a job | Job pane, selection bar | scancel |
| Continue a run | Job pane | backup, copy, sbatch |
| Delete files | Files tab | rm -rf |
It also lets Guardian’s second mode continue unconverged VASP relaxations on that server. With job control off, none of these buttons is offered, and the server refuses such a request anyway: “Job control is switched off for this server, so HiveBoard can only watch it.”
Turning it on
- Open Connections and choose the server in the list on the left (or click its chip in the top bar).
- Open the General tab.
- In the Job control card, click the switch.
- Read the confirmation, Enable job control on Ember?, and press Enable job control — or Keep it to leave the server read-only.
The switch takes effect at once; it is not part of the save bar. A message says “Job control enabled on Ember”, and the server’s Overview tab lists it under Setup as “On — your own jobs, each confirmed”.
When adding a server
The last step of Add a server has a box, Allow job control — cancel, continue and delete my own jobs (each confirmed). It is unticked to begin with.
In config.yaml
The switch writes one key on the server’s entry (see The config.yaml file):
- name: ember
allow_job_control: true
Leaving the key out is the same as false.
“Your own” means your login user
Every action is checked by HiveBoard’s own server before anything is changed on the cluster:
- The job’s owner, as the scheduler records it, is compared with your login
user on that server — the answer to
whoami. Anyone else’s job is refused: the refusal names its owner and says “HiveBoard only controls your own jobs.” - Highlight users never widens this. As the General tab says, “It never widens what HiveBoard may cancel or delete.”
- If your login user cannot be confirmed, every action is refused: “Could not verify your username on the cluster — refusing write actions.”
- A folder opened from the Folders page is never acted on: it has no job.
Turning it off
- One server: click the same switch. There is no confirmation; a message says the server “is read-only again”.
- Several servers: select them in Connections (tick rows in All servers, or Ctrl-click in the list), then in the Job control card press Turn off on n, where n is how many of them have it on. Job control is only ever turned on one server at a time, each with its own confirmation.
What never turns it on
- Importing servers from a file: job control never comes back from a file, whatever it was on the computer that exported it.
- Add several at once: servers added together from
~/.ssh/configstart with job control off.
Check yourself
2 quick questions on this page. Nothing is sent anywhere.
-
You name a colleague under Highlight users and job control is on. Can HiveBoard cancel their jobs?
- No — only jobs owned by your own login user on that server
- Yes, highlighted users count as yours
- Yes, after a second confirmation
- Only their waiting jobs
Show the answer
No — only jobs owned by your own login user on that server The server compares each job's owner with your login user (whoami); Highlight users is a display setting and never widens what may be changed.
-
You import a file of servers exported from a computer where job control was on. Is it on here?
- No — an import never turns job control on
- Yes, the setting travels in the file
- Only for servers with a key
- It asks during the import
Show the answer
No — an import never turns job control on Import adds servers with job control off; you switch it on per server, with its own confirmation.
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.