Skip to content

Commit

Permalink
Executor logs error fix (#1542)
Browse files Browse the repository at this point in the history
* Raised the specific error from response-payload-body instead of all the response.

* Raised the specific error from response-payload-body instead of all the response.
  • Loading branch information
maheshsattala authored Sep 27, 2024
1 parent 0c83cbe commit 4b5f982
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kairon/shared/cloud/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ def trigger_lambda(event_class: EventClass, env_data: dict, task_type: TASK_TYPE
logger.info(response)

if CloudUtility.lambda_execution_failed(response):
raise AppException(response)
err = response['Payload'].get('body') or response
raise AppException(err)
except Exception as e:
exception = str(e)
CloudUtility.log_task(event_class=event_class, task_type=task_type, data=env_data,
Expand Down

0 comments on commit 4b5f982

Please sign in to comment.