data_export_6.py 293 B

123456789
  1. def filemonitor_errback(task_id, monitor_pk):
  2. try:
  3. monitor = models.FileMonitor.objects.get(pk=monitor_pk)
  4. except Exception:
  5. logger.exception("Monitor error callback failed for pk={0}".format(monitor_pk))
  6. return
  7. monitor.status = "Error"
  8. monitor.save()