Skip to content

Commit b4723a0

Browse files
authored
chore(tasks): Remove the worker and cron containers (#3946)
These are replaced by the `taskworker` and `taskscheduler` containers Refs STREAM-433
1 parent 8fc3efa commit b4723a0

File tree

2 files changed

+0
-33
lines changed

2 files changed

+0
-33
lines changed

docker-compose.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -512,20 +512,6 @@ services:
512512
- "-c"
513513
# Courtesy of https://unix.stackexchange.com/a/234089/108960
514514
- 'exec 3<>/dev/tcp/127.0.0.1/9000 && echo -e "GET /_health/ HTTP/1.1\r\nhost: 127.0.0.1\r\n\r\n" >&3 && grep ok -s -m 1 <&3'
515-
cron:
516-
<<: *sentry_defaults
517-
command: run cron
518-
worker:
519-
<<: *sentry_defaults
520-
command: run worker
521-
healthcheck:
522-
<<: *healthcheck_defaults
523-
test:
524-
- CMD
525-
- sentry
526-
- exec
527-
- -c
528-
- 'from sentry.celery import app; import os; dest="celery@{}".format(os.environ["HOSTNAME"]); print(app.control.ping(destination=[dest], timeout=5)[0][dest]["ok"])'
529515
events-consumer:
530516
<<: *sentry_defaults
531517
command: run consumer ingest-events --consumer-group ingest-consumer --healthcheck-file-path /tmp/health.txt

sentry/sentry.conf.example.py

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -141,25 +141,6 @@ def get_internal_network():
141141
}
142142
}
143143

144-
#########
145-
# Queue #
146-
#########
147-
148-
# See https://develop.sentry.dev/services/queue/ for more
149-
# information on configuring your queue broker and workers. Sentry relies
150-
# on a Python framework called Celery to manage queues.
151-
152-
rabbitmq_host = None
153-
if rabbitmq_host:
154-
BROKER_URL = "amqp://{username}:{password}@{host}/{vhost}".format(
155-
username="guest", password="guest", host=rabbitmq_host, vhost="/"
156-
)
157-
else:
158-
BROKER_URL = "redis://:{password}@{host}:{port}/{db}".format(
159-
**SENTRY_OPTIONS["redis.clusters"]["default"]["hosts"][0]
160-
)
161-
162-
163144
#########
164145
# Cache #
165146
#########

0 commit comments

Comments
 (0)