basic layout template
This commit is contained in:
14
app/jobs/order_queue_processor_job.rb
Normal file
14
app/jobs/order_queue_processor_job.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class OrderQueueProcessorJob < ApplicationJob
|
||||
queue_as :default
|
||||
|
||||
def perform(:order_id)
|
||||
# Do something later
|
||||
#Order ID
|
||||
order = Order.find(order_id)
|
||||
|
||||
#Execute orders and send to order stations
|
||||
if order
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user