|
__init__(self,
opts,
jobs,
events,
worker_num,
ip=None,
create=True,
callback=None) |
source code
|
|
|
event(self,
topic,
template,
content=None)
Multi-purpose logging method. |
source code
|
|
|
spawn_instance(self,
retry=0)
call the spawn playbook to startup/provision a building instance |
source code
|
|
|
terminate_instance(self,
ip)
call the terminate playbook to destroy the building instance |
source code
|
|
|
|
|
post_to_frontend(self,
data)
send data to frontend |
source code
|
|
|
|
|
|
|
run(self)
Worker should startup and check if it can function for each job it
takes from the jobs queue run opts.setup_playbook to create the
instance do the build (mockremote) terminate the instance |
source code
|
|