Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
66bf9147
Unverified
Commit
66bf9147
authored
Sep 25, 2021
by
Paul Saunders
Committed by
GitHub
Sep 24, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: scheduled git sync task (#4481)
Signed-off-by:
Paul Saunders
<
paul.saunders@finbourne.com
>
Co-authored-by:
Rainshaw
<
rxg@live.com
>
parent
1dc97424
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
scheduler.js
server/core/scheduler.js
+3
-3
No files found.
server/core/scheduler.js
View file @
66bf9147
...
...
@@ -32,7 +32,7 @@ class Job {
if
(
this
.
immediate
)
{
this
.
invoke
(
data
)
}
else
{
this
.
queue
(
data
)
this
.
en
queue
(
data
)
}
}
...
...
@@ -41,7 +41,7 @@ class Job {
*
* @param {Object} data Job Data
*/
queue
(
data
)
{
en
queue
(
data
)
{
this
.
timeout
=
setTimeout
(
this
.
invoke
.
bind
(
this
),
this
.
schedule
.
asMilliseconds
(),
data
)
}
...
...
@@ -85,7 +85,7 @@ class Job {
WIKI
.
logger
.
warn
(
err
)
}
if
(
this
.
repeat
&&
this
.
queue
.
jobs
.
includes
(
this
))
{
this
.
queue
(
data
)
this
.
en
queue
(
data
)
}
else
{
this
.
stop
().
catch
(()
=>
{})
}
...
...
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