File tree Expand file tree Collapse file tree
xyz-jobs/xyz-job-steps/src/main/resources/jobs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -801,17 +801,20 @@ RETURNS VOID
801801 LANGUAGE ' plpgsql'
802802 VOLATILE
803803AS $BODY$
804+ DECLARE
805+ lamda_response RECORD;
804806BEGIN
805- PERFORM report_progress(
806- lambda_function_arn,
807- lambda_region,
808- step_payload,
809- json_build_object(
810- ' type' ,' SpaceBasedTaskUpdate' ,
811- ' taskId' , task_id,
812- ' taskOutput' , task_output
813- )
814- );
807+ -- TODO: Add error handling
808+ SELECT aws_lambda .invoke (aws_commons .create_lambda_function_arn (lambda_function_arn, lambda_region),
809+ json_build_object(
810+ ' type' ,' UPDATE_CALLBACK' ,
811+ ' step' , step_payload,
812+ ' processUpdate' , json_build_object(
813+ ' type' ,' SpaceBasedTaskUpdate' ,
814+ ' taskId' , task_id,
815+ ' taskOutput' , task_output
816+ )
817+ ), ' Event' ) INTO lamda_response;
815818END
816819$BODY$;
817820
You can’t perform that action at this time.
0 commit comments