Skip to content

Commit

Permalink
chore: edit functions cron
Browse files Browse the repository at this point in the history
  • Loading branch information
leomp12 committed Jan 22, 2025
1 parent e461a0c commit 5ac7730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions functions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ exports.updateTokens = functions.pubsub.schedule(cron).onRun(() => {
})
console.log(`-- Sheduled update E-Com Plus tokens '${cron}'`)

const cronSendOrders = '18,47 * * * *'
const cronSendOrders = '32,51 * * * *'
const sendWaitingOrders = require('./lib/integration/send-waiting-orders')
exports.sendWaitingOrders = functions.runWith({ timeoutSeconds: 300 })
.pubsub.schedule(cronSendOrders).onRun(sendWaitingOrders)
console.log(`-- Sheduled send tags to Mandae API ${cronSendOrders}`)

const cronCheckTracking = '10,39 * * * *'
const cronCheckTracking = '10,47 * * * *'
const checkOrdersTracking = require('./lib/integration/check-orders-tracking')
exports.checkOrdersTracking = functions.runWith({ timeoutSeconds: 300 })
.pubsub.schedule(cronCheckTracking).onRun(checkOrdersTracking)
Expand Down

0 comments on commit 5ac7730

Please sign in to comment.