Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
videoag
backend_api
Commits
39e2e380
Commit
39e2e380
authored
7 years ago
by
Julian Rother
Browse files
Options
Downloads
Patches
Plain Diff
Fixed imports broken by
f5988495
parent
c17db676
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
scheduler.py
+3
-2
3 additions, 2 deletions
scheduler.py
server.py
+0
-1
0 additions, 1 deletion
server.py
with
3 additions
and
3 deletions
scheduler.py
+
3
−
2
View file @
39e2e380
from
server
import
*
from
server
import
*
import
threading
import
threading
import
sched
import
sched
from
time
import
sleep
scheduler
=
sched
.
scheduler
()
scheduler
=
sched
.
scheduler
()
def
run_scheduler
():
def
run_scheduler
():
time
.
sleep
(
1
)
# UWSGI does weird things on startup
sleep
(
1
)
# UWSGI does weird things on startup
while
True
:
while
True
:
scheduler
.
run
()
scheduler
.
run
()
time
.
sleep
(
10
)
sleep
(
10
)
def
sched_func
(
delay
,
priority
=
0
,
firstdelay
=
None
,
args
=
[],
kargs
=
{}):
def
sched_func
(
delay
,
priority
=
0
,
firstdelay
=
None
,
args
=
[],
kargs
=
{}):
if
firstdelay
==
None
:
if
firstdelay
==
None
:
...
...
This diff is collapsed.
Click to expand it.
server.py
+
0
−
1
View file @
39e2e380
...
@@ -14,7 +14,6 @@ import math
...
@@ -14,7 +14,6 @@ import math
import
locale
import
locale
import
base64
import
base64
import
json
import
json
import
time
locale
.
setlocale
(
locale
.
LC_ALL
,
'
de_DE.utf8
'
)
locale
.
setlocale
(
locale
.
LC_ALL
,
'
de_DE.utf8
'
)
...
...
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