New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MGR+1] Change, document LOG_UNSERIALIZABLE_REQUESTS
#1610
Conversation
Current coverage is 83.44% (diff: 28.57%)
|
LOG_UNSERIALIZABLE_REQUESTS
LOG_UNSERIALIZABLE_REQUESTS
Kindly review @curita, @nramirezuy. |
@@ -28,7 +28,7 @@ def from_crawler(cls, crawler): | |||
dupefilter = dupefilter_cls.from_settings(settings) | |||
dqclass = load_object(settings['SCHEDULER_DISK_QUEUE']) | |||
mqclass = load_object(settings['SCHEDULER_MEMORY_QUEUE']) | |||
logunser = settings.getbool('LOG_UNSERIALIZABLE_REQUESTS') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We never completely remove older cases. This settings should still remain in the code with a deprecation warning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the change in the latest commit
@nramirezuy, can you please review the PR? Thanks. |
Anything blocking the merge here? |
@@ -96,4 +96,6 @@ But this will:: | |||
somearg = response.meta['somearg'] | |||
print "the argument passed is:", somearg | |||
|
|||
If you wish to log the requests that couldn't be serialized, you can set the ``SCHEDULER_DEBUG`` setting to ``True`` in the project's settings page. It is ``False`` by default. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you wrap the line around 80 chars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay. Also, I'll pull in the latest code and merge the conflict. Is there anything else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay. Also, I'll pull in the latest code and resolve the conflict. Is there anything else?
a7ffc5b
to
0c77b6d
Compare
@redapple kindly review! |
Default: ``False`` | ||
|
||
Setting to ``True`` will log debug information about the requests scheduler. | ||
This currently logs(only once) if the requests cannot be serialized to disk. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing space: logs (only once)
LGTM |
LOG_UNSERIALIZABLE_REQUESTS
LOG_UNSERIALIZABLE_REQUESTS
@redapple, can we merge this? |
LOG_UNSERIALIZABLE_REQUESTS
LOG_UNSERIALIZABLE_REQUESTS
Fine by me. @kmike , @eliasdorneles , @dangra , what do you think? |
LGTM. |
Looks good, merging -- thanks @darshanime ! |
Changed
LOG_UNSERIALIZABLE_REQUESTS
toSCHEDULER_DEBUG
. Document it in thedocs
. Changed behavior to log once and collect stats.Fixes #1592