Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document whether tasks run in serial or parallel #1769

Open
simonvane opened this issue Feb 1, 2021 · 2 comments
Open

Document whether tasks run in serial or parallel #1769

simonvane opened this issue Feb 1, 2021 · 2 comments

Comments

@simonvane
Copy link

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.

@dbarentine
Copy link

dbarentine commented Feb 9, 2021

@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.

@simonvane
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants