Skip to content

Commit

Permalink
feat: add resolution errors to the execution engine
Browse files Browse the repository at this point in the history
Ensures that the system will treat the failed tasks accordingly.
  • Loading branch information
jhonasiv committed Dec 6, 2024
1 parent 093be56 commit 201ea4c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/syskit/network_generation/async.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,12 @@ def apply
rescue ::Exception => e
engine.handle_resolution_exception(e, on_error: Engine.on_error)
raise e
ensure
resolution_errors =
engine.replace_resolution_errors_tasks(resolution_errors)
resolution_errors.each do |error|
plan.execution_engine.add_error(error)
end
end
else
engine.handle_resolution_exception(
Expand Down

0 comments on commit 201ea4c

Please sign in to comment.