Skip to content

Commit

Permalink
Merge pull request #284 from dkropachev/fix_job_scheduling
Browse files Browse the repository at this point in the history
Fix test jobs scheduling
  • Loading branch information
dkropachev authored Apr 25, 2023
2 parents 08ec08b + 1be47b1 commit 9e601d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
cmd/gemini/dist/
/gemini
.idea
5 changes: 3 additions & 2 deletions cmd/gemini/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,10 @@ func run(cmd *cobra.Command, args []string) error {
case <-gCtx.Done():
default:
testJobs := jobsFromMode(mode)
for _, testJob := range testJobs {
for id := range testJobs {
tJob := testJobs[id]
g.Go(func() error {
return job(gCtx, testJob, concurrency, schema, schemaConfig, store, pump, generators, result, logger)
return job(gCtx, tJob, concurrency, schema, schemaConfig, store, pump, generators, result, logger)
})
}
if err := g.Wait(); err != nil {
Expand Down

0 comments on commit 9e601d5

Please sign in to comment.