Skip to content

Commit

Permalink
remove redis lock as it has its own repo now (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnRoesler authored May 11, 2023
1 parent dad18e0 commit ac9c50d
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 567 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/go_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
matrix:
go-version:
- "1.20"
- "1.19"
- "1.18"
- "1.17"
- "1.16"
name: lint and test
runs-on: ubuntu-latest
steps:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ There are several options available to restrict how jobs run:

## Distributed Locker Implementations

- Redis: [redislock](lockers/redislock/README.md) `go get github.com/go-co-op/gocron/lockers/redislock`
- Redis: [redislock](https://github.com/go-co-op/gocron-redis-lock) `go get github.com/go-co-op/gocron-redis-lock`

## Tags

Expand Down Expand Up @@ -125,7 +125,7 @@ s.RunByTag("tag")

- Q: I'm running multiple pods on a distributed environment. How can I make a job not run once per pod causing duplication?
- We recommend using your own lock solution within the jobs themselves (you could use [Redis](https://redis.io/topics/distlock), for example)
- A2: Use the scheduler option `WithDistributedLocker` and either use an implemented [backend](lockers)
- A2: Use the scheduler option `WithDistributedLocker` and either use an implemented [backend](#distributed-locker-implementations)
or implement your own and contribute it back in a PR!

- Q: I've removed my job from the scheduler, but how can I stop a long-running job that has already been triggered?
Expand Down
46 changes: 0 additions & 46 deletions lockers/redislock/README.md

This file was deleted.

7 changes: 0 additions & 7 deletions lockers/redislock/docker-compose.yml

This file was deleted.

54 changes: 0 additions & 54 deletions lockers/redislock/go.mod

This file was deleted.

Loading

0 comments on commit ac9c50d

Please sign in to comment.