---
title: "Cron Jobs on Railway"
description: "Before native cron support existed, Railway cron jobs could be run as an ordinary long-lived service that schedules work with a language-level library."
url: "https://swe.quest/articles/cron-jobs-on-railway-97c5484f2a611343"
canonical: "https://blog.railway.com/p/cron-jobs"
source: "Railway"
published: "2022-08-18"
difficulty: "medium"
kind: "How-to"
reading_minutes: 3
tags: ["deployment","typescript","scheduling","cloud"]
---

# Cron Jobs on Railway

A post on [Railway](https://swe.quest/sources/railway.md), published 2022-08-18, 3 min read, How-to. Original: [https://blog.railway.com/p/cron-jobs](https://blog.railway.com/p/cron-jobs)

## Summary

Before native cron support existed, Railway cron jobs could be run as an ordinary long-lived service that schedules work with a language-level library. The example scaffolds a TypeScript package with DTS, uses node-cron to log a message every minute, points the start script at the built dist output, and deploys with \`railway up\` without extra configuration. An update notes that Railway now offers native Cron Jobs, which may be the better option.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Deployment](https://swe.quest/tags/deployment.md) (Reliability & operations)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Scheduling](https://swe.quest/tags/scheduling.md) (Distributed systems)
- [Cloud platforms](https://swe.quest/tags/cloud.md) (Infrastructure)

## Prerequisites

- Node.js and npm/yarn ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- cron syntax

## Keywords

Railway, node-cron, DTS, Railway CLI

## Related posts

- [Cron Jobs with Django and GitHub Actions](https://swe.quest/articles/cron-jobs-with-django-and-github-actions-51c1dc05687de3cc.md): Railway · 2023-03-22 · Medium · 2 min read · CI/CD, Python, Scheduling
  Scheduled Django management commands can run against a Railway project by using a GitHub Actions workflow on a cron schedule.
- [One-Second Deploys? We Didn’t Believe It Either](https://swe.quest/articles/one-second-deploys-we-didn-t-believe-it-either-540280e06702d626.md): Railway · 2025-03-05 · Easy · 3 min read · Serverless, Deployment, TypeScript, Developer productivity
  Railway Functions, now generally available, deploy single-file TypeScript code onto Railway's container compute in about a second, without a package.json, Git repo, IaC or container build.
- [Deploy Full-Stack TypeScript Apps: Architectures, Execution Models, and Deployment Choices](https://swe.quest/articles/deploy-full-stack-typescript-apps-architectures-execution-models-and-deployment-888e3aeeebdaa840.md): Railway · 2025-12-01 · Easy · 14 min read · Serverless, TypeScript, Deployment, System design, Cloud platforms
  Full-stack TypeScript apps can be structured either as a single framework codebase (Next.js, SvelteKit, TanStack Start) or as independently deployed services in a monorepo, and the choice interacts with whether you deploy to serverless platforms or long-running servers.
- [Run Scheduled and Recurring Tasks with Cron](https://swe.quest/articles/run-scheduled-and-recurring-tasks-with-cron-ca49b6813f0599a8.md): Railway · 2025-11-26 · Medium · 10 min read · Scheduling, Deployment, PostgreSQL
  Cron runs commands on time-based schedules but keeps no job history, has no retries and does no concurrency control, so reliability depends on the job itself.
- [Implement a GitHub Actions Testing Suite](https://swe.quest/articles/implement-a-github-actions-testing-suite-2bebf2196b8d7e8d.md): Railway · 2024-12-13 · Medium · 6 min read · CI/CD, Testing, TypeScript, Deployment
  Walkthrough of building a CI test suite with GitHub Actions for a TypeScript Fastify API deployed on Railway.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
