Parallelization Questions #700
Replies: 2 comments 17 replies
-
There's no ideal answer at the moment. Calling We're a bit overdue on implementing builtin support for looping files, etc. There are some old issues about it like #82 and #140, so it may eventually happen. We're planning v4 on #694, but I can't promise this will be implemented. |
Beta Was this translation helpful? Give feedback.
-
I can try to answer some of your questions, as well as give you some insight into how I would like to address some of these things in v4.
It seems you want to run some sub-task or a step an indeterminate number of times, of which you would know only at runtime?
tasks:
a:
do:
- echo "a"
b:
do:
- echo "b"
c:
do:
- echo "c"
ham:
needs:
tpl: '{{ list "a" "b" "c" | mustToJson }}' If indeed you don't know exactly what dependencies you need to run until runtime, this may be able to solve that.
In both v3 and v4, you can define a
@andreynering may know the answer off hand, I'm still getting intimate with the code base. But according to the documentation
This would be solved with the v4 |
Beta Was this translation helpful? Give feedback.
-
Hey, I have a few questions:
task taskname
starts another process and all of therun: once
are reset. Also, how can we run all the tasks in parallel? Is it recommended to runtask taskname &
?cmds
block, how can we run, say, 3 different tasks in parallel?- task: taskname
lines in theircmds
block, will all 3 deps still run in parallel (including their secondary task calls)?apt-get
where only one instance can run at a time.Beta Was this translation helpful? Give feedback.
All reactions