|
@@ -25,7 +25,7 @@ class SchedulingV3:
|
|
|
@classmethod
|
|
|
def update_task(cls, log_type, crawler, task_id, start_time, interval_piaoquan, env):
|
|
|
if interval_piaoquan > 0:
|
|
|
- new_start_time = start_time + int(interval_piaoquan)*60*1000
|
|
|
+ new_start_time = start_time + int(interval_piaoquan)*1000
|
|
|
update_sql = f""" UPDATE crawler_task_v3 SET start_time={new_start_time} WHERE id={task_id} """
|
|
|
MysqlHelper.update_values(log_type, crawler, update_sql, env)
|
|
|
Common.logger(log_type, crawler).info(f"更新任务下次启动时间成功:{new_start_time}\n")
|