#795: BibSched: centralise the "monotask" concept
----------------------+----------------------
Reporter: simko | Owner: vvenkatr
Type: defect | Status: new
Priority: minor | Milestone:
Component: BibSched | Version:
Keywords: |
----------------------+----------------------
BibSched has a notion of "monotask", i.e. a task that can be run only
synchronously, i.e. the execution of which cannot be interrupted by other
tasks. The typical example is `dbdump`.
Currently this is hardcoded in the sources:
{{{
$ git grep -C 1 monotask
bibsched.py- if proc == 'bibupload' or proc == 'dbdump':
bibsched.py: ## okay, we have a synchronous monotask to run:
bibsched.py- ## (won't be interrupted by any other task that may pop
in)
}}}
It is the goal of this task to create a new (internal) configuration
variable called say `CFG_BIBTASK_MONOTASKS` that will list all the tasks
that are to be treated in this monotaskish way, as well as to complete the
list of monotasks. For example, it seems necessary to treat `inveniogc`
as a monotask as well, so that bibxxx garbage collection does not get
interrupted by incoming bibuploads.
--
Ticket URL: <http://invenio-software.org/ticket/795>
Invenio <http://invenio-software.org>