v0.14.0
Released: November 24, 2026
This release adds cron jobs: code from one of your NestJS services that runs on a schedule as its own task, on GCP, AWS and Azure. Any scheduled job can now be started on demand, in the cloud or on the local stack.
Cron jobs
A cron job runs code from one of your NestJS services on a schedule, as its own task. The task starts, runs one handler, and exits.
register-croncreates the handler file. With the service's first cron job, it also creates the entrypoint and thecronscript. It prints theinfrastructure.jsonentry to add.- You write the handler's
run()method. It gets the service's secrets, database and Redis. - Each cloud runs it as a task: Cloud Run Jobs on GCP, ECS tasks on AWS, Container App Jobs on Azure. Each run has its own CPU and memory.
- One run at a time, a timeout that stops the run cleanly, one trace per run, and a final log line with the outcome.
- No retries: a failed run waits for the next scheduled time.
Scheduled jobs that call an endpoint stay as they are. The docs call them triggers. See Scheduled Jobs.
Run a scheduled job now
infra:run-cron --job <name> --env <env>starts a cron job or a trigger now, in the cloud, and reports the run. When a cron job's run fails, it prints the run's last log lines, asinfra:logsshows them.run-cron <name>runs it once on the local stack.infra:list-schedulersshows both kinds, each schedule's state, and each job's last run.
MCP
- Secrets: an agent gives you the command to run in your own terminal:
cloud-secrets:pushfor a new environment,cloud-secrets:set <KEY>for one key. - New tools:
register_cron,run_cronandinfra_run_cron.infra_run_cronreports a run's outcome without its log lines; logs stay withget_logs, which agents must ask you before calling. - The guide's "Add a scheduled job" covers both kinds.
cloud_inittakes an environment, like the command below.
Improvements
cloud:init --env <env>tests only the selected environment.infra:remove-schedulerreminds you to take the job's entry out ofinfrastructure.jsononly while the entry is still there.- Name conversions (kebab-case, snake_case, CONSTANT_CASE) go through deep-case-crafter, a small MIT package with no dependencies of its own. Every name comes out as before. Installing
@tsdevstack/clior@tsdevstack/nest-commonnow also installs it. - CLI package: the AWS RDS and load balancer clients install as dependencies instead of being bundled into the CLI.
- Docs: GCP setup says to keep every field of the downloaded key in the credentials file, including ones like
universe_domain.
Fixes
- AWS: a worker of a service with a database gets the service's
DATABASE_URL. In v0.13.0 workers started without it. - GCP:
infra:deploy-schedulerfor a single trigger gives the scheduler access to the trigger's service. - Azure, Kong: when Azure applied a Key Vault permission late, Kong's deploy could stop after 10 minutes. App Service keeps the denied answer, and restarting Kong doesn't make it read the secret again. The deploy now asks App Service to read Kong's secrets again, and restarts Kong as before only when Azure refuses that.
- Azure, database jobs: Azure can count a job's run as failed before its container starts, then run it anyway. A deploy stopped on that. The database setup (
db-init) and the migration jobs may now start once more after a failed run.
Upgrading an existing project
1. Packages.
Run the second command for each NestJS service.
2. Each cloud environment. Nothing to change. Your scheduled jobs keep running as triggers. To add a cron job, see Scheduled Jobs.