Skip to content

Conversation

@santiagodiaz
Copy link
Contributor

@santiagodiaz santiagodiaz commented Oct 24, 2025

This PR:

  • Adds asyn gem
  • Adds parallel worflow with specs
  • Adds AggregateError class

@santiagodiaz santiagodiaz changed the title Add async for parallel workflow Update parallel workflow using async gem Oct 30, 2025
return yield if block_given?

inputs.join("\n")
operation.call(inputs)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need this operation? I'm a bit worried about allowing random Ruby code because it may affect out ability to accurately describe workflows as diagrams right?

what I mean is that I could have an operation be ->(inputs) { raise 'error' } and then we don't have any way to detect that during the diagram rendering

@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "async"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to keep requires in the lib/mars.rb gem's root file

Copy link
Member

@santib santib left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left some comments but I'm ok moving forward and revisit things in follow-up PRs

@santiagodiaz santiagodiaz merged commit 19491d1 into main Oct 31, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants