dramatiq.messages.inprogress
Messages currently processingDimensions:None
Available on:
Prometheus (1)
Interface Metrics (1)
Technical Annotations (39)
Configuration Parameters (8)
--threadsrecommended: Reduce from high values like 40; single thread (--threads=1) works reliablyrabbitmq.heartbeat_timeoutrecommended: Increase from defaulttime_limitrecommended: 24 hoursheartbeat_timeoutrecommended: 300000dramatiq_queue_prefetchrecommended: 1worker_threadsrecommended: 8queue_prefetchmaxsizeError Signatures (2)
pika.exceptions.ConnectionWrongStateError: BlockingConnection.add_callback_threadsafe() called on closed or closing connection.exceptionFailed to wait for all callbacks to complete. This can happen when the RabbitMQ server is suddenly restarted.log patternCLI Commands (5)
dramatiq config.dramatiq --threads 1 --processes 1 --log-file=dramatiq_log${VAR}.txtdiagnosticdramatiq example --threads=40 --processes=1diagnosticdramatiq example --threads=1 --processes=1remediationredis-cli HGETALL "dramatiq:default.msgs"diagnosticredis-cli SMEMBERS "dramatiq:__acks__.{worker_id}.{queue}"diagnosticTechnical References (24)
work queueconcepttime.sleepcomponentmessage prefetchingconceptworker threadconceptconsumer threadscomponentsys.setswitchintervalcomponentheartbeat intervalconceptdelayed queuecomponent__heartbeats__component__acks__componentdispatch.luacomponentRedisBrokercomponentAsyncIO middlewarecomponentevent loopconceptwork_queuecomponentbroker.consumecomponentworker.pyfile pathRedis brokercomponentAMQPprotocolredis_message_idconceptmessage_idconceptWorkerThreadcomponentdramatiq:default.msgscomponent*.DQcomponentRelated Insights (10)
Worker pool exhaustion from blocking retry delays prevents message processingcritical
▸
Concurrent actor execution overwhelms database and external serviceswarning
▸
Message prefetching causes worker starvation with concurrent taskswarning
▸
Message duplication from RabbitMQ connection closure under CPU-intensive loadcritical
▸
Messages re-queued despite valid heartbeat during idle waitwarning
▸
AsyncIO actors limited by worker thread count causing blockingwarning
▸
Worker memory exhaustion from unbounded work queue with large message backlogscritical
▸
Redis broker bypasses AMQP-style prefetch backpressurewarning
▸
High prefetch limit for delayed messages risks memory exhaustionwarning
▸
Delayed messages duplicated with same message_id but different redis_message_idscritical
▸