Project

General

Profile

Actions

Defect #1500

closed

When HR process is stopped manually, its next run processes wrong items

Added by Alena Peterová about 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Long running task
Target version:
Start date:
02/12/2019
Due date:
% Done:

100%

Estimated time:
Affected versions:
Owner:

Description

Version 9.3.4.

This was tested in an environment with 865 contracts.

Steps to reproduce:
  • Run the scheduled task HrEnableContractProcess - it processes 0/0 (to be sure that all contracts were already processed in the past)
  • Run the task HrEnableContractProcess again and stop the task during execution by Scheduled Task -> Running tasks -> End task (or Terminate task). The task is canceled in the middle of computing items to process, e.g. 458 are left.
  • Run the task HrEnableContractProcess again. It processes all 458 items which weren't computed before. But these items shouldn't be processed again, because they were processed in the past.

Please see the screenshot to better understand.

The problem is, if there is some notification attached to contract enabling (in our case we extend HrEnableContractProcess to notify managers of the new contracts), then this notification will be sent again for all the 458 contracts.

Interestingly, if we shutdown the application server during running of the task, the problem doesn't appear.


Files

hr_process_manual_stop.png (27.5 KB) hr_process_manual_stop.png Alena Peterová, 02/12/2019 03:22 PM
Actions

Also available in: Atom PDF