Exemplo n.º 1
0
def main(args):
    app = SingleInstanceApp('Test App2','123')
    if app.try_start_instance(*args):
        app.start_jobs_process(False)
        start_time = time.time()
        while time.time() - start_time < 10: pass
        app.stop_jobs_process()
        app.stop_accepting()
    fancy_log(sys.stdout, 'the end')
Exemplo n.º 2
0
 def job_is_updated(self, *args, **kwargs):
     fancy_log(sys.stdout,'calls instance with args: '+str(args)+'\n kwargs: '+str(kwargs))
     pass
Exemplo n.º 3
0
 def queue_launch_instance(self, *args):
     fancy_log(sys.stdout, 'queued instance launch with args: '+str(args))
     self.add_job(*args)