Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
WP Plugins
Cron-Control
Commits
827fa450
Commit
827fa450
authored
Jul 18, 2017
by
Erick Hitter
Browse files
Update per review feedback
parent
f89d912d
Changes
1
Show whitespace changes
Inline
Side-by-side
runner/runner.go
View file @
827fa450
...
...
@@ -111,7 +111,7 @@ func spawnEventWorkers(queue <-chan event) {
}
func
retrieveSitesPeriodically
(
sites
chan
<-
site
)
{
for
true
{
for
{
siteList
,
err
:=
getSites
()
if
err
!=
nil
{
time
.
Sleep
(
getEventsLoop
)
...
...
@@ -135,7 +135,7 @@ func heartbeat() {
interval
:=
time
.
Duration
(
heartbeatInt
)
*
time
.
Second
time
.
Sleep
(
interval
)
for
true
{
for
{
successCount
,
errCount
:=
atomic
.
LoadUint64
(
&
eventRunSuccessCount
),
atomic
.
LoadUint64
(
&
eventRunErrCount
)
atomic
.
SwapUint64
(
&
eventRunSuccessCount
,
0
)
atomic
.
SwapUint64
(
&
eventRunErrCount
,
0
)
...
...
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