Skip to content

Commit 752a1d6

Browse files
authored
style: improve cancellation string (#111)
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://togithub.com/googleapis/python-bigquery-dataframes/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [ ] Ensure the tests and linter pass - [ ] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
1 parent 1b3f3a5 commit 752a1d6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

bigframes/formatting_helpers.py

+8-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,10 @@ def wait_for_query_job(
155155
raise
156156
except KeyboardInterrupt:
157157
query_job.cancel()
158-
print(f"Requested cancelation for {query_job.job_type} {query_job.job_id}...")
158+
print(
159+
f"Requested cancellation for {query_job.job_type.capitalize()}"
160+
f" job {query_job.job_id} in location {query_job.location}..."
161+
)
159162
# begin the cancel request before immediately rethrowing
160163
raise
161164

@@ -197,7 +200,10 @@ def wait_for_job(job: GenericJob, progress_bar: Optional[str] = None):
197200
raise
198201
except KeyboardInterrupt:
199202
job.cancel()
200-
print(f"Requested cancelation for {job.job_type} {job.job_id}...")
203+
print(
204+
f"Requested cancellation for {job.job_type.capitalize()}"
205+
f" job {job.job_id} in location {job.location}..."
206+
)
201207
# begin the cancel request before immediately rethrowing
202208
raise
203209

0 commit comments

Comments
 (0)