Project settings

Apart from the settings available in Django (a complete list is available at https://docs.djangoproject.com/en/1.4/ref/settings/), the following list of settings is available:

job_runner.settings.base.HOSTNAME = ''

The hostname of the server.

This value is used for generating URL’s in the notification e-mails.

job_runner.settings.base.JOB_RUNNER_ADMIN_EMAILS = []

A list of e-mail addresses of the Job-Runner admin(s).

This list will currently be used when a job failed to reschedule.

job_runner.settings.base.JOB_RUNNER_BROADCASTER_PORT = 5556

The port to which the queue broadcaster is binding to.

Unless there is a specific need, you can keep the default.

job_runner.settings.base.JOB_RUNNER_WORKER_HEALTH_CHECK_INTERVAL = 300

The interval in seconds for running the health check.

job_runner.settings.base.JOB_RUNNER_WORKER_PING_INTERVAL = 300

The interval in seconds for sending ping-requests to the workers.

job_runner.settings.base.JOB_RUNNER_WORKER_PING_MARGIN = 15

The time to add to the interval before considering a worker is not responding.

This is needed since the ping / pong are async (the PING is sent over ZMQ, the pong is done by making a request to the REST API).

job_runner.settings.base.JOB_RUNNER_WORKER_UNRESPONSIVE_AFTER_INTERVALS = 3

The number of missed ping responses after which to declare a worker unresponsive.

job_runner.settings.base.JOB_RUNNER_WS_SERVER = 'ws://localhost:5000/'

The URL to the Job-Runner WebSocket server.

This should be in the following format:

ws://hostname:port/
job_runner.settings.base.JOB_RUNNER_WS_SERVER_HOSTNAME = 'localhost'

The hostname of the WebSocket Server.

job_runner.settings.base.JOB_RUNNER_WS_SERVER_PORT = 5555

The port of the WebSocket Server.

Previous topic

Getting started

Next topic

Permission management

This Page