PolicyStat / jobtastic

Make your user-responsive long-running Celery jobs totally awesomer.
http://policystat.github.com/jobtastic/
MIT License
645 stars 61 forks source link

Default jobtastic tasks to `track_started = True` #23

Open winhamwr opened 11 years ago

winhamwr commented 11 years ago

Celery has a built-in track_started option. For Jobtastic tasks, change the default from False to True, so that we can let the user know that their task has begun executing and that we're estimating the remaining time.

This removes the need to call self.update_progress(0, 0).

winhamwr commented 11 years ago

cc @kylegibson I think this is better than putting in an automatic self.update_progress call. It also means that we could change the time estimation to treat the first update_progress call as the beginning of time, which would give more accurate progress estimate for tasks that have a fixed-ish amount of up-front work, followed by a more incremental list of things to do. That's actually a lot closer to what we see, at least.