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: 13/08/2026, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2026-08-13 07:00:26', 286) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2026-08-13 07:00:26', 35708) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2026-08-13 07:12:43', 599) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2026-08-13 07:12:43', 2) 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-08-13 07:12:49', 4310, 459, 456, 3, 'classifieur_2camions_valcor_021122_v1', 3.0, '31424610:dechet_val:991:0', 1) 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-08-13 07:12:49', 3543, 66, 'cod_pipline_qualipapia_automatique_cod', Decimal('11604.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-08-13 07:12:49', 4234, 6, 'refus_rym_velours_valcor', Decimal('0.0000'), '31425113:incinerati:1103:0,31425117:incinerati:1103:0', 2) ('2026-08-13 07:12:49', 4851, 2, 'split_time_score_SCCU_8', Decimal('0.0000'), '31424210:SCCU_13082:1103:0', 1) ('2026-08-13 07:12:49', 4949, 525, 'blur_detection_test_ken', Decimal('9879.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-08-13 07:12:49', 4310, 456, 'classifieur_2camions_valcor_021122_v1') Nombre de datous demandés par statut ('statut', 'nombre de datous') (-5, 1325) (99, 1) (0, 293) 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-08-13 07:18:31', 4234, 25062, 'refus_rym_velours_valcor') ('2026-08-13 07:18:31', 4311, 4100, 'sts_dechet_valcor_matching_v2_2022Q3') ('2026-08-13 07:18:31', 4310, 1792, 'classifieur_2camions_valcor_021122_v1') ('2026-08-13 07:18:31', 4189, 912, 'split_time_score_JRM_Perlen_convoyeur') ('2026-08-13 07:18:31', 4849, 832, 'split_time_score_SCCU_6') ('2026-08-13 07:18:31', 4433, 814, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2026-08-13 07:18:31', 3789, 696, 'split_time_score_test_multi_matiere') ('2026-08-13 07:18:31', 4850, 493, 'split_time_score_SCCU_7') ('2026-08-13 07:18:31', 4851, 366, 'split_time_score_SCCU_8') ('2026-08-13 07:18:31', 533, 296, 'multi_classification_tapis_dechet') ('2026-08-13 07:18:31', 4891, 100, 'split_time_score_angers_montee_convoyeur') ('2026-08-13 07:18:31', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2026-08-13 07:18:31', 4212, 60, 'ACP_from_port_5709050_type_5619_size_9') ('2026-08-13 07:18:31', 4209, 60, 'test_acp') ('2026-08-13 07:18:31', 4208, 60, 'test_acp_fit_transform_20') ('2026-08-13 07:18:31', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2026-08-13 07:18:31', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2026-08-13 07:18:31', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2026-08-13 07:18:31', 4323, 6, 'split_time_score_arc_en_ciel_mm') 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') 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 330, in _query db.query(q) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) MySQLdb.OperationalError: (2013, 'Lost connection to MySQL server during query') 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.38user 0.31system 1:06:06elapsed 0%CPU (0avgtext+0avgdata 51692maxresident)k 55712inputs+16outputs (4752major+16380minor)pagefaults 0swaps