Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Rickster35
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
1.
▲
by
Rickster35
2y ago
According to the docs, | is syntactic sugar for the .pipe method. pipeline = task(get_data, branch=True).pipe( task(step1, workers=20)).pipe( task(step2, workers=20)).pipe( task(step3, workers=20, multiprocess=True))
2.
▲
by
Rickster35
2y ago
Yeah, this seems neatest if you don't like line breaks pipeline = ( task(get_data, branch=True) | task(step1, workers=20) | task(step2, workers=20) | task(step3, workers=20, multiprocess=True) ) Square brackets