Commit ac5c92d4 by linjinhong

feat:定时任务调为1分钟测试

parent 549fd693
{ {
"test": { "test": {
"apiApiHost": "http://172.16.19.230:8060/api", "apiApiHost": "http://172.16.19.100:8060/api",
"fileApiUrl": "http://172.16.19.230:8060/upload/factory", "fileApiUrl": "http://172.16.19.100:8060/upload/factory",
"visionUrl": "http://console.jomalls.com", "visionUrl": "http://console.jomalls.com",
"configPath": "D:\\work\\electron-printer\\config\\env.json" "configPath": "D:\\work\\electron-printer\\config\\env.json"
}, },
......
...@@ -387,9 +387,7 @@ async function createWindow() { ...@@ -387,9 +387,7 @@ async function createWindow() {
win.webContents.on("did-finish-load", () => { win.webContents.on("did-finish-load", () => {
const { width, height } = win.getBounds(); const { width, height } = win.getBounds();
win.webContents.send("window-size", { width, height }); win.webContents.send("window-size", { width, height });
console.log(99999); downloadQueue.startAutoDownloadTask();
// downloadQueue.startAutoDownloadTask();
}); });
if (process.env.WEBPACK_DEV_SERVER_URL) { if (process.env.WEBPACK_DEV_SERVER_URL) {
......
...@@ -12,7 +12,7 @@ const taskState = { ...@@ -12,7 +12,7 @@ const taskState = {
isDownloading: false, isDownloading: false,
timer: null, timer: null,
total: 0, total: 0,
interval: 5 * 60 * 1000, interval: 1 * 60 * 1000,
maxBatchConcurrency: 3, maxBatchConcurrency: 3,
maxImageConcurrency: 10 maxImageConcurrency: 10
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment