Statistics
| Branch: | Tag: | Revision:

root / lib / jqueue / __init__.py @ 58e4df3c

History | View | Annotate | Download (76.2 kB)

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

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