Crab Server

crab.server

class crab.server.CrabServer(bus)

Crab server class, used for interaction with the client.

crontab(host, user, raw=False)

CherryPy handler for the crontab action.

Allows the client to PUT a new crontab, or use a GET request to see a crontab-style representation of the job information held in the the storage backend.

start(host, user, crabid=None)

CherryPy handler allowing clients to report jobs starting.

finish(host, user, crabid=None)

CherryPy handler allowing clients to report jobs finishing.

crab.server.config

crab.server.config.read_crabd_config()

Determine Crab server configuration.

This returns a CherryPy configuration dictionary, with values read from the config files and environment variables.

crab.server.config.construct_log_handler(filename, log_config)
crab.server.config.construct_store(storeconfig, outputstore=None)

Constructs a storage backend from the given dictionary.

crab.server.io

crab.server.io.import_config(store, file_)

Read job and configuration information from a JSON file.

crab.server.io.export_config(store, file_)

Write job and configuration information to a JSON file.