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, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2026-06-11 07:00:26', 257) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2026-06-11 07:00:26', 11216) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2026-06-11 07:06:47', 6600) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2026-06-11 07:06:47', 1037) 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 07:06:51', 4189, 718, 100, 618, 'split_time_score_JRM_Perlen_convoyeur', 226.0, '31143228:perlen_042:1053:1', 1) ('2026-06-11 07:06:51', 4433, 1103, 690, 413, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 236.0, '31143534:JRM_diff_b:1053:0,31144120:JRM_diff_b:1053:1,31143848:JRM_diff_b:1053:0,31143847:JRM_diff_b:1053:0,31142927:JRM_diff_b:1053:0,31143365:JRM_diff_b:1053:1,31143346:JRM_diff_b:1053:1,31143013:JRM_diff_b:1053:1,31142974:JRM_diff_b:1053:0,31142973:JRM_diff_b:1053:1,31142972:JRM_diff_b:1053:0,31142933:JRM_diff_b:1053:0,31142932:JRM_diff_b:1053:0', 13) ('2026-06-11 07:06:51', 533, 151, 145, 6, 'multi_classification_tapis_dechet', 5.0, '31146218:perlen_042:1053:1', 1) ('2026-06-11 07:06:51', 4234, 8, 8, 0, 'refus_rym_velours_valcor', 228.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 07:06:53', 3543, 66, 'cod_pipline_qualipapia_automatique_cod', Decimal('10092.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 07:06:53', 4189, 512, 'split_time_score_JRM_Perlen_convoyeur', Decimal('0.0000'), '31145473:perlen_042:1053:1', 1) ('2026-06-11 07:06:53', 4219, 1619, 'detection_plaque_valcor_010622', Decimal('7.3039'), '31146079:plaque_val:1064:0,31146160:plaque_val:1064:0', 2) ('2026-06-11 07:06:53', 4220, 1619, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '31146079:plaque_val:1064:0,31146160:plaque_val:1064:0', 2) ('2026-06-11 07:06:53', 4310, 1156, 'classifieur_2camions_valcor_021122_v1', Decimal('24.3599'), '31123389:dechet_val:991:0,31145949:dechet_val:991:0,31146268:dechet_val:991:0', 3) ('2026-06-11 07:06:53', 4311, 1103, 'sts_dechet_valcor_matching_v2_2022Q3', Decimal('0.5150'), '31145949:dechet_val:991:1,31146268:dechet_val:991:0', 2) ('2026-06-11 07:06:53', 4949, 525, 'blur_detection_test_ken', Decimal('8366.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 07:06:53', 533, 145, 'multi_classification_tapis_dechet') ('2026-06-11 07:06:53', 4234, 16, 'refus_rym_velours_valcor') ('2026-06-11 07:06:53', 4433, 165, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 23) (-5, 343) (99, 1) (0, 235) 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 08:45:04', 4234, 7354, 'refus_rym_velours_valcor') ('2026-06-11 08:45:04', 533, 6013, 'multi_classification_tapis_dechet') ('2026-06-11 08:45:04', 4433, 452, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2026-06-11 08:45:04', 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') 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.33user 0.24system 9:02:17elapsed 0%CPU (0avgtext+0avgdata 35104maxresident)k 44736inputs+24outputs (3828major+10236minor)pagefaults 0swaps