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: 14/04/2025, 07:00:32 Nombre de datou current ('date', 'nombre de datou current') ('2025-04-14 07:00:32', 516) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-04-14 07:00:40', 534992) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-04-14 07:39:55', 7309) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-04-14 07:39:56', 28643) 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-04-14 07:47:12', 4310, 29705, 8694, 21011, 'classifieur_2camions_valcor_021122_v1', 285.0, '21894409:dechet_val:991:1,21932448:dechet_val:991:1,22004773:dechet_val:991:1,22083520:dechet_val:991:1', 4) ('2025-04-14 07:47:12', 4433, 3360, 1365, 1995, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 252.84444444444443, '22013882:JRM_diff_b:1053:0,22013883:JRM_diff_b:1053:0,22013884:JRM_diff_b:1053:0,22013885:JRM_diff_b:1053:0,22013886:JRM_diff_b:1053:0,22014129:JRM_diff_b:1053:0,22014130:JRM_diff_b:1053:0,22014131:JRM_diff_b:1053:0,22014133:JRM_diff_b:1053:0,22014134:JRM_diff_b:1053:0,22014135:JRM_diff_b:1053:0,22014136:JRM_diff_b:1053:0,22014592:JRM_diff_b:1053:0,22014594:JRM_diff_b:1053:0,22014595:JRM_diff_b:1053:0,22014596:JRM_diff_b:1053:0,22014881:JRM_diff_b:1053:0,22014883:JRM_diff_b:1053:0,22014885:JRM_diff_b:1053:0,22014887:JRM_diff_b:1053:0,22014889:JRM_diff_b:1053:0,22015083:JRM_diff_b:1053:0,22015090:JRM_diff_b:1053:0,22015093:JRM_diff_b:1053:0,22015297:JRM_diff_b:1053:0,22015582:JRM_diff_b:1053:0,22015583:JRM_diff_b:1053:0,22015584:JRM_diff_b:1053:0,22015585:JRM_diff_b:1053:0,22015586:JRM_diff_b:1053:0,22018565:JRM_diff_b:1053:0,22019802:JRM_diff_b:1053:0,22019803:JRM_diff_b:1053:0,22062226:JRM_diff_b:1053:0,22062227:JRM_diff_b:1053:0,22062228:JRM_diff_b:1053:0,22062230:JRM_diff_b:1053:0,22065377:JRM_diff_b:1053:', 45) ('2025-04-14 07:47:12', 4219, 2808, 1340, 1468, 'detection_plaque_valcor_010622', 1326.0, '20593540:plaque_val:1064:1,20625708:plaque_val:1064:1,20658354:plaque_val:1064:1', 3) ('2025-04-14 07:47:12', 533, 1314, 72, 1242, 'multi_classification_tapis_dechet', 7.0, '22346186:aec_metal_:739:1', 1) ('2025-04-14 07:47:12', 3804, 4152, 3152, 1000, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', 230.6695652173913, '21993371:pet_clair_:739:0,22009681:pet_clair_:739:0,22014822:pet_clair_:1017:0,22022346:pet_clair_:739:0,22023872:pet_clair_:1017:0,22035184:pet_clair_:1017:0,22036577:pet_clair_:739:0,22055708:pet_clair_:739:0,22057685:pet_clair_:739:0,22057692:pet_clair_:739:0,22058817:pet_clair_:1017:0,22061806:pet_clair_:739:0,22061820:pet_clair_:739:0,22066201:pet_clair_:739:0,22066338:pet_clair_:739:0,22066744:pet_clair_:739:0,22066645:pet_clair_:739:0,22066792:pet_clair_:739:0,22066511:pet_clair_:739:0,22066566:pet_clair_:739:0,22066575:pet_clair_:739:0,22066583:pet_clair_:739:0,22067098:pet_clair_:739:0,22067189:pet_clair_:739:0,22067129:pet_clair_:739:0,22067233:pet_clair_:739:0,22067299:pet_clair_:739:0,22067308:pet_clair_:739:0,22067376:pet_clair_:739:0,22067408:pet_clair_:739:0,22067884:pet_clair_:739:1,22067902:pet_clair_:739:1,22067932:pet_clair_:739:1,22068104:pet_clair_:739:1,22068116:pet_clair_:739:1,22068135:pet_clair_:739:0,22068153:pet_clair_:739:0,22068179:pet_clair_:739:0,22068193:pet_clair_:739:0,220682', 115) ('2025-04-14 07:47:12', 4748, 2355, 1596, 759, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', 234.83116883116884, '22063463:flux_dev_r:739:0,22066208:flux_dev_r:739:0,22066343:flux_dev_r:739:0,22066801:flux_dev_r:739:0,22066520:flux_dev_r:739:0,22066573:flux_dev_r:739:0,22066585:flux_dev_r:739:0,22066628:flux_dev_r:739:0,22067068:flux_dev_r:739:0,22067135:flux_dev_r:739:0,22066930:flux_dev_r:739:0,22067120:flux_dev_r:739:0,22067235:flux_dev_r:739:0,22067410:flux_dev_r:739:0,22067879:flux_dev_r:739:0,22067896:flux_dev_r:739:1,22068025:flux_dev_r:739:1,22068106:flux_dev_r:739:1,22068119:flux_dev_r:739:1,22068140:flux_dev_r:739:0,22068187:flux_dev_r:739:0,22068202:flux_dev_r:739:0,22068253:flux_dev_r:739:0,22068263:flux_dev_r:739:0,22068189:flux_dev_r:739:0,22068239:flux_dev_r:739:0,22068262:flux_dev_r:739:0,22068305:flux_dev_r:739:0,22068317:flux_dev_r:739:0,22068352:flux_dev_r:739:0,22068375:flux_dev_r:739:0,22068383:flux_dev_r:739:0,22068393:flux_dev_r:739:0,22068383:flux_dev_r:739:0,22068404:flux_dev_r:739:0,22068437:flux_dev_r:739:0,22068462:flux_dev_r:739:0,22068462:flux_dev_r:739:0,22068489:flux_dev_r:739:0,22068489:f', 77) ('2025-04-14 07:47:12', 4234, 831, 322, 509, 'refus_rym_velours_valcor', 22.0, '22331537:truck_diff:991:1,22331551:truck_diff:991:1,22331658:truck_diff:991:1,22331700:truck_diff:991:1,22331734:truck_diff:991:1,22331917:truck_diff:991:1,22332033:truck_diff:991:1,22332053:truck_diff:991:1,22332108:truck_diff:991:1', 9) ('2025-04-14 07:47:12', 3993, 1924, 1522, 402, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 237.27777777777777, '22013470:gros_carto:739:0,22015104:emr_diff_b:739:0,22031759:emr_diff_b:739:0,22040387:emr_diff_b:739:0,22057681:emr_diff_b:739:0,22057688:gros_carto:739:0,22057693:emr_diff_b:739:0,22066555:emr_diff_b:739:0,22066807:gros_carto:739:0,22066864:emr_diff_b:739:0,22066812:emr_diff_b:739:0,22066544:gros_carto:739:0,22066570:emr_diff_b:739:0,22066581:emr_diff_b:739:0,22066805:gros_carto:739:0,22066870:emr_diff_b:739:0,22066891:gros_carto:739:0,22066998:emr_diff_b:739:0,22067130:emr_diff_b:739:0,22067076:gros_carto:739:0,22067109:emr_diff_b:739:0,22067255:emr_diff_b:739:0,22067263:gros_carto:739:0,22067274:emr_diff_b:739:1,22067294:gros_carto:739:0,22067377:emr_diff_b:739:1,22067407:gros_carto:739:1,22067870:emr_diff_b:739:0,22067928:emr_diff_b:739:0,22067965:gros_carto:739:1,22068021:emr_diff_b:739:1,22068062:gros_carto:739:1,22068102:emr_diff_b:739:1,22068114:emr_diff_b:739:1,22068124:emr_diff_b:739:1,22068137:emr_diff_b:739:1,22068146:gros_carto:739:0,22068159:emr_diff_b:739:0,22068182:emr_diff_b:739:0,22068190:e', 72) ('2025-04-14 07:47:12', 3991, 455, 340, 115, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 230.41176470588235, '22023070:ela_diff_b:1017:0,22067142:ela_diff_b:739:0,22068027:ela_diff_b:739:1,22068199:ela_diff_b:739:0,22068188:ela_diff_b:739:0,22068283:ela_diff_b:739:0,22068505:ela_diff_b:739:0,22068505:ela_diff_b:739:0,22067711:ela_diff_b:739:0,22067787:ela_diff_b:739:0,22068532:ela_diff_b:739:0,22068532:ela_diff_b:739:0,22068914:ela_diff_b:739:1,22067872:ela_diff_b:739:1,22067872:ela_diff_b:739:1,22084024:ela_diff_b:739:1,22085535:ela_diff_b:739:1', 17) ('2025-04-14 07:47:12', 3992, 322, 220, 102, 'RUBBIA_Alu_131221_add_surclassifier_rapport', 239.125, '22015105:aluminium_:739:0,22066593:aluminium_:739:0,22067140:aluminium_:739:0,22068373:aluminium_:739:0,22068667:aluminium_:739:1,22067863:aluminium_:739:1,22067863:aluminium_:739:1,22072106:aluminium_:739:1', 8) ('2025-04-14 07:47:12', 3996, 108, 79, 29, 'RUBBIA_Refus_add_surclassifier_rapport', 7.0, '22346205:refus_diff:983:1,22346209:refus_diff:983:1,22346213:refus_diff:983:1,22346214:refus_diff:983:1', 4) ('2025-04-14 07:47:12', 4926, 149, 120, 29, 'RUBBIA_fluxdev_angers_280325', 236.4, '22062484:flux_dev_d:1017:0,21722756:flux_dev_d:1017:0,22067557:flux_dev_d:1017:0,21786302:flux_dev_d:1017:0,21688997:flux_dev_d:1017:1', 5) 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-04-14 07:47:14', 533, 6, 'multi_classification_tapis_dechet', Decimal('0.0000'), '22346605:arc_en_cie:739:0', 1) ('2025-04-14 07:47:14', 3142, 303, 'STS_refus_Amiens', Decimal('0.0000'), '22346182:jetson_new:983:0', 1) ('2025-04-14 07:47:14', 3385, 6, 'split_time_score_JRM_Arc_En_Ciel_peu_dense', Decimal('0.0000'), '22346605:arc_en_cie:739:0', 1) ('2025-04-14 07:47:14', 3543, 66, 'cod_pipline_qualipapia_automatique_cod', Decimal('315.8939'), '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) ('2025-04-14 07:47:14', 4220, 2125, 'split_time_score_plaque_Valcor', Decimal('0.0932'), '22327423:plaque_val:1064:0,22346583:plaque_val:1064:0', 2) ('2025-04-14 07:47:14', 4310, 264, 'classifieur_2camions_valcor_021122_v1', Decimal('3.0000'), '22346558:dechet_val:991:0', 1) ('2025-04-14 07:47:14', 4311, 264, 'sts_dechet_valcor_matching_v2_2022Q3', Decimal('0.0000'), '22346558:dechet_val:991:0', 1) ('2025-04-14 07:47:14', 4323, 518, 'split_time_score_arc_en_ciel_mm', Decimal('0.0000'), '22346305:jetson_tes:739:0', 1) ('2025-04-14 07:47:14', 4871, 696, 'blur_rubbia_live', Decimal('2.0000'), '22346574:arc_en_cie:979:0', 1) ('2025-04-14 07:47:14', 4876, 696, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('2.0000'), '22346574:arc_en_cie:979:0', 1) ('2025-04-14 07:47:14', 4883, 696, 'split_time_score_JRM_Arc_En_Ciel', Decimal('2.0000'), '22346574:arc_en_cie:979:0', 1) ('2025-04-14 07:47:14', 4887, 12, 'split_time_score_Sevran_test', Decimal('0.0000'), '22346604:sevran_122:739:0', 1) ('2025-04-14 07:47:14', 4891, 70, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '22346591:angers_mon:1017:0', 1) ('2025-04-14 07:47:14', 4892, 82, 'multi_classification_tapis_dechet', Decimal('0.8537'), '22346591:angers_mon:1017:0,22346604:sevran_122:739:0', 2) ('2025-04-14 07:47:14', 4893, 389, 'split_time_score_Sevran_test2', Decimal('0.0000'), '22346504:Test_PRINE:739:0', 1) ('2025-04-14 07:47:14', 4916, 1314, 'split_time_score_Acier_Arc_En_Ciel', Decimal('0.0000'), '22346186: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-04-14 07:47:14', 4219, 3380, 'detection_plaque_valcor_010622') ('2025-04-14 07:47:14', 4926, 343, 'RUBBIA_fluxdev_angers_280325') ('2025-04-14 07:47:14', 4310, 27444, 'classifieur_2camions_valcor_021122_v1') ('2025-04-14 07:47:14', 533, 727, 'multi_classification_tapis_dechet') ('2025-04-14 07:47:14', 3993, 898, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-04-14 07:47:14', 3992, 340, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-04-14 07:47:14', 3804, 3172, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-04-14 07:47:14', 4748, 548, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-04-14 07:47:14', 4433, 405, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-04-14 07:47:14', 4234, 3662, 'refus_rym_velours_valcor') ('2025-04-14 07:47:14', 3996, 287, 'RUBBIA_Refus_add_surclassifier_rapport') Nombre de datous demandés par statut ('statut', 'nombre de datous') (98, 1) (99, 22) (0, 314) (1, 206) 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-04-14 07:49:44', 4234, 272707, 'refus_rym_velours_valcor') ('2025-04-14 07:49:44', 3804, 79272, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-04-14 07:49:44', 4748, 54347, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-04-14 07:49:44', 4310, 33685, 'classifieur_2camions_valcor_021122_v1') ('2025-04-14 07:49:44', 3993, 19047, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-04-14 07:49:44', 533, 16943, 'multi_classification_tapis_dechet') ('2025-04-14 07:49:44', 4433, 8424, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-04-14 07:49:44', 3991, 7143, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-04-14 07:49:44', 3992, 6425, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-04-14 07:49:44', 4892, 5678, 'multi_classification_tapis_dechet') ('2025-04-14 07:49:44', 3459, 4762, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-04-14 07:49:44', 4219, 3802, 'detection_plaque_valcor_010622') ('2025-04-14 07:49:44', 4926, 1077, 'RUBBIA_fluxdev_angers_280325') ('2025-04-14 07:49:44', 4850, 698, 'split_time_score_SCCU_7') ('2025-04-14 07:49:44', 3789, 696, 'split_time_score_test_multi_matiere') ('2025-04-14 07:49:44', 4851, 694, 'split_time_score_SCCU_8') ('2025-04-14 07:49:44', 4311, 600, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-04-14 07:49:44', 4220, 600, 'split_time_score_plaque_Valcor') ('2025-04-14 07:49:44', 3996, 585, 'RUBBIA_Refus_add_surclassifier_rapport') ('2025-04-14 07:49:44', 4742, 553, 'entrant_consolidate') ('2025-04-14 07:49:44', 4849, 497, 'split_time_score_SCCU_6') ('2025-04-14 07:49:44', 4891, 200, 'split_time_score_angers_montee_convoyeur') ('2025-04-14 07:49:44', 3787, 192, 'split_time_score_urban_fest') ('2025-04-14 07:49:44', 243, 104, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-04-14 07:49:44', 4916, 100, 'split_time_score_Acier_Arc_En_Ciel') ('2025-04-14 07:49:44', 4189, 100, 'split_time_score_JRM_Perlen_convoyeur') ('2025-04-14 07:49:44', 3142, 100, 'STS_refus_Amiens') ('2025-04-14 07:49:44', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2025-04-14 07:49:44', 4893, 88, 'split_time_score_Sevran_test2') ('2025-04-14 07:49:44', 370, 83, 'proportion_papier_qualite_dechets_tri') ('2025-04-14 07:49:44', 4621, 42, 'tfhub_18_7_2023') ('2025-04-14 07:49:44', 4567, 42, 'tfhub_19_06_2023') ('2025-04-14 07:49:44', 3164, 42, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-04-14 07:49:44', 686, 38, 'copy_argmax_crop') ('2025-04-14 07:49:44', 4208, 30, 'test_acp_fit_transform_20') ('2025-04-14 07:49:44', 4209, 30, 'test_acp') ('2025-04-14 07:49:44', 4212, 30, 'ACP_from_port_5709050_type_5619_size_9') ('2025-04-14 07:49:44', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-04-14 07:49:44', 3385, 20, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-04-14 07:49:44', 230, 19, 'datou_test_rotate') ('2025-04-14 07:49:44', 40, 18, 'mask_coco_origin') ('2025-04-14 07:49:44', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2025-04-14 07:49:44', 2896, 15, 'test_radom_deformation') ('2025-04-14 07:49:44', 3990, 15, 'test_crop_condition_blur') ('2025-04-14 07:49:44', 1848, 15, 'Pipeline_upm_photos_blanches') ('2025-04-14 07:49:44', 4184, 14, 'detection_plaque_valcor_010622') ('2025-04-14 07:49:44', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2025-04-14 07:49:44', 233, 10, 'datou_test_rotate_conditionnel') ('2025-04-14 07:49:44', 1026, 10, 'mask_coco_for_test') ('2025-04-14 07:49:44', 4573, 8, 'test_sam_h') ('2025-04-14 07:49:44', 2, 7, 'classification_model') ('2025-04-14 07:49:44', 4553, 6, 'copie_4387_test_replace') ('2025-04-14 07:49:44', 4492, 6, 'copie_4387_test_replace') ('2025-04-14 07:49:44', 571, 6, 'datou_test_flip') ('2025-04-14 07:49:44', 2719, 6, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-04-14 07:49:44', 1818, 5, 'blanchir') ('2025-04-14 07:49:44', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-04-14 07:49:44', 2041, 3, 'test_data_aug') ('2025-04-14 07:49:44', 2085, 3, '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 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.22user 0.08system 1:34:49elapsed 0%CPU (0avgtext+0avgdata 36964maxresident)k 21760inputs+48outputs (1908major+8334minor)pagefaults 0swaps