Home / Companies / Railway / Blog / Post Details
Content Deep Dive

Cron Jobs with Django and GitHub Actions

Blog post from Railway

Post Details
Company
Date Published
Author
Faraz Patankar
Word Count
478
Language
English
Hacker News Points
-
Summary

We've added support for Cron Jobs natively in Railway, which may be a better fit than the method described here. To create a Django cron using GitHub Actions, we'll install the Railway CLI and use it to run our Django task on a schedule. The process involves installing the Railway CLI, running the `railway run` command with the `python manage.py my_command` argument, and setting up a GitHub Action to run at a specified interval. This allows us to execute any Django task at a specific time on our Railway projects and services in just a few simple steps.