Skip to content

Commit 28b95f4

Browse files
committed
📦 [PACKAGE] Update: Package Name
1 parent 5959e69 commit 28b95f4

10 files changed

Lines changed: 20 additions & 20 deletions

File tree

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# gocraft/work [![GoDoc](https://godoc.org/github.com/gocraft/work?status.png)](https://godoc.org/github.com/gocraft/work)
1+
# gocraft/work [![GoDoc](https://godoc.org/github.com/GetSimpl/work?status.png)](https://godoc.org/github.com/GetSimpl/work)
22

33
gocraft/work lets you enqueue and processes background jobs in Go. Jobs are durable and backed by Redis. Very similar to Sidekiq for Go.
44

@@ -21,7 +21,7 @@ package main
2121

2222
import (
2323
"github.com/gomodule/redigo/redis"
24-
"github.com/gocraft/work"
24+
"github.com/GetSimpl/work"
2525
)
2626

2727
// Make a redis pool
@@ -57,7 +57,7 @@ package main
5757

5858
import (
5959
"github.com/gomodule/redigo/redis"
60-
"github.com/gocraft/work"
60+
"github.com/GetSimpl/work"
6161
"os"
6262
"os/signal"
6363
)
@@ -143,7 +143,7 @@ func (c *Context) Export(job *work.Job) error {
143143
```
144144

145145
## Redis Cluster
146-
If you're attempting to use gocraft/work on a `Redis Cluster` deployment, then you may encounter a `CROSSSLOT Keys in request don't hash to the same slot` error during the execution of the various lua scripts used to manage job data (see [Issue 93](https://github.com/gocraft/work/issues/93#issuecomment-401134340)). The current workaround is to force the keys for an entire `namespace` for a given worker pool on a single node in the cluster using [Redis Hash Tags](https://redis.io/topics/cluster-spec#keys-hash-tags). Using the example above:
146+
If you're attempting to use gocraft/work on a `Redis Cluster` deployment, then you may encounter a `CROSSSLOT Keys in request don't hash to the same slot` error during the execution of the various lua scripts used to manage job data (see [Issue 93](https://github.com/GetSimpl/work/issues/93#issuecomment-401134340)). The current workaround is to force the keys for an entire `namespace` for a given worker pool on a single node in the cluster using [Redis Hash Tags](https://redis.io/topics/cluster-spec#keys-hash-tags). Using the example above:
147147

148148
```go
149149
func main() {
@@ -245,8 +245,8 @@ The web UI provides a view to view the state of your gocraft/work cluster, inspe
245245
246246
Building an installing the binary:
247247
```bash
248-
go get github.com/gocraft/work/cmd/workwebui
249-
go install github.com/gocraft/work/cmd/workwebui
248+
go get github.com/GetSimpl/work/cmd/workwebui
249+
go install github.com/GetSimpl/work/cmd/workwebui
250250
```
251251
252252
Then, you can run it:
@@ -353,7 +353,7 @@ The benches folder contains various benchmark code. In each case, we enqueue 100
353353

354354
| Library | Speed |
355355
| --- | --- |
356-
| [gocraft/work](https://www.github.com/gocraft/work) | **20944 jobs/s** |
356+
| [gocraft/work](https://www.github.com/GetSimpl/work) | **20944 jobs/s** |
357357
| [jrallison/go-workers](https://www.github.com/jrallison/go-workers) | 19945 jobs/s |
358358
| [benmanns/goworker](https://www.github.com/benmanns/goworker) | 10328.5 jobs/s |
359359
| [albrow/jobs](https://www.github.com/albrow/jobs) | 40 jobs/s |
@@ -366,7 +366,7 @@ gocraft offers a toolkit for building web apps. Currently these packages are ava
366366
* [gocraft/web](https://github.com/gocraft/web) - Go Router + Middleware. Your Contexts.
367367
* [gocraft/dbr](https://github.com/gocraft/dbr) - Additions to Go's database/sql for super fast performance and convenience.
368368
* [gocraft/health](https://github.com/gocraft/health) - Instrument your web apps with logging and metrics.
369-
* [gocraft/work](https://github.com/gocraft/work) - Process background jobs in Go.
369+
* [gocraft/work](https://github.com/GetSimpl/work) - Process background jobs in Go.
370370

371371
These packages were developed by the [engineering team](https://eng.uservoice.com) at [UserVoice](https://www.uservoice.com) and currently power much of its infrastructure and tech stack.
372372

benches/bench_work/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"time"
88

99
"github.com/gocraft/health"
10-
"github.com/gocraft/work"
10+
"github.com/GetSimpl/work"
1111
"github.com/gomodule/redigo/redis"
1212
)
1313

cmd/workenqueue/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"os"
88
"time"
99

10-
"github.com/gocraft/work"
10+
"github.com/GetSimpl/work"
1111
"github.com/gomodule/redigo/redis"
1212
)
1313

cmd/workfakedata/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"math/rand"
77
"time"
88

9-
"github.com/gocraft/work"
9+
"github.com/GetSimpl/work"
1010
"github.com/gomodule/redigo/redis"
1111
)
1212

cmd/workwebui/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strconv"
99
"time"
1010

11-
"github.com/gocraft/work/webui"
11+
"github.com/GetSimpl/work/webui"
1212
"github.com/gomodule/redigo/redis"
1313
)
1414

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/gocraft/work
1+
module github.com/GetSimpl/work
22

33
go 1.14
44

@@ -15,7 +15,7 @@ require (
1515
github.com/garyburd/redigo v1.6.0 // indirect
1616
github.com/gocraft/health v0.0.0-20170925182251-8675af27fef0
1717
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b
18-
github.com/gocraft/work v0.5.1
18+
github.com/GetSimpl/work v0.5.1
1919
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b // indirect
2020
github.com/gomodule/redigo v2.0.0+incompatible
2121
github.com/jrallison/go-workers v0.0.0-20180112190529-dbf81d0b75bb

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ github.com/gocraft/health v0.0.0-20170925182251-8675af27fef0 h1:pKjeDsx7HGGbjr7V
2424
github.com/gocraft/health v0.0.0-20170925182251-8675af27fef0/go.mod h1:rWibcVfwbUxi/QXW84U7vNTcIcZFd6miwbt8ritxh/Y=
2525
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b h1:g2Qcs0B+vOQE1L3a7WQ/JUUSzJnHbTz14qkJSqEWcF4=
2626
github.com/gocraft/web v0.0.0-20190207150652-9707327fb69b/go.mod h1:Ag7UMbZNGrnHwaXPJOUKJIVgx4QOWMOWZngrvsN6qak=
27-
github.com/gocraft/work v0.5.1 h1:3bRjMiOo6N4zcRgZWV3Y7uX7R22SF+A9bPTk4xRXr34=
28-
github.com/gocraft/work v0.5.1/go.mod h1:pc3n9Pb5FAESPPGfM0nL+7Q1xtgtRnF8rr/azzhQVlM=
27+
github.com/GetSimpl/work v0.5.1 h1:3bRjMiOo6N4zcRgZWV3Y7uX7R22SF+A9bPTk4xRXr34=
28+
github.com/GetSimpl/work v0.5.1/go.mod h1:pc3n9Pb5FAESPPGfM0nL+7Q1xtgtRnF8rr/azzhQVlM=
2929
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
3030
github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
3131
github.com/gomodule/redigo v2.0.0+incompatible h1:K/R+8tc58AaqLkqG2Ol3Qk+DR/TlNuhuh457pBFPtt0=

webui/webui.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99

1010
"github.com/braintree/manners"
1111
"github.com/gocraft/web"
12-
"github.com/gocraft/work"
13-
"github.com/gocraft/work/webui/internal/assets"
12+
"github.com/GetSimpl/work"
13+
"github.com/GetSimpl/work/webui/internal/assets"
1414
"github.com/gomodule/redigo/redis"
1515
)
1616

webui/webui_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"testing"
1010
"time"
1111

12-
"github.com/gocraft/work"
12+
"github.com/GetSimpl/work"
1313
"github.com/gomodule/redigo/redis"
1414
"github.com/stretchr/testify/assert"
1515
)

worker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ type emptyCtx struct{}
595595
// The pool is Stop()ped while jobs are still going on. Tests that the
596596
// pool processing is really stopped and that it's not first completely
597597
// drained before returning.
598-
// https://github.com/gocraft/work/issues/24
598+
// https://github.com/GetSimpl/work/issues/24
599599
func TestWorkerPoolStop(t *testing.T) {
600600
ns := "will_it_end"
601601
pool := newTestPool(":6379")

0 commit comments

Comments
 (0)