[MRG+1] New signal for reqeuests reached downloader #3393
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3393 +/- ##
==========================================
+ Coverage 84.46% 84.47% +<.01%
==========================================
Files 167 167
Lines 9362 9366 +4
Branches 1390 1390
==========================================
+ Hits 7908 7912 +4
Misses 1199 1199
Partials 255 255
|
Made a performance comparison with new signal and without one. Full log available https://gist.github.com/whalebot-helmsman/427908453e28e4d91ba24062a3a1aa05
No substantial impact on performance |
docs/topics/signals.rst
Outdated
.. signal:: request_reached_downloader | ||
.. function:: request_reached_downloader(request, spider) | ||
|
||
Sent when a :class:`~scrapy.http.Request`, reached downloader. |
kmike
Aug 28, 2018
Member
typo: comma is not needed here
typo: comma is not needed here
|
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
New signal added with documentation to be emitted for requests reached downloader. It is done to provide better integration between scheduler and downloader without adding much complexity, based on previous discussions: #2435 #2474
Signal name is discussable. Documentation can be improved.