Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Huey+Django: log executed tasks in django admin

See original GitHub issue

Issue Description

I 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:

Remarks / Comments?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

jediecommented, Sep 7, 2018

OK, i start as separate project 😉

jwaschkaucommented, Apr 8, 2022

OK, i start as separate project 😉

Any updates on that? I would be interested in seeing what you’ve got.

Same here.

@jedie Were you able to made a project for logging tasks in Django ?


Read more comments on GitHub >

github_iconTop 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
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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found