Esempio n. 1
0
def retry_failed(request, number=5000):
    failures = failure.all(HOST, 0, number)
    for f in failures:
        j = b64decode(f["redis_value"])
        failure.retry(HOST, f["queue"], j)
    raise Redirect("/failed/")
Esempio n. 2
0
def failed_retry(request):
    failed_job = request.POST["failed_job"]
    job = b64decode(failed_job)
    decoded = TaskMessage.decode(job)
    failure.retry(HOST, decoded["queue"], job)
    raise Redirect("/failed/")