Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
84
Issues
84
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Video AG Infrastruktur
website
Commits
492e0238
Commit
492e0238
authored
Nov 27, 2017
by
Julian Rother
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.fsmpi.rwth-aachen.de:videoagwebsite/videoagwebsite
parents
0aefcd3f
3d4fe94f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
666 additions
and
2 deletions
+666
-2
LICENSE
LICENSE
+661
-0
scheduler.py
scheduler.py
+3
-0
templates/jobs_overview.html
templates/jobs_overview.html
+2
-2
No files found.
LICENSE
0 → 100644
View file @
492e0238
This diff is collapsed.
Click to expand it.
scheduler.py
View file @
492e0238
...
...
@@ -17,11 +17,14 @@ def sched_func(delay, priority=0, firstdelay=None, args=[], kargs={}):
def
sched_wrapper
():
with
app
.
test_request_context
():
try
:
if
config
.
get
(
'DEBUG'
,
False
):
print
(
"Scheduler: started {} (frequency 1/{}s)"
.
format
(
func
.
__name__
,
delay
))
func
(
*
args
,
**
kargs
)
except
Exception
:
traceback
.
print_exc
()
scheduler
.
enter
(
delay
,
priority
,
sched_wrapper
)
scheduler
.
enter
(
firstdelay
,
priority
,
sched_wrapper
)
print
(
"Scheduler: registered {} (frequency 1/{}s, start delay: {}s)"
.
format
(
func
.
__name__
,
delay
,
firstdelay
))
return
func
return
wrapper
...
...
templates/jobs_overview.html
View file @
492e0238
...
...
@@ -52,9 +52,9 @@
{% for i in worker %}
{% set td = (datetime.now()-(i.last_ping) ) %}
{% if td
<
timedelta
(seconds=
1
0)
%}
{% if td
<
timedelta
(seconds=
3
0)
%}
<
tr
class=
"success"
>
{% elif td
<
timedelta
(seconds=
3
0)
%}
{% elif td
<
timedelta
(seconds=
6
0)
%}
<
tr
class=
"warning"
>
{% else %}
<tr
class=
"danger"
>
...
...
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