epok-toolkit 1.4.1__py3-none-any.whl → 1.5.1__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 epok-toolkit might be problematic. Click here for more details.
- epok_toolkit/messaging/whatsapp_instanced.py +4 -9
- {epok_toolkit-1.4.1.dist-info → epok_toolkit-1.5.1.dist-info}/METADATA +1 -1
- {epok_toolkit-1.4.1.dist-info → epok_toolkit-1.5.1.dist-info}/RECORD +6 -6
- {epok_toolkit-1.4.1.dist-info → epok_toolkit-1.5.1.dist-info}/WHEEL +0 -0
- {epok_toolkit-1.4.1.dist-info → epok_toolkit-1.5.1.dist-info}/licenses/LICENSE +0 -0
- {epok_toolkit-1.4.1.dist-info → epok_toolkit-1.5.1.dist-info}/top_level.txt +0 -0
|
@@ -4,14 +4,7 @@ from celery import shared_task
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
@shared_task
|
|
8
|
-
bind=True,
|
|
9
|
-
autoretry_for=(ConnectionError, TimeoutError),
|
|
10
|
-
retry_backoff=True, # 2, 4, 8, 16… s
|
|
11
|
-
retry_jitter=True, # +- aleatorio
|
|
12
|
-
max_retries=3,
|
|
13
|
-
ignore_result=True, # <-- ¡importante!
|
|
14
|
-
)
|
|
7
|
+
@shared_task
|
|
15
8
|
def send_whatsapp_message_async(number: str, message: str):
|
|
16
9
|
from colorstreak import log
|
|
17
10
|
log.debug(f"Enviando mensaje a {number}: '{message}'")
|
|
@@ -23,4 +16,6 @@ def send_whatsapp_message_async(number: str, message: str):
|
|
|
23
16
|
return client.send_text(number, message)
|
|
24
17
|
|
|
25
18
|
def send_text(number: str, message: str):
|
|
26
|
-
|
|
19
|
+
from colorstreak import log
|
|
20
|
+
log.debug(f"Programando tarea para {number}")
|
|
21
|
+
send_whatsapp_message_async.delay(number, message)
|
|
@@ -7,7 +7,7 @@ epok_toolkit/email/engine.py,sha256=IIifqRI9z76pHdrO5oSSZ25aP5txOTAgrj1JuVVPlMY,
|
|
|
7
7
|
epok_toolkit/email/templates.py,sha256=uO3gYn2iiGxcjxioaG066gGPts1m-3C1Gp7XatGgVOg,7578
|
|
8
8
|
epok_toolkit/messaging/__init__.py,sha256=AL9bL5fmVZx3ZvdzBWaVgvBJVnRuyYzrCp13txNTc3Q,41
|
|
9
9
|
epok_toolkit/messaging/whatsapp.py,sha256=TrMSiKzvnhWOotSDEGil1BGgOJ7jLK7h3MXKdW3zCJw,14114
|
|
10
|
-
epok_toolkit/messaging/whatsapp_instanced.py,sha256=
|
|
10
|
+
epok_toolkit/messaging/whatsapp_instanced.py,sha256=9Ruwq9NakgofVnm-PIW4hjSnocPf6iuh0op7Y5ACpYs,686
|
|
11
11
|
epok_toolkit/pdf/__init__.py,sha256=Scb1iOYnVIUEiUVHLNaPmcigyD-jOSBs3ws5RmolMKE,33
|
|
12
12
|
epok_toolkit/pdf/ticket_pdf.py,sha256=ce21N7OyaSQkfZvOL4c0mEFv7XSGajlOzL-gNb8vBro,8989
|
|
13
13
|
epok_toolkit/pdf/fuentes/Kollektif-Bold.ttf,sha256=MiaucCL_aPGhbDl6M0xA2g2nf84MXHGciOd-XSw0XRo,78780
|
|
@@ -16,8 +16,8 @@ epok_toolkit/pdf/fuentes/Kollektif-Italic.ttf,sha256=1CXPyw43il9u0tQ_7aRzsEaVtg3
|
|
|
16
16
|
epok_toolkit/pdf/fuentes/Kollektif.ttf,sha256=7wTLkVVNUm1giLjIZcWRUH5r2r3o0GjdKic4V1A-pNQ,51128
|
|
17
17
|
epok_toolkit/pdf/plantillas/Ticket_congrats.png,sha256=OSQhVR0j_nLHE6kSJ33BTR-77HM1fNAfJBe2EuX6wVk,157141
|
|
18
18
|
epok_toolkit/pdf/plantillas/Ticket_congrats2.png,sha256=1RBogBdo-8WSMpD3H73HoLgJtr5EC5oVKfOCIWOxPSo,373605
|
|
19
|
-
epok_toolkit-1.
|
|
20
|
-
epok_toolkit-1.
|
|
21
|
-
epok_toolkit-1.
|
|
22
|
-
epok_toolkit-1.
|
|
23
|
-
epok_toolkit-1.
|
|
19
|
+
epok_toolkit-1.5.1.dist-info/licenses/LICENSE,sha256=iLDbGXdLSIOT5OsxzHCvtmxHtonE21GiFlS3LNkug4A,128
|
|
20
|
+
epok_toolkit-1.5.1.dist-info/METADATA,sha256=GP7-8fQ9gkWvHkTYDnEOrqhM-poP5kMeJumNYpsJT0k,739
|
|
21
|
+
epok_toolkit-1.5.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
22
|
+
epok_toolkit-1.5.1.dist-info/top_level.txt,sha256=Wo72AqIFcfWwBGM5F5iGFw9PrO3WBnTSprFZIJk_pNg,13
|
|
23
|
+
epok_toolkit-1.5.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|