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: 25/03/2025, 07:00:27 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-25 07:00:27', 107) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-25 07:00:27', 816722) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-25 07:02:51', 18468) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-25 07:02:51', 5838) 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-25 07:02:55', 4220, 4085, 907, 3178, 'split_time_score_plaque_Valcor', 0.0, '21625734:plaque_val:1064:0', 1) ('2025-03-25 07:02:55', 4219, 7339, 5659, 1680, 'detection_plaque_valcor_010622', 490.0, '20954168:plaque_val:1064:0,21547853:plaque_val:1064:1,20658354:plaque_val:1064:0,21093986:plaque_val:1064:0,21035886:plaque_val:1064:0', 5) ('2025-03-25 07:02:55', 533, 6498, 5912, 586, 'multi_classification_tapis_dechet', 12.666666666666666, '21674486:aec_metal_:739:1,21674485:jetson_tes:739:1,21629573:arc_en_cie:739:1', 3) ('2025-03-25 07:02:55', 4489, 179, 3, 176, 'multi_classification_tapis_dechet', 6.0, '21675288:cedre_arge:1080:1', 1) ('2025-03-25 07:02:55', 4892, 1103, 965, 138, 'multi_classification_tapis_dechet', 6.0, '21674587:angers_mon:1017:1', 1) ('2025-03-25 07:02:55', 3995, 97, 70, 27, 'RUBBIA_PEHD_131221_add_surclassifier_rapport', 4.0, '21676156:pehd_pp_di:739:1', 1) ('2025-03-25 07:02:55', 3804, 275, 250, 25, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', 4.0, '21676755:pet_clair_:739:1,21675479:pet_clair_:739:0', 2) ('2025-03-25 07:02:55', 4310, 1092, 1074, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '21677229:dechet_val:991:0', 1) ('2025-03-25 07:02:55', 4302, 48, 35, 13, 'RUBBIA_JRM_consolidate', 0.0, '21680843:JRM_diff_b:979:0', 1) ('2025-03-25 07:02:55', 4877, 41, 32, 9, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '21680182:JRM_diff_b:979:1,21680232:JRM_diff_b:979:1,21680287:JRM_diff_b:979:1,21680462:JRM_diff_b:979:1,21680588:JRM_diff_b:979:1,21680589:JRM_diff_b:979:1,21680640:JRM_diff_b:979:1,21680968:JRM_diff_b:979:1,21681022:JRM_diff_b:979:1,21681074:JRM_diff_b:979:1', 10) ('2025-03-25 07:02:55', 4234, 3, 3, 0, 'refus_rym_velours_valcor', 0.0, '21681136:incinerati:1103: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-25 07:02:55', 4219, 13228, 'detection_plaque_valcor_010622', Decimal('678.3529'), '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,21681285:plaque_val:1064:0', 14) ('2025-03-25 07:02:55', 4220, 4085, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21625734:plaque_val:1064:0', 1) ('2025-03-25 07:02:55', 4302, 48, 'RUBBIA_JRM_consolidate', Decimal('0.0000'), '21680843:JRM_diff_b:979:0', 1) ('2025-03-25 07:02:55', 4891, 1103, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21674587:angers_mon:1017:0', 1) ('2025-03-25 07:02:55', 4892, 6, 'multi_classification_tapis_dechet', Decimal('0.0000'), '21681287:sevran_122: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-25 07:02:55', 4219, 3020, 'detection_plaque_valcor_010622') ('2025-03-25 07:02:55', 4877, 227, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-25 07:02:55', 4220, 900, 'split_time_score_plaque_Valcor') ('2025-03-25 07:02:55', 533, 17471, 'multi_classification_tapis_dechet') ('2025-03-25 07:02:55', 4892, 2242, 'multi_classification_tapis_dechet') ('2025-03-25 07:02:55', 4489, 9, 'multi_classification_tapis_dechet') ('2025-03-25 07:02:55', 3804, 1940, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-25 07:02:55', 3995, 560, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-25 07:02:55', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') ('2025-03-25 07:02:55', 4302, 140, 'RUBBIA_JRM_consolidate') ('2025-03-25 07:02:55', 4234, 3, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 26) (-5, 29) (0, 82) 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-25 07:03:15', 4234, 182268, 'refus_rym_velours_valcor') ('2025-03-25 07:03:15', 4877, 81279, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-25 07:03:15', 4876, 58445, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-25 07:03:15', 4883, 58223, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-25 07:03:15', 533, 50750, 'multi_classification_tapis_dechet') ('2025-03-25 07:03:15', 3804, 48089, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-25 07:03:15', 4892, 39231, 'multi_classification_tapis_dechet') ('2025-03-25 07:03:15', 4322, 37605, 'RUBBIA_filmPE_151122') ('2025-03-25 07:03:15', 3993, 35130, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-25 07:03:15', 4302, 27308, 'RUBBIA_JRM_consolidate') ('2025-03-25 07:03:15', 3994, 23491, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-25 07:03:15', 4310, 22494, 'classifieur_2camions_valcor_021122_v1') ('2025-03-25 07:03:15', 3995, 20160, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-25 07:03:15', 3459, 19655, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-25 07:03:15', 4748, 16857, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-25 07:03:15', 3318, 16451, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-25 07:03:15', 3385, 14084, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-25 07:03:15', 4219, 7650, 'detection_plaque_valcor_010622') ('2025-03-25 07:03:15', 4925, 7168, 'RUBBIA_PEHD_240325_derichebourg') ('2025-03-25 07:03:15', 3992, 5962, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-25 07:03:15', 4153, 5883, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-25 07:03:15', 4311, 4200, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-25 07:03:15', 4433, 4067, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-25 07:03:15', 4891, 3800, 'split_time_score_angers_montee_convoyeur') ('2025-03-25 07:03:15', 4871, 3465, 'blur_rubbia_live') ('2025-03-25 07:03:15', 4323, 3340, 'split_time_score_arc_en_ciel_mm') ('2025-03-25 07:03:15', 3991, 2792, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-25 07:03:15', 4489, 2438, 'multi_classification_tapis_dechet') ('2025-03-25 07:03:15', 4887, 2400, 'split_time_score_Sevran_test') ('2025-03-25 07:03:15', 4346, 1654, 'split_time_score_cedre') ('2025-03-25 07:03:15', 4220, 1200, 'split_time_score_plaque_Valcor') ('2025-03-25 07:03:15', 4189, 1133, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-25 07:03:15', 4916, 1100, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-25 07:03:15', 4742, 1043, 'entrant_consolidate') ('2025-03-25 07:03:15', 4849, 850, 'split_time_score_SCCU_6') ('2025-03-25 07:03:15', 4878, 800, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-25 07:03:15', 4851, 755, 'split_time_score_SCCU_8') ('2025-03-25 07:03:15', 3789, 696, 'split_time_score_test_multi_matiere') ('2025-03-25 07:03:15', 4850, 567, 'split_time_score_SCCU_7') ('2025-03-25 07:03:15', 3787, 192, 'split_time_score_urban_fest') ('2025-03-25 07:03:15', 4510, 130, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-25 07:03:15', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-25 07:03:15', 243, 78, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-25 07:03:15', 370, 75, 'proportion_papier_qualite_dechets_tri') ('2025-03-25 07:03:15', 3164, 42, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-25 07:03:15', 4212, 30, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-25 07:03:15', 4209, 30, 'test_acp') ('2025-03-25 07:03:15', 4208, 30, 'test_acp_fit_transform_20') ('2025-03-25 07:03:15', 686, 27, 'copy_argmax_crop') ('2025-03-25 07:03:15', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-25 07:03:15', 4621, 18, 'tfhub_18_7_2023') ('2025-03-25 07:03:15', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2025-03-25 07:03:15', 4567, 15, 'tfhub_19_06_2023') ('2025-03-25 07:03:15', 1848, 15, 'Pipeline_upm_photos_blanches') ('2025-03-25 07:03:15', 2896, 15, 'test_radom_deformation') ('2025-03-25 07:03:15', 3990, 15, 'test_crop_condition_blur') ('2025-03-25 07:03:15', 40, 14, 'mask_coco_origin') ('2025-03-25 07:03:15', 230, 12, 'datou_test_rotate') ('2025-03-25 07:03:15', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-25 07:03:15', 2719, 10, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-25 07:03:15', 4184, 8, 'detection_plaque_valcor_010622') ('2025-03-25 07:03:15', 4573, 7, 'test_sam_h') ('2025-03-25 07:03:15', 1026, 7, 'mask_coco_for_test') ('2025-03-25 07:03:15', 4553, 6, 'copie_4387_test_replace') ('2025-03-25 07:03:15', 4492, 6, 'copie_4387_test_replace') ('2025-03-25 07:03:15', 233, 6, 'datou_test_rotate_conditionnel') ('2025-03-25 07:03:15', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-25 07:03:15', 1818, 3, 'blanchir') ('2025-03-25 07:03:15', 2041, 3, 'test_data_aug') ('2025-03-25 07:03:15', 2085, 3, 'train_points_upm_darker') ('2025-03-25 07:03:15', 571, 3, 'datou_test_flip') ('2025-03-25 07:03:15', 2, 3, 'classification_model') 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.21user 0.06system 9:35.09elapsed 0%CPU (0avgtext+0avgdata 39316maxresident)k 12952inputs+40outputs (63major+5732minor)pagefaults 0swaps