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

Support ParallelForEach api for scheduling workflow items #5

Open
gurmitteotia opened this issue Jan 11, 2018 · 0 comments
Open

Support ParallelForEach api for scheduling workflow items #5

gurmitteotia opened this issue Jan 11, 2018 · 0 comments
Projects

Comments

@gurmitteotia
Copy link
Owner

gurmitteotia commented Jan 11, 2018

Examples:

public class TranscodeWorkflow : Workflow
{
  public TranscodeWorkflow()
  {
     ScheduleActivity<DownloadActivity>();
     ParallelForEach(_=>new {"MPEG", "WAV"}).ScheduleActivity<TranscodeActivity>()
              .WithInput(i=>new {Path =p.ParentResult().Path, Format= i.Key})
              .AfterActivity<DownloadActivity>()
  }
}
public class ProcessImagesWorkflow : Workflow
{
  public TranscodeWorkflow()
  {
     ScheduleActivity<FilterTheImages>();
     ParallelForEach(a=>a.ParentResult().Images, limit=10).ScheduleActivity<SmoothImages>()
              .WithInput(i=>new {Path =i.Key})
              .AfterActivity<DownloadActivity>()
  }
}
@gurmitteotia gurmitteotia added this to To Do in Guflow via automation Jan 17, 2018
@gurmitteotia gurmitteotia changed the title Support ParallelForEach api for workflow scheduling items Support ParallelForEach api for scheduling workflow items Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Guflow
  
To Do
Development

No branches or pull requests

1 participant