#python-3.x #windows-10 #scheduled-tasks #windows-task-scheduler
Вопрос:
У меня есть скрипт на Python, который настроен для запуска через планировщик задач Windows в Windows 10. Скрипт запускается независимо и работает. Сценарий также может быть запущен и работать, когда я запускаю его по требованию. Однако, когда я настраиваю его на запуск на основе тириггеров, он, по-видимому, запускается (как я вижу из истории), но на самом деле он работает не так, как должен.
Я исследовал и нашел несколько предложений о том, как исправить эту, по-видимому, известную проблему, но ни одно из этих предложений, похоже, не сработало:
https://superuser.com/questions/865067/task-scheduler-repeat-task-not-triggering
Вот настройки, которые у меня есть:
I have tried:
Setting the trigger as daily with the task repeating every hour for one day and weekly with the task recurring every week on every day with the task repeating every hour for one day. Neither of these made a differernce.
Setting the start time in the past (rather than the future). This did not work. I have tried setting the task trigger to at startup, with the task activated at the specific time and then repeating every hour indefinitely. This has not worked.
Amending the general settings so that the task will run whether the user is logged on or not. I have tried setting it to run with the highest privileges. Neither of these alone or in combination has worked.
The one time it does seem to work is if I set the inital start just a few minutes after creating or modifying the task and then the first run works. However, subsequent runs then appear to run the task (as shown in the task history), but the task does not actually run and do what it is supposed to do.
Has anyone else encountered this issue? Is there something that I am missing? How can this be set to work effectively please? Thank you!