Skip to content

Commit

Permalink
The extra arg is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
julik committed Jan 7, 2023
1 parent 55305bc commit 1765959
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/models/good_job/execution.rb
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ def self.next_scheduled_at(after: nil, limit: 100, now_limit: nil)
# Whether to establish a lock on the {Execution} record after it is created.
# @return [Execution]
# The new {Execution} instance representing the queued ActiveJob job.
def self.enqueue(active_job, scheduled_at: nil, create_with_advisory_lock: false, persist_immediately: true)
def self.enqueue(active_job, scheduled_at: nil, create_with_advisory_lock: false)
ActiveSupport::Notifications.instrument("enqueue_job.good_job", { active_job: active_job, scheduled_at: scheduled_at, create_with_advisory_lock: create_with_advisory_lock }) do |instrument_payload|
execution_args = {
active_job_id: active_job.job_id,
Expand Down
3 changes: 1 addition & 2 deletions lib/good_job/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def enqueue_at(active_job, timestamp)
execution = GoodJob::Execution.enqueue(
active_job,
scheduled_at: scheduled_at,
create_with_advisory_lock: will_execute_inline,
persist_immediately: true
create_with_advisory_lock: will_execute_inline
)

if will_execute_inline
Expand Down

0 comments on commit 1765959

Please sign in to comment.