Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
05913f59
Commit
05913f59
authored
Sep 12, 2020
by
蒋勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
9b8be01a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
taskexecutor/app/base/db/task/monitor/monitorTask.js
+1
-1
No files found.
taskexecutor/app/base/db/task/monitor/monitorTask.js
View file @
05913f59
...
@@ -24,7 +24,7 @@ class MonitorTask extends TaskBase {
...
@@ -24,7 +24,7 @@ class MonitorTask extends TaskBase {
let
mtype
=
tnameparams
[
1
].
trim
()
let
mtype
=
tnameparams
[
1
].
trim
()
let
pvalue
=
Number
(
tnameparams
[
2
].
trim
())
let
pvalue
=
Number
(
tnameparams
[
2
].
trim
())
if
(
mtype
==
"i"
)
{
//每几分钟执行一次
if
(
mtype
==
"i"
)
{
//每几分钟执行一次
console
.
log
(
taskName
,
postMinute
,
"
xxxxxxxxxxxxxxxxxxxxxxx
"
)
console
.
log
(
taskName
,
postMinute
,
"
流逝的时间
"
)
//如果流失的时间大于循环调度时间,则报异常到丁丁
//如果流失的时间大于循环调度时间,则报异常到丁丁
if
(
postMinute
>
pvalue
)
{
if
(
postMinute
>
pvalue
)
{
this
.
sendDing
(
tname
+
"可能失联啦...请检查"
)
this
.
sendDing
(
tname
+
"可能失联啦...请检查"
)
...
...
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