Compare commits

...

2 Commits

Author SHA1 Message Date
wh1te909
f073ddc906 Release 0.2.7 2020-12-07 09:50:37 +00:00
wh1te909
3e00631925 cleanup older pending action agent updates if one exists with an older agent version 2020-12-07 09:50:15 +00:00
2 changed files with 19 additions and 3 deletions

View File

@@ -54,7 +54,15 @@ def send_agent_update_task(pks, version):
if agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).exists():
continue
action = agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).last()
if pyver.parse(action.details["version"]) < pyver.parse(
settings.LATEST_AGENT_VER
):
action.delete()
else:
continue
PendingAction.objects.create(
agent=agent,
@@ -122,7 +130,15 @@ def auto_self_agent_update_task():
if agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).exists():
continue
action = agent.pendingactions.filter(
action_type="agentupdate", status="pending"
).last()
if pyver.parse(action.details["version"]) < pyver.parse(
settings.LATEST_AGENT_VER
):
action.delete()
else:
continue
PendingAction.objects.create(
agent=agent,

View File

@@ -15,7 +15,7 @@ EXE_DIR = os.path.join(BASE_DIR, "tacticalrmm/private/exe")
AUTH_USER_MODEL = "accounts.User"
# latest release
TRMM_VERSION = "0.2.6"
TRMM_VERSION = "0.2.7"
# bump this version everytime vue code is changed
# to alert user they need to manually refresh their browser