This is a copy of a https://github.com/saltstack/salt/blob/master/salt/modules/win_task.py
from https://github.com/saltstack/salt
(Apache 2.0 Licence) as a separate repository.
pip install https://github.com/dolamroth/py_win_task_scheduler/archive/refs/heads/main.zip
According to requirement SaltStack's licence, here is a list of changes made to original script:
- class
Com
and exceptionsArgumentValueError
,CommandExecutionError
are inserted in a single file, instead of import. - Function
run_wait
made asynchronous with anyio,anyio.sleep(1)
inserted within infinite loop, to make function cancellable withanyio.CancelScope
- Added extra error-key
-2147024891
in method_save_task_definition
- Definitions of
__virtual__
methods have been removed
- Salt original licence: https://github.com/saltstack/salt/blob/master/LICENSE
- Salt NOTICE file: https://github.com/saltstack/salt/blob/master/NOTICE