Skip to content

Commit b4427fc

Browse files
committed
Set up the transport for the reposts
1 parent 3e47841 commit b4427fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/murfey/cli/repost_failed_calls.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import murfey.server.api.websocket
2727
import murfey.server.api.workflow
2828
from murfey.server.murfey_db import url
29+
from murfey.server.run import _set_up_transport
2930
from murfey.util.config import security_from_file
3031

3132

@@ -178,8 +179,10 @@ def run():
178179
)
179180
args = parser.parse_args()
180181

181-
# Read the security config file
182+
# Read the security config file and configure the transport
182183
security_config = security_from_file(args.config)
184+
PikaTransport().load_configuration_file(security_config.rabbitmq_credentials)
185+
_set_up_transport("PikaTransport")
183186

184187
# Purge the queue and repost/reinject any messages found
185188
dlq_dump_path = Path(args.dir)

0 commit comments

Comments
 (0)