我正在使用以下版本:
花==0.9.3
celery ==4.3.0
这为我提供了包含多个列的任务页面的以下显示:
每次我进入这个页面时,我最终都会重新排列页面,使列的顺序不同,并将行的顺序更改为降序。
我想知道是否有某种方法可以将其配置为默认按该顺序排列列和行。即 Name -> State -> args -> Result -> UUID descending 而不是 Name -> UUID -> State -> args -> Result ascending
我没能在文档中找到任何相关内容,是否有我可以用来实现此目的的配置?
最佳答案
显然,flower 中没有可自定义的列排序。根据comment花的所有者在 Github 问题上的评论 [2020 年 7 月 6 日]:
There are no plans to work on this feature at the moment until someone decides to contribute to the project.
但是,有一个merged将请求拉入 flower 的 master 分支,使 flower 在任务页面 [Ordered by Started DESC] 的顶部显示最近的任务。如果有帮助,您可以安装开发版本以更改默认排序:
$ pip install https://github.com/mher/flower/zipball/master#egg=flower
关于celery - 如何重新排列 celery 花默认列?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59634078/