This commit is contained in:
Manav Rathi 2024-05-16 15:06:02 +05:30
parent 3603ca3d9b
commit 7156a42d92
No known key found for this signature in database

View file

@ -311,11 +311,11 @@ class MLWorkManager {
}
}
public stopSyncJob(terminateWorker: boolean = true) {
public stopSyncJob() {
try {
log.info("MLWorkManager.stopSyncJob");
this.mlSyncJob?.stop();
terminateWorker && this.terminateSyncJobWorker();
this.terminateSyncJobWorker();
} catch (e) {
log.error("Failed to stop MLSync Job", e);
}