Skip to content

Migration to v. 2.2.0 failed #381

@dima4p

Description

@dima4p

My current version of que is 3b7fccc with one fix for ruby 3.

diff --git a/bin/command_line_interface.rb b/bin/command_line_interface.rb
index bfbf7dd..a87e5c0 100644
--- a/bin/command_line_interface.rb
+++ b/bin/command_line_interface.rb
@@ -221,7 +221,7 @@ OUTPUT
 
         locker =
           begin
-            Que::Locker.new(options)
+            Que::Locker.new(**options)
           rescue => e
             output.puts(e.message)
             return 1
diff --git a/lib/que/worker.rb b/lib/que/worker.rb
index 656f0b7..91e7d02 100644
--- a/lib/que/worker.rb
+++ b/lib/que/worker.rb
@@ -125,7 +125,7 @@ module Que
           log_message[:event] = :job_worked
         end
 
-        Que.log(log_message)
+        Que.log(**log_message)
       end
 
       instance

The migration is

class Que7 < ActiveRecord::Migration[7.0]
  def up
    # The current version as of this migration's creation.
    Que.migrate! version: 7
  end

  def down
    # Completely removes Que's job queue.
    Que.migrate! version: 5
  end
end

All works until I've updated and migrated. After that no job is being executed.

What is the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions