-
Notifications
You must be signed in to change notification settings - Fork 816
Webhook jobs #3379
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
Webhook jobs #3379
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
High level comment made on slack (internal):
|
I switched to a simpler approach (same as in the UI): from huggingface_hub import create_webhook
# Example: Creating a webhook that triggers a Job
webhook = create_webhook(
job_id=job_id,
watched=[{"type": "user", "name": "your-username"}, {"type": "org", "name": "your-org-name"}],
domains=["repo", "discussion"],
secret="your-secret"
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Co-authored-by: Lucain <lucain@huggingface.co>
or with a UV script
TODO:
cc @Wauplin @hanouticelina if you want to take a quick look while I dive into doing more docs
No CLI for this one for now, since there is no CLI for webhooks and I'm not sure this would fit very well, but lmk what you think.
note for me for later: update https://huggingface.co/docs/hub/en/webhooks-guide-metadata-review