Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
FACT Workflow Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
FACT Workflow Manager
Commits
d600731c
Commit
d600731c
authored
3 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Fix workflow task parsing
parent
a5200aa5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Project.toml
+1
-1
1 addition, 1 deletion
Project.toml
src/Runner.jl
+1
-3
1 addition, 3 deletions
src/Runner.jl
src/TOMLParser.jl
+1
-1
1 addition, 1 deletion
src/TOMLParser.jl
with
3 additions
and
5 deletions
Project.toml
+
1
−
1
View file @
d600731c
name
=
"FACT_workflow_manager"
name
=
"FACT_workflow_manager"
uuid
=
"34b7aff1-f91f-4b8b-9a3d-d0a54f07d855"
uuid
=
"34b7aff1-f91f-4b8b-9a3d-d0a54f07d855"
authors
=
[
"Riccardo Boero <ribo@nilu.no>"
]
authors
=
[
"Riccardo Boero <ribo@nilu.no>"
]
version
=
"0.0.
9
"
version
=
"0.0.
10
"
[deps]
[deps]
DataFrames
=
"a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DataFrames
=
"a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
...
...
This diff is collapsed.
Click to expand it.
src/Runner.jl
+
1
−
3
View file @
d600731c
...
@@ -110,12 +110,11 @@ system = ServiceRegistry() # Assuming ServiceRegistry is preconfigured
...
@@ -110,12 +110,11 @@ system = ServiceRegistry() # Assuming ServiceRegistry is preconfigured
manage_workflow(tasks_list, results_container, system)
manage_workflow(tasks_list, results_container, system)
```
```
"""
"""
function
manage_workflow
(
tasks_list
::
Vector
{
Dict
},
results_container
::
Dict
,
system
::
OrchestratorRegistry
.
ServiceRegistry
)
function
manage_workflow
(
tasks_list
::
Vector
{
Dict
},
results_container
::
Dict
,
system
::
OrchestratorRegistry
.
ServiceRegistry
)
overwrite
=
true
overwrite
=
true
update_condition
=
Atomic
{
Bool
}(
false
)
# Flag for saving updates
update_condition
=
Atomic
{
Bool
}(
false
)
# Flag for saving updates
# Convert tasks_list
(Vector)
into a
D
ict
for easy access by task id
# Convert tasks_list into a
d
ict
ionary for dependency resolution
tasks
=
Dict
(
task
[
"id"
]
=>
task
for
task
in
tasks_list
)
tasks
=
Dict
(
task
[
"id"
]
=>
task
for
task
in
tasks_list
)
# Initialize a Dict to hold Channels for each task
# Initialize a Dict to hold Channels for each task
...
@@ -171,4 +170,3 @@ function manage_workflow(tasks_list::Vector{Dict}, results_container::Dict, syst
...
@@ -171,4 +170,3 @@ function manage_workflow(tasks_list::Vector{Dict}, results_container::Dict, syst
foreach
(
wait
,
task_handles
)
foreach
(
wait
,
task_handles
)
println
(
"All tasks completed."
)
println
(
"All tasks completed."
)
end
end
This diff is collapsed.
Click to expand it.
src/TOMLParser.jl
+
1
−
1
View file @
d600731c
...
@@ -60,7 +60,7 @@ function parseWorkflow(filePath::String)
...
@@ -60,7 +60,7 @@ function parseWorkflow(filePath::String)
task_details
[
"id"
]
=
task_name
task_details
[
"id"
]
=
task_name
push!
(
tasks
,
task_details
)
push!
(
tasks
,
task_details
)
else
else
println
(
"Skipping non-dictionary task entry: '
$
task_name'. Value: "
,
task_details
)
#
println("Skipping non-dictionary task entry: '$task_name'. Value: ", task_details)
end
end
end
end
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment