Re: Add pre-scan task?
Michael Herger <slim-b/[email protected]> Thu, 24 Mar 2022 12:50:59 +0100
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Message-ID | <[email protected]> |
> And am I correct to assume that because LMS is single-threaded, the scan > process will wait for createBackup to finish? Is there any (hard-coded) Correct. The scanner doesn't even know asynchronous calls. > time-out that applies -at this pre-scan stage- of the importer, in case > the backup takes a bit longer? There's no timeout in the scanner. > And what if, for some reason, createBackup throws an error? Will that > make the whole scan process fail? You'll have to handle this, to make sure the rest of the scanner doesn't crash. How are you planning to do the backup?