Skip to main content

Script to work with Windows Task Scheduler 2.0 from SaltStack

Project description

## Python scripts for Windows Task Scheduler 2.0 from SaltStack

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.

## Installation and usage

pip install https://github.com/dolamroth/py_win_task_scheduler/archive/refs/heads/main.zip

## Changes made

According to requirement SaltStack’s licence, here is a list of changes made to original script:

  • class Com and exceptions ArgumentValueError, 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 with anyio.CancelScope

  • Added extra error-key -2147024891 in method _save_task_definition

  • Definitions of __virtual__ methods have been removed

## Licences

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

py_win_task_scheduler-0.2.1.tar.gz (18.3 kB view hashes)

Uploaded Source

Built Distribution

py_win_task_scheduler-0.2.1-py3-none-any.whl (18.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page