Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scheduler
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Odysseus
scheduler
Commits
024a6bf7
Commit
024a6bf7
authored
Jun 04, 2024
by
vicotor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add v2
parent
389f14c3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
Dockerfile
Dockerfile
+1
-1
config.toml
config.toml
+1
-1
v2.go
workerpoper/v2.go
+1
-1
No files found.
Dockerfile
View file @
024a6bf7
...
...
@@ -9,7 +9,7 @@ RUN go env -w CGO_ENABLED="1"
WORKDIR
/build
RUN
git clone https://code.wuban.net.cn/odysseus/scheduler
&&
\
RUN
git clone
-b
sc-v2
https://code.wuban.net.cn/odysseus/scheduler
&&
\
git clone https://code.wuban.net.cn/odysseus/odysseus-protocol
&&
\
git clone https://code.wuban.net.cn/odysseus/cache
&&
\
git clone https://code.wuban.net.cn/odysseus/service-registry
...
...
config.toml
View file @
024a6bf7
...
...
@@ -2,7 +2,7 @@ metrics_port = 28012
routines
=
1
max_nm_update_ex
=
40
dispatch_timeout
=
3
poper_version
=
"v
1
"
poper_version
=
"v
2
"
[mongodb]
url
=
"mongodb://127.0.0.1:27017"
...
...
workerpoper/v2.go
View file @
024a6bf7
...
...
@@ -40,7 +40,7 @@ func (p *poperV2) CanAddBack() bool {
}
func
(
p
*
poperV2
)
AddBack
(
w
types
.
Worker
)
{
// nothing need to do.
}
func
(
p
*
poperV2
)
PopWorker
(
ctx
context
.
Context
,
rdb
*
redis
.
Client
,
task
*
odysseus
.
TaskContent
,
ex
map
[
string
]
bool
)
(
types
.
Worker
,
error
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment