[FEATURE REQUEST] Allow creation of V1 Windows Scheduled tasks
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 15.7k
- Forks
- 5.6k
- Avg merge
- 2d 44m
- Merged PRs (30d)
- 80
Description
Is your feature request related to a problem? Please describe.
I want to be able to add scheduled tasks for windows snapshots and have it show as enabled in the shadow copy manager. To do this a V1 task is necessary.
Describe the solution you'd like
add a compatibility argument to win_task.create_task
Describe alternatives you've considered
none
Additional context
here is an example of what the code could look like:
def create_task(
name, location="\", user_name="System", password=None, force=False, compatibility=2, **kwargs
):
.
.
.
def edit_task(
name=None,
location="\",
# General Tab
user_name=None,
password=None,
description=None,
enabled=None,
hidden=None,
# Conditions Tab
run_if_idle=None,
idle_duration=None,
idle_wait_timeout=None,
idle_stop_on_end=None,
idle_restart=None,
ac_only=None,
stop_if_on_batteries=None,
wake_to_run=None,
run_if_network=None,
network_id=None,
network_name=None,
# Settings Tab
allow_demand_start=None,
start_when_available=None,
restart_every=None,
restart_count=3,
execution_time_limit=None,
force_stop=None,
delete_after=None,
multiple_instances=None,
compatibility=None,
**kwargs,
):
.
.
if compatibility:
task_definition.Settings.Compatibility = compatibility
Please Note
If this feature request would be considered a substantial change or addition, this should go through a SEP process here https://github.com/saltstack/salt-enhancement-proposals, instead of a feature request.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start from the win_task.create_task and win_task.edit_task entry points named in the issue, and inspect how their task definitions currently set compatibility. Confirm the expected value for a V1 task and verify that creating a Windows snapshot task produces a task shown as enabled in Shadow Copy Manager.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devops, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100