Skip to content

Commit

Permalink
Add traceback (#633)
Browse files Browse the repository at this point in the history
  • Loading branch information
edlouth authored Sep 11, 2023
1 parent 1c7e57e commit 0b31d0c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion grai-server/app/connections/tasks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import traceback

from django.utils import timezone

from celery import shared_task
Expand Down Expand Up @@ -132,7 +134,7 @@ def execute_run(run: Run):
if run.commit.pull_request:
github.post_comment(run.commit.pull_request.reference, message)
except Exception as e:
run.metadata = {"error": str(e)}
run.metadata = {"error": str(e), "traceback": traceback.format_exc()}
run.status = "error"
run.finished_at = timezone.now()
run.save()
Expand Down

0 comments on commit 0b31d0c

Please sign in to comment.