mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-26 23:15:57 +03:00
[GH-ISSUE #554] duplicate tasks show after deleting and recreating them in different automation policy #352
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#352
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bbrendon on GitHub (Jun 4, 2021).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/554
Originally assigned to: @sadnub on GitHub.
Tasks created by policy:

In my setup I have a global default policy and a client level policy. I removed the tasks from the policy on the client and created the task on the global policy. After that, some of the tasks are like you see in the screenshot. Some agents do not have duplicate tasks. Its very sporadic. I tried "Sync Policies" and also "Remove orphaned tasks". Neither made a difference.
Also, as I'm investigating this, I was looking in "Policy Overview" and the tasks assigned to workstation and servers do not match the global policy plus the client policy. Maybe I'm misunderstanding how that works but based on the behavior of the software, that was my expectation.
I'm running 0.6.13 on debian.
agents are 1.5.7. I haven't noticed any other versions.
@bbrendon commented on GitHub (Jun 4, 2021):
Also, I have 5 of these celery errors in the logs in the last day or so. Not sure what they are about.
@silversword411 commented on GitHub (Jun 4, 2021):
Are these policies from before 0.6.9? There was a bug with automation policies and weird stuff happening. Only deleting the entire policy and re-creating fixed them....thought you had said in Discord you already did that but.....
@bbrendon commented on GitHub (Jun 4, 2021):
OOo. The policies for the sites were created before 0.6.9. the global policy i'm not sure.
@sadnub commented on GitHub (Jun 7, 2021):
Thanks for your help on this! I was able to track down the issue to only tasks that run on check failure and only when agents were offline (or hadn't removed the old task since it was last removed)
I just pushed a fix. It will be in the next release.
@wh1te909 commented on GitHub (Jun 11, 2021):
released in 0.6.14
@bbrendon commented on GitHub (Jun 12, 2021):
I hate to be the bearer of bad news but this doesn't seem to be resolved. At first it did but now I'm finding more and more again with duplicate TASKS. I haven't tested or enabled any checks.
What I did was...