Skip to content

Commit 4dc5d4f

Browse files
doc: ch9.3 APScheduler explanation
1 parent 4027956 commit 4dc5d4f

File tree

1 file changed

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

1 file changed

+15
-3
lines changed

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

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,21 @@ It's also notable that I've inspired and borrowed so much from
8989
[Daksh Gupta's tutorial on Celery](https://www.youtube.com/watch?v=v-Snbz3WmJU).
9090

9191
## Lightweight Scheduling with APScheduler
92-
93-
94-
92+
APScheduler is a relatively simple scheduler library for Python.
93+
It provides Cron-style scheduling and some interval based scheduling.
94+
95+
As the [APScheduler official document](https://apscheduler.readthedocs.io/en/3.x/) states,
96+
APScheduler has four compnents:
97+
- 1. Trigger: Used to determine when to run the task and has three types:
98+
- a. Date
99+
- b. Interval
100+
- 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.
104+
105+
[This link](https://rocketry.readthedocs.io/en/stable/rocketry_vs_alternatives.html) is a very useful
106+
comparison between different scheduling tools provided in Rocketry document that worth paying attention.
95107

96108

97109
## Choosing Between Celery, APScheduler, and Alternatives

0 commit comments

Comments
 (0)