details: http://www.bx.psu.edu/hg/galaxy/rev/4448bc8ba587 changeset: 2911:4448bc8ba587 user: James Taylor james@jamestaylor.org date: Fri Oct 23 12:53:25 2009 -0400 description: Fix for SA session when track_jobs_in_database=False
1 file(s) affected in this change:
lib/galaxy/jobs/__init__.py
diffs (12 lines):
diff -r 811eda31b6b3 -r 4448bc8ba587 lib/galaxy/jobs/__init__.py --- a/lib/galaxy/jobs/__init__.py Fri Oct 23 12:47:16 2009 -0400 +++ b/lib/galaxy/jobs/__init__.py Fri Oct 23 12:53:25 2009 -0400 @@ -172,7 +172,7 @@ # Pull all new jobs from the queue at once new_jobs = [] if self.track_jobs_in_database: - for j in session.query( model.Job ) \ + for j in self.sa_session.query( model.Job ) \ .options( lazyload( "external_output_metadata" ), lazyload( "parameters" ) ) \ .filter( model.Job.c.state == model.Job.states.NEW ): job = JobWrapper( j, self.app.toolbox.tools_by_id[ j.tool_id ], self )
galaxy-dev@lists.galaxyproject.org