diff options
author | Valery Piashchynski <[email protected]> | 2021-08-14 20:29:10 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2021-08-14 20:29:10 +0300 |
commit | 5a56dc33b9903e9d96e7c87067bd273ad2e68f8a (patch) | |
tree | aa5e6020d18fd42ee29ac3cf62ad41d4f18795c4 /pkg | |
parent | 6860326fa5d8f37f6e954da07fd53b9261731227 (diff) |
Update broadcast tests, add redis flusing. Initial impl of the job
drivers state.
Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'pkg')
-rwxr-xr-x | pkg/pool/supervisor_pool.go | 2 | ||||
-rw-r--r-- | pkg/state/job/state.go | 6 | ||||
-rw-r--r-- | pkg/state/process/state.go (renamed from pkg/process/state.go) | 0 |
3 files changed, 7 insertions, 1 deletions
diff --git a/pkg/pool/supervisor_pool.go b/pkg/pool/supervisor_pool.go index bdaeade1..e6b2bd7c 100755 --- a/pkg/pool/supervisor_pool.go +++ b/pkg/pool/supervisor_pool.go @@ -8,7 +8,7 @@ import ( "github.com/spiral/errors" "github.com/spiral/roadrunner/v2/pkg/events" "github.com/spiral/roadrunner/v2/pkg/payload" - "github.com/spiral/roadrunner/v2/pkg/process" + "github.com/spiral/roadrunner/v2/pkg/state/process" "github.com/spiral/roadrunner/v2/pkg/worker" ) diff --git a/pkg/state/job/state.go b/pkg/state/job/state.go new file mode 100644 index 00000000..e5b142b5 --- /dev/null +++ b/pkg/state/job/state.go @@ -0,0 +1,6 @@ +package job + +type State struct { + Queue string + Active int64 +} diff --git a/pkg/process/state.go b/pkg/state/process/state.go index bfc3a287..bfc3a287 100644 --- a/pkg/process/state.go +++ b/pkg/state/process/state.go |