Skip to content

This repository uses 'cron' behind the scenes to schedule tasks.

Notifications You must be signed in to change notification settings

carlosviniciusananias/scheduler

Repository files navigation

Scheduler

A reference app implementing a node-cron in a service VTEX IO.

cron.schedule('* * * * *', () => {
  // Here you can add functions that execute requests for certain routes.
})

Testing

@vtex/test-tools and @types/jest should be installed on ./node package as devDependencies.

Run vtex test and Jest will do its thing.

Check the node/__tests__/simple.test.ts test case and also Jest's Documentation.

Splunk Dashboard

We have an (for now, VTEX-only, internal) Splunk dashboard to show all metrics related to your app. You can find it here.

After linking this app and making some requests, you can select vtex.service-example and see the metrics for your app. Don't forget to check the box Development, as you are linking your app in a development workspace.

For convenience, the link for the current version: https://splunk7.vtex.com/en-US/app/vtex_colossus/node_app_metrics?form.time.earliest=-30m%40m&form.time.latest=%40m&form.picked_context=false&form.picked_region=aws-us-east-*&form.picked_service=vtex.service-example

About

This repository uses 'cron' behind the scenes to schedule tasks.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published