Skip to content
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

[DEVX-197]: Add Runners Interface #166

Merged
merged 6 commits into from
Sep 13, 2023
Merged

Conversation

sainivedh
Copy link
Contributor

@sainivedh sainivedh commented Sep 5, 2023

What

  • Restructure and add Runners Interface from Utils

  • Added create, search, delete, list of runner objects

Tests

  • Added create, delete runner unit tests
  • Manual execution of runners example.py

@sainivedh sainivedh changed the title [DEVX-197]: AddRunners Interface [DEVX-197]: Add Runners Interface Sep 5, 2023
@sainivedh sainivedh marked this pull request as ready for review September 5, 2023 16:13
Copy link
Member

@zeiler zeiler left a comment

Choose a reason for hiding this comment

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

Thanks for creating this! Added comments about how runners are tied to the user object and not app object.


Example:
>>> from clarifai.client.app import App
>>> app = App(app_id="app_id", user_id="user_id")
Copy link
Member

Choose a reason for hiding this comment

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

runners are actually not owned apps like other resources, they are owned by the user/org (like a sibling to apps). This is how github does it and in the future we can add runner groups like github has to limits runners to certain apps if needed. So for the API client the runners should be off the User object instead of App.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it. Now changed to User object instead of App.

clarifai/runners/example.py Outdated Show resolved Hide resolved
clarifai/client/runner.py Outdated Show resolved Hide resolved
@sainivedh sainivedh merged commit 48df778 into master Sep 13, 2023
@sainivedh sainivedh deleted the DEVX-197-Runner-Interface branch September 13, 2023 07:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants