From 257fe8a83b0e61add84cf37c842281b3af4e51b3 Mon Sep 17 00:00:00 2001 From: paulo-felipe Date: Mon, 18 Dec 2023 19:50:38 -0300 Subject: [PATCH] feat development.rb, production.rb: task #19 add crons for daily canceled --- config/environments/development.rb | 8 ++++++++ config/environments/production.rb | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/config/environments/development.rb b/config/environments/development.rb index 63ec3caf..9f3d8bd8 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -131,6 +131,14 @@ description: "Create Order Items statuses are canceled" # optional description that appears in Dashboard }, + daily_canceled_order_task: { + cron: "*/10 * * * *", + class: "DailyCanceledOrderJob", + args: [1, Date.today], + set: { priority: 1 }, + description: "Create Order Items statuses are canceled at current day" + }, + checked_order_items_task: { cron: "@weekly", class: "CheckedBlingOrderItemsJob", diff --git a/config/environments/production.rb b/config/environments/production.rb index 8ab70188..7b650528 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -157,6 +157,14 @@ description: "Create Order Items statuses are canceled" # optional description that appears in Dashboard }, + daily_canceled_order_task: { + cron: "*/10 * * * *", + class: "DailyCanceledOrderJob", + args: [1, Date.today], + set: { priority: 1 }, + description: "Create Order Items statuses are canceled at current day" + }, + checked_order_items_task: { cron: "@weekly", class: "CheckedBlingOrderItemsJob",