#996: Bibsched running tasks at fixed time
------------------------+-----------------------------
Reporter: adeiana | Owner:
Type: enhancement | Status: infoneeded_new
Priority: critical | Component: BibSched
Version: | Resolution:
Keywords: |
------------------------+-----------------------------
Changes (by skaplun):
* status: new => infoneeded_new
Comment:
Hi Alessio,
this ticket is kind of implementing the request in ticket #896, that was
closed as duplicate of #794. However it's true that this is implementing a
different concept, namely to have no time drift at all.
I have to comments on your patch:
* is it Python 2.4 friendly (in particular WRT the different time Vs. date
strptime functions?
* in your implementation, when the {{{var}}} argument to
{{{get_datetime}}} is not matched by the regular expression (and contains
therefore a regular date), you completely ignore it:
{{{#!patch
- date = time.strptime(var, format_string)
- date = time.strftime(format_string, date)
+ date = date.strftime(format_string)
}}}
while before it was used to build the date value. In this way you are
changing the semantic of {{{get_datetime}}} even when you are not
specifying the new {{{now}}} argument.
--
Ticket URL: <http://invenio-software.org/ticket/996#comment:1>
Invenio <http://invenio-software.org>