Runner: make app and queue static #155

Open
opened 2026-01-26 18:10:10 +00:00 by fkobi · 0 comments
Owner

Below is the structure of the Runner

class Runner(Thread):
"""Defining one task in the schedule queue"""
def __init__(self, queue, app):
self._queue = queue
self._app = app
self.__running: bool = False

running should be non-static as it is per-thread.
However both app and queue should be shared

Below is the structure of the `Runner` https://git.fsfe.org/reuse/api/src/commit/2a1aeabf29f3fd508e843ded5f69ee2c7444ce0f/reuse_api/scheduler.py#L58-L64 `running` should be non-static as it is per-thread. However both `app` and `queue` should be shared
fkobi added the bug
component
backend
1.0
labels 2026-01-26 18:10:10 +00:00
fkobi changed title from Runner: make `app` and `queue` static to `Runner`: make `app` and `queue` static 2026-01-26 18:10:51 +00:00
Sign in to join this conversation.