Skip to main content

cron

cron — ɳSelf documentation.

Planned Feature: This plugin is not yet available. It is planned for a future release. Current available plugins: Plugins Overview

Cron Pro Plugin

Advanced cron scheduler, distributed locks, complex syntax, dashboard, and failure alerts. Pro plugin.

Requires: Basic license tier or higher. nself license set nself_pro_...

Install

nself license set nself_pro_xxxxx...
nself plugin install cron-pro

What It Does

Extends the free cron plugin with production-grade scheduling features: distributed locking to prevent duplicate runs across multiple ɳSelf instances, support for complex cron syntax including intervals and human-readable schedules, a visual dashboard for job monitoring, failure alerts via email and Slack, and a full job run history with timing analytics.

Note on Free Tier

The free cron plugin handles standard cron syntax with HTTP callbacks. This pro version adds distributed locks, complex syntax, dashboard, and alerting.

Implementation Details

  • Language: Rust
  • Port: 3720
  • Tables: 2

Configuration

Env VarDefaultDescription
CRON_PRO_PORT3720Cron pro service port
CRON_PRO_LOCK_TTL300Distributed lock TTL in seconds
CRON_PRO_ALERT_EMAILnoneEmail for failure alerts
CRON_PRO_ALERT_SLACKnoneSlack webhook URL for alerts
CRON_PRO_HISTORY_DAYS90Days to retain run history

Ports

PortPurpose
3720Cron pro REST API and dashboard

Database Tables

2 tables added to your Postgres database:

  • np_cron_pro_jobs: job definitions with complex schedules
  • np_cron_pro_runs: detailed execution history with timings

Nginx Routes

RouteTarget
/cron/dashboardCron job monitoring dashboard