Skip to content
Snippets Groups Projects

fix WS carta launch

Merged Charlotte Hausman requested to merge carta_testing into main
1 file
+ 7
7
Compare changes
  • Side-by-side
  • Inline
@@ -49,9 +49,7 @@ class WorkflowInfo(WorkflowInfoIF):
"""
return self.session.query(WorkflowRequest).all()
def create_workflow_request(
self, workflow: Union[str, WorkflowIF], argument: Dict
) -> WorkflowRequest:
def create_workflow_request(self, workflow: Union[str, WorkflowIF], argument: Dict) -> WorkflowRequest:
"""
Create new workflow request and save to database
@@ -66,7 +64,11 @@ class WorkflowInfo(WorkflowInfoIF):
if any(item in workflow_name for item in ["null", "download", "carta", "seci"]):
argument["need_project_metadata"] = False
if workflow_name == "carta" and len(argument["product_locator"].split(",")) == 1:
if (
workflow_name == "carta"
and argument["need_data"] is True
and len(argument["product_locator"].split(",")) == 1
):
argument["single_image"] = True
argument["need_project_metadata"] = True
if workflow_name == "carta" and "parent_wf_request_id" in argument:
@@ -95,9 +97,7 @@ class WorkflowInfo(WorkflowInfoIF):
self.session.add(request)
self.session.flush()
def save_file(
self, request: WorkflowRequest, filename: str, content: bytes
) -> WorkflowRequestFile:
def save_file(self, request: WorkflowRequest, filename: str, content: bytes) -> WorkflowRequestFile:
"""
Save a given file for the specified request to the database
Loading