celery-progress | free progress bars for your Django/Celery applications | Dashboard library
kandi X-RAY | celery-progress Summary
kandi X-RAY | celery-progress Summary
Drop in, dependency-free progress bars for your Django/Celery applications. Super simple setup. Lots of customization available.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Receive a task
- Get information about the task
- Return a dict containing the progress information
- Get unknown progress
- Process task revoking progress
- Push an update task to the task layer
- Task postrun handler
- Set the current progress
- Get the progress of a task
celery-progress Key Features
celery-progress Examples and Code Snippets
Community Discussions
Trending Discussions on celery-progress
QUESTION
I want to create a progress bar for my project. I have a class and this class has some functions. Especially, one of them takes a long time (def download_all
) and this is my main reason for wanting to create a progress bar.
I successfully set up celery, celery-progress, etc. and they work all fine. My problem is this: I want to integrate the progress bar to download_all
function. I
It gives an error: IntegrityError at /o.../k... NOT NULL constraint failed: django_celery_results_taskresult.task_id
How can I solve it? functions.py
...ANSWER
Answered 2021-Nov-16 at 00:24This seems like came from Django model: "self.model.DoesNotExist".
It is not come from celery, from Model.objects
.
You'd better check your ORMs.
QUESTION
I want to use celery-progress to display progress bar when downloading csv files
my task loop over list of cvs files, open each files, filtered data and produce a zip folder with csv filtered files (see code below)
but depending where set_progress is called, task will take much more time
if I count (and set_progress) for files processed, it is quite fast even for files with 100000 records
but if I count for records in files, that would be more informative for user, it extends time by 20
I do not understand why
how can I manage this issue
...ANSWER
Answered 2021-Jun-30 at 07:03If there is a very high number of records then likely there's no need to update the progress on every one, and the overhead of updating the progress in the backend every time could become substantial. Instead you could do something like this in the inner loop:
QUESTION
I start using Django celery-progress and have an issue with messages displayed while waiting for task to start
in my template, I have customized progress-bar-message element with an icon and changing text Waiting for progress to start... for Waiting for import to start...:
...ANSWER
Answered 2021-Jun-24 at 13:18You will need to provide an onProgress() function when creating your CeleryProgressBar in javascript.
By default, it calls onProgressDefault(), which has that text hardcoded. But it can be overridden with the user-provided onProgress()
QUESTION
I am trying to get a progress bar to load as per the instructions here.
At the moment this is my view.
...ANSWER
Answered 2020-Feb-18 at 17:22You don't need to call task function directly. To run it in a background you should use delay()
and provide arguments there:
QUESTION
I've been following the instructions here.
This is the error it gives me, when i try to run it on localhost:
...ANSWER
Answered 2020-Feb-17 at 11:55First, you need to change the URL patterns, because multiple views (hello.views.index
and hello.views.account
) are pointing towards the same pattern
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install celery-progress
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page