Omar Khashoggi

Results 21 comments of Omar Khashoggi

To do this I wrapped the `get_progress` view in my own view that requires authorization. My view would take a task id, does authorization, then forward the id to `celery_progress.views.get_progress`...

@hansegucker Specific users. I had a Task model that stored users and tasks in the database. I made sure to delete the row and forget the task when I'm done...

I'm also not familiar enough with channels. Initial thoughts: 1. How does this affect users of other backends? 2. Should we use [`database_sync_to_async`](https://channels.readthedocs.io/en/stable/topics/databases.html) instead? I might look into it more...

I didn't run this code. But it gives you the general idea. ```python # pre-generate a random id custom_id = celery.utils.gen_unique_id() # set task id to custom id task_function =...

I'm not sure it's a race condition. The initial state should be "PENDING" or "STARTED" even if set_progress() isn't called. The error message indicates this is caused by an unknown...

That's odd. I'm unable to reproduce the issue with this setup: python 3.8, redis 5.0, packages: - celery-progress==0.1.0 - celery==5.0.5 - Django==3.1.7 - redis==3.5.3 The task: ```python @shared_task(bind=True) def http_task(self,...

> {state: "PROGRESS", complete: true, success: false, progress: {…}, result: "Unknown state { }" Interesting. I'm not sure how this response was made, but I have a theory. This response...

See related issue https://github.com/czue/celery-progress/issues/13 for a way to approach this. I imagine this could be done in multiple ways: 1. Retry continuously with a cool down interval. 2. Retry a...

I don't think django-celery is required for celery-progress. If you are using django-celery to store results using the Django ORM, you can use django-celery-results instead.