Skip to content

Commit 440b658

Browse files
authored
feat(tasks): Remove taskworker option override and add worker healthcheck (#3933)
feat(tasks) Remove taskworker option override and add worker healthcheck Along with getsentry/sentry#99374 and this change taskworkers will be enabled by default in self-hosted. I've left the celery workers active to smooth over any tasks that are in-flight during an upgrade. Add a worker healtcheck as we have one now. Refs STREAM-450
1 parent 2e7a3ff commit 440b658

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

docker-compose.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,9 @@ services:
721721
command: run taskworker-scheduler
722722
taskworker:
723723
<<: *sentry_defaults
724-
command: run taskworker --concurrency=4 --rpc-host=taskbroker:50051
724+
command: run taskworker --concurrency=4 --rpc-host=taskbroker:50051 --health-check-file-path=/tmp/health.txt
725+
healthcheck:
726+
<<: *file_healthcheck_defaults
725727
vroom:
726728
<<: *restart_policy
727729
image: "$VROOM_IMAGE"

sentry/sentry.conf.example.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -456,9 +456,3 @@ def get_internal_network():
456456
# }
457457
# SENTRY_METRICS_SAMPLE_RATE = 1.0 # Adjust this to your needs, default is 1.0
458458
# SENTRY_METRICS_PREFIX = "sentry." # Adjust this to your needs, default is "sentry."
459-
460-
#########
461-
# Tasks #
462-
#########
463-
# Disable taskworker and continue using celery.
464-
SENTRY_OPTIONS["taskworker.enabled"] = False

0 commit comments

Comments
 (0)