Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-lombardi committed Oct 31, 2024
1 parent e9f3192 commit ef261e2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sdk/src/beta9/runner/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit ef261e2

Please sign in to comment.