lib/good_job/adapter.rb in good_job-2.16.0 vs lib/good_job/adapter.rb in good_job-2.16.1
- old
+ new
@@ -63,10 +63,10 @@
# @return [GoodJob::Execution]
def enqueue_at(active_job, timestamp)
scheduled_at = timestamp ? Time.zone.at(timestamp) : nil
if execute_inline?
- future_scheduled = (scheduled_at.nil? || scheduled_at > Time.current)
+ future_scheduled = scheduled_at && scheduled_at > Time.current
will_execute_inline = !future_scheduled || (future_scheduled && !@configuration.inline_execution_respects_schedule?)
end
execution = GoodJob::Execution.enqueue(
active_job,