Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

Feature: managed storage for clusters and jobs #443

Merged
merged 6 commits into from
Mar 20, 2018

Conversation

jafreck
Copy link
Member

@jafreck jafreck commented Mar 16, 2018

Fix #419

TODO:

  • Add --keep-logs flag to prevent storage deletion
  • Add docs for storage lifetime, and --keep-logs flag

aztk/client.py Outdated
@@ -61,6 +61,9 @@ def __delete_pool_and_job(self, pool_id: str):

if pool_exists:
self.batch_client.pool.delete(pool_id)

cluster_data = self._get_cluster_data(pool_id)
cluster_data.delete_container(pool_id)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sweet!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this was a super simple change because of the cluster_data refactor

@@ -22,6 +22,7 @@ def execute(args: typing.NamedTuple):
cluster_id = args.cluster_id

if not args.force:
log.warn("All logs persisted for this cluster will be deleted.")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hhm, that does seem like a good idea

@jafreck jafreck added this to the v0.7.0 milestone Mar 16, 2018
@jafreck jafreck merged commit 8aa1843 into Azure:master Mar 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants