OpenGeodeWeb-Back 5.6.5rc1__py3-none-any.whl → 5.6.6rc2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- opengeodeweb_back/app_config.py +0 -1
- opengeodeweb_back/utils_functions.py +13 -10
- {opengeodeweb_back-5.6.5rc1.dist-info → opengeodeweb_back-5.6.6rc2.dist-info}/METADATA +10 -11
- {opengeodeweb_back-5.6.5rc1.dist-info → opengeodeweb_back-5.6.6rc2.dist-info}/RECORD +7 -7
- {opengeodeweb_back-5.6.5rc1.dist-info → opengeodeweb_back-5.6.6rc2.dist-info}/WHEEL +0 -0
- {opengeodeweb_back-5.6.5rc1.dist-info → opengeodeweb_back-5.6.6rc2.dist-info}/licenses/LICENSE +0 -0
- {opengeodeweb_back-5.6.5rc1.dist-info → opengeodeweb_back-5.6.6rc2.dist-info}/top_level.txt +0 -0
opengeodeweb_back/app_config.py
CHANGED
@@ -43,7 +43,6 @@ def teardown_request(current_app):
|
|
43
43
|
|
44
44
|
|
45
45
|
def kill_task(current_app):
|
46
|
-
DESKTOP_APP = bool(current_app.config.get("DESKTOP_APP"))
|
47
46
|
REQUEST_COUNTER = int(current_app.config.get("REQUEST_COUNTER"))
|
48
47
|
LAST_PING_TIME = float(current_app.config.get("LAST_PING_TIME"))
|
49
48
|
LAST_REQUEST_TIME = float(current_app.config.get("LAST_REQUEST_TIME"))
|
@@ -52,15 +51,19 @@ def kill_task(current_app):
|
|
52
51
|
minutes_since_last_request = (current_time - LAST_REQUEST_TIME) / 60
|
53
52
|
minutes_since_last_ping = (current_time - LAST_PING_TIME) / 60
|
54
53
|
|
55
|
-
if
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
54
|
+
if REQUEST_COUNTER > 0:
|
55
|
+
return
|
56
|
+
if MINUTES_BEFORE_TIMEOUT == 0:
|
57
|
+
return
|
58
|
+
if minutes_since_last_ping > MINUTES_BEFORE_TIMEOUT:
|
59
|
+
kill_server()
|
60
|
+
if minutes_since_last_request > MINUTES_BEFORE_TIMEOUT:
|
61
|
+
kill_server()
|
62
|
+
|
63
|
+
|
64
|
+
def kill_server():
|
65
|
+
print("Server timed out due to inactivity, shutting down...", flush=True)
|
66
|
+
os._exit(0)
|
64
67
|
|
65
68
|
|
66
69
|
def versions(list_packages: list):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: OpenGeodeWeb-Back
|
3
|
-
Version: 5.6.
|
3
|
+
Version: 5.6.6rc2
|
4
4
|
Summary: OpenGeodeWeb-Back is an open source framework that proposes handy python functions and wrappers for the OpenGeode ecosystem
|
5
5
|
Author-email: Geode-solutions <team-web@geode-solutions.com>
|
6
6
|
Project-URL: Homepage, https://github.com/Geode-solutions/OpenGeodeWeb-Back
|
@@ -15,30 +15,29 @@ Requires-Dist: asgiref==3.8.1
|
|
15
15
|
Requires-Dist: attrs==25.3.0
|
16
16
|
Requires-Dist: blinker==1.9.0
|
17
17
|
Requires-Dist: click==8.1.8
|
18
|
-
Requires-Dist: colorama==0.4.6
|
19
18
|
Requires-Dist: flask[async]==3.1.0
|
20
19
|
Requires-Dist: flask-cors==5.0.1
|
21
|
-
Requires-Dist: geode-background==9.1.
|
22
|
-
Requires-Dist: geode-common==33.7.
|
23
|
-
Requires-Dist: geode-conversion==6.2.
|
24
|
-
Requires-Dist: geode-explicit==6.1.
|
25
|
-
Requires-Dist: geode-implicit==3.7.
|
26
|
-
Requires-Dist: geode-numerics==6.0.
|
27
|
-
Requires-Dist: geode-simplex==9.2.
|
20
|
+
Requires-Dist: geode-background==9.1.5
|
21
|
+
Requires-Dist: geode-common==33.7.2
|
22
|
+
Requires-Dist: geode-conversion==6.2.7
|
23
|
+
Requires-Dist: geode-explicit==6.1.35
|
24
|
+
Requires-Dist: geode-implicit==3.7.4
|
25
|
+
Requires-Dist: geode-numerics==6.0.3
|
26
|
+
Requires-Dist: geode-simplex==9.2.5
|
28
27
|
Requires-Dist: geode-viewables==3.0.12
|
29
28
|
Requires-Dist: itsdangerous==2.2.0
|
30
29
|
Requires-Dist: jinja2==3.1.6
|
31
30
|
Requires-Dist: jsonschema==4.23.0
|
32
31
|
Requires-Dist: jsonschema-specifications==2024.10.1
|
33
32
|
Requires-Dist: markupsafe==3.0.2
|
34
|
-
Requires-Dist: opengeode-core==15.17.
|
33
|
+
Requires-Dist: opengeode-core==15.17.8
|
35
34
|
Requires-Dist: opengeode-geosciences==8.4.3
|
36
35
|
Requires-Dist: opengeode-geosciencesio==5.3.8
|
37
36
|
Requires-Dist: opengeode-inspector==6.3.11
|
38
37
|
Requires-Dist: opengeode-io==7.1.5
|
39
38
|
Requires-Dist: referencing==0.36.2
|
40
39
|
Requires-Dist: rpds-py==0.24.0
|
41
|
-
Requires-Dist: typing-extensions==4.13.
|
40
|
+
Requires-Dist: typing-extensions==4.13.2
|
42
41
|
Requires-Dist: werkzeug==3.1.3
|
43
42
|
Dynamic: license-file
|
44
43
|
|
@@ -1,9 +1,9 @@
|
|
1
1
|
opengeodeweb_back/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
opengeodeweb_back/app_config.py,sha256=
|
2
|
+
opengeodeweb_back/app_config.py,sha256=gJfYxDJOa_PYLqjqgdXacp3W3F109uujE9LGPvzHOkc,728
|
3
3
|
opengeodeweb_back/geode_functions.py,sha256=ei0eI3pWMqzrhgI5ta5HtnoRoNs-GCqtkXe5arAObZE,8906
|
4
4
|
opengeodeweb_back/geode_objects.py,sha256=4XH0TGujHw3LIBIzPLBa2eqxyfjVLo9hywKYxXEp-zU,24372
|
5
5
|
opengeodeweb_back/test_utils.py,sha256=gvRPOzin4nI5TKuB-AFgIxcekTOYM4h7yUYk0tYIZFI,820
|
6
|
-
opengeodeweb_back/utils_functions.py,sha256=
|
6
|
+
opengeodeweb_back/utils_functions.py,sha256=otjE6XAZ_KXbaPipad3ivqFsTGGr8lqz1AhqPWgeE9g,4096
|
7
7
|
opengeodeweb_back/routes/blueprint_routes.py,sha256=oDhoXIX5XIaaRa-_CEphwRmIxhuUYOS2spB2i1zOc8k,13818
|
8
8
|
opengeodeweb_back/routes/schemas/allowed_files.json,sha256=pRsGf39LiJpl3zEGLg4IqvRtm7iUx3Wq4Tb4tSFXGV0,234
|
9
9
|
opengeodeweb_back/routes/schemas/allowed_objects.json,sha256=oy_YYpFzgDICx-keWqNIUpQM3zzB4eE3H6mPNxH9rWc,361
|
@@ -19,8 +19,8 @@ opengeodeweb_back/routes/schemas/save_viewable_file.json,sha256=pvvEdaC7bNASPMrl
|
|
19
19
|
opengeodeweb_back/routes/schemas/texture_coordinates.json,sha256=m0EqxlvKojXVxK5Csucodu3rq1YMVJPwXJN_Wreb3qc,355
|
20
20
|
opengeodeweb_back/routes/schemas/upload_file.json,sha256=LJ3U3L5ApKuQDVFIpVT_y2alq4HW_suTvZ3HUucNbhg,219
|
21
21
|
opengeodeweb_back/routes/schemas/vertex_attribute_names.json,sha256=bya9KGtTmHFWjD-ur0_0UAY2yf3KkMeuNrk6E1UkjLM,358
|
22
|
-
opengeodeweb_back-5.6.
|
23
|
-
opengeodeweb_back-5.6.
|
24
|
-
opengeodeweb_back-5.6.
|
25
|
-
opengeodeweb_back-5.6.
|
26
|
-
opengeodeweb_back-5.6.
|
22
|
+
opengeodeweb_back-5.6.6rc2.dist-info/licenses/LICENSE,sha256=LoTB-aqQvzTGxoTRXNnhNV0LKiqdk2bQv6MB34l8zkI,1079
|
23
|
+
opengeodeweb_back-5.6.6rc2.dist-info/METADATA,sha256=0XR7xQQffQT7-T12HiX5f-39qnFWGa3ssRccMrbY5mE,3081
|
24
|
+
opengeodeweb_back-5.6.6rc2.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
25
|
+
opengeodeweb_back-5.6.6rc2.dist-info/top_level.txt,sha256=tN1FZeLIVBrdja2-pbmhg5-tK-JILmmT9OeIBnhlUrQ,18
|
26
|
+
opengeodeweb_back-5.6.6rc2.dist-info/RECORD,,
|
File without changes
|
{opengeodeweb_back-5.6.5rc1.dist-info → opengeodeweb_back-5.6.6rc2.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|