mirror of
https://github.com/MarginaliaSearch/MarginaliaSearch.git
synced 2025-02-24 05:18:58 +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();
|
heartbeat.start();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void convert(SideloadSource sideloadSource, Path writeDir) throws IOException {
|
public void convert(SideloadSource sideloadSource, Path writeDir) throws Exception {
|
||||||
try (var writer = new ConverterBatchWriter(writeDir, 0)) {
|
try (var writer = new ConverterBatchWriter(writeDir, 0);
|
||||||
|
BatchingWorkLog batchingWorkLog = new BatchingWorkLogImpl(writeDir.resolve("processor.log"))
|
||||||
|
) {
|
||||||
writer.write(sideloadSource);
|
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