appcrane_run_cron_now
Trigger a cron job immediately to test or rerun a failed job, returning exit code and log.
Instructions
Trigger a scheduled cron job RIGHT NOW, regardless of its schedule. Useful for "I want to test my daily rebuild without waiting until midnight" or "rerun yesterday's failed job." Runs the same docker exec the tick loop would, against the app's container; updates last_run_at / last_exit_code / last_log just like a scheduled run. Returns the exit code and last-log tail. App-admin or owner. Idempotent: if the job is already running (mutex held), reports it and skips rather than overlapping.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Job name from deployhub.json `cron[].name`. | |
| slug | Yes | ||
| stage | No | Target stage (legacy alias: env). | sandbox |