[GH-ISSUE #497] Feature Request: Skip if offline/in maintenance option when scheduling tasks/scripts #309

Open
opened 2026-03-02 02:15:19 +03:00 by kerem · 4 comments
Owner

Originally created by @renbanford on GitHub (May 12, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/497

When scheduling tasks, scripts and checks (Whether using the bulk schedule tools, under the agent details or via automation policies), it would be nice to have a "skip if offline" option (Similar to Kaseya), which allows you to skip machines that are not currently reporting in/offline. It may also be pertinent to also skip running the associated task/script on machines which are in maintenance mode, if this option were to be selected.

Originally created by @renbanford on GitHub (May 12, 2021). Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/497 When scheduling tasks, scripts and checks (Whether using the bulk schedule tools, under the agent details or via automation policies), it would be nice to have a "skip if offline" option (Similar to Kaseya), which allows you to skip machines that are not currently reporting in/offline. It may also be pertinent to also skip running the associated task/script on machines which are in maintenance mode, if this option were to be selected.
Author
Owner

@wh1te909 commented on GitHub (May 12, 2021):

this is already happening, scripts and commands are fire and forget so if the agent is offline it's not gonna get it anyway
only thing i could add would be to skip online agents in maintenance mode

<!-- gh-comment-id:839943213 --> @wh1te909 commented on GitHub (May 12, 2021): this is already happening, scripts and commands are fire and forget so if the agent is offline it's not gonna get it anyway only thing i could add would be to skip online agents in maintenance mode
Author
Owner

@renbanford commented on GitHub (May 13, 2021):

The "fire and forget" option doesn't appear when scheduling a task:
image

I was thinking possibly to be able to have a regular, scheduled task skipped when a machine is offline/in maintenance mode?

<!-- gh-comment-id:840291071 --> @renbanford commented on GitHub (May 13, 2021): The "fire and forget" option doesn't appear when scheduling a task: ![image](https://user-images.githubusercontent.com/12677339/118078028-a5366980-b3f8-11eb-9fa5-e48d9855406b.png) I was thinking possibly to be able to have a regular, scheduled task skipped when a machine is offline/in maintenance mode?
Author
Owner

@wh1te909 commented on GitHub (May 13, 2021):

"add automated task" you can think of a web wrapper around the windows task scheduler.

create a task and then look in task scheduler on the agent and you'll see the task created. obviously if the computer is turned off then the task wont run.

and if the agent is "offline" meaning the computer is turned on but has no internet, the task will attempt to run and fail. the way it works is agent just stores the task id, and when it's time to run it reaches out to the rmm with the task id. rmm queries database for that id, and sends back to the agent all the info like the script, timeout etc. so without this info the agent cannot run the task and so it will simply return without running.

so basically if an agent is offline its not going to be able to run anything anyway. hopefully that clears up what i meant by fire and forget. same thing with running bulk commands, scripts etc. rmm will just fire and forget to all the agents you selected. if the agent is not responding the rmm doesn't care it will just skip it and move on to the next

so only option i see is adding a "skip if in maintenance mode"

<!-- gh-comment-id:840394893 --> @wh1te909 commented on GitHub (May 13, 2021): "add automated task" you can think of a web wrapper around the windows task scheduler. create a task and then look in task scheduler on the agent and you'll see the task created. obviously if the computer is turned off then the task wont run. and if the agent is "offline" meaning the computer is turned on but has no internet, the task will attempt to run and fail. the way it works is agent just stores the task id, and when it's time to run it reaches out to the rmm with the task id. rmm queries database for that id, and sends back to the agent all the info like the script, timeout etc. so without this info the agent cannot run the task and so it will simply return without running. so basically if an agent is offline its not going to be able to run anything anyway. hopefully that clears up what i meant by fire and forget. same thing with running bulk commands, scripts etc. rmm will just fire and forget to all the agents you selected. if the agent is not responding the rmm doesn't care it will just skip it and move on to the next so only option i see is adding a "skip if in maintenance mode"
Author
Owner

@renbanford commented on GitHub (May 14, 2021):

Ah, understood - thank you.

A "skip if in maintenance mode" would also be useful :)

<!-- gh-comment-id:841355589 --> @renbanford commented on GitHub (May 14, 2021): Ah, understood - thank you. A "skip if in maintenance mode" would also be useful :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tacticalrmm#309
No description provided.