#How to control concurrency on pipeline

1 messages · Page 1 of 1 (latest)

frail ibex
#

For example, I have a pipeline that prepare source and fetch dependencies. After that, create 2 pipelines to do things separately, in my case, one for run unit test and another one for checking source code formatting. So how do I run both unit test and check format pipelines concurrently?

I found out this question during write the Elixir SDK https://github.com/wingyplus/dagger_ex/blob/5fc1da09ba3719c210c80a1fd1601a346c1ef971/lib/mix/tasks/ci.test.ex#L31-L41 and found out that the pipeline run sequentially (Thanks to TUI experimental, it clearly see what's going on). That's make me thinking that how another SDK handle this. 😄

GitHub

https://dagger.io SDK for Elixir. Contribute to wingyplus/dagger_ex development by creating an account on GitHub.

flint birch
#

Hi @frail ibex , you can just use your language’s native concurrency features to send as many concurrent Dagger API queries as you need. The engine will handle them just fine. So for example, in Go you’d use goroutines, in Python async, etc

frail ibex
#

@flint birch Your suggestion works as I needed!!

Thank you. 🙂

sweet grove