-
Notifications
You must be signed in to change notification settings - Fork 5
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
feature: support v4 jobs API #151
Conversation
Signed-off-by: Valery Piashchynski <[email protected]>
Signed-off-by: Valery Piashchynski <[email protected]>
WalkthroughThe recent updates modernize several configurations, primarily upgrading versions of tools and dependencies. Key changes include updating the GitHub Actions workflows to use newer versions of Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Outside diff range and nitpick comments (1)
natsjobs/item.go (1)
144-156
: Review the implementation ofNackWithOptions
.The
NackWithOptions
method adds significant functionality for handling message failures with options for requeuing or terminating. Ensure that the logic for requeuing (nakWithDelay
) and terminating (term
) is robust and handles all edge cases, especially in a multi-threaded environment.Consider adding more robust error handling and logging within this method to ensure that all possible failure modes are accounted for and appropriately logged.
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files ignored due to path filters (4)
go.sum
is excluded by!**/*.sum
go.work.sum
is excluded by!**/*.sum
tests/go.sum
is excluded by!**/*.sum
tests/php_test_files/composer.lock
is excluded by!**/*.lock
Files selected for processing (11)
- .github/workflows/linters.yml (1 hunks)
- .github/workflows/linux.yml (1 hunks)
- .github/workflows/linux_durability.yml (2 hunks)
- .gitignore (1 hunks)
- .golangci.yml (3 hunks)
- go.mod (1 hunks)
- natsjobs/driver.go (1 hunks)
- natsjobs/item.go (3 hunks)
- natsjobs/listener.go (1 hunks)
- plugin.go (1 hunks)
- tests/go.mod (2 hunks)
Files skipped from review due to trivial changes (9)
- .github/workflows/linters.yml
- .github/workflows/linux.yml
- .github/workflows/linux_durability.yml
- .gitignore
- .golangci.yml
- go.mod
- natsjobs/driver.go
- plugin.go
- tests/go.mod
Additional comments not posted (1)
natsjobs/listener.go (1)
92-93
: Ensure proper integration ofterm
andnakWithDelay
handling functions.The addition of
term
andnakWithDelay
to theOptions
struct within thelistenerStart
method enhances the message handling capabilities. Ensure that these functions are correctly integrated and tested, especially since they involve error handling and state management.
Reason for This PR
ref: roadrunner-server/roadrunner#1941
Description of Changes
NackWithOptions
method.License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).CHANGELOG.md
.Summary by CodeRabbit
Chores
golangci-lint
versionv1.59
.8.3
and OS toubuntu-latest
in CI configurations.composer.lock
files in all directories.go.mod
files.Refactor