Sitelet https://github.com/errbit/errbit/issues/2413
Skip to content

Port ActiveJob jobs to globalid #2413

Description

@biow0lf

Before:

# app/jobs/destroy_problems_by_app_job.rb

class DestroyProblemsByAppJob < ApplicationJob
  queue_as :default

  # @param app_id [String]
  def perform(app_id)
    app = App.find_by(id: app_id)

    ProblemDestroy.execute(app.problems)
  end
end

After:

# app/jobs/destroy_problems_by_app_job.rb

class DestroyProblemsByAppJob < ApplicationJob
  queue_as :default

  # @param app [Errbit::App]
  def perform(app)
    ProblemDestroy.execute(app.problems)
  end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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