简体   繁体   中英

Scheduled task - no next run time

here is my problem. When I create a new scheduled task using win32com in python there is no next run time for the task. It says 'never' in task scheduler gui.

My workflow of creating tasks:

  1. try to make new task, if failed, get existing one for update,
  2. create daily triggers for the task,
  3. save it all.

Any advice?

So here is the simple solution.

I checked the defaults params for the trigger and than I saw, that Flags is set to 4, which means DISABLED.

It seems, that's the default setting for a new trigger for a task.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM