POST /jobs/<sessionid>

Load a job configuration.

Parameters

None

Example of request

POST http://localhost:5000/jobs/test

{
"name": "dummy",
"cmd": "python -u ./dummy_basic.py"
}

Response

{
    "ok": true
}

A process configuration has the following parameters:

  • name: name of the process
  • cmd: program command, string)
  • args: the arguments for the command to run. Can be a list or a string.
  • env: a mapping containing the environment variables the command will run with. Optional
  • uid: int or str, user id
  • gid: int or st, user group id,
  • cwd: working dir
  • detach: the process is launched but won’t be monitored and won’t exit when the manager is stopped.
  • shell: boolean, run the script in a shell. (UNIX only)
  • redirect_output: list of io to redict (max 2) this is a list of custom labels to use for the redirection. Ex: [“a”, “b”] will redirect stdoutt & stderr and stdout events will be labeled “a”
  • redirect_input: Boolean (False is the default). Set it if you want to be able to write to stdin.
  • custom_streams: list of additional streams that should be created and passed to process. This is a list of streams labels. They become available through streams attribute.
  • custom_channels: list of additional channels that have been passed to process.
Note! The cmd and args properties can contained environment variables in the form of $VARNAME. They will be replaced by the variables set in the environnment when the process is launched.

resources informations

Authentication Require an admin
HTTP Method GET