Server
base
ZeroG Server class definition
- class zerog.server.Server(name, makeDatastore, makeQueue, jobClasses, handlers=[], thisHost='localhost', **kwargs)
Bases:
tornado.web.ApplicationBase ZeroG server class
- make_job(data, jobType)
Instantiate a job from deserialized job attribute data
- Parameters
data (dict) – deserialized job attributes data
jobType (str) –
jobTypestring – must map to ajobTyperegistered with this Server’s registry
- get_job(uuid)
Retrieve and instantiate a job that has been persisted in the datastore
- Parameters
uuid (str) – UUID of the job to be retrieved and instantiated
- exit_handler()
Should be called on system exit to ensure that the system exit can be logged in any actively running job