Skip to content

Conversation

@brandon-kaplan
Copy link
Contributor

@brandon-kaplan brandon-kaplan commented Feb 6, 2024

Summary

please add a few lines to give the reviewer context on the changes
Relevant Design Doc

Adding the option to pass in a dict of filesystem and base_prefix to allow overriding of the logging location for cluster monitoring

Checklist

Before formally opening this PR, please adhere to the following standards:

  • Branch/PR names begin with the related Jira ticket id (ie PROD-31) for Jira integration
  • File names are lower_snake_case
  • Relevant unit tests have been added or not applicable
  • Relevant documentation has been added or not applicable
  • Mark yourself as the assignee (makes it easier to scan the PR list)

Related Jira Ticket

Add any relevant testing examples or screenshots.
Will test existing functionality remains.

validated retention of existing functionality by pointing our sandbox environment's init script to this branch. Ran with the logging location both to dbfs and s3.
DBFS:
Screenshot 2024-02-08 at 1 20 28 PM
s3:
Screenshot 2024-02-08 at 1 20 58 PM
pulled both files down and validated they populated properly.

@brandon-kaplan brandon-kaplan self-assigned this Feb 6, 2024
@brandon-kaplan brandon-kaplan marked this pull request as ready for review February 8, 2024 16:23
def monitor_cluster(
cluster_id: str,
polling_period: int = 20,
cluster_report_destination_override: dict = None,
Copy link
Contributor

Choose a reason for hiding this comment

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

is it better to type the None as Optional too?

Suggested change
cluster_report_destination_override: dict = None,
cluster_report_destination_override: Optional[dict] = None,

sleep(polling_period)


def _define_write_file(file_key, filesystem, bucket):
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice moving logic into sub-functions!

Copy link
Contributor

@romainissynced romainissynced left a comment

Choose a reason for hiding this comment

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

metal

@brandon-kaplan
Copy link
Contributor Author

Not going to merge quite yet, id like to revalidate my tests - i missed the hardcoded line in the reporting job that uses latest library

@brandon-kaplan
Copy link
Contributor Author

worked on the sandbox environment for both monitor cluter and the record run job

@brandon-kaplan brandon-kaplan merged commit 7d210df into main Feb 12, 2024
@brandon-kaplan brandon-kaplan deleted the PROD-1610-Monitor-Cluster-edits branch February 12, 2024 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants