toxicbuild.output package

Submodules

toxicbuild.output.exchanges module

toxicbuild.output.exchanges.connect_exchanges()[source]
toxicbuild.output.exchanges.disconnect_exchanges()[source]

toxicbuild.output.server module

class toxicbuild.output.server.OutputMethodServer(loop=None)[source]

Bases: toxicbuild.core.utils.LoggerMixin

Fetchs messages from notification queues and dispatches the needed output methods.

add_running_task()[source]
remove_running_task()[source]
coroutine run()[source]
coroutine run_plugins(msg)[source]

Runs all plugins for a given repository that react to a given event type.

Parameters:msg – The incomming message from a notification
coroutine shutdown()[source]
sync_shutdown(signum=None, frame=None)[source]

Module contents

toxicbuild.output.create(root_dir)[source]

Creates a new toxicbuild output environment.

Parameters:--root_dir – Root directory for toxicbuild output.
toxicbuild.output.create_settings_and_connect()[source]
toxicbuild.output.output_server_init(server)[source]

Starts the output server

toxicbuild.output.restart(workdir, pidfile='toxicoutput.pid')[source]

Restarts toxicbuild output

The instance of toxicoutput in workdir will be restarted. :param workdir: Workdir for instance to be killed. :param –pidfile: Name of the file to use as pidfile.

toxicbuild.output.run_toxicoutput(loglevel)[source]
toxicbuild.output.start(workdir, daemonize=False, stdout='./toxicoutput.log', stderr='./toxicoutput.log', conffile=None, loglevel='info', pidfile='toxicoutput.pid')[source]

Starts toxicbuild output.

Parameters:
  • workdir – Work directory for server.
  • --daemonize – Run as daemon. Defaults to False
  • --stdout – stdout path. Defaults to /dev/null
  • --stderr – stderr path. Defaults to /dev/null
  • --conffile (-c,) – path to config file. Defaults to None. If not conffile, will look for a file called toxicoutput.conf inside workdir
  • --loglevel – Level for logging messages. Defaults to info.
  • --pidfile – Name of the file to use as pidfile. Defaults to toxicoutput.pid
toxicbuild.output.stop(workdir, pidfile='toxicoutput.pid', kill=False)[source]

Stops toxicbuid output.

Parameters:
  • workdir – Work directory for the ui to be killed.
  • --pidfile – pid file for the process.
  • kill – If true, send signum 9, otherwise, 15.