-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
docs(python): Add owner field examples to crons documentation #16825
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -155,3 +155,17 @@ def init_sentry(**kwargs): | |
| def tell_the_world(msg): | ||
| print(msg) | ||
| ``` | ||
|
|
||
| You can also pass additional monitor configuration, including ownership: | ||
|
|
||
| ```python {diff} {filename:tasks.py} | ||
| +monitor_config = { | ||
| + "schedule": {"type": "crontab", "value": "0 0 * * *"}, | ||
| + "owner": "team:6", | ||
| +} | ||
|
|
||
| @app.task | ||
| +@sentry_sdk.monitor(monitor_slug='<monitor-slug>', monitor_config=monitor_config) | ||
| def tell_the_world(msg): | ||
| print(msg) | ||
| ``` | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the information about additional monitor configuration is already available in the "Configuring Cron Monitors" section that you've edited above, we don't need to add these changes here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. good point! fixed! |
||
Uh oh!
There was an error while loading. Please reload this page.