seamm_jobserver package#

Submodules#

seamm_jobserver.jobserver module#

The JobServer for the SEAMM environment.

class seamm_jobserver.jobserver.JobServer(logger=<Logger seamm_jobserver.jobserver (WARNING)>)[source]#

Bases: MutableMapping

check_for_finished_jobs()[source]#

Check whether jobs have finished.

check_for_new_jobs()[source]#

Check the database for new jobs that are runnable.

property db#
property db_path#
gui_about()[source]#

Provide information about the JobServer.

gui_create()[source]#

Create the tkinter GUI.

gui_event_loop()[source]#

The callback for the main loop when using Tk

gui_on_closing()[source]#

Check that the user wants to stop the JobServer, and do so

gui_preferences()[source]#

Provide access to the preferences for the JobServer.

gui_status(status)[source]#

Display the current load and jobs.

gui_status_loop()[source]#

The callback for the the status.

initialize()[source]#

Parse the command-line and setup the JobServer

setup_parser()[source]#

Setup the command-line parser.

start()[source]#

Start the main event loop.

start_job(job_id, wdir, cmdline='')[source]#

Run the given job.

Parameters:

job_id (integer) – The id of the job to run.

status()[source]#

Get the current load, etc.

class seamm_jobserver.jobserver.TkTextHandler(widget)[source]#

Bases: StreamHandler

emit(record)[source]#

Emit a record.

If a formatter is specified, it is used to format the record. The record is then written to the stream with a trailing newline. If exception information is present, it is formatted using traceback.print_exception and appended to the stream. If the stream has an ‘encoding’ attribute, it is used to determine how to do the output to the stream.

seamm_jobserver.jobserver.humanize(memory, suffix='B', kilo=1024)[source]#

Scale memory to its proper format e.g:

1253656 => ‘1.20 MiB’ 1253656678 => ‘1.17 GiB’

seamm_jobserver.jobserver.run()[source]#

Helper routine to run the JobServer from the command-line

Module contents#

seamm_jobserver JobServer for the SEAMM environment.