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, 00:01:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-25 00:01:25', 125) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-25 00:01:25', 738020) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-25 00:02:18', 21867) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-25 00:02:18', 5971) 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 00:02:20', 4220, 4084, 807, 3277, 'split_time_score_plaque_Valcor', 4.0, '21625734:plaque_val:1064:0', 1) ('2025-03-25 00:02:20', 4219, 7339, 5109, 2230, 'detection_plaque_valcor_010622', 483.0, '20658354:plaque_val:1064:0,21547853:plaque_val:1064:0,21093986:plaque_val:1064:0,21035886:plaque_val:1064:0,20954168:plaque_val:1064:0', 5) ('2025-03-25 00:02:20', 4892, 11618, 11358, 260, 'multi_classification_tapis_dechet', 17.5, '21629518:sevran_122:739:1,21627615:angers_mon:1017:1', 2) ('2025-03-25 00:02:20', 3992, 62, 20, 42, 'RUBBIA_Alu_131221_add_surclassifier_rapport', 6.0, '21657972:aluminium_:739:0', 1) ('2025-03-25 00:02:20', 3459, 151, 113, 38, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 12.6, '21640852:jrm_diff_b:1017:1,21639434:JRM_diff_b:739:0,21638709:JRM_diff_b:739:0,21637914:JRM_diff_b:739:0,21637213:JRM_diff_b:739:0', 5) ('2025-03-25 00:02:20', 3993, 170, 143, 27, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 5.857142857142857, '21660331:emr_diff_b:739:1,21650299:emr_diff_b:739:0,21643826:emr_diff_b:739:0,21669106:gros_carto:739:1,21664216:emr_diff_b:739:0,21657974:pcnc_diff_:739:0,21660326:gros_carto:739:0', 7) ('2025-03-25 00:02:20', 4234, 161, 134, 27, 'refus_rym_velours_valcor', 1.1666666666666667, '21670647:truck_diff:991:1,21674415:incinerati:1103:1,21670646:truck_diff:991:1,21674416:incinerati:1103:1,21668903:truck_diff:991:1,21674417:incinerati:1103:1', 6) ('2025-03-25 00:02:20', 4748, 79, 60, 19, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', 5.0, '21655071:flux_dev_r:739:0,21651494:flux_dev_r:739:0,21669108:flux_dev_r:739:1', 3) ('2025-03-25 00:02:20', 533, 10602, 10590, 12, 'multi_classification_tapis_dechet', 479.0, '21033342:jetson_tes:739:0', 1) ('2025-03-25 00:02:20', 4310, 7415, 7404, 11, 'classifieur_2camions_valcor_021122_v1', 44.0, '21617694:dechet_val:991:0', 1) ('2025-03-25 00:02:20', 4925, 71, 60, 11, 'RUBBIA_PEHD_240325_derichebourg', 6.666666666666667, '21657253:pehd_pp_di:1017:0,21644811:pehd_pp_di:1017:0,21636253:pehd_pp_di:1017:0', 3) ('2025-03-25 00:02:20', 3804, 88, 80, 8, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', 11.0, '21643722:pet_clair_:739:1', 1) ('2025-03-25 00:02:20', 3991, 45, 40, 5, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 4.5, '21669107:ela_diff_b:739:0,21651464:ela_diff_b:1017:0', 2) ('2025-03-25 00:02:20', 4489, 867, 863, 4, 'multi_classification_tapis_dechet', 23.0, '21623111:cedre_arge:1080: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') ('2025-03-25 00:02:20', 3992, 11, 'RUBBIA_Alu_131221_add_surclassifier_rapport', Decimal('3.0000'), '21667880:aluminium_:1017:0', 1) ('2025-03-25 00:02:20', 3993, 77, 'RUBBIA_Carton_131221_add_surclassifier_rapport', Decimal('3.2987'), '21664151:gros_carto:739:0,21664152:emr_diff_b:739:0,21669004:emr_diff_b:1017:0,21669105:emr_diff_b:739:0', 4) ('2025-03-25 00:02:20', 4219, 13225, 'detection_plaque_valcor_010622', Decimal('671.5068'), '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', 13) ('2025-03-25 00:02:20', 4220, 5097, 'split_time_score_plaque_Valcor', Decimal('4.0000'), '21617401:plaque_val:1064:0,21625734:plaque_val:1064:0', 2) ('2025-03-25 00:02:20', 4748, 27, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', Decimal('4.0000'), '21664153:flux_dev_r:739:0', 1) ('2025-03-25 00:02:20', 4916, 3366, 'split_time_score_Acier_Arc_En_Ciel', Decimal('0.0000'), '21623189:aec_metal_:739:0', 1) ('2025-03-25 00:02:20', 4925, 64, 'RUBBIA_PEHD_240325_derichebourg', Decimal('2.9063'), '21664082:pehd_pp_di:1017:0,21667884:pehd_pp_di:1017:0,21669102:pehd_pp_di:1017:0', 3) 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 00:02:20', 533, 6768, 'multi_classification_tapis_dechet') ('2025-03-25 00:02:20', 4219, 2060, 'detection_plaque_valcor_010622') ('2025-03-25 00:02:20', 4877, 55, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-25 00:02:20', 4310, 594, 'classifieur_2camions_valcor_021122_v1') ('2025-03-25 00:02:20', 4489, 2489, 'multi_classification_tapis_dechet') ('2025-03-25 00:02:20', 4220, 807, 'split_time_score_plaque_Valcor') ('2025-03-25 00:02:20', 4892, 32183, 'multi_classification_tapis_dechet') ('2025-03-25 00:02:20', 4925, 480, 'RUBBIA_PEHD_240325_derichebourg') ('2025-03-25 00:02:20', 3459, 826, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-25 00:02:20', 3804, 590, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-25 00:02:20', 3993, 1016, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-25 00:02:20', 3991, 320, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-25 00:02:20', 4748, 480, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-25 00:02:20', 3992, 160, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-25 00:02:20', 4234, 679, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 18) (-5, 29) (0, 108) 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 00:02:37', 4234, 208587, 'refus_rym_velours_valcor') ('2025-03-25 00:02:37', 4877, 80414, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-25 00:02:37', 4876, 54299, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-25 00:02:37', 4883, 54275, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-25 00:02:37', 533, 51223, 'multi_classification_tapis_dechet') ('2025-03-25 00:02:37', 3804, 34357, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-25 00:02:37', 4892, 32189, 'multi_classification_tapis_dechet') ('2025-03-25 00:02:37', 4322, 26793, 'RUBBIA_filmPE_151122') ('2025-03-25 00:02:37', 3993, 23017, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-25 00:02:37', 4310, 20883, 'classifieur_2camions_valcor_021122_v1') ('2025-03-25 00:02:37', 3459, 18835, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-25 00:02:37', 3995, 16829, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-25 00:02:37', 3994, 15858, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-25 00:02:37', 3385, 14084, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-25 00:02:37', 4302, 13944, 'RUBBIA_JRM_consolidate') ('2025-03-25 00:02:37', 4748, 12893, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-25 00:02:37', 4219, 8608, 'detection_plaque_valcor_010622') ('2025-03-25 00:02:37', 3318, 5372, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-25 00:02:37', 4153, 5218, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-25 00:02:37', 4311, 4200, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-25 00:02:37', 4433, 4067, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-25 00:02:37', 4925, 3915, 'RUBBIA_PEHD_240325_derichebourg') ('2025-03-25 00:02:37', 4891, 3800, 'split_time_score_angers_montee_convoyeur') ('2025-03-25 00:02:37', 4871, 3457, 'blur_rubbia_live') ('2025-03-25 00:02:37', 4323, 3262, 'split_time_score_arc_en_ciel_mm') ('2025-03-25 00:02:37', 4489, 2489, 'multi_classification_tapis_dechet') ('2025-03-25 00:02:37', 3991, 2442, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-25 00:02:37', 3992, 2223, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-25 00:02:37', 4887, 1860, 'split_time_score_Sevran_test') ('2025-03-25 00:02:37', 4346, 1645, 'split_time_score_cedre') ('2025-03-25 00:02:37', 4916, 1300, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-25 00:02:37', 4189, 1133, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-25 00:02:37', 4742, 1043, 'entrant_consolidate') ('2025-03-25 00:02:37', 4220, 1007, 'split_time_score_plaque_Valcor') ('2025-03-25 00:02:37', 4849, 833, 'split_time_score_SCCU_6') ('2025-03-25 00:02:37', 4851, 769, 'split_time_score_SCCU_8') ('2025-03-25 00:02:37', 3789, 696, 'split_time_score_test_multi_matiere') ('2025-03-25 00:02:37', 4850, 544, 'split_time_score_SCCU_7') ('2025-03-25 00:02:37', 4510, 377, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-25 00:02:37', 3787, 192, 'split_time_score_urban_fest') ('2025-03-25 00:02:37', 4878, 100, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-25 00:02:37', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-25 00:02:37', 370, 75, 'proportion_papier_qualite_dechets_tri') ('2025-03-25 00:02:37', 243, 53, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-25 00:02:37', 3164, 42, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-25 00:02:37', 4212, 30, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-25 00:02:37', 4209, 30, 'test_acp') ('2025-03-25 00:02:37', 4208, 30, 'test_acp_fit_transform_20') ('2025-03-25 00:02:37', 686, 27, 'copy_argmax_crop') ('2025-03-25 00:02:37', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-25 00:02:37', 4621, 18, 'tfhub_18_7_2023') ('2025-03-25 00:02:37', 4567, 18, 'tfhub_19_06_2023') ('2025-03-25 00:02:37', 40, 16, 'mask_coco_origin') ('2025-03-25 00:02:37', 3990, 15, 'test_crop_condition_blur') ('2025-03-25 00:02:37', 1848, 15, 'Pipeline_upm_photos_blanches') ('2025-03-25 00:02:37', 2896, 15, 'test_radom_deformation') ('2025-03-25 00:02:37', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2025-03-25 00:02:37', 230, 12, 'datou_test_rotate') ('2025-03-25 00:02:37', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-25 00:02:37', 2719, 12, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-25 00:02:37', 4573, 8, 'test_sam_h') ('2025-03-25 00:02:37', 4184, 8, 'detection_plaque_valcor_010622') ('2025-03-25 00:02:37', 1026, 8, 'mask_coco_for_test') ('2025-03-25 00:02:37', 4492, 6, 'copie_4387_test_replace') ('2025-03-25 00:02:37', 233, 6, 'datou_test_rotate_conditionnel') ('2025-03-25 00:02:37', 4553, 6, 'copie_4387_test_replace') ('2025-03-25 00:02:37', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-25 00:02:37', 2, 3, 'classification_model') ('2025-03-25 00:02:37', 571, 3, 'datou_test_flip') ('2025-03-25 00:02:37', 1818, 3, 'blanchir') ('2025-03-25 00:02:37', 2085, 3, 'train_points_upm_darker') ('2025-03-25 00:02:37', 2041, 3, 'test_data_aug') 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', 4979015) ('d4018_output_rle', 924278) ('learn_RUBBIA_REFUS_AMIENS_23', 897895) ('datou_4322_rle', 698083) ('PhotoDescForrotata_polygone', 641004) ('merge_pipeline_rubbia_jrm_details_3459', 526673) ('output_type_final_datou_3068', 204971) ('output_rle_unique_d4430', 188188) ('datou_3993_rle', 106084) ('PhotoDescForlabels_result_test_step_tile', 76362) ('output_merge_d4380', 66893) ('datou_3995_rle', 40306) ('varroa_from_ellipse_tiled_rotate_shrink_whiten_ok', 31122) ('pht_test_rle_unique_nms_output', 29558) ('test_sam', 9845) ('test_non_regreg_generate_new_image', 2867) ('detection_filter_test', 1600) ('mask_coco_origin', 1382) ('test_sam_h', 487) 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 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 315, in _query db.query(q) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 239, in query _mysql.connection.query(self, query) MySQLdb._exceptions.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 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.20user 0.10system 7:08:39elapsed 0%CPU (0avgtext+0avgdata 34012maxresident)k 38696inputs+48outputs (2793major+8185minor)pagefaults 0swaps