Bug 791127 - RFE: Allow to specify preferred time when to run a job
Summary: RFE: Allow to specify preferred time when to run a job
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: cronie
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondřej Pohořelský
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-16 09:31 UTC by Petr Pisar
Modified: 2022-06-01 09:50 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-11-22 14:24:45 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Petr Pisar 2012-02-16 09:31:20 UTC
I have a job which I need to run each day. Most preferably around 3 AM. If it's not possible to run at 3 AM, then whenever in the day.

Current implementation can restrain the time by START_HOURS_RANGE. This option accepts exactly two values. The job is tried on begin of the range and then retried until end of the range.

Problem with START_HOURS_RANGE is you cannot specify time after noon. E.g. 3-24 excludes hours from 0:00 to 3:00. So you disable 3 hours effectively.

If I specify 3-2, then I would expect time from 2:00 to 3:00 will be excluded, but the job is not run at all.

I propose to extend START_HOURS_RANGE to allow to specify times after the noon. E.g. 3-2. Or even 3-3 to fulfill my request in first paragraph (whole day allowed, 3 AM preferred).

Comment 1 Tomas Mraz 2012-02-16 09:49:56 UTC
No, I do not want to conflate START_HOURS_RANGE with this meaning. However I agree that your request is legit and having this feature would be useful.

Comment 2 Tomas Mraz 2012-02-16 09:52:10 UTC
Also note that there is a similar feature request to have a preferred day of the week for the weekly jobs and day of the month for the monthly jobs as well. This should be implemented as a single feature.

Comment 3 Fedora Admin XMLRPC Client 2014-09-04 12:15:00 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.


Note You need to log in before you can comment on or make changes to this bug.