From 7285237f5bddf76a712d9f9f8b20041cc2a8d804 Mon Sep 17 00:00:00 2001 From: James Taylor Date: Wed, 21 Feb 2007 20:16:35 +0000 Subject: [PATCH] Hack for database monitoring job queue to wait until after forking to start monitor thread. --- lib/galaxy/jobs/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index aa9c76c0f73..4d265e52b4b 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -62,6 +62,8 @@ class JobQueue( object ): Continually iterate the waiting jobs, checking is each is ready to run and dispatching if so. """ + # HACK: Delay until after forking, we need a way to do post fork notification!!! + time.sleep( 10 ) while self.running: # Pull all new jobs from the queue at once new_jobs = []