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

Fix documentation for 2nd Batch callback parameter: consistently call it context #1476

Merged
merged 4 commits into from
Sep 12, 2024

Conversation

martijnversluis
Copy link
Contributor

options and params are both being used to refer to the second argument passed to the #perform method of a callback job. I picked params, but I'm fine with both as long as the naming is consistent.

@bensheldon
Copy link
Owner

Thank you for pointing out this inconsistency; the docs are all over the place.

I think this variable should probably be called "context" because it's about the context in which the callback job was enqueued. Currently it only has 1 key (event).

@bensheldon bensheldon changed the title Fix batch options => params in README.md Fix documentation for 2nd Batch callback parameter: consistently call it context Aug 29, 2024
@martijnversluis
Copy link
Contributor Author

Nice! Didn’t get around to it, thanks for fixing!

@bensheldon bensheldon merged commit f294e30 into bensheldon:main Sep 12, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

2 participants