コード例 #1
0
ファイル: test_kuyruk.py プロジェクト: fatiherikli/kuyruk
 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)
コード例 #2
0
ファイル: test_kuyruk.py プロジェクト: fatiherikli/kuyruk
 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')