Skip to content

← Back to workers

AutoUpdateWorker

Source: Distributed_Design_Optimizer/postprocess/workers/AutoUpdateWorker.py

Background worker for periodic file-modification checks.

Classes

AutoUpdateWorker

Inherits from: QThread

Periodically checks the data source for file modifications.

Methods

init(self, source: DataSource, interval_ms: int, parent: QObject | None) → None

Initialize the auto-update worker.

Args:

source: The data source to monitor for changes.
interval_ms: Polling interval in milliseconds.
parent: Optional parent QObject.

run(self) → None

Poll the data source for updates at the configured interval.

stop(self) → None

Request graceful stop.