data_export_13.py 389 B

1234567891011
  1. def check_and_upload(support_upload_pk, auth_task, gen_task):
  2. auth = AsyncResult(auth_task)
  3. gen_csa = AsyncResult(gen_task)
  4. if not (auth.ready() and gen_csa.ready()):
  5. check_and_upload.retry(countdown=1)
  6. elif auth.status == "SUCCESS" and gen_csa.status == "SUCCESS":
  7. if auth.result:
  8. upload_to_support(support_upload_pk)
  9. else:
  10. return