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

add missing json attribute to Gush::Job #114

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

entei
Copy link
Contributor

@entei entei commented Jul 16, 2024

Just added missing :wait attribute to Gush::Job#as_json because that argument was skipped when Gush::Job#persist_job called so sidekiq job was performed with no delay even if :wait was specified

lib/gush/job.rb Outdated
workflow_id: workflow_id,
output_payload: output_payload
queue:,
incoming:,
Copy link
Contributor

@pokonski pokonski Jul 16, 2024

Choose a reason for hiding this comment

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

Omitting hash values is a Ruby 3.1 feature. We still target 3.0 for compatibility

https://github.com/chaps-io/gush/blob/master/.github/workflows/ruby.yml#L30

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Omitting hash values is a Ruby 3.1 feature. We still target 3.0 for compatibility

https://github.com/chaps-io/gush/blob/master/.github/workflows/ruby.yml#L30

thanks, fixed

@pokonski
Copy link
Contributor

Good catch, thank you! Can you just revert the issue I mentioned above with hash values?

@pokonski pokonski merged commit 6e87f60 into chaps-io:master Jul 17, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants