Skip to content

Conversation

@hwdef
Copy link
Member

@hwdef hwdef commented Jul 14, 2022

fix: #2345 #2284 #2130

This PR can greatly reduce the chance of bug triggering.
As long as the user does not deploy a vcjob with the same name again in less than --detection-period-of-dependson-task, the bug will not be triggered.

The default value of --detection-period-of-dependson-task is 100 milliseconds.

@volcano-sh-bot volcano-sh-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 14, 2022
@hwdef hwdef force-pushed the fix-task-dependsOn branch from e4f370d to a205406 Compare July 14, 2022 06:25
@hwdef
Copy link
Member Author

hwdef commented Jul 14, 2022

/assign @Thor-wl @shinytang6 @william-wang

if err != nil {
klog.Errorf("Failed to get pod %v/%v %v", job.Namespace, podName, err)
continue
// If pod is not found. There are 2 possibilities.
Copy link
Contributor

Choose a reason for hiding this comment

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

It's OK for me. Some small tip:

  • The commments can be reorganized to be simple.
  • The last else branch is redudant and can be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

@Thor-wl
Thanks for you suggestions. I made some changes.

@hwdef hwdef force-pushed the fix-task-dependsOn branch from a205406 to cd18865 Compare July 20, 2022 09:34
@volcano-sh-bot volcano-sh-bot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jul 20, 2022
@volcano-sh-bot volcano-sh-bot added the lgtm Indicates that a PR is ready to be merged. label Jul 21, 2022
@volcano-sh-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Thor-wl

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@volcano-sh-bot volcano-sh-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 21, 2022
@volcano-sh-bot volcano-sh-bot merged commit 8b8951f into volcano-sh:master Jul 21, 2022
@hwdef hwdef deleted the fix-task-dependsOn branch July 21, 2022 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Delete a job with dependencies between task will cause the controller to report an error repeatedly

5 participants