Skip to content
Snippets Groups Projects
Commit 7320fd63 authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Fix bounds excpetion

parent 5b062a38
No related branches found
No related tags found
No related merge requests found
name = "FACT_workflow_manager"
uuid = "34b7aff1-f91f-4b8b-9a3d-d0a54f07d855"
authors = ["Riccardo Boero <ribo@nilu.no>"]
version = "0.0.4"
version = "0.0.5"
[deps]
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
......
......@@ -34,9 +34,13 @@ function run_file(workflowFilePath::String, system::OrchestratorRegistry.Service
# Parse the workflow file
tasks = parseWorkflow(workflowFilePath)
println(system)
# Create a reference to results container
service = OrchestratorRegistry.get_services_by_name(system, "FACT_unified_DB")[1]
println(service)
services = OrchestratorRegistry.get_services_by_name(system, "FACT_unified_DB")
if isempty(services)
error("Service 'FACT_unified_DB' not found in the registry")
end
service = services[1]
results_container = Dict(
"user" => "root",
"password" => "devops",
......@@ -45,7 +49,7 @@ function run_file(workflowFilePath::String, system::OrchestratorRegistry.Service
)
# Execute the workflow
#manage_workflow(tasks, results_container, system)
manage_workflow(tasks, results_container, system)
end
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment