mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-23 13:09:00 +00:00
(converter) Write dummy processor log when sideloading
This commit is contained in:
parent
5e5aaf9a7e
commit
c67d95c00f
@ -84,9 +84,14 @@ public class ConverterMain {
|
||||
heartbeat.start();
|
||||
}
|
||||
|
||||
public void convert(SideloadSource sideloadSource, Path writeDir) throws IOException {
|
||||
try (var writer = new ConverterBatchWriter(writeDir, 0)) {
|
||||
public void convert(SideloadSource sideloadSource, Path writeDir) throws Exception {
|
||||
try (var writer = new ConverterBatchWriter(writeDir, 0);
|
||||
BatchingWorkLog batchingWorkLog = new BatchingWorkLogImpl(writeDir.resolve("processor.log"))
|
||||
) {
|
||||
writer.write(sideloadSource);
|
||||
|
||||
// We write an empty log with just a finish marker for the sideloading action
|
||||
batchingWorkLog.logFinishedBatch();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user