[RFC] add default priority on queue job functions
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The request is to add a default priority field on the queue.job.function model and use it in place of the hardcoded 10 when a job is enqueued via with_delay(). Before starting, agree on the design in the thread, since this is an RFC with no decision yet and no comments. Done means a job function's configured priority is used as the default, with the field exposed on the model.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem?
Changing the priority of a job function needs a code change and needs to be applied to all with_delay() calls.
Describe the solution you'd like
Add a default priority field on queue.job.function, use it instead of 10 as default priority when enqueuing a job.
Describe alternatives you've considered
Additional context
- 主要语言
- Python
- 星标
- 271
- 派生
- 602
- 平均合并
- 5 天 1 小时
- 30 天内合并 PR
- 7
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
OCA/queue 的其他 Issue
-
help wanted no stale work in progress
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
Delaying unlink or write on a model whose method was replaced raises AttributeError at enqueue time可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭bug
难度 4/5 3-5 天 新手友好度 35/100
OCA/queue#996 · 1 个 reaction ·
维护者通常 1 天内回复
-
[19.0] queue_job: Jobs stay pending after the jobrunner's database connection is silently dropped可能已有人在做 @HoloborodkoBohdan 于 31 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 25/100
OCA/queue#984 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
OCA/queue#965 · 1 个 reaction ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
OCA/queue#964 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
developmentseed/titiler-cmr#278 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 2 天内回复