Difference between jobs.iter and jobs.iter_last
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 35/100
- Issue 类型
- 文档
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- python
- 领域
- api, documentation
调研方向
从 Jobs.iter 和 Jobs.iter_last 入口开始,阅读它们的文档和实现,以确定它们的结果限制和排序有何不同。更新文档,使每个方法的行为都明确无歧义,然后验证措辞是否与观察到的行为一致。
由索引模型根据 Issue 内容生成。
描述
The documentation for jobs.iter says
by default :meth:
Jobs.iterreturns maximum last 1000 results.
which implies that it will return the most recent (first 1000 sorted in decreasing chronological order).
The documentation for jobs.iter_last says
Iterate through last jobs for each spider.
which implies that it will return the jobs with the highest chronological value (that is to say, the first n jobs sorted in decreasing chronological order).
I would guess that they're not both returning the latest jobs, however with limited job retention I can't imagine a situation where you'd actually want the results in increasing chronological order.
- 主要语言
- Python
- 星标
- 204
- 派生
- 62
- 平均合并
- 6 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
scrapinghub/python-scrapinghub 的其他 Issue
-
Incorrect information for Samples in Job documentation可能已有人在做 @AdrianAtZyte 于 66 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 72/100
-
Zyte Job API: Provision to support Cron Expression or Time Interval可能已有人在做 @AdrianAtZyte 于 67 天前认领。 未关闭
难度 5/5 一周以上 新手友好度 25/100
-
Add async support可能重新可做 @VMRuiz 于 1414 天前认领,目前没有进行中的 PR。 未关闭
scrapinghub/python-scrapinghub#169 · 8 条评论 · 2 个 reaction · 已指派 4 人 ·
-
Add retry logic to Job Tag Update function可能已有人在做 @AdrianAtZyte 于 66 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 42/100
-
KeyError: 'status' when trying to schedule spider可能已有人在做 @AdrianAtZyte 于 64 天前认领。 未关闭enhancement
难度 3/5 1-2 天 新手友好度 30/100
scrapinghub/python-scrapinghub#156 · 6 条评论 ·
查看 scrapinghub/python-scrapinghub 的全部 Issue
相似的 Issue
-
[19.0] pos_sale: settling an order with a 0 down payment line crashes (reading 'reward_id') and leaves a wrong amount due可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 79/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 79/100
developmentseed/titiler-covjson#164 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
awslabs/visual-asset-management-system#2164 ·
维护者通常 1 天内回复
-
needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
MakazhanAlpamys/Soup#3589 ·
维护者通常 1 天内回复
-
channels status reports the wrong Enabled value for Feishu instances and default-enabled WebSocket未关闭
难度 2/5 1-3 小时 新手友好度 86/100
维护者通常 1 天内回复