Skip to content

Commit

Permalink
feat development.rb, production.rb: task #19
Browse files Browse the repository at this point in the history
add crons for daily canceled
  • Loading branch information
Pauloparakleto committed Dec 18, 2023
1 parent f45435f commit 257fe8a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 8 additions & 0 deletions config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 257fe8a

Please sign in to comment.