You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
):
Hi there! Welcome to the Salt Community! Thank you for making your first contribution. We have a lengthy process for issues and PRs. Someone from the Core Team will follow up as soon as possible. In the meantime, here’s some information that may help as you continue your Salt journey.
Please be sure to review our Code of Conduct. Also, check out some of our community resources including:
There are lots of ways to get involved in our community. Every month, there are around a dozen opportunities to meet with other contributors and the Salt Core team and collaborate in real time. The best way to keep track is by subscribing to the Salt Community Events Calendar.
If you have additional questions, email us at [email protected]. We’re glad you’ve joined our community and look forward to doing awesome things with you!
nychef
changed the title
[FEATURE REQUEST] Allow creation of V1 Windows Schedued tasks
[FEATURE REQUEST] Allow creation of V1 Windows Scheduled tasks
Apr 24, 2025
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.
The text was updated successfully, but these errors were encountered: