Project

General

Profile

Actions

Task #1563

closed

Task #882: Scheduler - configure scheduled starts by calendar

Postponed first start of cron

Added by Petr Hanák almost 6 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Radek Tomiška
Category:
Scheduler
Target version:
Start date:
03/18/2019
Due date:
% Done:

100%

Estimated time:
Owner:

Description

Add possibility to schedule first start of cron

Actions #1

Updated by Petr Hanák almost 6 years ago

  • Assignee changed from Radek Tomiška to Petr Hanák
Actions #2

Updated by Vít Švanda almost 6 years ago

  • Subject changed from 2) Scheduled start of cron to Scheduled start of cron
Actions #3

Updated by Radek Tomiška over 5 years ago

New field with execute date can be added into cron trigger dto. This field will be propagate into job detail properties under 'idm:execute-date' key. Then this property will be used in 'AbstractSchedulableTaskExecutor#execute' to prevent creating (and executing) long running task.

Note: I didn't find any standard feature (in quartz), so please look at it at first. If no standard feature exist, then solution above can be implemented.
Note: 'EntityEvent.EVENT_PROPERTY_EXECUTE_DATE' can be used for property key - has the same meaning.

Actions #4

Updated by Radek Tomiška over 5 years ago

You can continue in branch https://github.com/bcvsolutions/CzechIdMng/tree/phanak/882-scheduler-by-calendar, i will do a feedback together with this.

Actions #5

Updated by Petr Hanák over 5 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 80
Actions #6

Updated by Petr Hanák over 5 years ago

Postponing of first start now works.
For minutes, hours and day, first start parameter works as time from which Cron expression is created.
For weeks and months you can set valid from date, which doesn't influence created expression.
Only thing is, that we have to rethink how to show postponed tasks in scheduled tasks tab.

Actions #7

Updated by Petr Hanák over 5 years ago

  • Subject changed from Scheduled start of cron to Postponed first start of cron
Actions #8

Updated by Petr Hanák over 5 years ago

  • Status changed from In Progress to Needs feedback
  • Assignee changed from Petr Hanák to Radek Tomiška
Actions #9

Updated by Radek Tomiška over 5 years ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Radek Tomiška to Petr Hanák

Plase add integration test for postponed start and remove 'gui' project from branch.

Actions #10

Updated by Radek Tomiška almost 5 years ago

  • Assignee changed from Petr Hanák to Radek Tomiška
Actions #11

Updated by Radek Tomiška almost 5 years ago

  • Status changed from In Progress to Closed
  • Target version set to 10.2.0
  • % Done changed from 80 to 100

I found native quartz feature to postpone first task scheduling, review will be included to parent task.

Actions

Also available in: Atom PDF