worker-automate-hub 0.5.738__py3-none-any.whl → 0.5.740__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.
- worker_automate_hub/tasks/jobs/entrada_de_notas_16.py +6 -6
- worker_automate_hub/utils/utils_nfe_entrada.py +10 -7
- worker_automate_hub/worker.py +2 -2
- {worker_automate_hub-0.5.738.dist-info → worker_automate_hub-0.5.740.dist-info}/METADATA +1 -1
- {worker_automate_hub-0.5.738.dist-info → worker_automate_hub-0.5.740.dist-info}/RECORD +7 -7
- {worker_automate_hub-0.5.738.dist-info → worker_automate_hub-0.5.740.dist-info}/WHEEL +0 -0
- {worker_automate_hub-0.5.738.dist-info → worker_automate_hub-0.5.740.dist-info}/entry_points.txt +0 -0
@@ -619,9 +619,9 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
|
|
619
619
|
retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
|
620
620
|
if retorno.sucesso == True:
|
621
621
|
return RpaRetornoProcessoDTO(
|
622
|
-
sucesso=
|
623
|
-
retorno=
|
624
|
-
status=
|
622
|
+
sucesso=retorno.sucesso,
|
623
|
+
retorno=retorno.retorno,
|
624
|
+
status=retorno.status,
|
625
625
|
)
|
626
626
|
except:
|
627
627
|
try:
|
@@ -686,9 +686,9 @@ async def entrada_de_notas_16(task: RpaProcessoEntradaDTO) -> RpaRetornoProcesso
|
|
686
686
|
retorno = await emsys.incluir_registro(chave_nfe=nota.get("nfe"))
|
687
687
|
if retorno.sucesso == True:
|
688
688
|
return RpaRetornoProcessoDTO(
|
689
|
-
sucesso=
|
690
|
-
retorno=
|
691
|
-
status=
|
689
|
+
sucesso=retorno.sucesso,
|
690
|
+
retorno=retorno.retorno,
|
691
|
+
status=retorno.status,
|
692
692
|
)
|
693
693
|
except:
|
694
694
|
console.print("A Nota fiscal ainda não foi incluída, continuando o processo...")
|
@@ -461,13 +461,16 @@ class EMSys:
|
|
461
461
|
await worker_sleep(20)
|
462
462
|
console.print("\nVerifica se a nota ja foi lançada...")
|
463
463
|
chave_nfe = int(chave_nfe)
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
464
|
+
try:
|
465
|
+
status_nf_emsys = await get_status_nf_emsys(chave_nfe)
|
466
|
+
if status_nf_emsys.get("status") == "Lançada":
|
467
|
+
return RpaRetornoProcessoDTO(
|
468
|
+
sucesso=True,
|
469
|
+
retorno="Nota lançada com sucesso!",
|
470
|
+
status=RpaHistoricoStatusEnum.Sucesso,
|
471
|
+
)
|
472
|
+
except:
|
473
|
+
pass
|
471
474
|
|
472
475
|
if chave_cte is not None:
|
473
476
|
await worker_sleep(20)
|
worker_automate_hub/worker.py
CHANGED
@@ -55,13 +55,13 @@ async def check_and_execute_tasks(stop_event: threading.Event):
|
|
55
55
|
processo_existe = await is_uuid_in_tasks(task.uuidProcesso)
|
56
56
|
if processo_existe:
|
57
57
|
i = 0
|
58
|
-
while i <
|
58
|
+
while i < 10:
|
59
59
|
try:
|
60
60
|
await burn_queue(task.uuidFila)
|
61
61
|
break
|
62
62
|
except:
|
63
63
|
i += 1
|
64
|
-
await asyncio.sleep(
|
64
|
+
await asyncio.sleep(5)
|
65
65
|
pass
|
66
66
|
logger.info(f"Executando a task: {task.nomProcesso}")
|
67
67
|
await perform_task(task)
|
@@ -54,7 +54,7 @@ worker_automate_hub/tasks/jobs/ecac_federal.py,sha256=VFOrbMuMHL3ac1sJ-z-N1p1WYt
|
|
54
54
|
worker_automate_hub/tasks/jobs/entrada_cte_1353.py,sha256=knwPbjZZsnvHKurs7O7gv7bFpQIAmv4qPB1rZa3zBsY,12102
|
55
55
|
worker_automate_hub/tasks/jobs/entrada_cte_333.py,sha256=FvpU_bsdPB2ANQ_i63Jlkdo5yZM4zJdr2mm41KTrJtE,13285
|
56
56
|
worker_automate_hub/tasks/jobs/entrada_de_notas_15.py,sha256=k0sRpKOCtyld1mPEu0n6HUncZYcX8wAsKAIYKGVacSs,30487
|
57
|
-
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=
|
57
|
+
worker_automate_hub/tasks/jobs/entrada_de_notas_16.py,sha256=XgCaZTn0lTxio9yLTYIf0J-PA8e80dSDa7wsUnZiffI,37783
|
58
58
|
worker_automate_hub/tasks/jobs/entrada_de_notas_207.py,sha256=A5HM2Eh2bGZueVefnQL9KiCWW95j8zX1v2MslgbDcUE,36871
|
59
59
|
worker_automate_hub/tasks/jobs/entrada_de_notas_32.py,sha256=lku233FqwOknXF14HHC6fZ75WubE69Jp32bAUhKPtGQ,34575
|
60
60
|
worker_automate_hub/tasks/jobs/entrada_de_notas_33.py,sha256=ODp82BkWaiF40t6uZLJYxG2nGGnvDyeQBHhkkh9ZgPI,35994
|
@@ -97,9 +97,9 @@ worker_automate_hub/utils/logger.py,sha256=FYV9fg0_RAYJF_ZOCJEbqQAiCXlXk2gMpvUU1
|
|
97
97
|
worker_automate_hub/utils/toast.py,sha256=xPHc5r5uOxB_cZlCzm13Kt2qSKLLFZALncU6Qg3Ft68,1162
|
98
98
|
worker_automate_hub/utils/updater.py,sha256=en2FCGhI8aZ-JNP3LQm64NJDc4awCNW7UhbVlwDl49Y,7972
|
99
99
|
worker_automate_hub/utils/util.py,sha256=nV09AF8lu5poiMzWMAAgVS_VWvEuIRfNDmx46V7Nvzk,207279
|
100
|
-
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=
|
101
|
-
worker_automate_hub/worker.py,sha256=
|
102
|
-
worker_automate_hub-0.5.
|
103
|
-
worker_automate_hub-0.5.
|
104
|
-
worker_automate_hub-0.5.
|
105
|
-
worker_automate_hub-0.5.
|
100
|
+
worker_automate_hub/utils/utils_nfe_entrada.py,sha256=TOXKSHOPxy8N3-ROpTGjNIHstX0i2b8qekcj1tRvjG8,38174
|
101
|
+
worker_automate_hub/worker.py,sha256=uhZ3f-iaQ1i8cANbljp50vkYl-Xm0_sHtjwwF_2y72o,7191
|
102
|
+
worker_automate_hub-0.5.740.dist-info/entry_points.txt,sha256=sddyhjx57I08RY8X7UxcTpdoOsWULAWNKN9Xr6pp_Kw,54
|
103
|
+
worker_automate_hub-0.5.740.dist-info/METADATA,sha256=seLKrbcLkkLhg3HttFUGrtBCnvtIzhRcbCTW0IPt4X0,3049
|
104
|
+
worker_automate_hub-0.5.740.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
105
|
+
worker_automate_hub-0.5.740.dist-info/RECORD,,
|
File without changes
|
{worker_automate_hub-0.5.738.dist-info → worker_automate_hub-0.5.740.dist-info}/entry_points.txt
RENAMED
File without changes
|