-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Support more path syntax for successCondition
and failureCondition
on resource
templates
#7143
Comments
|
BTW, looks like you are using older versions of pytorch-operator in Kubeflow. I'd suggest trying out the latest version of https://github.com/kubeflow/training-operator? |
Thanks for your response so quickly. Yes, we used the training-operator. It works with |
That will be up to your training logic, e.g. whether you've enabled elastic training.
argo-workflows/workflow/executor/resource.go Lines 240 to 265 in 9c76cc3
You may play with the unit test to test different conditions locally: argo-workflows/workflow/executor/resource_test.go Lines 124 to 150 in 9c76cc3
|
I checked the source code of PytorchJob and I think it is more accurate by monitor I also read the source code of argo-workflows/workflow/executor/resource.go Lines 177 to 185 in 9c76cc3
It refers to: |
Would you like to submit a PR to support the additional syntax or make it fully compatible with gjson? |
Sure, I could try it. BTW, the description of This is very misleading if user does not check the code here. argo-workflows/workflow/executor/resource.go Lines 240 to 265 in 9c76cc3
|
Feel free to update the docs along the way as well. |
according gjson , and my try...... use this fix my problem:
However ,some complex syntax will be conflict with label selector syntax.. |
successCondition
and failureCondition
on resource
templates
This seems to have been a duplicate of #2288 which has a decent bit more upvotes. The discussions don't exactly overlap though |
Summary
Support more syntax for successCondition and failureCondition like gjson. The guide doc tells us the two fields use kubernetes label selection syntax and can be applied against any field of the resource (not just labels). But how to check the value of the field in set?
Use Cases
For PytorchJob, the status section will be used to check the job status. That means the successCondition should be set like
successCondition=status.conditions.#(type="Created").status="True"
, but this syntax is not supported. Any way to deal with the case with array struct?Message from the maintainers:
Love this enhancement proposal? Give it a 👍. We prioritise the proposals with the most 👍.
The text was updated successfully, but these errors were encountered: