Skip to content

Conversation

@rushtehrani
Copy link
Contributor

@rushtehrani rushtehrani commented Nov 11, 2020

What this PR does:
Using Argo stop command instead of terminate allows the Workflow to still execute exitHandler tasks.

Which issue(s) this PR fixes:

Fixes onepanelio/core#

Special notes for your reviewer:

Checklist

Please check if applies

  • I have added/updated relevant unit tests
  • I have added/updated relevant documentation

Required

  • I accept to release these changes under the Apache 2.0 License

- Specifically, if a sidecar is labeled with "sys-tensorboard-like",
code attempts to create services and virtual services (routes).
- Code will create argo templates that are resource type, where the
manifests are the generated resources.
The templates are then added right before the template with the
sidecar that requires these services and routes.
and dependencies to the entry point template.
- Issue: Argo throws this error

Message:             invalid spec: templates.main.tasks.train-model.dependencies[1] dependency 'k8s-service-resource' not defined
- Otherwise, the step hangs and never finishes, so long as istio
container runs.
If Tensorboard has 6006 set, we also set it to 6006.
- workflow.name is assigned at run-time, and may not be DNS compliant
for a service name. So that variable is not used.
- Check if tty is set to true on the sidecar.
- Updated formatting.
workflow is finished.
- Adding clean-up code to run alongside any onExit tasks.
- For multiple sidecars, this needs to be unique as well.
The new structure is:
 sys-send-status -> service -> virtual service -> main task
If there are multiple sidecars for the same template, they
are displayed next to each other, vertically and in parallel.
- The clean up tasks for service(s) and virtualservice(s) will
now display vertically.
If multiple sidecars were present, parallel vertical rows will display.
- These are the URLs for the side-cars.
aleksandrmelnikov and others added 4 commits November 10, 2020 15:58
- sys-exit will run after deletion of service and virtual service
- This ensures that multiple sidecars will vertically end
at the sys-exit task.
sidecars.
- This way, sidecars have access
@rushtehrani
Copy link
Contributor Author

This also includes changes in #691, and should be merged after. Also it seems like it is marking the Workflows as failed in the UI instead of terminated.

@rushtehrani rushtehrani added this to the v0.16.0 milestone Nov 11, 2020
Copy link
Contributor

@aleksandrmelnikov aleksandrmelnikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, codacy is reporting a possible issue? I'm not seeing what the issue is though.

@aleksandrmelnikov aleksandrmelnikov merged commit bfa4def into onepanelio:master Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants