Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
IRON xiang
mail_manager_xjc
Commits
db8b7d8c
Commit
db8b7d8c
authored
2 months ago
by
IRON xiang
Browse files
Options
Download
Email Patches
Plain Diff
添加时间区间判定函数 should_script_run
parent
3aa5bb1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mail_manager/mail_manager.py
mail_manager/mail_manager.py
+1
-1
No files found.
mail_manager/mail_manager.py
View file @
db8b7d8c
...
...
@@ -175,7 +175,7 @@ while True:
# zmail.show(mail)
LOG
.
info
(
'sleep 1800s'
)
t
=
1800
+
random
.
random
()
*
500
#
t = 1800 + random.random() * 500
# t = 20
time
.
sleep
(
t
)
# 每5分钟检查一次
if
not
should_script_run
():
...
...
This diff is collapsed.
Click to expand it.
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