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

Parallel task execution support #100

Open
andrus opened this issue Jun 2, 2016 · 2 comments
Open

Parallel task execution support #100

andrus opened this issue Jun 2, 2016 · 2 comments

Comments

@andrus
Copy link
Contributor

andrus commented Jun 2, 2016

In many cases that I've seen multiple interdependent LmTasks are run sequentially, wrapped in a single job. Users can parallelize these sequences via Java 8 CompletableFuture , still it takes a bit of skill and a bit of code to connect those things together.

Perhaps we can provide an API for users to build a task dependency graph , and let LM figure out parallel/sequential execution flow based on the dependency model. Or should we go full AI and check the extractor target semantics?

@andrus
Copy link
Contributor Author

andrus commented Jun 2, 2016

One caveat is that LmTask is not a functional interface, so we'll need to figure out how to deal with passing parameters and sync tokens between the stages.

@andrus
Copy link
Contributor Author

andrus commented Jul 1, 2016

After further analysis, the low hanging fruit here is executing batches of the same task in parallel. Batches are presumably independent from each other.

@andrus andrus mentioned this issue Jul 1, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant