python /home/admin/mtr/script_for_cron.py -j default -m 30 -a 'python3 ~/workarea/git/Velours/python/mtr/sql_queries.py -j status ' -s monitor_queries -M 0 -S 0 -U 120,120,120 import MySQLdb succeeded Now: 11/06/2026, 00:01:25 Nombre de datou current ('date', 'nombre de datou current') ('2026-06-11 00:01:25', 248) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2026-06-11 00:01:25', 10334) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2026-06-11 00:05:25', 2573) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2026-06-11 00:05:25', 467) Reste a faire par datou id ('date', 'datou_id', 'total_a_traiter', 'total_traite', 'restant_a_traite', 'datou_nom', 'temps moyens passe des datous a traiter (heures)', 'list_port_ids_mtr_user_ids') ('2026-06-11 00:05:25', 4433, 1193, 732, 461, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 228.71428571428572, '31143534:JRM_diff_b:1053:1,31144120:JRM_diff_b:1053:0,31143886:JRM_diff_b:1053:1,31143848:JRM_diff_b:1053:1,31143847:JRM_diff_b:1053:1,31142927:JRM_diff_b:1053:0,31143365:JRM_diff_b:1053:0,31143346:JRM_diff_b:1053:0,31143013:JRM_diff_b:1053:0,31142974:JRM_diff_b:1053:1,31142973:JRM_diff_b:1053:0,31142972:JRM_diff_b:1053:1,31142933:JRM_diff_b:1053:1,31142932:JRM_diff_b:1053:0', 14) ('2026-06-11 00:05:25', 533, 512, 506, 6, 'multi_classification_tapis_dechet', 13.0, '31145473:perlen_042:1053:1', 1) ('2026-06-11 00:05:25', 4234, 8, 8, 0, 'refus_rym_velours_valcor', 221.0, '31144878:incinerati:1103:1,31144872:incinerati:1103:1,31144246:incinerati:1103:1', 3) Reste a faire par datou id non traite ('date', 'datou_id', 'total_a_traiter', 'datou_nom', 'temps moyens passe des datous a traiter (heures)', 'list_port_ids_mtr_user_ids', 'nb_port') ('2026-06-11 00:05:25', 3543, 66, 'cod_pipline_qualipapia_automatique_cod', Decimal('10085.6970'), '4453926:jrm_diff_b:739:0,4652336:jrm_diff_b:739:0,4756245:jrm_diff_b:739:0,4938484:jrm_diff_b:739:0,4938485:jrm_diff_b:739:0,4938486:jrm_diff_b:739:0,4938487:jrm_diff_b:739:0,4938488:jrm_diff_b:739:0', 8) ('2026-06-11 00:05:25', 4189, 512, 'split_time_score_JRM_Perlen_convoyeur', Decimal('0.0000'), '31145473:perlen_042:1053:1', 1) ('2026-06-11 00:05:25', 4219, 287, 'detection_plaque_valcor_010622', Decimal('0.9617'), '31146079:plaque_val:1064:0,31146160:plaque_val:1064:0', 2) ('2026-06-11 00:05:25', 4310, 618, 'classifieur_2camions_valcor_021122_v1', Decimal('35.9013'), '31123389:dechet_val:991:0,31145949:dechet_val:991:0', 2) ('2026-06-11 00:05:25', 4311, 565, 'sts_dechet_valcor_matching_v2_2022Q3', Decimal('0.0000'), '31145949:dechet_val:991:1', 1) ('2026-06-11 00:05:25', 4949, 525, 'blur_detection_test_ken', Decimal('8359.0000'), '24359416:jetson_tes:1110:0', 1) Nombre de photos d'entrees traites par datou dans les dernieres 24 heures pour les traitement (datou_current) en cours ('date', 'datou_id', 'Nombre de photos traitees', 'datou_nom') ('2026-06-11 00:05:25', 533, 1170, 'multi_classification_tapis_dechet') ('2026-06-11 00:05:25', 4234, 16, 'refus_rym_velours_valcor') ('2026-06-11 00:05:25', 4433, 336, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 21) (-5, 343) (99, 1) (0, 229) Nombre de resultats de type photos par datou dans les dernieres 24 heures (plusieurs photos de sorties par photos d'entree) ('date', 'datou_id', 'Nombre de photos traitees', 'datou_nom') ('2026-06-11 01:00:29', 533, 5555, 'multi_classification_tapis_dechet') ('2026-06-11 01:00:29', 4234, 5046, 'refus_rym_velours_valcor') ('2026-06-11 01:00:29', 4433, 479, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2026-06-11 01:00:29', 4189, 142, 'split_time_score_JRM_Perlen_convoyeur') Nombre de lignes inserees dans la table crop segments depuis une semaine, par hashtag type ('hashtag type id', 'Nombre de ligne dans crop_segments depuis 7 jours') ('d4018_output_mask', 57193) ('detection_filter_test', 1600) Nombre total de sub photos associees à chaque hashtag type ('hashtag type id', 'hashtag type name', 'Nombre de photos total') Catched exception ! Connect or reconnect ! Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 106, in select cursor.execute(query, args) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 179, in execute res = self._query(mogrified_query) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 331, in _query self._do_get_result(db) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 136, in _do_get_result self._result = result = self._get_result() File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 363, in _get_result return self._get_db().store_result() MySQLdb.OperationalError: (1053, 'Server shutdown in progress') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 81, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/__init__.py", line 121, in Connect return Connection(*args, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 200, in __init__ super().__init__(*args, **kwargs2) MySQLdb.OperationalError: (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/sql_queries.py", line 304, in result = gq.select(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 115, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 84, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") Command exited with non-zero status 1 0.27user 0.22system 16:01:23elapsed 0%CPU (0avgtext+0avgdata 34936maxresident)k 36496inputs+16outputs (4070major+10580minor)pagefaults 0swaps