forked from feast-dev/feast
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cancel BigQuery job if block_until_done call times out or is interrup…
…ted (feast-dev#1699) * Cancel job if to_bigquery is cancelled by user Signed-off-by: Cody Lin <codyl@twitter.com> * cancel job in _upload_entity_df_into_bq as well Signed-off-by: Cody Lin <codyl@twitter.com> * Fix _is_done logic? Signed-off-by: Cody Lin <codyl@twitter.com> * make cancel job code more readable Signed-off-by: Cody Lin <codyl@twitter.com> * move KeyboardInterrupt catch outside retry logic; fix retry logic Signed-off-by: Cody Lin <codyl@twitter.com> * make block_until_done public; add custom exception for BQJobStillRunning Signed-off-by: Cody Lin <codyl@twitter.com> * fix retry logic to catch specific exception Signed-off-by: Cody Lin <codyl@twitter.com> * Make retry params configurable; use finally clause to catch more cancellation cases Signed-off-by: Cody Lin <codyl@twitter.com> * Modify docstring Signed-off-by: Cody Lin <codyl@twitter.com> * Typo in docstring Signed-off-by: Cody Lin <codyl@twitter.com> * Fix lint Signed-off-by: Cody Lin <codyl@twitter.com> Signed-off-by: CS <2498638+charliec443@users.noreply.github.com>
- Loading branch information
1 parent
0b11bab
commit b615b5c
Showing
2 changed files
with
58 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters