dwf 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -3
- data/dwf.gemspec +1 -1
- data/lib/dwf/configuration.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d37bac690df59157001462d6017a8a63d3956a280689de789d9a99163a476832
|
4
|
+
data.tar.gz: 935d76e99ff5ca109f00be80c01950c20272969f556fc70d0e1ef5c026c024e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c105d178cd44f12577ee9eeed5065768a23adc508da7d686e50c46d26e4eed9c160dc71b10942ab8041e38f6c732384742f40fa9d3076e0a924fbdfb1cd62845
|
7
|
+
data.tar.gz: ad9c6f1041f092847364e91408887be311435be62e0502ab54f2b408c92fc598a879792eabb00c81b05d5c97fb37ea4a19136765d54b0d4efe9dbdb9ad2f64b5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# Installation
|
5
5
|
## 1. Add `dwf` to Gemfile
|
6
6
|
```ruby
|
7
|
-
gem 'dwf', '~> 0.1.
|
7
|
+
gem 'dwf', '~> 0.1.9'
|
8
8
|
```
|
9
9
|
## 2. Execute flow
|
10
10
|
### Declare jobs
|
@@ -72,13 +72,14 @@ D Finished
|
|
72
72
|
```
|
73
73
|
|
74
74
|
# Config redis and default queue
|
75
|
+
`dwf` uses redis as the key value stograge through [redis-rb](https://github.com/redis/redis-rb), So you can pass redis configuration by `redis_opts`
|
75
76
|
```ruby
|
76
77
|
Dwf.config do |config|
|
77
78
|
SENTINELS = [
|
78
79
|
{ host: "127.0.0.1", port: 26380 },
|
79
80
|
{ host: "127.0.0.1", port: 26381 }
|
80
81
|
]
|
81
|
-
config.
|
82
|
+
config.redis_opts = { host: 'mymaster', sentinels: SENTINELS, role: :master }
|
82
83
|
config.namespace = 'dwf'
|
83
84
|
end
|
84
85
|
```
|
@@ -123,8 +124,8 @@ end
|
|
123
124
|
- [x] Support with build-in callback
|
124
125
|
- [x] Add github workflow
|
125
126
|
- [x] Redis configurable
|
127
|
+
- [x] Pinelining
|
126
128
|
- [ ] [WIP] Test
|
127
|
-
- [ ] Transfer output through each node
|
128
129
|
- [ ] Support [Resque](https://github.com/resque/resque)
|
129
130
|
|
130
131
|
# References
|
data/dwf.gemspec
CHANGED
data/lib/dwf/configuration.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dwf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- dthtien
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|