Skip to content

Monitoring Scheduled Reports

Scheduled reports include daily sales reports, weekly analytics summaries, and any automated report generation. When these fail, stakeholders don’t get critical business data on time.

Set your API key as an environment variable. For cron jobs, add it to your crontab:

Terminal window
# Edit crontab
crontab -e
# Add at top of crontab
PAKYAS_API_KEY=pk_live_xxxxx
# Then your report job
0 6 * * 1 pakyas monitor weekly-report -- ruby /scripts/weekly_report.rb

Or source from a file:

Terminal window
0 6 * * 1 . ~/.pakyas_env && pakyas monitor weekly-report -- ruby /scripts/weekly_report.rb

See Environment Variables for all options.

  • Reports run on a schedule
  • Missing a report affects business operations
  • Report generation can fail silently
Terminal window
pakyas monitor weekly-report -- ruby report.rb

Pakyas wraps your report script, monitors execution, and alerts you if the report fails to generate.

Terminal window
# crontab example - runs every Monday at 6am
0 6 * * 1 pakyas monitor weekly-report -- ruby /scripts/weekly_report.rb
  • Report script exits non-zero
  • Report takes longer than expected
  • Report never runs (missed schedule)