Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardKnop authored Nov 24, 2020
1 parent ed5f054 commit 7b012bb
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,25 +93,25 @@ First, you will need to define some tasks. Look at sample tasks in `example/task
Second, you will need to launch a worker process with one of these commands (v2 is recommended since it doesn't import dependencies for all brokers / backends, only those you actually need):

```sh
go run example/v2/amqp.go worker
go run example/v2/amqp/main.go worker
go run example/v2/redigo/main.go worker // Redis with redigo driver
go run example/v2/go-redis/main.go worker // Redis with Go Redis driver

go run example/v1/amqp.go worker
go run example/v1/redis.go worker
go run example/v1/amqp/main.go worker
go run example/v1/redis/main.go worker
```

![Example worker][1]

Finally, once you have a worker running and waiting for tasks to consume, send some tasks with one of these commands (v2 is recommended since it doesn't import dependencies for all brokers / backends, only those you actually need):

```sh
go run example/v2/amqp.go send
go run example/v2/amqp/main.go send
go run example/v2/redigo/main.go send // Redis with redigo driver
go run example/v2/go-redis/main.go send // Redis with Go Redis driver

go run example/v1/amqp.go send
go run example/v1/redis.go send
go run example/v1/amqp/main.go send
go run example/v1/redis/main.go send
```

You will be able to see the tasks being processed asynchronously by the worker:
Expand Down Expand Up @@ -1246,4 +1246,4 @@ Then just run:
make test
```

If the environment variables are not exported, `make test` will only run unit tests.
If the environment variables are not exported, `make test` will only run unit tests.

0 comments on commit 7b012bb

Please sign in to comment.