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

Fix problem with running the DSL in multiple threads #751

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 17, 2016

  1. Fix problem with running the DSL in multiple threads

    We use GPars eachParallel() to split up generation of jobs
    into multiple threads. This significantly reduced our
    run time from 25min to 5min.
    
    Unfortunately, it leads to a race condition, which causes
    random jobs to be lost (and deleted) on each run.
    
    Ultimately, it all boils down to this non thread-safe statement
    in JobParent.processItem():
      referencedJobs << job
    
    Making the 5 collections asSynchronized() fixed the problem for us.
    marc-guenther committed Feb 17, 2016
    Configuration menu
    Copy the full SHA
    72cf89f View commit details
    Browse the repository at this point in the history