Skip to content

Commit 172166a

Browse files
authored
Merge pull request #15 from jembi/queue-dev-ops-readme
Document that queues can be paused/resumed through openhim config
2 parents 1a21864 + d4826b3 commit 172166a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ The file queue simply handles incoming requests, writing the files to a director
2525

2626
Multiple "endpoints" can be configured. Each endpoint handles incoming requests for a specific URL, queues them, and then sends them to another configured URL. An endpoint has a "worker" which is responsible for reading the files from the queue and processing them. Workers can process multiple files in parallel as configured (by default 2 at a time). Workers can be paused/unpaused or repopulated via a RESTlike endpoint. Pausing a worker will stop it from processing files from the queue, but the endpoint will continue accepting requests and writing the files to the queue. Repopulating a worker will cause it to refresh its queue from the files on the filesystem. This is useful when manually adding files to or removing files from the queue.
2727

28+
A queue can be paused/resumed in OpenHIM mediator config, or manually as follows:
29+
2830
To pause a queue:
2931
`./scripts/pause.sh <worker-name>`
3032

0 commit comments

Comments
 (0)