-
Notifications
You must be signed in to change notification settings - Fork 11
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
Add parameter cron for disabling checks not useful when being instantiated by CRON #25
Conversation
@WardPearce if you can review what I have done :). thank you |
Yes can do, on holiday currently but will check this briefly |
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.
Some minor suggestions
smart_ipv6_rotator/__init__.py
Outdated
@@ -58,6 +58,13 @@ | |||
"help": "Completely disables the --services flag.", | |||
}, | |||
), | |||
( | |||
"--cron", |
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.
Probably shouldn't be a shared parameter, as only used for run.
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.
What do you mean by that?
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.
"SHARED_OPTIONS" is options what are shared between multiple commands.
If a option is only specific to a command, it should prob be added like so https://github.com/iv-org/smart-ipv6-rotator/blob/skip-http-checks-cron/smart_ipv6_rotator/__init__.py#L266
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.
thanks. I moved to a static option.
Following needs to be updated too Line 60 in 677835d
|
This will help with these issues:
Basically, the HTTP check may not be useful if the script is launched by CRON because the HTTP check is only for telling people that their setup does not work.
People can disable this check by passing
--cron
.