Project

General

Profile

Actions

Defect #2994

open

Status - lastRun is reset to current time whenever the configuration of the scheduled task changes

Added by Alena Peterová about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
11/05/2021
Due date:
% Done:

0%

Estimated time:
Affected versions:
Owner:

Description

Tested on 2.8.0
The parts "LRT status" and "Contract status" of the CzechIdMStatusNotificationTask depend on the last time when this task run - the time is taken from idm.sec.core.status.lastRun.
However, this property is reset to the current time whenever the configuration of the scheduled task is changed (e.g. added new recipients, changing task parameters).
Effectively, all changes, which happened between the last real run of the task and the change of the task configuration, are lost.

The problem is that the lastRun is set in the "init" method, which is evidently run at every change of configuration. Also, the comment "first run, default run - 10days" in the code doesn't work - the first run never contains anything.

Note: Changing the scheduled start doesn't affect lastRun, luckily.

No data to display

Actions

Also available in: Atom PDF