Python error handling
This commit is contained in:
parent
8ecb815c01
commit
95563b135e
@ -2321,17 +2321,15 @@ CREATE OR REPLACE PACKAGE BODY app AS
|
|||||||
SET l.action_name = d.status,
|
SET l.action_name = d.status,
|
||||||
l.module_timer = d.duration
|
l.module_timer = d.duration
|
||||||
WHERE l.log_id = d.log_id;
|
WHERE l.log_id = d.log_id;
|
||||||
--
|
|
||||||
/*
|
-- Python scripts might fail just in the script output
|
||||||
l.payload = d.run_duration || CHR(10) || '--' || CHR(10) ||
|
IF d.output LIKE 'Exception message:%' THEN
|
||||||
d.cpu_used || CHR(10) || '--' || CHR(10) ||
|
app.log_error (
|
||||||
d.errors || CHR(10) || '--' || CHR(10) ||
|
in_action_name => 'PYTHON FAILED',
|
||||||
d.output
|
in_parent_id => d.log_id,
|
||||||
*/
|
in_payload => d.output
|
||||||
--app.log_error();
|
);
|
||||||
--
|
END IF;
|
||||||
-- PYTHON might fail
|
|
||||||
--
|
|
||||||
END LOOP;
|
END LOOP;
|
||||||
END;
|
END;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user