From 2d3499dfd9a1b4e4ab7240809724fcbe46904da4 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 30 Aug 2019 20:20:40 +0100 Subject: [PATCH] Use process executor --- actioner/scheduler/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actioner/scheduler/__init__.py b/actioner/scheduler/__init__.py index 7703b95..cf34026 100644 --- a/actioner/scheduler/__init__.py +++ b/actioner/scheduler/__init__.py @@ -1,6 +1,6 @@ import asyncio -from apscheduler.schedulers.asyncio import AsyncIOScheduler +from apscheduler.executors.pool import ProcessPoolExecutor from apscheduler.schedulers.blocking import BlockingScheduler from apscheduler.triggers.interval import IntervalTrigger @@ -9,7 +9,7 @@ from .todoist_repo_prs import todoist_repo_prs def create_scheduler(): - scheduler = BlockingScheduler() + scheduler = BlockingScheduler(executors={"default": ProcessPoolExecutor()}) scheduler.add_job(todoist_assigned_issues, "interval", minutes=15) scheduler.add_job(todoist_repo_prs, "interval", minutes=15)