django-restit 4.2.105__py3-none-any.whl → 4.2.106__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.
- {django_restit-4.2.105.dist-info → django_restit-4.2.106.dist-info}/METADATA +1 -1
- {django_restit-4.2.105.dist-info → django_restit-4.2.106.dist-info}/RECORD +6 -6
- metrics/periodic.py +0 -10
- taskqueue/periodic.py +9 -0
- {django_restit-4.2.105.dist-info → django_restit-4.2.106.dist-info}/LICENSE.md +0 -0
- {django_restit-4.2.105.dist-info → django_restit-4.2.106.dist-info}/WHEEL +0 -0
@@ -352,7 +352,7 @@ metrics/migrations/0004_eodmetrics.py,sha256=Ky6ZVMZqa0F_SUp_QFWY7ZKBgVhy9CS4wZc
|
|
352
352
|
metrics/migrations/0005_alter_metrics_v1_alter_metrics_v10_alter_metrics_v11_and_more.py,sha256=pmwJfpPJ1RUX_CqM66l6vvV-nrAUPo_GIan0Pc9mQHs,2358
|
353
353
|
metrics/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
354
354
|
metrics/models.py,sha256=lD9nVzfwdav70ENulqJ8rE8Ui8EWlzdVp05rg8bAlMA,13444
|
355
|
-
metrics/periodic.py,sha256=
|
355
|
+
metrics/periodic.py,sha256=VmL0YG05D6k5fcNsF4QqPEU-BBPbZXjbOrp3b8EHZ-U,651
|
356
356
|
metrics/providers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
357
357
|
metrics/providers/aws.py,sha256=vhz0w6xE_V_V050g3V2uKEUPRIaI_o48MFkfsHjLzQU,8307
|
358
358
|
metrics/rpc.py,sha256=yIv1ZVnlY_RYI693pX5iptH3gnVAC1DQ2nJQ5vLZQyw,21657
|
@@ -457,7 +457,7 @@ taskqueue/admin.py,sha256=E6zXoToS_ea3MdoGjZzF1JiepWFtDSoZUQdan8H-pXI,208
|
|
457
457
|
taskqueue/migrations/0001_initial.py,sha256=JwYib8CK5ftSXlfxKZUcKEEVsXktNB5q3h-2tu9inGk,4738
|
458
458
|
taskqueue/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
459
459
|
taskqueue/models.py,sha256=i8v0vQqlz4X3rVFVJsUSldA-26NEPWnsMZF2Kly_1Qo,22398
|
460
|
-
taskqueue/periodic.py,sha256=
|
460
|
+
taskqueue/periodic.py,sha256=mife_2TnzIqR3HTLcA66aEJeiQTpEkd_1n2qYGTCrak,3844
|
461
461
|
taskqueue/rpc.py,sha256=Lf5VUoqCRkfWUAIvx_s508mjAtDPwpiWyxg0ryqWbQA,5793
|
462
462
|
taskqueue/tq.py,sha256=PzSoDrawYcqZylruEgsK95gcJ4J_VhdM6rxg9V6_X8E,942
|
463
463
|
taskqueue/transports/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -509,7 +509,7 @@ ws4redis/servers/uwsgi.py,sha256=VyhoCI1DnVFqBiJYHoxqn5Idlf6uJPHvfBKgkjs34mo,172
|
|
509
509
|
ws4redis/settings.py,sha256=K0yBiLUuY81iDM4Yr-k8hbvjn5VVHu5zQhmMK8Dtz0s,1536
|
510
510
|
ws4redis/utf8validator.py,sha256=S0OlfjeGRP75aO6CzZsF4oTjRQAgR17OWE9rgZdMBZA,5122
|
511
511
|
ws4redis/websocket.py,sha256=R0TUyPsoVRD7Y_oU7w2I6NL4fPwiz5Vl94-fUkZgLHA,14848
|
512
|
-
django_restit-4.2.
|
513
|
-
django_restit-4.2.
|
514
|
-
django_restit-4.2.
|
515
|
-
django_restit-4.2.
|
512
|
+
django_restit-4.2.106.dist-info/LICENSE.md,sha256=VHN4hhEeVOoFjtG-5fVv4jesA4SWi0Z-KgOzzN6a1ps,1068
|
513
|
+
django_restit-4.2.106.dist-info/METADATA,sha256=ezVVUPt2DBptvRUCvZP42DgZHm7C--HkHTDgZpnu7A4,7663
|
514
|
+
django_restit-4.2.106.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
515
|
+
django_restit-4.2.106.dist-info/RECORD,,
|
metrics/periodic.py
CHANGED
@@ -3,9 +3,6 @@ from taskqueue.models import Task
|
|
3
3
|
from .models import Metrics
|
4
4
|
from rest import log
|
5
5
|
from rest import decorators as rd
|
6
|
-
from rest import settings
|
7
|
-
|
8
|
-
PUSH_METRICS_TO_CLOUDWATCH = settings.get("PUSH_METRICS_TO_CLOUDWATCH", False)
|
9
6
|
|
10
7
|
|
11
8
|
@rd.periodic(minute=15, hour=10)
|
@@ -19,10 +16,3 @@ def run_cleanup(force=False, verbose=False, now=None):
|
|
19
16
|
@rd.periodic(minute=15, hour=11, weekday=1)
|
20
17
|
def run_checks(force=False, verbose=False, now=None):
|
21
18
|
Task.Publish("metrics", "run_monitoring", channel="tq_app_handler")
|
22
|
-
|
23
|
-
|
24
|
-
@rd.periodic(minute=rd.PERIODIC_EVERY_5_MINUTES)
|
25
|
-
def run_aws_metrics(force=False, verbose=False, now=None):
|
26
|
-
if PUSH_METRICS_TO_CLOUDWATCH:
|
27
|
-
from metrics.providers import aws
|
28
|
-
aws.publishLocalMetrics()
|
taskqueue/periodic.py
CHANGED
@@ -102,3 +102,12 @@ def run_cleanup(force=False, verbose=False, now=None):
|
|
102
102
|
count = Task.objects.filter(created__lte=stale, state=TASK_STATE_COMPLETED).delete()
|
103
103
|
if count:
|
104
104
|
logger.info("deleted {} old completed tasks".format(count))
|
105
|
+
|
106
|
+
|
107
|
+
PUSH_METRICS_TO_CLOUDWATCH = settings.get("PUSH_METRICS_TO_CLOUDWATCH", False)
|
108
|
+
|
109
|
+
@rd.periodic(minute=rd.PERIODIC_EVERY_5_MINUTES)
|
110
|
+
def run_aws_metrics(force=False, verbose=False, now=None):
|
111
|
+
if PUSH_METRICS_TO_CLOUDWATCH:
|
112
|
+
from metrics.providers import aws
|
113
|
+
aws.publishLocalMetrics()
|
File without changes
|
File without changes
|