Esempio n. 1
0
 def rerun(self, data):
     f = open(data, 'w')
     f.close()
     return Job.rerun(self, data)
Esempio n. 2
0
from config import Config
from StringIO import StringIO

Job._state_file_wait_time = 0.01

class MockRunner(Runner):
    _runner_name = 'mock'
    def __init__(self, id):
        Runner.__init__(self)
        self.id = id
    def _run(self, webservice):
        return self.id
    @classmethod
    def _check_completed(cls, jobid, directory):
        return True
Job.register_runner_class(MockRunner)

basic_config = """
[general]
admin_email: [email protected]
service_name: test_service
socket: test.socket

[backend]
user: test
state_file: state_file
check_minutes: 10

[database]
db: testdb
frontend_config: frontend.conf