·
Last changedVersion:
This version passed the hardening gate. Hardening applied 7 targeted changes and preserved all other text. Classified findings before hardening: 0. Classified findings closed: 0. Classified findings remaining: 0. Unclassified scanner findings remaining: 0. Review findings closed: 9. Review findings remaining: 2.
None
None
Expand | File | Group | Subtype | Severity | Status |
|---|
No findings available
0 findings
A cron.NewJob declaration in Encore Go ties a schedule to an existing //encore:api endpoint. The endpoint runs at the chosen cadence. Declare the job as a package-level variable — not inside a function.
| Field | Example | Description |
|---|---|---|
|
| Simple interval. Must divide 24h evenly — |
|
| Standard cron expression (5 fields, UTC). |
Set exactly one of Every or Schedule in the job config, never both.
| Cron | Meaning |
|---|---|
| Every hour, on the hour |
| Daily at 02:00 UTC |
| Weekly on Sunday at midnight UTC |
| 04:00 UTC on the 15th of each month |
encore run. Only deployed environments fire crons. To check the job logic before deploying, call the endpoint function directly while developing, and verify it in a test environment before production.private by default so it can't be triggered externally. Other services in the same app can still call it, so keep validation and safety limits inside the handler.Schedule are UTC. Convert from local time when designing the schedule.//encore:api function referenced from a package-level cron.NewJob declaration; declaration order within the package does not matter.Every for "run on a regular interval" (must divide 24h).Schedule for specific times of day or days of week.encore-go-pubsub skill instead.Get started with chainctlchainctl skill install public/encoredev/go-cron:latest
Bring Chainguard's hardening pipeline to your first-party skills — custom rulesets, automated remediation, full audit trail.
skills.cgr.dev/public/github.com/encoredev/encore/go-cron:latest
Apache-2.0
HARDENING.md
LICENSE
SKILL.md