Esempio n. 1
0
 def test_dead_master(self):
     """If master is dead worker should exit gracefully"""
     tasks.print_task('hello world')
     with run_kuyruk(terminate=False) as worker:
         worker.expect('hello world')
         worker.kill()
         worker.expect_exit(-signal.SIGKILL)
         wait_until(not_running, timeout=TIMEOUT)
Esempio n. 2
0
 def test_simple_task(self):
     """Run a task on default queue"""
     tasks.print_task('hello world')
     with run_kuyruk() as worker:
         worker.expect('hello world')