|
@@ -112,13 +112,13 @@ def main():
|
|
|
# 当天结束时间(23:59:59.999999)
|
|
# 当天结束时间(23:59:59.999999)
|
|
|
end_ts = int(datetime.combine(today.date(), time.max).timestamp())
|
|
end_ts = int(datetime.combine(today.date(), time.max).timestamp())
|
|
|
|
|
|
|
|
- job_run_state(start_ts, end_ts)
|
|
|
|
|
|
|
+ # job_run_state(start_ts, end_ts)
|
|
|
|
|
|
|
|
current_hour = today.hour
|
|
current_hour = today.hour
|
|
|
|
|
|
|
|
crawler_mode_and_video_source_list = []
|
|
crawler_mode_and_video_source_list = []
|
|
|
for cron_info in AutomationJobCronInfo:
|
|
for cron_info in AutomationJobCronInfo:
|
|
|
- if cron_info.min_hour < current_hour:
|
|
|
|
|
|
|
+ if current_hour < cron_info.task_start_hour:
|
|
|
continue
|
|
continue
|
|
|
|
|
|
|
|
crawler_mode_and_video_source_list.append((cron_info.crawler_mode, cron_info.video_source))
|
|
crawler_mode_and_video_source_list.append((cron_info.crawler_mode, cron_info.video_source))
|