๐จ๐ผโ๐ป๊ฐ๋ฐ/ํ์ด์ฌ
ํ์ด์ฌ - APScheduler ์ค์ผ์ค ๋ชจ๋ if obj.zone == 'local': ์๋ฌ ํด๊ฒฐ ๋ฐฉ๋ฒ
Janger
2022. 9. 12. 19:45
728x90
sched = BlockingScheduler(timezone='Asia/Seoul')
sched.add_job(job,'interval', seconds=3, id='test',args=['hello?'])
sched.start()
BlockingScheduler(timezone='Asia/Seoul')
timezone์ ํ๊ตญ์ผ๋ก ์ค์ ํด์ค๋ค.
์ถ์ฒ:
https://ffoorreeuunn.tistory.com/466
[ Python ] ํ์ด์ฌ ์ค์ผ์ค๋ฌ ์์ฑํ๊ธฐ(APScheduler) - BlockingScheduler | ํ์ด์ฌ ๋ฐ๋ณต ์์ ์ํ
์๋ฒ ์์์ ํญ์ ๋์๊ฐ๋ ํ๋ก๊ทธ๋จ์ ๋ง๋๋ ์ค์ด๋ค. ํด๋น ํ๋ก๊ทธ๋จ์ด ํ์ ํ๋ก์ธ์ค๋ฅผ ๋ง๋ค์ด์ ๊ณ์ํด์ ์ด๋ค ๋์์ ์ํ ํ ๋ฐ์ดํฐ๋ฅผ ์ถ๋ ฅํ๊ณ ์๋ค. ์ด๋, while ๋ฌธ์ ํตํด ํด๋น ํ๋ก์ธ์ค
ffoorreeuunn.tistory.com
728x90