-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stub adapter methods for async adapter
So that it doesn't crash when started for an app using the async adapter in development. Closes #32
- Loading branch information
Showing
3 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
module ActiveJob::QueueAdapters::AsyncExt | ||
include MissionControl::Jobs::Adapter | ||
|
||
# List of filters supported natively. Non-supported filters are done in memory. | ||
def supported_job_filters(jobs_relation) | ||
[] | ||
end | ||
|
||
def supports_queue_pausing? | ||
false | ||
end | ||
|
||
def queues | ||
[] | ||
end | ||
|
||
def queue_size(*) | ||
0 | ||
end | ||
|
||
def clear_queue(*) | ||
end | ||
|
||
def jobs_count(*) | ||
0 | ||
end | ||
|
||
def fetch_jobs(*) | ||
[] | ||
end | ||
|
||
def retry_all_jobs(*) | ||
end | ||
|
||
def retry_job(job, *) | ||
end | ||
|
||
def discard_all_jobs(*) | ||
end | ||
|
||
def discard_job(*) | ||
end | ||
|
||
def dispatch_job(*) | ||
end | ||
|
||
def find_job(*) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters