Skip to content

Conversation

BZValoche
Copy link

DayInterval and WeekInterval are directly the number of days of weeks between task runs.

DayInterval and WeekInterval are directly the number of days of weeks between task runs.
@capnspacehook
Copy link
Owner

capnspacehook commented May 9, 2021

Per MSDN, day intervals and week intervals can both be only 2 values:

https://docs.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-idailytrigger-get_daysinterval
https://docs.microsoft.com/en-us/windows/win32/api/taskschd/nf-taskschd-iweeklytrigger-get_weeksinterval

I see what you're trying to do here, but to my knowledge Windows will not allow a day interval or week interval to have any other value then 1 or 2.

I'm going to leave this PR open for a bit in case there's something I'm missing, but regardless thanks for the PR!

@BZValoche
Copy link
Author

BZValoche commented May 11, 2021

Hi,
Microsoft's documentation gives an example of how to schedule a task every other day. But if you want 3 days or weeks between successive runs, you surely can enter another value.

Look at this sample task (in french, but I'm sure you'll get it ;-) ):
image

DaysInterval definition specifies the value must be between 1 and 365, inclusive.
https://docs.microsoft.com/en-us/windows/win32/taskschd/taskschedulerschema-daysinterval-dailyscheduletype-element

WeeksInterval, between 1 and 52.
https://docs.microsoft.com/en-us/windows/win32/taskschd/taskschedulerschema-weeksinterval-weeklyscheduletype-element

giert pushed a commit to giert/taskmaster that referenced this pull request Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants