Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
naiades
naiades-platform-poc
Commits
8826b276
Commit
8826b276
authored
Sep 22, 2020
by
Federico Sismondi
Browse files
Minor Update() for watering use case data dumping to filesystem
parent
ba7a170b
Changes
2
Hide whitespace changes
Inline
Side-by-side
dca-carouge-watering/app.py
View file @
8826b276
...
...
@@ -214,6 +214,7 @@ def _forward_reading_to_ctx_broker():
def
_dump_raw_data_to_filesystem
():
app
.
logger
.
info
(
'dumping request to FS'
)
try
:
filepath
=
os
.
path
.
join
(
COLLECTION_DIR
,
'{}.json'
.
format
(
int
(
time
.
time
())))
with
open
(
filepath
,
encoding
=
'utf-8'
,
mode
=
'w'
)
as
f
:
...
...
docker-compose.yml
View file @
8826b276
...
...
@@ -290,7 +290,7 @@ services:
environment
:
-
LC_ALL=C.UTF-8
-
LANG=C.UTF-8
#
- POST_DATA_PERIOD=
36
00 #
3600sec = 1hour
-
POST_DATA_PERIOD=
9
00
#
15mins
-
ORION_HOST=orion
-
COLLECTION_DIR=/code/raw_data
volumes
:
...
...
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