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: 20/03/2025, 07:00:27 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-20 07:00:27', 75) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-20 07:00:27', 485100) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-20 07:01:59', 27702) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-20 07:01:59', 3440) 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') ('2025-03-20 07:02:03', 4219, 10264, 7409, 2855, 'detection_plaque_valcor_010622', 276.2857142857143, '20658354:plaque_val:1064:0,20954168:plaque_val:1064:0,21093986:plaque_val:1064:0,21130800:plaque_val:1064:0,21472442:plaque_val:1064:0,21527458:plaque_val:1064:0,21547853:plaque_val:1064:0', 7) ('2025-03-20 07:02:03', 533, 2520, 2280, 240, 'multi_classification_tapis_dechet', 3.0, '21547290:aec_metal_:739:1,21550204:jetson_tes:739:1', 2) ('2025-03-20 07:02:03', 4892, 2067, 1899, 168, 'multi_classification_tapis_dechet', 6.0, '21547240:angers_mon:1017:1', 1) ('2025-03-20 07:02:03', 4489, 188, 23, 165, 'multi_classification_tapis_dechet', 6.0, '21547513:cedre_arge:1080:1', 1) ('2025-03-20 07:02:03', 4310, 1086, 1068, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '21549525:dechet_val:991:0', 1) ('2025-03-20 07:02:03', 3992, 6, 6, 0, 'RUBBIA_Alu_131221_add_surclassifier_rapport', 0.0, '21550258:aluminium_:739:1', 1) ('2025-03-20 07:02:03', 4234, 4, 4, 0, 'refus_rym_velours_valcor', 0.0, '21550215:incinerati:1103:1', 1) ('2025-03-20 07:02:03', 4866, 1, 1, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 735.0, '20603524:dib_diff_b:440:1', 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') ('2025-03-20 07:02:03', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('551.1589'), '20625708:plaque_val:1064:0,20675558:plaque_val:1064:0,20699287:plaque_val:1064:0,20739642:plaque_val:1064:0,20753913:plaque_val:1064:0,20760543:plaque_val:1064:0,20785913:plaque_val:1064:0,20821622:plaque_val:1064:0,20860771:plaque_val:1064:0,20901341:plaque_val:1064:0,20944761:plaque_val:1064:0,20958095:plaque_val:1064:0,20999208:plaque_val:1064:0,21035886:plaque_val:1064:0', 14) ('2025-03-20 07:02:03', 4220, 1842, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21527458:plaque_val:1064:0', 1) ('2025-03-20 07:02:03', 4346, 188, 'split_time_score_cedre', Decimal('0.0000'), '21547513:cedre_arge:1080:0', 1) ('2025-03-20 07:02:03', 4887, 7512, 'split_time_score_Sevran_test', Decimal('0.0000'), '21529357:sevran_122:739:0', 1) ('2025-03-20 07:02:03', 4891, 2067, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21547240:angers_mon:1017:0', 1) ('2025-03-20 07:02:03', 4916, 2346, 'split_time_score_Acier_Arc_En_Ciel', Decimal('0.0000'), '21547290:aec_metal_:739: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') ('2025-03-20 07:02:03', 4866, 3, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-20 07:02:03', 4219, 3158, 'detection_plaque_valcor_010622') ('2025-03-20 07:02:03', 4892, 5277, 'multi_classification_tapis_dechet') ('2025-03-20 07:02:03', 533, 6734, 'multi_classification_tapis_dechet') ('2025-03-20 07:02:03', 4489, 69, 'multi_classification_tapis_dechet') ('2025-03-20 07:02:03', 3804, 940, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-20 07:02:03', 3993, 400, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-20 07:02:03', 4310, 3204, 'classifieur_2camions_valcor_021122_v1') ('2025-03-20 07:02:03', 4234, 4, 'refus_rym_velours_valcor') ('2025-03-20 07:02:03', 3992, 12, 'RUBBIA_Alu_131221_add_surclassifier_rapport') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 8) (-5, 27) (0, 66) 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') ('2025-03-20 07:02:14', 4234, 218836, 'refus_rym_velours_valcor') ('2025-03-20 07:02:14', 4892, 43388, 'multi_classification_tapis_dechet') ('2025-03-20 07:02:14', 3804, 32673, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-20 07:02:14', 4310, 23026, 'classifieur_2camions_valcor_021122_v1') ('2025-03-20 07:02:14', 3993, 22449, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-20 07:02:14', 533, 20864, 'multi_classification_tapis_dechet') ('2025-03-20 07:02:14', 3994, 19925, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-20 07:02:14', 4322, 17900, 'RUBBIA_filmPE_151122') ('2025-03-20 07:02:14', 3995, 14546, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-20 07:02:14', 4153, 7640, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-20 07:02:14', 4433, 6975, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-20 07:02:14', 4219, 6682, 'detection_plaque_valcor_010622') ('2025-03-20 07:02:14', 3318, 5844, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-20 07:02:14', 4887, 5360, 'split_time_score_Sevran_test') ('2025-03-20 07:02:14', 4311, 4000, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-20 07:02:14', 4891, 3900, 'split_time_score_angers_montee_convoyeur') ('2025-03-20 07:02:14', 4866, 3578, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-20 07:02:14', 4323, 3420, 'split_time_score_arc_en_ciel_mm') ('2025-03-20 07:02:14', 3459, 3304, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-20 07:02:14', 4346, 2965, 'split_time_score_cedre') ('2025-03-20 07:02:14', 4748, 2897, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-20 07:02:14', 3991, 2844, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-20 07:02:14', 4489, 2732, 'multi_classification_tapis_dechet') ('2025-03-20 07:02:14', 4916, 2400, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-20 07:02:14', 4189, 1242, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-20 07:02:14', 4849, 886, 'split_time_score_SCCU_6') ('2025-03-20 07:02:14', 4851, 643, 'split_time_score_SCCU_8') ('2025-03-20 07:02:14', 3992, 570, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-20 07:02:14', 4220, 535, 'split_time_score_plaque_Valcor') ('2025-03-20 07:02:14', 4252, 511, 'pehd_prod_consolidate') ('2025-03-20 07:02:14', 3789, 464, 'split_time_score_test_multi_matiere') ('2025-03-20 07:02:14', 4850, 338, 'split_time_score_SCCU_7') ('2025-03-20 07:02:14', 4510, 144, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-20 07:02:14', 3787, 128, 'split_time_score_urban_fest') ('2025-03-20 07:02:14', 3181, 66, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-20 07:02:14', 243, 52, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-20 07:02:14', 370, 50, 'proportion_papier_qualite_dechets_tri') ('2025-03-20 07:02:14', 3164, 28, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-20 07:02:14', 230, 28, 'datou_test_rotate') ('2025-03-20 07:02:14', 4621, 27, 'tfhub_18_7_2023') ('2025-03-20 07:02:14', 4567, 27, 'tfhub_19_06_2023') ('2025-03-20 07:02:14', 4208, 20, 'test_acp_fit_transform_20') ('2025-03-20 07:02:14', 4209, 20, 'test_acp') ('2025-03-20 07:02:14', 4212, 20, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-20 07:02:14', 686, 18, 'copy_argmax_crop') ('2025-03-20 07:02:14', 40, 17, 'mask_coco_origin') ('2025-03-20 07:02:14', 4184, 14, 'detection_plaque_valcor_010622') ('2025-03-20 07:02:14', 3781, 14, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-20 07:02:14', 1848, 10, 'Pipeline_upm_photos_blanches') ('2025-03-20 07:02:14', 4573, 10, 'test_sam_h') ('2025-03-20 07:02:14', 3990, 10, 'test_crop_condition_blur') ('2025-03-20 07:02:14', 3070, 10, 'test_ventilate_hashtag_type_3326') ('2025-03-20 07:02:14', 2719, 10, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-20 07:02:14', 2896, 10, 'test_radom_deformation') ('2025-03-20 07:02:14', 1026, 9, 'mask_coco_for_test') ('2025-03-20 07:02:14', 3856, 8, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-20 07:02:14', 2, 7, 'classification_model') ('2025-03-20 07:02:14', 4553, 4, 'copie_4387_test_replace') ('2025-03-20 07:02:14', 4492, 4, 'copie_4387_test_replace') ('2025-03-20 07:02:14', 233, 4, 'datou_test_rotate_conditionnel') ('2025-03-20 07:02:14', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-20 07:02:14', 571, 2, 'datou_test_flip') ('2025-03-20 07:02:14', 1818, 2, 'blanchir') ('2025-03-20 07:02:14', 2041, 2, 'test_data_aug') ('2025-03-20 07:02:14', 2085, 2, 'train_points_upm_darker') 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 68, in select cursor.execute(query, args) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 316, in _query self._do_get_result(db) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 147, in _do_get_result self._result = result = self._get_result() File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 349, in _get_result return self._get_db().store_result() MySQLdb._exceptions.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 43, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/__init__.py", line 84, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 179, in __init__ super(Connection, self).__init__(*args, **kwargs2) MySQLdb._exceptions.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 77, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 46, 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.04system 9:35.71elapsed 0%CPU (0avgtext+0avgdata 39140maxresident)k 40inputs+32outputs (0major+5778minor)pagefaults 0swaps