Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Octopus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cosound
Octopus
Commits
bffeecf5
Commit
bffeecf5
authored
8 years ago
by
Jesper Fyhr Knudsen
Browse files
Options
Downloads
Patches
Plain Diff
Remove jobs after finished in standalone mode
parent
d3b30d8c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
octopus-java/octopus-server/src/main/java/com/chaos/octopus/server/OrchestratorImpl.java
+18
-0
18 additions, 0 deletions
.../main/java/com/chaos/octopus/server/OrchestratorImpl.java
with
18 additions
and
0 deletions
octopus-java/octopus-server/src/main/java/com/chaos/octopus/server/OrchestratorImpl.java
+
18
−
0
View file @
bffeecf5
...
...
@@ -62,6 +62,10 @@ public class OrchestratorImpl implements Orchestrator {
sync
.
addSynchronizationTask
(
new
EnqueueJobs
(
leader
,
client
));
sync
.
addSynchronizationTask
(
new
Heartbeat
(
leader
.
_AllocationHandler
,
client
));
}
else
{
sync
.
addSynchronizationTask
(
new
StandaloneUpdateJob
(
queue
));
}
return
leader
;
}
...
...
@@ -135,4 +139,18 @@ public class OrchestratorImpl implements Orchestrator {
public
boolean
getIsRunning
(){
return
_simpleServer
.
getIsRunning
();
}
private
static
class
StandaloneUpdateJob
implements
SynchronizationTask
{
private
ConcurrentJobQueue
queue
;
public
StandaloneUpdateJob
(
ConcurrentJobQueue
queue
)
{
this
.
queue
=
queue
;
}
public
void
action
()
{
for
(
Job
job:
queue
.
popAll
())
{
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment