Skip to content

Commit 4a625b7

Browse files
doc: ch9 fix style
1 parent 2e079fe commit 4a625b7

File tree

1 file changed

+7
-7
lines changed
  • docs/9. Task Scheduling and Queues: Celery, APScheduler, and Beyond

1 file changed

+7
-7
lines changed

docs/9. Task Scheduling and Queues: Celery, APScheduler, and Beyond/index.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,19 @@ If you want to run the task after `t` seconds of non-blocking delay, use `apply_
6767
```
6868

6969
### **Some important points on running Celery worker**
70-
- 1. The following command determines the number of workers that can be forked/spawned:
70+
1. The following command determines the number of workers that can be forked/spawned:
7171
```shell
7272
ulimit -n
7373
```
7474
This number is actually the maximum number of
7575
[file descriptors](https://stackoverflow.com/questions/5256599/what-are-file-descriptors-explained-in-simple-terms)
7676
that can be open at any point of time.
7777

78-
- 2. By running Celery's worker using `celery -A ex_9_1 worker`,
78+
2. By running Celery's worker using `celery -A ex_9_1 worker`,
7979
there are `n` number of processes forked/spawned by default, where `n` is the number of CPU cores.
8080
You can determine this by running `pgrep celery` command (which returns their PIDs).
8181

82-
- 3. There are two important inputs for running celery worker, `concurrency` and `autoscale`:
82+
3. There are two important inputs for running celery worker, `concurrency` and `autoscale`:
8383
`concurrency` is used to determine the number of processes to be forked/spawned by celery worker
8484
(which has an upper-bound of maximum number of file descriptors under the hood).
8585
`autoscale` limits the number of forked/spawned processes between two numbers
@@ -94,13 +94,13 @@ It provides Cron-style scheduling and some interval based scheduling.
9494

9595
As the [APScheduler official document](https://apscheduler.readthedocs.io/en/3.x/) states,
9696
APScheduler has four compnents:
97-
- 1. Trigger: Used to determine when to run the task and has three types:
97+
1. Trigger: Used to determine when to run the task and has three types:
9898
- a. Date
9999
- b. Interval
100100
- b. Cron
101-
- 2. Job Store: Saves the scheduled jobs in memory or database.
102-
- 3. Executor: Handles running of the jobs, using thread or process pool.
103-
- 4. Scheduler: Binds all things together and helps with configuring the job stores and executors.
101+
2. Job Store: Saves the scheduled jobs in memory or database.
102+
3. Executor: Handles running of the jobs, using thread or process pool.
103+
4. Scheduler: Binds all things together and helps with configuring the job stores and executors.
104104

105105
Now let's see an example of a simple periodic task using APScheduler from
106106
[Keshav Manglore](https://medium.com/@keshavmanglore/advanced-python-scheduler-scheduling-tasks-with-ap-scheduler-in-python-8c7998a4f116)

0 commit comments

Comments
 (0)