Statistics
| Branch: | Tag: | Revision:

root / lib / jqueue @ 808cb0ee

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

Latest revisions

# Date Author Comment
e7ec2f27 05/30/2014 03:41 pm Klaus Aehlig

Remove Ganeti Lock Manager and Monitor

...from the jobs code, as this functionality is now
carried out by wconfd. Also remove dead code resulting
from this removal.

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

36b6d149 05/22/2014 02:18 pm Thomas Thrainer

Merge branch 'stable-2.11' into stable-2.12

  • stable-2.11
    (no commits)
  • stable-2.10
    tiered allocation: try canonical search path first
    Add QA config flag for all performance tests
    build-bash-completion: reduce branches
    Convert all the classes to new-style classes...
c1795848 04/25/2014 06:17 pm Klaus Aehlig

lint

Signed-off-by: Klaus Aehlig <>
Reviewed-by: Helga Velroyen <>

a37ab322 04/25/2014 04:42 pm Klaus Aehlig

Pass the debug level to forked jobs

When forking off jobs, make them inherit the debug level
of the parent process (i.e., of luxid). In this way, we
can debug jobs in test clusters without cluttering production
logs. We pass the debug level through the environment instead...

908e1be4 04/25/2014 02:56 pm Klaus Aehlig

Make jobs not log as master-daemon

While jobs are still handled by what used to be masterd,
the log message should be assigned to the respective
job.

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

c697dc2c 04/24/2014 09:46 am Petr Pudlak

Cancel job outside the SIGTERM handler

.. because modifying the queue inside the handler can have unexpected
consequences.

Since Python 2 doesn't have a nice way how to modify a variable from
an inner function, we have to use a list as a wrapper.
(Python 3 has the "nonlocal" keyword for it.)...

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....

View revisions

Also available in: Atom