HiveBoard Docs Search the docs… Ctrl K Get HiveBoard
Browse the help centre
  1. Help centre
  2. Job control

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.

3 min read HiveBoard 0.1.7 Updated Automation, safely · lesson 2 of 7

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.
Interactive walkthrough · 10 steps

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.

Start it

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

ActionWhere you start itOn the server
Cancel a jobJob pane, selection barscancel
Continue a runJob panebackup, copy, sbatch
Delete filesFiles tabrm -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

  1. Open Connections and choose the server in the list on the left (or click its chip in the top bar).
  2. Open the General tab.
  3. In the Job control card, click the switch.
  4. 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/config start with job control off.

Check yourself

2 quick questions on this page. Nothing is sent anywhere.

  1. 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.

  2. 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.

Lesson 2 of 7 in Automation, safely Next lesson: Cancelling jobs

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.

↑ ↓ to moveEnter to openEsc to close