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

Have the wait-task leverage NewRequeueAfter #780

Merged
merged 1 commit into from
Aug 6, 2021

Conversation

mattmoor
Copy link
Member

@mattmoor mattmoor commented Aug 6, 2021

This is a relatively new wrapped error in knative.dev/pkg, which automagically does the EnqueueAfter.

Had to rework some tests that were mocking EnqueueAfter, but the semantics should remain intact.

I also dropped the event this emits on successful reconciliation, since that can be a source of problems at scale. Selfishly, this also reduced the amount of tweaking I had to do in the tests, so I figure win-win.

/kind cleanup
/assign @imjasonh

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes docs (if user facing)
  • Commit messages follow commit message best practices
  • Commit messages includes a project tag in the subject - e.g. [OCI], [hub], [results], [task-loops]

See the contribution guide
for more details.

This is a relatively new wrapped error in `knative.dev/pkg`, which automagically does the `EnqueueAfter`.

Had to rework some tests that were mocking `EnqueueAfter`, but the semantics should remain intact.

I also dropped the event this emits on successful reconciliation, since that can be a source of problems at scale.  Selfishly, this also reduced the amount of tweaking I had to do in the tests, so I figure win-win.
@tekton-robot tekton-robot added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Aug 6, 2021
@tekton-robot tekton-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 6, 2021
@mattmoor
Copy link
Member Author

mattmoor commented Aug 6, 2021

Also notable, here's the same change to pipelines: tektoncd/pipeline#4131

@dlorenc
Copy link
Contributor

dlorenc commented Aug 6, 2021

/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Aug 6, 2021
@imjasonh
Copy link
Member

imjasonh commented Aug 6, 2021

/lgtm
/approve

@tekton-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: imjasonh

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

The pull request process is described here

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 6, 2021
@tekton-robot tekton-robot merged commit 2f3076b into tektoncd:main Aug 6, 2021
@mattmoor mattmoor deleted the wait-task-requeue branch August 6, 2021 18:10
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants