EOX GitLab Instance
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ESA
PRISM
VS
Commits
a072bfd1
Commit
a072bfd1
authored
5 years ago
by
Fabian Schindler
Browse files
Options
Downloads
Patches
Plain Diff
Cleanup. Fixing env var name for preprocess queue
parent
63e201b3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ingestor/app.py
+2
-7
2 additions, 7 deletions
ingestor/app.py
with
2 additions
and
7 deletions
ingestor/app.py
+
2
−
7
View file @
a072bfd1
...
...
@@ -30,12 +30,12 @@ import os
import
logging
import
logging.config
import
json
from
datetime
import
datetime
from
flask
import
Flask
,
request
,
Response
import
redis
from
ingestor.browse_report
import
parse_browse_report
from
ingestor.util
import
converter
application
=
Flask
(
__name__
)
...
...
@@ -68,11 +68,6 @@ logging.config.dictConfig({
}
})
def
converter
(
o
):
if
isinstance
(
o
,
datetime
):
return
o
.
isoformat
()
client
=
redis
.
Redis
(
host
=
os
.
environ
[
'
REDIS_HOST
'
],
port
=
int
(
os
.
environ
.
get
(
'
REDIS_PORT
'
,
'
6379
'
)),
...
...
@@ -80,7 +75,7 @@ client = redis.Redis(
decode_responses
=
True
,
)
queue_name
=
os
.
environ
[
'
REDIS_QUEUE_KEY
'
]
queue_name
=
os
.
environ
[
'
REDIS_
PREPROCESS_MD_
QUEUE_KEY
'
]
@application.route
(
'
/
'
,
methods
=
[
'
POST
'
])
def
ingest
():
...
...
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