Skip to content

ALGO-62 Integrated mlops agent #16

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

Merged
merged 7 commits into from
Jun 17, 2022
Merged

ALGO-62 Integrated mlops agent #16

merged 7 commits into from
Jun 17, 2022

Conversation

zeryx
Copy link
Contributor

@zeryx zeryx commented Jun 14, 2022

This PR adds the mlops agent client-side interface logic to the ADK. Exposing a mlops variable to the .init() function.

requires the environment_validator in langpacks to validate.

algorithmiaio/langpacks#228 check this out to test

to test:
./tools/environment_validator.py -g python3 -s python39 -d java11 -d mlops-agent -t dependency -n python39-mlops
will need to add an environment variable to the template file to validate.

@zeryx zeryx requested review from aslisabanci and dr-kenny June 14, 2022 02:46
@zeryx zeryx self-assigned this Jun 14, 2022
@@ -91,8 +94,18 @@ def write_to_pipe(self, payload, pprint=print):
def process_local(self, local_payload, pprint):
result = self.apply(local_payload)
self.write_to_pipe(result, pprint=pprint)

def mlops_init(self):
mlops_token = os.environ.get("DATAROBOT_MLOPS_API_TOKEN", None)
Copy link

Choose a reason for hiding this comment

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

Is there a reason you aren't using the same env var as the monitoring agent itself? This might make things simpler, unless you specifically don't want them to be the same. That would be just MLOPS_API_TOKEN.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, in the event that there are other MLOPS API tokens from different orgs; wanting to be very clear about what this token is used for so it's not confused with any algorithmia token

@zeryx zeryx requested a review from lemonez June 15, 2022 16:49
Copy link

@lemonez lemonez left a comment

Choose a reason for hiding this comment

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

👍🏼

@zeryx zeryx merged commit 5f65010 into develop Jun 17, 2022
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.

3 participants