This commit is contained in:
KernelDeimos 2024-04-22 16:28:22 -04:00
parent a741bd5419
commit 2f5780d1d1

View File

@ -203,18 +203,9 @@ module.exports = eggspress('/batch', {
if ( fieldname === 'operation' ) { if ( fieldname === 'operation' ) {
const op_spec = JSON.parse(value); const op_spec = JSON.parse(value);
batch_exe.total++; batch_exe.total++;
// if ( operation_requires_file(op_spec) ) {
console.log(`WAITING FOR FILE ${op_spec.op}`)
pending_operations.push(op_spec); pending_operations.push(op_spec);
response_promises.push(null); response_promises.push(null);
return; return;
// }
// console.log(`EXEUCING OP ${op_spec.op}`)
// response_promises.push(
// batch_exe.exec_op(req, op_spec)
// );
// return;
} }
req.body[fieldname] = value; req.body[fieldname] = value;
@ -306,9 +297,7 @@ module.exports = eggspress('/batch', {
//------------------------------------------------------------- //-------------------------------------------------------------
// Awaiting responses // Awaiting responses
//------------------------------------------------------------- //-------------------------------------------------------------
console.log('still_reading AWAITING');
await still_reading; await still_reading;
console.log('still_reading RESOLVED');
if ( request_error ) { if ( request_error ) {
return; return;