Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add task args / kwargs to the task_error log statement #215

Merged
merged 4 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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