Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
unicodeveloper committed Nov 15, 2024
1 parent 4204719 commit 644e8db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/docs/guides/django.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,9 @@ Please follow these steps to get it setup on Railway:
4. Create a new service on the <a href="/overview/the-basics#project--project-canvas" target="_blank">Project Canvas</a>.
- Name the service **Cron Service**, and click on <a href="/overview/the-basics#service-settings">**Settings**</a>.
- Connect your GitHub repo to the **Source Repo** in the **Source** section.
- Add `celery -A liftoff beat -l info` to the <a href="/guides/start-command">**Custom Start Command**</a> in the **Deploy** section.
- Add `celery -A liftoff beat -l info --concurrency=3` to the <a href="/guides/start-command">**Custom Start Command**</a> in the **Deploy** section.
- _Note:_ `liftoff` is the name of the app.
- The `--concurrency=3` option here means it can process up to 3 tasks in parallel. You can adjust the [concurrency level](https://docs.celeryq.dev/en/latest/userguide/workers.html#concurrency) based on your system resources. The higher the level, the more memory and resources it consumes.
- Head back to the top of the service and click on <a href="/overview/the-basics#service-variables">**Variables**</a>.
- Add all the necessary environment variables especially those highlighted already in step 2.
- Click **Deploy**.
Expand All @@ -313,6 +314,7 @@ Please follow these steps to get it setup on Railway:
- Connect your GitHub repo to the **Source Repo** in the **Source** section.
- Add `celery -A liftoff worker -l info` to the <a href="/guides/start-command">**Custom Start Command**</a> in the **Deploy** section.
- _Note:_ `liftoff` is the name of the app.
- The `--concurrency=3` option here means it can process up to 3 tasks in parallel. You can adjust the [concurrency level](https://docs.celeryq.dev/en/latest/userguide/workers.html#concurrency) based on your system resources. The higher the level, the more memory and resources it consumes.
- Head back to the top of the service and click on <a href="/overview/the-basics#service-variables">**Variables**</a>.
- Add all the necessary environment variables especially those highlighted already in step 2.
- Click **Deploy**.
Expand Down

0 comments on commit 644e8db

Please sign in to comment.