Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
CouchPotatoServer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
CouchPotatoServer
Commits
e92b5d95
Commit
e92b5d95
authored
Dec 30, 2012
by
Ruud
Browse files
Options
Downloads
Patches
Plain Diff
IOLoop cleanup
parent
611a32d1
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
couchpotato/api.py
+5
-2
5 additions, 2 deletions
couchpotato/api.py
couchpotato/runner.py
+1
-1
1 addition, 1 deletion
couchpotato/runner.py
with
6 additions
and
3 deletions
couchpotato/api.py
+
5
−
2
View file @
e92b5d95
from
flask.blueprints
import
Blueprint
from
flask.helpers
import
url_for
from
tornado.ioloop
import
IOLoop
from
tornado.web
import
RequestHandler
,
asynchronous
from
werkzeug.utils
import
redirect
...
...
@@ -11,7 +10,11 @@ api_nonblock = {}
class
NonBlockHandler
(
RequestHandler
):
stoppers
=
[]
def
__init__
(
self
,
application
,
request
,
**
kwargs
):
cls
=
NonBlockHandler
cls
.
stoppers
=
[]
super
(
NonBlockHandler
,
self
).
__init__
(
application
,
request
,
**
kwargs
)
@asynchronous
def
get
(
self
,
route
):
...
...
This diff is collapsed.
Click to expand it.
couchpotato/runner.py
+
1
−
1
View file @
e92b5d95
...
...
@@ -4,7 +4,6 @@ from couchpotato.api import api, NonBlockHandler
from
couchpotato.core.event
import
fireEventAsync
,
fireEvent
from
couchpotato.core.helpers.variable
import
getDataDir
,
tryInt
from
logging
import
handlers
from
tornado.ioloop
import
IOLoop
from
tornado.web
import
Application
,
FallbackHandler
from
tornado.wsgi
import
WSGIContainer
from
werkzeug.contrib.cache
import
FileSystemCache
...
...
@@ -231,6 +230,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
fireEventAsync
(
'
app.load
'
)
# Go go go!
from
tornado.ioloop
import
IOLoop
web_container
=
WSGIContainer
(
app
)
web_container
.
_log
=
_log
loop
=
IOLoop
.
instance
()
...
...
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