diff --git a/docker/complement/conf/start_for_complement.sh b/docker/complement/conf/start_for_complement.sh index 49d79745b064..a92f55cb5ed4 100755 --- a/docker/complement/conf/start_for_complement.sh +++ b/docker/complement/conf/start_for_complement.sh @@ -50,6 +50,8 @@ if [[ -n "$SYNAPSE_COMPLEMENT_USE_WORKERS" ]]; then # -n True if the length of string is non-zero. # -z True if the length of string is zero. if [[ -z "$SYNAPSE_WORKER_TYPES" ]]; then + # This list corresponds to the keys of the WORKERS_CONFIG dict in + # synapse/docker/configure_workers_and_start.py export SYNAPSE_WORKER_TYPES="\ event_persister, \ event_persister, \ @@ -64,7 +66,12 @@ if [[ -n "$SYNAPSE_COMPLEMENT_USE_WORKERS" ]]; then synchrotron, \ client_reader, \ appservice, \ - pusher" + pusher, \ + account_data, \ + presence, \ + receipts, \ + to_device, \ + typing" fi log "Workers requested: $SYNAPSE_WORKER_TYPES" diff --git a/docker/configure_workers_and_start.py b/docker/configure_workers_and_start.py index 58c62f2231f3..e50e3242a5a0 100755 --- a/docker/configure_workers_and_start.py +++ b/docker/configure_workers_and_start.py @@ -57,6 +57,11 @@ # Stream Writers require "client" and "replication" listeners because they # have to attach by instance_map to the master process and have client endpoints. WORKERS_CONFIG: Dict[str, Dict[str, Any]] = { + # NOTE: Any new entries added to this list should also be added to the + # SYNAPSE_WORKER_TYPES environment variable in + # docker/complement/conf/start_for_complement.sh in order to include + # those workers in the worker-mode Complement runs in CI, and when + # using scripts-dev/complement.sh locally. "pusher": { "app": "synapse.app.generic_worker", "listener_resources": [],