kudo icon indicating copy to clipboard operation
kudo copied to clipboard

Document whether tasks run in serial or parallel

Open simonvane opened this issue 4 years ago • 2 comments

What would you like to be added: Document whether tasks run in serial or parallel

Why is this needed: It is unclear whether tasks run in serial or parallel and whether a strategy can be applied to tasks and it this has just been missed in the documentation. It would be helpful if it was called out explicitly one way or another here https://kudo.dev/docs/developing-operators/tasks.html#overview.

If a strategy cannot be applied to tasks it would be interesting/useful to understand the reasoning for this.

simonvane avatar Feb 01 '21 15:02 simonvane

@simonvane Does this answer your question?

Note: current implementation will apply all resources in the given order so that e.g. a Pod can mount previously created ConfigMap. However, this is not part of the specification and might change in the future (all resources can be applied concurrently). If you need happens-before-guarantee between your resources, use e.g. multiple serial steps.

dbarentine avatar Feb 09 '21 15:02 dbarentine

Thanks @dbarentine but I don't think it does.

I think this describes how the resources within a task are applied. What I was asking about is how multiple tasks within a step are run. Phases and steps have a strategy documented but I can't see anything documented about the order tasks within a step are applied and whether they are applied in parallel or serial or whether we can control this.

simonvane avatar Feb 21 '21 12:02 simonvane