Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

Deprecate Resque, Sidekiq and DelayedJob adapters. #178

Merged
merged 1 commit into from
May 3, 2016

Conversation

morgoth
Copy link
Collaborator

@morgoth morgoth commented Apr 29, 2016

For better maintenance of gem delayed_paperclip will only support
ActiveJob adapter which is available by default since Rails 4.2.
It's possible to use any of this 3 background job adapters through AJ.

@ScotterC Please take a look if we are on the same page.
In version 3.0:

  • remove all adapters except AJ
  • bump required Ruby version to 2.0
  • bump required Rails version to 4.2

If that's the plan, can you please merge it and release 2.10.0 with this deprecation warnings?

For better maintenance of gem `delayed_paperclip` will only support
`ActiveJob` adapter which is available by default since Rails 4.2.
It's possible to use any of this 3 background job adapters through AJ.
@@ -8,6 +9,11 @@ class DelayedJob < Struct.new(:instance_klass, :instance_id, :attachment_name)
if Gem.loaded_specs['delayed_job'].version >= Gem::Version.new("2.1.0")

def self.enqueue_delayed_paperclip(instance_klass, instance_id, attachment_name)
ActiveSupport::Deprecation.warn(<<-MESSAGE)
Copy link
Collaborator

Choose a reason for hiding this comment

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

@morgoth did you have a chance to double check whether this shows up in the main server log and not just background job logs?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, it shows on server logs, as it's done when enqueuing, not performing.

Copy link
Collaborator

Choose a reason for hiding this comment

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

👍

@ScotterC ScotterC mentioned this pull request Apr 29, 2016
6 tasks
@ScotterC
Copy link
Collaborator

@morgoth looks good and I like the plan. Made a Version 3.0 issue to help discussion #179

@morgoth
Copy link
Collaborator Author

morgoth commented May 3, 2016

If there are no blockers, please merge and release 2.10

@ScotterC ScotterC merged commit 458e101 into master May 3, 2016
@ScotterC ScotterC deleted the deprecate-adapters branch May 3, 2016 17:12
@ScotterC
Copy link
Collaborator

ScotterC commented May 3, 2016

@morgoth 2.10 pushed into the wild

morygonzalez pushed a commit to morygonzalez/delayed_paperclip that referenced this pull request Sep 28, 2016
Deprecate Resque, Sidekiq and DelayedJob adapters.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants