Difference between jobs.iter and jobs.iter_last

オープン
#134 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

@AdrianAtZyte がすでに取り組んでいます。

2026年9月28日 から。

  • #215 @AdrianAtZyte による — オープン

評価

難易度
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.iter returns 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分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

scrapinghub/python-scrapinghub のほかの issue

scrapinghub/python-scrapinghub の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。