Update x fix errore file to_retry
This commit is contained in:
+9
-10
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# readParallela v. 2.6.1 12 Ingressi
|
||||
# readParallela v. 2.6.2 12 Ingressi
|
||||
# - single instance timer
|
||||
# - invio multiplo x send eventi accodati
|
||||
# - gestione segnali BLINKING
|
||||
@@ -16,23 +16,20 @@
|
||||
# - (2.5.3) Fix gestione stringhe e print x python 3.11 in debian 12 / raspberry OS 2025
|
||||
# - (2.6.0) Aggiunto gestione Redis x code salvate ogni minuto e ricaricate all'avvio 2025.04.17
|
||||
# - (2.6.1) Cleanup generale vecchia queue post test vari
|
||||
# - (2.6.2) Fix in global di to_retry in send_coda per evitare problemi
|
||||
|
||||
|
||||
import time
|
||||
import sys
|
||||
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
import urllib
|
||||
import urllib.request
|
||||
import configparser
|
||||
import os, sys
|
||||
|
||||
import logging
|
||||
import logging.handlers
|
||||
import threading
|
||||
import redis
|
||||
|
||||
from array import *
|
||||
|
||||
#--------------------------------------------------------------
|
||||
@@ -44,7 +41,7 @@ MAXRETRY = 10
|
||||
# numero campioni filtraggio segnale ballerino
|
||||
MAX_COUNTER_BLINK = 10
|
||||
|
||||
PROGRAM_NAME ="ReadPar IOB-pi v.2.6.1"
|
||||
PROGRAM_NAME ="ReadPar IOB-pi v.2.6.2"
|
||||
|
||||
# DA FILE CONF
|
||||
idxMacchina = "1001"
|
||||
@@ -380,6 +377,7 @@ def svuotaCoda():
|
||||
global onLine
|
||||
global sending
|
||||
global timer_busy
|
||||
global to_retry
|
||||
global NMAXSEND
|
||||
|
||||
#logPro.info ("start timer ")
|
||||
@@ -473,10 +471,11 @@ def svuotaCoda():
|
||||
logPro.error(str(e))
|
||||
|
||||
onLine = '0'
|
||||
|
||||
finally:
|
||||
# in ogni caso
|
||||
timer_busy = False
|
||||
|
||||
# in ogni caso
|
||||
|
||||
timer_busy = False
|
||||
#print ("end timer ok")
|
||||
|
||||
#print ("end timer ")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# readParallela v. 2.6.1 12 Ingressi
|
||||
# readParallela v. 2.6.2 12 Ingressi
|
||||
# - single instance timer
|
||||
# - invio multiplo x send eventi accodati
|
||||
# - gestione segnali BLINKING
|
||||
@@ -16,23 +16,20 @@
|
||||
# - (2.5.3) Fix gestione stringhe e print x python 3.11 in debian 12 / raspberry OS 2025
|
||||
# - (2.6.0) Aggiunto gestione Redis x code salvate ogni minuto e ricaricate all'avvio 2025.04.17
|
||||
# - (2.6.1) Cleanup generale vecchia queue post test vari
|
||||
# - (2.6.2) Fix in global di to_retry in send_coda per evitare problemi
|
||||
|
||||
|
||||
import time
|
||||
import sys
|
||||
|
||||
|
||||
from datetime import datetime
|
||||
|
||||
import urllib
|
||||
import urllib.request
|
||||
import configparser
|
||||
import os, sys
|
||||
|
||||
import logging
|
||||
import logging.handlers
|
||||
import threading
|
||||
import redis
|
||||
|
||||
from array import *
|
||||
|
||||
#--------------------------------------------------------------
|
||||
@@ -44,7 +41,7 @@ MAXRETRY = 10
|
||||
# numero campioni filtraggio segnale ballerino
|
||||
MAX_COUNTER_BLINK = 10
|
||||
|
||||
PROGRAM_NAME ="ReadPar IOB-pi v.2.6.1"
|
||||
PROGRAM_NAME ="ReadPar IOB-pi v.2.6.2"
|
||||
|
||||
# DA FILE CONF
|
||||
idxMacchina = "1001"
|
||||
@@ -380,6 +377,7 @@ def svuotaCoda():
|
||||
global onLine
|
||||
global sending
|
||||
global timer_busy
|
||||
global to_retry
|
||||
global NMAXSEND
|
||||
|
||||
#logPro.info ("start timer ")
|
||||
@@ -473,10 +471,11 @@ def svuotaCoda():
|
||||
logPro.error(str(e))
|
||||
|
||||
onLine = '0'
|
||||
|
||||
finally:
|
||||
# in ogni caso
|
||||
timer_busy = False
|
||||
|
||||
# in ogni caso
|
||||
|
||||
timer_busy = False
|
||||
#print ("end timer ok")
|
||||
|
||||
#print ("end timer ")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# readParallela v. 2.6.1 8 Ingressi
|
||||
# readParallela v. 2.6.2 8 Ingressi
|
||||
# - single instance timer
|
||||
# - invio multiplo x send eventi accodati
|
||||
# - gestione segnali BLINKING
|
||||
@@ -16,6 +16,8 @@
|
||||
# - (2.5.3) Fix gestione stringhe e print x python 3.11 in debian 12 / raspberry OS 2025
|
||||
# - (2.6.0) Aggiunto gestione Redis x code salvate ogni minuto e ricaricate all'avvio 2025.04.17
|
||||
# - (2.6.1) Cleanup generale vecchia queue post test vari
|
||||
# - (2.6.2) Fix in global di to_retry in send_coda per evitare problemi
|
||||
|
||||
|
||||
import time
|
||||
import sys
|
||||
@@ -44,7 +46,7 @@ MAXRETRY = 10
|
||||
# numero campioni filtraggio segnale ballerino
|
||||
MAX_COUNTER_BLINK = 10
|
||||
|
||||
PROGRAM_NAME ="ReadPar IOB-pi v.2.6.1"
|
||||
PROGRAM_NAME ="ReadPar IOB-pi v.2.6.2"
|
||||
|
||||
# DA FILE CONF
|
||||
idxMacchina = "1001"
|
||||
@@ -343,6 +345,7 @@ def svuotaCoda():
|
||||
global onLine
|
||||
global sending
|
||||
global timer_busy
|
||||
global to_retry
|
||||
global NMAXSEND
|
||||
|
||||
#logPro.info ("start timer ")
|
||||
@@ -436,10 +439,11 @@ def svuotaCoda():
|
||||
logPro.error(str(e))
|
||||
|
||||
onLine = '0'
|
||||
|
||||
finally:
|
||||
# in ogni caso
|
||||
timer_busy = False
|
||||
|
||||
# in ogni caso
|
||||
|
||||
timer_busy = False
|
||||
#print ("end timer ok")
|
||||
|
||||
#print ("end timer ")
|
||||
|
||||
Reference in New Issue
Block a user