Skip to content

Archiving Reports

Riad Abdallah edited this page Dec 6, 2023 · 1 revision

Description

Reports in Loket under config/reports/ run based on cron patterns defined in the report file. The cron pattern has the following format:

Second Minute Hour Day Month Year

For example, this pattern:

0 15 23 * * *

will run every day at 23:15:00 UTC time.

Archiving Reports

When a report is no longer needed, it has to be archived. This can be done by:

  • moving the relevant report(s) from their current location inside config/reports/ into config/reports/archive.
  • deleting the report imports from config/reports/index.js.