private void deleteLocalDatasets() { for (final Map.Entry<String, String> entry : datasetFramework.getDatasetNameMapping().entrySet()) { if (keepLocal(entry.getKey())) { continue; } final String localInstanceName = entry.getValue(); final DatasetId instanceId = new DatasetId(workflowRunId.getNamespace(), localInstanceName); LOG.debug("Deleting Workflow local dataset instance: {}", localInstanceName); try { Retries.runWithRetries(() -> datasetFramework.deleteInstance(instanceId), RetryStrategies.fixDelay(Constants.Retry.LOCAL_DATASET_OPERATION_RETRY_DELAY_SECONDS, TimeUnit.SECONDS)); } catch (Exception e) { LOG.warn("Failed to delete the Workflow local dataset instance {}", localInstanceName, e); } } }
private void deleteLocalDatasets() { for (final Map.Entry<String, String> entry : datasetFramework.getDatasetNameMapping().entrySet()) { if (keepLocal(entry.getKey())) { continue; } final String localInstanceName = entry.getValue(); final DatasetId instanceId = new DatasetId(workflowRunId.getNamespace(), localInstanceName); LOG.debug("Deleting Workflow local dataset instance: {}", localInstanceName); try { Retries.runWithRetries(() -> datasetFramework.deleteInstance(instanceId), RetryStrategies.fixDelay(Constants.Retry.LOCAL_DATASET_OPERATION_RETRY_DELAY_SECONDS, TimeUnit.SECONDS)); } catch (Exception e) { LOG.warn("Failed to delete the Workflow local dataset instance {}", localInstanceName, e); } } }