Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/galaxy/workflow/scheduling_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from galaxy import model
from galaxy.exceptions import HandlerAssignmentError
from galaxy.jobs.handler import InvocationGrabber
from galaxy.model.base import check_database_connection
from galaxy.schema.invocation import (
FailureReason,
InvocationFailureDatasetFailed,
Expand Down Expand Up @@ -431,6 +432,7 @@ def __attempt_materialize(self, workflow_invocation: model.WorkflowInvocation, s

def __attempt_schedule(self, invocation_id, workflow_scheduler):
with self.app.model.context() as session:
check_database_connection(session)
workflow_invocation = session.get(model.WorkflowInvocation, invocation_id)
if workflow_invocation.state == workflow_invocation.states.REQUIRES_MATERIALIZATION:
if not self.__attempt_materialize(workflow_invocation, session):
Expand Down
Loading