Tasks

Tasks.

(task)controller.sentry.tasks.close_window() None[source]

This task is responsible for closing sample rate window.

For all apps with an active_window_end in the pass. Close the windows by setting

  • active_sample_rate to default_sample_rate

  • active_window_end to null

This task should be run regularly.

(task)controller.sentry.tasks.monitor_sentry_usage() None[source]

This task is responsible for starting all the perform_detect tasks.

(task)controller.sentry.tasks.perform_detect(sentry_id) None[source]

This task is responsible for the spike detection.

Get stats for this project and run the spike detection algorithm

Parameters:

sentry_id (str) – The sentry id of the project

(task)controller.sentry.tasks.populate_app() None[source]

This task is responsible for populating apps.

For each new app, link the associated project to the app.

This task should be run regularly.

(task)controller.sentry.tasks.prune_inactive_app() None[source]

This task is responsible for pruning apps and projects.

For each app not seen in settings.APP_AUTO_PRUNE_MAX_AGE_DAY days, remove the app.

For each project with no apps, remove the project.

This task should be run regularly.

(task)controller.sentry.tasks.prune_old_event() None[source]

This task is responsible for pruning old event.

Remove all event older than settings.EVENT_AUTO_PRUNE_MAX_AGE_DAY days.

This task should be run regularly.

(task)controller.sentry.tasks.pull_sentry_project_slug() None[source]

This task is responsible for getting the project slug from Sentry API.

For all projects without a sentry_project_slug. Find their project slug and update the project

This task should be run regularly.