コード例 #1
0
 def get_next_run_time(self):
     try:
         return deserialize_dt(DjangoJob.objects.filter(next_run_time__isnull=False).earliest('next_run_time').next_run_time)
     except ObjectDoesNotExist:  # no active jobs
         return
     except:
         LOGGER.exception("Exception during get_next_run_time for jobs")
コード例 #2
0
 def get_next_run_time(self):
     try:
         return deserialize_dt(
             DjangoJob.objects.filter(next_run_time__isnull=False).earliest(
                 'next_run_time').next_run_time)
     except AttributeError:  # no active jobs
         return None
コード例 #3
0
 def get_next_run_time(self):
     try:
         return deserialize_dt(DjangoJob.objects.filter(next_run_time__isnull=False).earliest('next_run_time').next_run_time)
     except ObjectDoesNotExist:  # no active jobs
         return
     except:
         LOGGER.exception("Exception during get_next_run_time for jobs")
コード例 #4
0
 def map_jobs(job):
     job.next_run_time = deserialize_dt(job.next_run_time)
     return job
コード例 #5
0
 def get_next_run_time(self):
     try:
         return deserialize_dt(DjangoJob.objects.first().next_run_time)
     except AttributeError:  # no active jobs
         return None
コード例 #6
0
 def map_jobs(job):
     job.next_run_time = deserialize_dt(job.next_run_time)
     return job