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.
Description
Add possibility to schedule first start of cron
- Assignee changed from Radek Tomiška to Petr Hanák
- Subject changed from 2) Scheduled start of cron to Scheduled start of cron
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.
- Status changed from New to In Progress
- % Done changed from 0 to 80
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.
- Subject changed from Scheduled start of cron to Postponed first start of cron
- Status changed from In Progress to Needs feedback
- Assignee changed from Petr Hanák to Radek Tomiška
- 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.
- Assignee changed from Petr Hanák to Radek Tomiška
- 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.
Also available in: Atom
PDF