An open API service indexing awesome lists of open source software.

https://github.com/hashnuke/rabbitmq-graceful-exit

Test code to gracefully exit rabbitmq worker
https://github.com/hashnuke/rabbitmq-graceful-exit

Last synced: 10 months ago
JSON representation

Test code to gracefully exit rabbitmq worker

Awesome Lists containing this project

README

          

### Start workers

```
ruby run.rb
```

### To send messages

```
irb -r ./rabbit.rb
```

Code to send messages

```
r = Rabbit.new
r.post "hello"

(1..20).to_a.map {|i| r.post("hello #{i}")}
```

### Send signal to gracefully exit

```
kill -SIGUSR1
```