During the execution of a background UDF job, we had the following errors in our server log.
Jan 18 2021 13:26:28 GMT: DEBUG (socket): (socket.c:1044) Error while sending on FD 127: 11 (Resource temporarily unavailable)
Jan 18 2021 13:26:55 GMT: WARNING (udf): (udf.c:1206) lua-error: result "UDF Execution Timeout"
After the background job has finished, an show scans
in aql
reports back the following.
aql> show scans
+----------------+-------------+------------+-----------------+-------------+--------------+----------------+--------------------+--------------------+--------------+-------------------------------------+----------+------------------+--------+----------------+--------------------+------------+----------+--------------+----------+-----------------+----------------+--------------------+
| active-threads | ns | udf-active | udf-filename | recs-failed | udf-function | recs-succeeded | recs-filtered-bins | trid | job-progress | set | priority | job-type | module | recs-throttled | recs-filtered-meta | status | run-time | net-io-bytes | rps | time-since-done | socket-timeout | from |
+----------------+-------------+------------+-----------------+-------------+--------------+----------------+--------------------+--------------------+--------------+-------------------------------------+----------+------------------+--------+----------------+--------------------+------------+----------+--------------+----------+-----------------+----------------+--------------------+
| "0" | "ssd-store" | "0" | "remove-record" | "584" | "run" | "325263" | "0" | "2005483622367821" | "100.00" | "visit-duration" | "0" | "background-udf" | "scan" | "325847" | "0" | "done(ok)" | "201885" | "30" | "100000" | "1478265" | "10000" | "172.21.0.1:57338" |
+----------------+-------------+------------+-----------------+-------------+--------------+----------------+--------------------+--------------------+--------------+-------------------------------------+----------+------------------+--------+----------------+--------------------+------------+----------+--------------+----------+-----------------+----------------+--------------------+
This overview shows that the specific background job has failed (recs-failed
) for 584
records. However, the status
is marked as "done(ok)"
.
Unfortunately, the JobInfo
response for this background job doesn’t contain any field for recs-failed
.
Is there any possibility - from within the Node.js client - to check if a background-job has fully or only partially succeeded?