Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify Overseer invocation #100

Open
asubb opened this issue Jan 10, 2021 · 0 comments
Open

Simplify Overseer invocation #100

asubb opened this issue Jan 10, 2021 · 0 comments
Labels
enhancement New feature or request exe
Milestone

Comments

@asubb
Copy link
Member

asubb commented Jan 10, 2021

Assuming outputs

val output1 = stream.out{ }
val output2 = stream.out{ }

Initiate the overseer

val execution =
  // single threaded serial execution
  // for a set of outputs
  listOf(output1, output2).serialExecution()
  // or for singular output
  output1.serialExecution()

  // multithreaded parallel execution
  // for a set of outputs
  listOf(output1, output2).parallelExecution(threads = 2, partitions = 2)
  // or for singular output
  output1.parallelExecution(threads = 2, partitions = 2)

  //distributed execution
  // for a set of outputs
  listOf(output1, output2).distributedExecution(facilitators = ..., partitions = 2)
  // or for singular output
  output1.distributedExecution(facilitators = ..., partitions = 2)

And then execute it

// asynchronously
val future = execution.async()
// or synchronously
execution.sync()
@asubb asubb added enhancement New feature or request exe labels Jan 10, 2021
@asubb asubb added this to the 0.4.0 milestone Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exe
Projects
None yet
Development

No branches or pull requests

1 participant