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 the deprecation warning about config.active_job.return_false_on_aborted_enqueue #35873

Merged
merged 1 commit into from Apr 5, 2019

Conversation

prathamesh-sonpatki
Copy link
Member

  • It will return false in Rails 6.1 not 6.0. Also fixed the default
    value which is true for new applications.
    cc @rafaelfranca

…aborted_enqueue`

- It will return false in Rails 6.1 not 6.0. Also fixed the default
  value which is true for new applications.
@eileencodes eileencodes merged commit 8c6fedf into rails:master Apr 5, 2019
@bogdanvlviv
Copy link
Contributor

It will return false in Rails 6.1 not 6.0.

👍

Also fixed the default value which is true for new applications.

I know it could be confusing, but I think the docs were correct. We should talk about the default value of the configuration when no railtie code is applied, see #34855 (comment). So defaut value is false

self.return_false_on_aborted_enqueue = false

We've also mentioned in the guide that load_defaults('6.0') sets config.active_job.return_false_on_aborted_enqueue to true see https://github.com/rails/rails/blob/master/guides/source/configuring.md#with-60

@prathamesh-sonpatki
Copy link
Member Author

@bogdanvlviv Thanks, that is good point. I will fix it.

@prathamesh-sonpatki prathamesh-sonpatki deleted the enqueuing-fixes branch April 5, 2019 16:41
prathamesh-sonpatki added a commit to prathamesh-sonpatki/rails that referenced this pull request Apr 5, 2019
See rails#35873 (comment)
for reference

[Prathamesh Sonpatki, bogdanvlviv]
prathamesh-sonpatki added a commit that referenced this pull request Apr 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants