From ef261e2671bd371ed2c69dd864c81448ada141a5 Mon Sep 17 00:00:00 2001 From: luke-lombardi <33990301+luke-lombardi@users.noreply.github.com> Date: Thu, 31 Oct 2024 13:32:17 -0400 Subject: [PATCH] wip --- sdk/src/beta9/runner/function.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sdk/src/beta9/runner/function.py b/sdk/src/beta9/runner/function.py index 891261dfa..fa5842d0f 100644 --- a/sdk/src/beta9/runner/function.py +++ b/sdk/src/beta9/runner/function.py @@ -136,7 +136,7 @@ def _monitor_task( @json_output_interceptor(task_id=config.task_id) -@handle_error(print_traceback=False) +@handle_error(print_traceback=True) @pass_channel def main(channel: Channel): function_stub: FunctionServiceStub = FunctionServiceStub(channel) @@ -174,7 +174,6 @@ def main(channel: Channel): if result.exception: thread_pool.shutdown(wait=False) handle_task_failure(gateway_stub, result, task_id, container_id, container_hostname) - print(result.exception) raise result.exception # End the task and send callback @@ -227,7 +226,6 @@ def invoke_function( callback_url=callback_url, ) except BaseException as e: - print(f"{traceback.format_exc()}") return InvokeResult( result=result, exception=e,