You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When implementing perform as a class method as described on Resque's Wiki page for ActiveJob, a NotImplementedError occurs, because ActiveJob cannot find JobClass#perform.
After removing self in front of perform, the error is gone.
class Archive < ActiveJob::Base
queue_as :default
def perform(repo_id, branch = 'master')
repo = Repository.find(repo_id)
repo.create_archive(branch)
end
end
The text was updated successfully, but these errors were encountered:
@akshaysharma096 first, the Wiki was indeed updated here. Second, I don't think any open source contributors appreciate demands being made. If you have an issue, we are happy to help when able, but we are not your paid employees, we are volunteers trying to help the open source community. Try to be more polite next time you raise an issue.
When implementing
perform
as a class method as described on Resque's Wiki page for ActiveJob, aNotImplementedError
occurs, because ActiveJob cannot findJobClass#perform
.After removing
self
in front ofperform
, the error is gone.The text was updated successfully, but these errors were encountered: