Commit 7b27ff91 authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis

Use memory job store for APScheduler

Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent 1e73111b
Pipeline #83642048 passed with stages
in 5 minutes and 2 seconds
from __future__ import absolute_import, division, print_function
from apscheduler.executors.pool import ThreadPoolExecutor
from apscheduler.jobstores.sqlalchemy import SQLAlchemyJobStore
from apscheduler.jobstores.memory import MemoryJobStore
from apscheduler.schedulers.background import BackgroundScheduler
from pytz import utc
from satnogsclient import settings
JOBSTORES = {'default': SQLAlchemyJobStore(url=settings.SATNOGS_SQLITE_URL)}
JOBSTORES = {'default': MemoryJobStore()}
EXECUTORS = {
'default': ThreadPoolExecutor(20),
......
......@@ -5,7 +5,7 @@ from __future__ import absolute_import, division, print_function
import os
from distutils.util import strtobool # pylint: disable=E0401,E0611
from os import environ, path
from os import environ
from dotenv import load_dotenv
......@@ -46,8 +46,6 @@ for p in [
SATNOGS_REMOVE_RAW_FILES = bool(strtobool(environ.get('SATNOGS_REMOVE_RAW_FILES', 'True')))
SATNOGS_VERIFY_SSL = bool(strtobool(environ.get('SATNOGS_VERIFY_SSL', 'True')))
DEFAULT_SQLITE_PATH = path.join(SATNOGS_APP_PATH, 'jobs.sqlite')
SATNOGS_SQLITE_URL = environ.get('SATNOGS_SQLITE_URL', 'sqlite:///' + DEFAULT_SQLITE_PATH)
SATNOGS_NETWORK_API_URL = environ.get('SATNOGS_NETWORK_API_URL',
'https://network.satnogs.org/api/')
......
......@@ -20,7 +20,6 @@ description = SatNOGS Client
zip_safe = False
install_requires =
APScheduler
SQLAlchemy
python-dotenv
requests
validators
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment