Statistics
| Branch: | Tag: | Revision:

root / lib / jqueue @ 942817f2

Name Size
__init__.py 76.2 kB
exec.py 3 kB

Latest revisions

# Date Author Comment
942817f2 04/17/2014 06:59 pm Petr Pudlak

Remove the use of queue lock in Python job queue

Since now each process only creates a 1-job queue, trying to use file
locks only causes job deadlock.

Also reduce the number of threads running in a job queue to 1.

Later the job queue will be removed completely....

ea0a6023 04/17/2014 06:59 pm Petr Pudlak

Set process ID field when starting up a job

The ID of the current process is stored in the job file.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

76b4ac58 04/17/2014 06:59 pm Petr Pudlak

Add optional fields for job livelocks and process IDs

This will allow to check if a particular job is alive, and send signals
to it when it's running.

The fields aren't serialized, if missing, for backwards compatibility.

Signed-off-by: Petr Pudlak <>...

7b4bde57 04/17/2014 06:59 pm Petr Pudlak

Add Haskell and Python modules for running jobs as processes

They will be used by Luxi daemon to spawn jobs as separate processes.

The communication protocol between the Luxi daemon and a spawned process
is described in the documentation of module Ganeti.Query.Exec....

c061d046 04/17/2014 06:56 pm Petr Pudlak

Add a method for checking if a particular job has ended

This will be used by job processes temporarily, until they get rid of
using job queue completely.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

4b06d701 04/17/2014 06:56 pm Petr Pudlak

Create a Python submodule for jqueue

.. so that we can add new code into separate files, instead of adding it
to jqueue.py, which has already grown too large.

Signed-off-by: Petr Pudlak <>
Reviewed-by: Klaus Aehlig <>

View revisions

Also available in: Atom