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

[FEATURE] Provide asynchronous process execution API #19

Closed
dbwiddis opened this issue Sep 6, 2023 · 0 comments · Fixed by #26
Closed

[FEATURE] Provide asynchronous process execution API #19

dbwiddis opened this issue Sep 6, 2023 · 0 comments · Fixed by #26
Assignees
Labels
enhancement New feature or request

Comments

@dbwiddis
Copy link
Member

dbwiddis commented Sep 6, 2023

Is your feature request related to a problem?

In #17, a process sequence with predecessor requirements will be generated. Use this sequence to actually execute process steps when predecessors are complete.

What solution would you like?

An execution of the process will complete the following steps:

  1. Iterate through the entire sequence, calling a method that returns a completable future immediately.
  2. The method will take a collection of predecessor step completable futures (generated in step 1) as an argument, and delay further execution until an an allOf() completable future is complete.
  3. When the step is actually complete, complete the future, which will be used by a future step.

Do you have any additional context?

This is the same type of execution currently used in plugins to execute a sequence of events. It just needs to be adapted to rely on multiple predecessor steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant