You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove the use of nop container to terminate sidecars. If the entrypoint script was used to override sidecar containers in general, sidecars could use the same filesystem signalling system used to sequence step containers. The entrypoint script would have to be modified to to also accept a stop signal in addition to a start/wait signal.
Use case
Removing the nop container has multiple benefits
Sidecar container logs persist - this means that sidecars can be more useful in e.g. the Dashboard since they can be used to monitor task processes.
Better supports parallelism. Having container-level parallelism avoids scheduling issues still present in pod-level parallelism sharing writeable PVCs.
Exit codes are consistent (4889 also resolved by this change)
The text was updated successfully, but these errors were encountered:
@sellitforcache thanks for this issue. I think that's a valid point, I am not sure I remember why we didn't go the entrypoint hack way for sidecars, but I think it would definitely have some benefits.
I am not sure what you mean on 2. sidecars are not like steps (or shouldn't really be used that way), so I am a bit curious.
@vdemeester Thanks! Would some additional design be needed, or could I raise a PR for this myself now?
2 - I want to use a sidecar to run an api monitor that prints logs reporting current status, then print results when the task steps complete. Is this still a misuse of a sidecar? My point is that often it is better to have container level parallelism since they can natively mount writable shared filesystems without inter-node issues that you get when you run parallel tasks as separate pods.
Feature request
Remove the use of
nop
container to terminate sidecars. If the entrypoint script was used to override sidecar containers in general, sidecars could use the same filesystem signalling system used to sequence step containers. The entrypoint script would have to be modified to to also accept a stop signal in addition to a start/wait signal.Use case
Removing the nop container has multiple benefits
The text was updated successfully, but these errors were encountered: