Skip to content

Commit

Permalink
Add task args / kwargs to the task_error log statement (#215)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecRosenbaum committed Mar 31, 2022
1 parent 83b08f6 commit 0a58767
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- checkout
- run:
name: Install dependencies
command: sudo pip install black==19.10b0 regex==2019.11.1
command: sudo pip install black==19.10b0 regex==2019.11.1 "click<8.1"
- run:
name: Check formatting
command: black --check .
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:

- name: Lint code
run: |
pip install black==21.7b0
pip install black==21.7b0 "click<8.1"
black . --check
- name: Install dependencies
Expand Down
2 changes: 2 additions & 0 deletions tasktiger/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,6 +1053,8 @@ def _mark_done():

log_context.update(
{
"task_args": task.args,
"task_kwargs": task.kwargs,
"time_failed": execution.get("time_failed"),
"traceback": execution.get("traceback"),
"exception_name": execution.get("exception_name"),
Expand Down

0 comments on commit 0a58767

Please sign in to comment.