Schedule Python code using Cron

I want to deploy my python code as an api, but also would like to schedule some cron jobs to run python scripts. What am I doing wrong? this is my railway json file: { "$schema": "https://railway.app/railway.schema.json", "build": { "builder": "NIXPACKS" }, "deploy": { "startCommand": "python application.py", "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 }, "cron": { "job": "0 0 * ? * ", "command": "python zera_consultas.py" }, "cron": { "job": "0 0 ? * *", "command": "python desbloqueia_usuarios.py" } }
3 Replies
Percy
Percy2y ago
Please provide your project ID or reply with N/A. Thread will automatically be closed if no reply is received within 10 minutes. You can copy your project's id by pressing Ctrl/Cmd + K -> Copy Project ID.
Brody
Brody2y ago
^
Percy
Percy2y ago
No project ID was provided. Closing thread.
Want results from more Discord servers?
Add your server