-
Notifications
You must be signed in to change notification settings - Fork 12
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
gsutil commands to async #165
Conversation
…er-changes Bug fix and search functionality code commented
…om/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
…er-changes Schema empty error message added
…om/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
This reverts commit 799f604.
This reverts commit 0844b26.
Toast removed for empty cluster
…er-changes Bug tracker fixes - ID 226, 227
…om/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
…er-changes Big Query search functionality changes
…om/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
…er-changes Dataset explorer backend code formatting
…om/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint19-dataset-explorer-changes
…er-changes Bug tracker fixes - 228
…upyter-plugin-fork into sprint19-dataset-explorer-fixes
…onal-properties Runtime - spark properties feedback changes and internal fixes
…ub.com/Shubha-accenture/dataproc-jupyter-plugin-fork into sprint20-runtime-additional-properties
…onal-properties scheduler test file removed
…upyter-plugin-fork into sprint21-gsutil-async-changes
…upyter-plugin-fork into sprint21-gsutil-async-changes
…hanges gsutil commands to async
src/batches/batchDetails.tsx
Outdated
@@ -13,6 +13,7 @@ | |||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |||
* See the License for the specific language governing permissions and | |||
* limitations under the License. | |||
* |
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.
Revert this change.
We will not alter the copyright header.
import tempfile | ||
|
||
|
||
async def async_command_executor(cmd): |
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.
This is too generic, reducing the amount of value it adds.
Instead, let's make this method specific to gsutil, similarly to the async_run_gcloud_subcommand
method
…hanges gsutil - review comments changes
except subprocess.CalledProcessError as error: | ||
self.log.exception("Error deleting dag") | ||
raise Exception( | ||
f"Error getting airflow uri: {response.reason} {await response.text()}" |
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.
This exception constructor is clearly wrong; it's reporting the response text when the error came from running a gsutil command.
Moreover, however, this entire nested try-except block is redundant. The inner try
should be removed and just rely on the outer except
block to report the error.
…hanges gsutil review comment fix
No description provided.