simo 2.5.6__py3-none-any.whl → 2.5.7__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.
Potentially problematic release.
This version of simo might be problematic. Click here for more details.
- simo/core/management/_hub_template/hub/supervisor.conf +32 -5
- simo/users/__pycache__/api.cpython-38.pyc +0 -0
- simo/users/api.py +2 -1
- {simo-2.5.6.dist-info → simo-2.5.7.dist-info}/METADATA +1 -1
- {simo-2.5.6.dist-info → simo-2.5.7.dist-info}/RECORD +9 -9
- {simo-2.5.6.dist-info → simo-2.5.7.dist-info}/LICENSE.md +0 -0
- {simo-2.5.6.dist-info → simo-2.5.7.dist-info}/WHEEL +0 -0
- {simo-2.5.6.dist-info → simo-2.5.7.dist-info}/entry_points.txt +0 -0
- {simo-2.5.6.dist-info → simo-2.5.7.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,24 @@
|
|
|
1
|
+
# execute this on every program start
|
|
2
|
+
[program:simo-start]
|
|
3
|
+
directory={{ project_dir }}/hub/
|
|
4
|
+
command={{ venv_path }}/python manage.py on_http_start
|
|
5
|
+
process_name=%(program_name)s
|
|
6
|
+
user=root
|
|
7
|
+
stdout_logfile=/var/log/simo/start.log
|
|
8
|
+
stdout_logfile_maxbytes=1MB
|
|
9
|
+
stdout_logfile_backups=3
|
|
10
|
+
redirect_stderr=true
|
|
11
|
+
autostart=true
|
|
12
|
+
autorestart=false
|
|
13
|
+
stopsignal=INT
|
|
14
|
+
stopwaitsecs=15
|
|
15
|
+
killasgroup=true
|
|
16
|
+
|
|
17
|
+
|
|
1
18
|
# using gunicorn for regular requests
|
|
2
19
|
[program:simo-gunicorn]
|
|
3
20
|
directory={{ project_dir }}/hub/
|
|
4
|
-
command
|
|
21
|
+
command={{ venv_path }}/gunicorn --workers 4 --timeout 120 --bind unix:/tmp/gunicorn.sock wsgi:application
|
|
5
22
|
process_name=%(program_name)s
|
|
6
23
|
user=root
|
|
7
24
|
stdout_logfile=/var/log/simo/gunicorn.log
|
|
@@ -10,9 +27,9 @@ stdout_logfile_backups=3
|
|
|
10
27
|
redirect_stderr=true
|
|
11
28
|
autostart=true
|
|
12
29
|
autorestart=true
|
|
13
|
-
stopasgroup=true
|
|
14
|
-
killasgroup=true
|
|
15
30
|
stopsignal=INT
|
|
31
|
+
stopwaitsecs=15
|
|
32
|
+
killasgroup=true
|
|
16
33
|
|
|
17
34
|
|
|
18
35
|
# using daphne for socket connections routed to /ws/ on nginx.conf
|
|
@@ -27,7 +44,8 @@ stdout_logfile_backups=3
|
|
|
27
44
|
redirect_stderr=true
|
|
28
45
|
autostart=true
|
|
29
46
|
autorestart=true
|
|
30
|
-
|
|
47
|
+
stopsignal=INT
|
|
48
|
+
stopwaitsecs=15
|
|
31
49
|
killasgroup=true
|
|
32
50
|
|
|
33
51
|
|
|
@@ -43,9 +61,11 @@ stdout_logfile_backups=3
|
|
|
43
61
|
redirect_stderr=true
|
|
44
62
|
autostart=true
|
|
45
63
|
autorestart=true
|
|
46
|
-
|
|
64
|
+
stopsignal=INT
|
|
65
|
+
stopwaitsecs=15
|
|
47
66
|
killasgroup=true
|
|
48
67
|
|
|
68
|
+
|
|
49
69
|
[program:simo-celery-beat]
|
|
50
70
|
directory={{ project_dir }}/hub/
|
|
51
71
|
command={{ venv_path }}/celery -A celeryc.celery_app beat -l info --pidfile="/var/run/celerybeat.pid"
|
|
@@ -57,6 +77,10 @@ stdout_logfile_backups=3
|
|
|
57
77
|
redirect_stderr=true
|
|
58
78
|
autostart=true
|
|
59
79
|
autorestart=true
|
|
80
|
+
stopsignal=INT
|
|
81
|
+
stopwaitsecs=15
|
|
82
|
+
killasgroup=true
|
|
83
|
+
|
|
60
84
|
|
|
61
85
|
[program:simo-celery-worker]
|
|
62
86
|
directory={{ project_dir }}/hub/
|
|
@@ -69,3 +93,6 @@ stdout_logfile_backups=3
|
|
|
69
93
|
redirect_stderr=true
|
|
70
94
|
autostart=true
|
|
71
95
|
autorestart=true
|
|
96
|
+
stopsignal=INT
|
|
97
|
+
stopwaitsecs=15
|
|
98
|
+
killasgroup=true
|
|
Binary file
|
simo/users/api.py
CHANGED
|
@@ -219,6 +219,7 @@ class UserDeviceReport(InstanceMixin, viewsets.GenericViewSet):
|
|
|
219
219
|
).exclude(id=user_device.id).update(is_primary=False)
|
|
220
220
|
user_device.save()
|
|
221
221
|
|
|
222
|
+
speed_kmh = 0
|
|
222
223
|
for iu in request.user.instance_roles.filter(is_active=True):
|
|
223
224
|
if location:
|
|
224
225
|
iu.at_home = haversine_distance(
|
|
@@ -226,7 +227,7 @@ class UserDeviceReport(InstanceMixin, viewsets.GenericViewSet):
|
|
|
226
227
|
) < dynamic_settings['users__at_home_radius']
|
|
227
228
|
elif not relay:
|
|
228
229
|
iu.at_home = True
|
|
229
|
-
|
|
230
|
+
|
|
230
231
|
if user_device.last_seen_location and iu.last_seen_location \
|
|
231
232
|
and iu.last_seen > timezone.now() - datetime.timedelta(seconds=30):
|
|
232
233
|
if user_device.last_seen_location == iu.last_seen_location:
|
|
@@ -153,7 +153,7 @@ simo/core/management/_hub_template/hub/celeryc.py,sha256=3ksDXftIZKJ4Cq9WNKJERdZ
|
|
|
153
153
|
simo/core/management/_hub_template/hub/manage.py,sha256=PNNlw3EVeIJDgkG0l-klqoxsKWfTYWG9jzRG0upmAaI,620
|
|
154
154
|
simo/core/management/_hub_template/hub/nginx.conf,sha256=40hvXL42MeiqqkLURNcDQsRudv1dNFLJnvb2-Y3RCkk,2394
|
|
155
155
|
simo/core/management/_hub_template/hub/settings.py,sha256=4QhvhbtLRxHvAntwqG_qeAAtpDUqKvN4jzw9u3vqff8,361
|
|
156
|
-
simo/core/management/_hub_template/hub/supervisor.conf,sha256=
|
|
156
|
+
simo/core/management/_hub_template/hub/supervisor.conf,sha256=gXgNHJ-zba5RqyjFART5sXKHckWe1kwu8MofUUOW9rQ,2451
|
|
157
157
|
simo/core/management/_hub_template/hub/urls.py,sha256=Ydm-1BkYAzWeEF-MKSDIFf-7aE4qNLPm48-SA51XgJQ,25
|
|
158
158
|
simo/core/management/_hub_template/hub/wsgi.py,sha256=Lo-huLHnMDTxSmMBOodVFMWBls9poddrV2KRzXU0xGo,280
|
|
159
159
|
simo/core/management/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -10433,7 +10433,7 @@ simo/notifications/migrations/__pycache__/0002_notification_instance.cpython-38.
|
|
|
10433
10433
|
simo/notifications/migrations/__pycache__/__init__.cpython-38.pyc,sha256=YMBRHVon2nWDtIUbghckjnC12sIg_ykPWhV5aM0tto4,178
|
|
10434
10434
|
simo/users/__init__.py,sha256=6a7uBpCWB_DR7p54rbHusc0xvi1qfT1ZCCQGb6TiBh8,52
|
|
10435
10435
|
simo/users/admin.py,sha256=Xr7faGeupUKkpo1QLRm84OS63u-5Rf2ir_nVEaAPBZw,6839
|
|
10436
|
-
simo/users/api.py,sha256=
|
|
10436
|
+
simo/users/api.py,sha256=8MpsNiN_Cl8301iEf8KHCmzmmId1mivtSJKEj93y7Uk,12822
|
|
10437
10437
|
simo/users/apps.py,sha256=cq0A8-U1HALEwev0TicgFhr4CAu7Icz8rwq0HfOaL4E,207
|
|
10438
10438
|
simo/users/auth_backends.py,sha256=bBSNXQJ88TRXaQxyh1aETfmOIfiDr08Jnj8rSY9sHDk,4074
|
|
10439
10439
|
simo/users/auto_urls.py,sha256=lcJvteBsbHQMJieZpDz-63tDYejLApqsW3CUnDakd7k,272
|
|
@@ -10450,7 +10450,7 @@ simo/users/utils.py,sha256=1HGSZyHRqQvdJ4RtAiZDg1juvgG8aOlrGXR7CcvsyQc,1886
|
|
|
10450
10450
|
simo/users/views.py,sha256=dOQVvmlHG7ihWKJLFUBcqKOA0UDctlMKR0pTc36JZqg,3487
|
|
10451
10451
|
simo/users/__pycache__/__init__.cpython-38.pyc,sha256=VFoDJE_SKKaPqqYaaBYd1Ndb1hjakkTo_u0EG_XJ1GM,211
|
|
10452
10452
|
simo/users/__pycache__/admin.cpython-38.pyc,sha256=tL8b3f181AjcN2dSsDUPkqjpZziEOtVzI535SbnbDzc,7793
|
|
10453
|
-
simo/users/__pycache__/api.cpython-38.pyc,sha256=
|
|
10453
|
+
simo/users/__pycache__/api.cpython-38.pyc,sha256=OF-wQagTY0z45X7pjO7YiYX1kz4jkYagTpLHq1BUyyY,10411
|
|
10454
10454
|
simo/users/__pycache__/apps.cpython-38.pyc,sha256=dgbWL8CxzzISJQTmq_4IztPJ2UzykNVdqA2Ae1PmeGk,605
|
|
10455
10455
|
simo/users/__pycache__/auth_backends.cpython-38.pyc,sha256=n5nx2QSXNj2idzRcGE6bAagMN-8qxoCs580H1EFZXls,3105
|
|
10456
10456
|
simo/users/__pycache__/auto_urls.cpython-38.pyc,sha256=K-3sz2h-cEitoflSmZk1t0eUg5mQMMGLNZFREVwG7_o,430
|
|
@@ -10551,9 +10551,9 @@ simo/users/templates/invitations/expired_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCe
|
|
|
10551
10551
|
simo/users/templates/invitations/expired_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10552
10552
|
simo/users/templates/invitations/taken_msg.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10553
10553
|
simo/users/templates/invitations/taken_suggestion.html,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10554
|
-
simo-2.5.
|
|
10555
|
-
simo-2.5.
|
|
10556
|
-
simo-2.5.
|
|
10557
|
-
simo-2.5.
|
|
10558
|
-
simo-2.5.
|
|
10559
|
-
simo-2.5.
|
|
10554
|
+
simo-2.5.7.dist-info/LICENSE.md,sha256=M7wm1EmMGDtwPRdg7kW4d00h1uAXjKOT3HFScYQMeiE,34916
|
|
10555
|
+
simo-2.5.7.dist-info/METADATA,sha256=Y_Sk3_hJGmL7ost3eVksAq7lTqoFn1lIlWbas8n6ymQ,1923
|
|
10556
|
+
simo-2.5.7.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
10557
|
+
simo-2.5.7.dist-info/entry_points.txt,sha256=S9PwnUYmTSW7681GKDCxUbL0leRJIaRk6fDQIKgbZBA,135
|
|
10558
|
+
simo-2.5.7.dist-info/top_level.txt,sha256=GmS1hrAbpVqn9OWZh6UX82eIOdRLgYA82RG9fe8v4Rs,5
|
|
10559
|
+
simo-2.5.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|