Skip to content

Commit 1af8285

Browse files
authored
fix: scheduler job missing error 해결 (#23)
1 parent cdd1c87 commit 1af8285

File tree

3 files changed

+15
-72
lines changed

3 files changed

+15
-72
lines changed

poetry.lock

Lines changed: 3 additions & 70 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = [
66
{name = "Gukhee Jo", email = "[email protected]"}
77
]
88
readme = "README.md"
9-
requires-python = "^3.10"
9+
requires-python = "^3.13"
1010
dependencies = [
1111
"fastapi (>=0.116.1,<0.117.0)",
1212
"sqlalchemy (>=2.0.41,<3.0.0)",
@@ -24,6 +24,8 @@ dependencies = [
2424
"apscheduler (>=3.11.0,<4.0.0)"
2525
]
2626

27+
[tool.poetry]
28+
package-mode = false
2729

2830
[build-system]
2931
requires = ["poetry-core>=2.0.0,<3.0.0"]

src/common/scheduler/scheduler.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,12 @@
44

55
scheduler = AsyncIOScheduler(timezone="Asia/Seoul")
66

7-
scheduler.add_job(update_next_lotto_draw, "cron", day_of_week="sat", hour="21", minute="0")
7+
scheduler.add_job(
8+
update_next_lotto_draw,
9+
"cron",
10+
day_of_week="sat",
11+
hour="21",
12+
minute="0",
13+
coalesce=True,
14+
misfire_grace_time=30,
15+
)

0 commit comments

Comments
 (0)