Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/i/n/input-lib-HEAD/packages/celery/celery/tests/test_task.py   input-lib(Download)
 
        self.assertFalse(presult.successful())
        default_backend.mark_as_done(presult.task_id, result=None)
        self.assertTrue(presult.successful())
 

src/i/n/input-lib-HEAD/packages/celery/celery/tests/test_result.py   input-lib(Download)
def save_result(task):
    traceback = "Some traceback"
    if task["status"] == states.SUCCESS:
        default_backend.mark_as_done(task["id"], task["result"])
    elif task["status"] == states.RETRY: