Huey+Django: log executed tasks in django admin
See original GitHub issueI would like to have a log of async actions in the django admin. The goal would be: A list of the executed tasks with the following information:
- args+kwargs
- start time
- duration
- return value (if available)
- traceback if available: “task failed” else: “task successes”
I think that’s the most interesting things, right?
Is there interest to integrate it directly into huey? Then I work on it in a fork and send a pull request. If not, I will make a separate project out of it.
I ask myself how to do this most effectively. One idea would be to create new decorators similar to db_periodic_task
, db_task
. So the user has the choice to activate db-logging or not, only by changing the task decorator.
My suggestion is here: https://gist.github.com/jedie/e5bab0bc197d4aa51cceaccfd7316649
Remarks / Comments?
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Django — huey 2.4.4 documentation - Read the Docs
The integration provides: Configuration of huey via the Django settings module. Running the consumer as a Django management command. Auto-discovery of tasks.
Read more >django-huey-monitor - PyPI
Collect main-/sub-tasks. Huey monitor model can store information about task hierarchy. But this information can't be collected automatically. You have to store ...
Read more >Huey as a minimal task queue for Django
When settings.DEBUG = True , tasks will be executed synchronously just like regular function calls. The purpose of this is to avoid running...
Read more >Huey ``db_task`` successfully registered by consumer but ...
In my dev environment (see below), everything works as expected: [save] Django model instance saved; [trigger] huey task triggerd; [execute] ...
Read more >django-admin and manage.py
django -admin is Django's command-line utility for administrative tasks. ... Runs the command-line client for the database engine specified in your ENGINE ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
OK, i start as separate project 😉
See https://github.com/boxine/django-huey-monitor