Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
01b5ae26
Commit
01b5ae26
authored
5 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
fix: clear timeouts before existing
Closes #3644
parent
d6652971
No related branches found
Branches containing commit
Tags
37.434.3
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/manager/travis/package.js
+4
-1
4 additions, 1 deletion
lib/manager/travis/package.js
lib/workers/global/index.js
+4
-0
4 additions, 0 deletions
lib/workers/global/index.js
with
8 additions
and
1 deletion
lib/manager/travis/package.js
+
4
−
1
View file @
01b5ae26
...
...
@@ -50,7 +50,10 @@ for (const data of Object.values(nodeJsSchedule)) {
const
offsetmilliseconds
=
1
+
fieldDate
.
getTime
()
-
initTime
.
getTime
();
// istanbul ignore if
if
(
offsetmilliseconds
<
10000000000
)
{
setTimeout
(
generatePolicies
,
offsetmilliseconds
);
global
.
renovateTimers
=
global
.
renovateTimers
||
[];
global
.
renovateTimers
.
push
(
setTimeout
(
generatePolicies
,
offsetmilliseconds
)
);
}
}
}
...
...
This diff is collapsed.
Click to expand it.
lib/workers/global/index.js
+
4
−
0
View file @
01b5ae26
...
...
@@ -64,6 +64,10 @@ async function start() {
await
repositoryWorker
.
renovateRepository
(
repoConfig
);
}
logger
.
setMeta
({});
// istanbul ignore if
if
(
global
.
renovateTimers
)
{
global
.
renovateTimers
.
forEach
(
timer
=>
clearTimeout
(
timer
));
}
logger
.
info
(
`
${
appName
}
finished`
);
}
catch
(
err
)
/* istanbul ignore next */
{
logger
.
fatal
({
err
},
`Fatal error:
${
err
.
message
}
`
);
...
...
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