|
|
@@ -375,10 +375,16 @@ function flush () {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function startTask () {
|
|
|
+function startTask (ID) {
|
|
|
fetching = true
|
|
|
console.log('monitor task', queue.size)
|
|
|
- const ids = [...queue]
|
|
|
+ let ids = ID || [...queue]
|
|
|
+ if (!ids.length) { return }
|
|
|
+ if (ids.length > 100) {
|
|
|
+ const temp = ids.slice(100)
|
|
|
+ ids = ids.slice(0, 100)
|
|
|
+ startTask(temp)
|
|
|
+ }
|
|
|
getMultiCardStatusReport(ids, { background: true, custom: true }).then(
|
|
|
async ({ data }) => {
|
|
|
const map = {}
|