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)
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')