def get_async_result(id, backend="celery"): if backend == 'celery': res = AsyncResult(id) if res.ready(): return res.get() raise ValueError("no result").
確定! 回上一頁