Skip to content

Move Que::Migrations.transaction method to Que.transaction #81

@joevandyk

Description

@joevandyk

I was noticing on the recurring jobs example, this is the last line:

self.class.enqueue(args, run_at: @run_again_at)

It seems like we'd want to do something like this instead, right?

Que.transaction do # Instead of Que::Migrations.transaction
  self.class.enqueue(args, run_at: @run_again_at)
  destroy
end

Should the transaction method be inside the Que::Migrations module?

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