🐳 Removed calibre from Dockerfile

This commit is contained in:
2022-03-22 22:02:47 -07:00
parent 8181afdf88
commit 0572e22ee9
9 changed files with 275 additions and 428 deletions

View File

@@ -32,7 +32,7 @@ SOFTWARE.
*/
"use strict";
import { isNil, isNull, isUndefined, map } from "lodash";
import { isNil } from "lodash";
import {
Context,
Service,

View File

@@ -49,10 +49,9 @@ import Comic from "../models/comic.model";
import { extractFromArchive } from "../utils/uncompression.utils";
import { refineQuery } from "filename-parser";
import { io } from "./api.service";
import { getFileConstituents } from "../utils/file.utils";
import { USERDATA_DIRECTORY } from "../constants/directories";
import { IExtractedComicBookCoverFile } from "threetwo-ui-typings";
const REDIS_URI = process.env.REDIS_URI || `redis://0.0.0.0:6379`;
const REDIS_URI = process.env.REDIS_URI || `redis://localhost:6379`;
console.log(`REDIS -> ${REDIS_URI}`);
export default class QueueService extends Service {
@@ -216,6 +215,18 @@ export default class QueueService extends Service {
console.log(`is stalled.`);
}
);
await this.getQueue("process.import").on(
"drained",
async (data) => {
client.emit("action", {
type: "LS_QUEUE_DRAINED",
result: data,
});
console.log(data);
return data;
}
);
});
},
});