#991: Allow tasks to execute on the host set in "host" field
--------------------+-----------------------
Reporter:  adeiana  |       Owner:
    Type:  defect   |      Status:  assigned
Priority:  major    |   Component:  BibSched
 Version:           |  Resolution:
Keywords:           |
--------------------+-----------------------

Comment (by skaplun):

 Hi Alessio,

 unfortunately, you can't really ''have bibsched to declare the task'' as
 in '''ERROR''' state, because most of the time, it's simply that the task
 is taking too much too start (e.g. because it creates enormous data
 structure upon start, as it happens with citation dictionaries).

 Maybe we can still go in this direction (i.e. to have bibsched decide the
 task has failed, rather than the task), by first inspecting the task pid
 file and trying to ping the task with a UNIX signal. If no pid file
 exists, or if the number in the pid file does not correspond to a live
 task, then indeed bibsched can declare the task as '''ERROR''' as you
 propose. This can be implemented by exploiting the already existing
 {{{get_task_pid}}} function.

-- 
Ticket URL: <http://invenio-software.org/ticket/991#comment:10>
Invenio <http://invenio-software.org>

Reply via email to