Skip to content

Commit e69c340

Browse files
authored
fix: fix redis issues (RichardKnop#626)
* fix: fix redis issues * fix: fix examples
1 parent b078943 commit e69c340

File tree

11 files changed

+931
-17
lines changed

11 files changed

+931
-17
lines changed

README.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,22 @@ go get github.com/RichardKnop/machinery/v1
9090

9191
First, you will need to define some tasks. Look at sample tasks in `example/tasks/tasks.go` to see a few examples.
9292

93-
Second, you will need to launch a worker process:
93+
Second, you will need to launch a worker process with one of these commands:
9494

9595
```sh
96-
go run example/machinery.go worker
96+
go run example/amqp.go worker
97+
go run example/redigo/main.go worker // Redis with redigo driver
98+
go run example/go-redis/main.go worker // Redis with Go Redis driver
9799
```
98100

99101
![Example worker][1]
100102

101-
Finally, once you have a worker running and waiting for tasks to consume, send some tasks:
103+
Finally, once you have a worker running and waiting for tasks to consume, send some tasks with one of these commands:
102104

103105
```sh
104-
go run example/machinery.go send
106+
go run example/amqp.go send
107+
go run example/redigo/main.go send // Redis with redigo driver
108+
go run example/go-redis/main.go send // Redis with Go Redis driver
105109
```
106110

107111
You will be able to see the tasks being processed asynchronously by the worker:

0 commit comments

Comments
 (0)