|
@@ -42,7 +42,10 @@ function process_queue() {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- od_ref.child(key).update({status: "in_progress"});
|
|
|
|
|
|
+ od_ref.child(key).update({
|
|
|
|
+ status: "in_progress",
|
|
|
|
+ startedRecognizing: moment().unix()
|
|
|
|
+ });
|
|
|
|
|
|
var params = [
|
|
var params = [
|
|
path.join(config.installDir,"fourier/process_timespan_nodb.py"),
|
|
path.join(config.installDir,"fourier/process_timespan_nodb.py"),
|
|
@@ -69,7 +72,10 @@ function process_queue() {
|
|
working = false;
|
|
working = false;
|
|
proc = null;
|
|
proc = null;
|
|
if (code === 0) {
|
|
if (code === 0) {
|
|
- od_ref.child(key).update({status: "done"});
|
|
|
|
|
|
+ od_ref.child(key).update({
|
|
|
|
+ status: "done",
|
|
|
|
+ endedRecognizing: moment().unix()
|
|
|
|
+ });
|
|
console.log("done", key);
|
|
console.log("done", key);
|
|
} else {
|
|
} else {
|
|
console.error(`wrong process code: ${code}`)
|
|
console.error(`wrong process code: ${code}`)
|