OrestF / readymade

MIT License
9 stars 4 forks source link

Add .call_async to BaseOperation #4

Closed OrestF closed 1 year ago

Misha7776 commented 1 year ago

@OrestF BaseJob class:

class BaseJob < ApplicationJob
  def perform(service_klass, *args)
    service_klass.constantize.call(*args)
  end
end

Usage: BaseJob.set(queue: :critical).perform_async('Users::Action::SendNotification', record: user) As a suggestion for this issue.

dmrAnderson commented 1 year ago

@OrestF What is the current state of this issue? 🤔

OrestF commented 1 year ago

Done