-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Return bq job id from biquery.run_job() #2957
Conversation
This enables client code to do further things with the job id, e.g. look up logs, status or other information.
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.
Minor comments. Please also add a test case to cover the change. I see we already have a test file for this.
Thanks for the review! Not sure how to properly test this, though - there are no tests for the However, a search through the project for |
...added a couple of tests anyway, but I haven't been able to run these, so I have no idea what CI will say about them. |
It turns out we don't run anything for @dlstadther @Tarrasch What do you think? It seem some |
Some tests annotations were removed/excluded from Travis while i was trying to contain test runtime here. I definitely think we should try to include as many of the annotations as we can, but be considerate of the Travis resources we take and the runtime duration to wait for PR test response. |
@dlstadther What you think of this PR? Should we merge as it is or we'd better remove unexecuted/non-verified test cases? |
I think this is safe to merge as is. Then a separate PR can update Travis config and test annotations. |
Cool. I will create an issue first for Travis CI. It doesn't feel like something we can quickly get into place. |
Created #2959 |
Is there a time frame when we could expect a release that includes this? No stress - we can solve it with inheritance and overriding in the meantime - but it would be nice to not have to carry that code longer than necessary. |
@tomasaschan Sorry I missed this. We will cut a release next week, according to release cycle. |
This ensures that the
job_id
is accessible to client code after running a BQ job; this is useful for getting logs or other metadata from the job, and/or logging the job id itself to other places than just what's done by this class.