Skip to content
This repository was archived by the owner on Feb 3, 2026. It is now read-only.

Commit 31ac941

Browse files
committed
[Tests] disable Memoryhuey
1 parent 6f5c2d9 commit 31ac941

3 files changed

Lines changed: 1 addition & 10 deletions

File tree

octobot_node/app/core/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ def all_cors_origins(self) -> list[str]:
8585

8686
SENTRY_DSN: HttpUrl | None = None
8787
SCHEDULER_REDIS_URL: AnyUrl | None = None
88-
USE_MEMORY_SCHEDULER: bool = False
8988
SCHEDULER_SQLITE_FILE: str = "tasks.db"
9089
SCHEDULER_WORKERS: int = 0 # 0 disables consumers, >0 enables consumers
9190
IS_MASTER_MODE: bool = False # Enable master node mode

octobot_node/scheduler/scheduler.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# You should have received a copy of the GNU General Public
1515
# License along with OctoBot. If not, see <https://www.gnu.org/licenses/>.
1616

17-
from huey import Huey, RedisHuey, SqliteHuey, MemoryHuey
17+
from huey import Huey, RedisHuey, SqliteHuey
1818
from huey.registry import Message
1919
from huey.utils import Error as HueyError
2020
from typing import Optional, Any
@@ -52,10 +52,6 @@ def create(self):
5252
) if settings.REDIS_STORAGE_CERTS_PATH is not None else None
5353

5454
self.INSTANCE = RedisHuey(DEFAULT_NAME, connection_pool=connection_pool) if connection_pool is not None else RedisHuey(DEFAULT_NAME, url=str(settings.SCHEDULER_REDIS_URL))
55-
elif settings.USE_MEMORY_SCHEDULER:
56-
# warning: this mode has no persistence, tasks will be lost when the process is stopped
57-
self.logger.info("Initializing scheduler with memory backend")
58-
self.INSTANCE = MemoryHuey(DEFAULT_NAME)
5955
else:
6056
self.logger.info(
6157
"Initializing scheduler with sqlite backend at %s", settings.SCHEDULER_SQLITE_FILE

tests/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,3 @@
1313
#
1414
# You should have received a copy of the GNU Lesser General Public
1515
# License along with this library.
16-
17-
import octobot_node.app.core.config
18-
# force memory scheduler for tests to avoid disk I/O or redis dependencies
19-
octobot_node.app.core.config.settings.USE_MEMORY_SCHEDULER = True

0 commit comments

Comments
 (0)