Optional progress bar on task page, updated with task-progress events - #1071
Optional progress bar on task page, updated with task-progress events#1071EugZol wants to merge 1 commit into
Conversation
|
Hi there, This feature would be realy cool ! I installed this branch of flower : Here is my task code @app.task(name='train', bind=True)
@wraps(raw_train) # used to inject doc & param information
def train(self, *args, **kwargs):
# define a callback to update a progress state in celery
def callback(progress):
print('PROGRESS: %d%%' % int(100*progress))
# send task-progress event for flower
self.send_event('task-progress', current=int(100*progress), total=100)
# execute the true train method
return raw_train(*args, **kwargs, callback=callback)
# ###############################starting flower (i dont know if broker_api is usefull in any way) starting the worker |
|
why isn't it merged already? |
|
I would like to see a progress bar in flower as well, but unfortunately, the PR has never been merged. So I tried to build the fork EugZol/flower, which seems to be outdated as well |
|
It's working but the UI and the version is old: DockerFile : TASK : Docker-compose: |
|
It's cool!But is there any progress with this feature? |
Progress bar which appears automatically on task page when
task-progressevent is received.It was discussed in #453 and #143 previously, but as far as I understand wasn't implemented. That PR provides unobtrusive built-in solution.
Example task code: