-
Notifications
You must be signed in to change notification settings - Fork 4
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
Polling fix #149
Polling fix #149
Conversation
railib/__init__.py
Outdated
@@ -12,5 +12,5 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
__version_info__ = (0, 7, 0) | |||
__version_info__ = (0, 7, 2) |
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.
why the double bump?
@@ -324,11 +324,13 @@ def _parse_arrow_results(files: List[TransactionAsyncFile]): | |||
def poll_with_specified_overhead( | |||
f, | |||
overhead_rate: float, | |||
start_time: int = time.time(), | |||
start_time: float = None, |
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.
I dunno if the type checker is configured differently in the SDK but in pyrel's repo + my editor it's a type error not to explicitly union with None when assigning a default of None.
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.
Oh yes, this is a type error. But it's all over the codebase and I figure it makes sense to be consistent and address that concern in a separate PR.
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.
added minor style notes but I think its good to ship when you're satisfied (heading to vote so will be spotty)
@@ -12,5 +12,5 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
|
|||
__version_info__ = (0, 7, 0) | |||
__version_info__ = (0, 7, 3) |
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.
@joshuafcole Regarding the version bump: I actually neglected to bump; it shows as a double-bump because of a Git error on my part that apparently got handled by GitHub in kind of a weird way. (Namely, I forgot to go back to main
before creating my new branch and instead used my previous branch.)
Anyway, it should be OK now, GitHub's interface weirdness notwithstanding.
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.
Hey, the diff shows correctly now that I merged main 🤷
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.
Sounds good, did you want to cut a release or should I?
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.
Shoot; good catch. I thought I did this but apparently not.
Done now.
There was a mistake in a polling function having to do with the way Python evaluates default values for arguments (at definition time).
This PR moves the
time.time()
call to the body of the function.