From 49c55b5dd787408ca2793288166744bf40178fc7 Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Mon, 3 Nov 2008 15:21:03 -0500 Subject: [PATCH] A fix for the metadata reverting issue seen with PBS job runner. --- lib/galaxy/jobs/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/galaxy/jobs/__init__.py b/lib/galaxy/jobs/__init__.py index e0135c75afc..e4405a91583 100644 --- a/lib/galaxy/jobs/__init__.py +++ b/lib/galaxy/jobs/__init__.py @@ -274,6 +274,7 @@ class JobWrapper( object ): Prepare the job to run by creating the working directory and the config files. """ + mapping.context.current.clear() #this prevents the metadata reverting that has been seen in conjunction with the PBS job runner # Create the working directory self.working_directory = \ os.path.join( self.app.config.job_working_directory, str( self.job_id ) ) @@ -643,4 +644,4 @@ class NoopQueue( object ): def put( self, *args ): return def shutdown( self ): - return \ No newline at end of file + return