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: 15/03/2025, 00:01:24 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-15 00:01:24', 69) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-15 00:01:24', 776343) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-15 00:04:20', 32578) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-15 00:04:20', 10917) 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-15 00:04:27', 4219, 12254, 7212, 5042, 'detection_plaque_valcor_010622', 200.375, '21411267:plaque_val:1064:0,20658354:plaque_val:1064:0,20954168:plaque_val:1064:0,21093986:plaque_val:1064:0,21130800:plaque_val:1064:0,21163827:plaque_val:1064:0,21263468:plaque_val:1064:0,21372729:plaque_val:1064:0', 8) ('2025-03-15 00:04:27', 4921, 4731, 960, 3771, 'learn_mask_bonbonne_120325', 59.0, '21247140:aec_metal_:702:0', 1) ('2025-03-15 00:04:27', 4923, 4731, 3200, 1531, 'learn_mask_bonbonne_140325', 12.0, '21247140:aec_metal_:702:0', 1) ('2025-03-15 00:04:27', 4892, 14006, 13719, 287, 'multi_classification_tapis_dechet', 13.666666666666666, '21410740:sevran_122:739:1,21402908:angers_mon:1017:1,21458428:angers_mon:1017:1', 3) ('2025-03-15 00:04:27', 4489, 916, 760, 156, 'multi_classification_tapis_dechet', 23.0, '21403133:cedre_arge:1080:0', 1) ('2025-03-15 00:04:27', 3993, 145, 90, 55, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 6.0, '21442636:pcnc_diff_:739:0,21438130:emr_diff_b:739:0', 2) ('2025-03-15 00:04:27', 3991, 69, 40, 29, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 7.5, '21431417:ela_diff_b:1017:0,21441440:ela_diff_b:1017:0', 2) ('2025-03-15 00:04:27', 4234, 71, 49, 22, 'refus_rym_velours_valcor', 1.3333333333333333, '21452591:truck_diff:991:1,21458339:incinerati:1103:1,21453756:incinerati:1103:1', 3) ('2025-03-15 00:04:27', 4310, 14599, 14580, 19, 'classifieur_2camions_valcor_021122_v1', 32.0, '21406569:dechet_val:991:0,21371910:dechet_val:991:0', 2) ('2025-03-15 00:04:27', 533, 12, 6, 6, 'multi_classification_tapis_dechet', 0.0, '21458430:jetson_tes:739:0', 1) ('2025-03-15 00:04:27', 4866, 8, 8, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 608.0, '20603466:dib_diff_b:440:1,20603587:dib_diff_b:440:1,20603521:dib_diff_b:440:1,20603519:dib_diff_b:440:1,20603414:dib_diff_b:440: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-03-15 00:04:28', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('424.1970'), '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-15 00:04:28', 4323, 7824, 'split_time_score_arc_en_ciel_mm', Decimal('0.0000'), '21402976:jetson_tes:739:1', 1) ('2025-03-15 00:04:28', 4878, 4666, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '21403117:arc_en_cie:979:0', 1) ('2025-03-15 00:04:28', 4887, 6341, 'split_time_score_Sevran_test', Decimal('0.0000'), '21410740: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-15 00:04:28', 4866, 8, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-15 00:04:28', 4219, 5118, 'detection_plaque_valcor_010622') ('2025-03-15 00:04:28', 4921, 320, 'learn_mask_bonbonne_120325') ('2025-03-15 00:04:28', 4923, 3200, 'learn_mask_bonbonne_140325') ('2025-03-15 00:04:28', 4310, 22086, 'classifieur_2camions_valcor_021122_v1') ('2025-03-15 00:04:28', 4892, 39710, 'multi_classification_tapis_dechet') ('2025-03-15 00:04:28', 4489, 2184, 'multi_classification_tapis_dechet') ('2025-03-15 00:04:28', 3991, 320, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-15 00:04:28', 3993, 720, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-15 00:04:28', 4234, 245, 'refus_rym_velours_valcor') ('2025-03-15 00:04:28', 533, 18, 'multi_classification_tapis_dechet') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 17) (-5, 24) (0, 55) 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-15 00:04:42', 4234, 232726, 'refus_rym_velours_valcor') ('2025-03-15 00:04:42', 4877, 59438, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-15 00:04:42', 4876, 58391, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-15 00:04:42', 4883, 57474, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-15 00:04:42', 533, 41213, 'multi_classification_tapis_dechet') ('2025-03-15 00:04:42', 4892, 40499, 'multi_classification_tapis_dechet') ('2025-03-15 00:04:42', 3993, 35114, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-15 00:04:42', 4302, 29984, 'RUBBIA_JRM_consolidate') ('2025-03-15 00:04:42', 3459, 27468, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-15 00:04:42', 3804, 25417, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-15 00:04:42', 4310, 22086, 'classifieur_2camions_valcor_021122_v1') ('2025-03-15 00:04:42', 4322, 18608, 'RUBBIA_filmPE_151122') ('2025-03-15 00:04:42', 3995, 15102, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-15 00:04:42', 3994, 13813, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-15 00:04:42', 3385, 12665, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-15 00:04:42', 4219, 11902, 'detection_plaque_valcor_010622') ('2025-03-15 00:04:42', 3318, 11151, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-15 00:04:42', 4433, 6921, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-15 00:04:42', 4922, 4731, 'learn_mask_acier_140325') ('2025-03-15 00:04:42', 4871, 4667, 'blur_rubbia_live') ('2025-03-15 00:04:42', 4153, 4451, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-15 00:04:42', 4489, 4255, 'multi_classification_tapis_dechet') ('2025-03-15 00:04:42', 4891, 4000, 'split_time_score_angers_montee_convoyeur') ('2025-03-15 00:04:42', 4311, 3900, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-15 00:04:42', 3991, 3664, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-15 00:04:42', 4748, 3453, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-15 00:04:42', 4887, 3315, 'split_time_score_Sevran_test') ('2025-03-15 00:04:42', 4923, 3200, 'learn_mask_bonbonne_140325') ('2025-03-15 00:04:42', 4346, 2325, 'split_time_score_cedre') ('2025-03-15 00:04:42', 3992, 1536, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-15 00:04:42', 4916, 1400, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-15 00:04:42', 4189, 1095, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-15 00:04:42', 3789, 928, 'split_time_score_test_multi_matiere') ('2025-03-15 00:04:42', 4849, 920, 'split_time_score_SCCU_6') ('2025-03-15 00:04:42', 4851, 837, 'split_time_score_SCCU_8') ('2025-03-15 00:04:42', 4510, 756, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-15 00:04:42', 4742, 742, 'entrant_consolidate') ('2025-03-15 00:04:42', 4220, 700, 'split_time_score_plaque_Valcor') ('2025-03-15 00:04:42', 4878, 700, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-15 00:04:42', 4323, 620, 'split_time_score_arc_en_ciel_mm') ('2025-03-15 00:04:42', 4850, 524, 'split_time_score_SCCU_7') ('2025-03-15 00:04:42', 4921, 320, 'learn_mask_bonbonne_120325') ('2025-03-15 00:04:42', 3787, 256, 'split_time_score_urban_fest') ('2025-03-15 00:04:42', 3181, 132, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-15 00:04:42', 370, 125, 'proportion_papier_qualite_dechets_tri') ('2025-03-15 00:04:42', 243, 104, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-15 00:04:42', 3164, 56, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-15 00:04:42', 4208, 40, 'test_acp_fit_transform_20') ('2025-03-15 00:04:42', 4209, 40, 'test_acp') ('2025-03-15 00:04:42', 4212, 40, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-15 00:04:42', 686, 36, 'copy_argmax_crop') ('2025-03-15 00:04:42', 4621, 33, 'tfhub_18_7_2023') ('2025-03-15 00:04:42', 4567, 30, 'tfhub_19_06_2023') ('2025-03-15 00:04:42', 3781, 28, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-15 00:04:42', 230, 24, 'datou_test_rotate') ('2025-03-15 00:04:42', 2896, 20, 'test_radom_deformation') ('2025-03-15 00:04:42', 3070, 20, 'test_ventilate_hashtag_type_3326') ('2025-03-15 00:04:42', 3990, 20, 'test_crop_condition_blur') ('2025-03-15 00:04:42', 1848, 17, 'Pipeline_upm_photos_blanches') ('2025-03-15 00:04:42', 3856, 16, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-15 00:04:42', 40, 16, 'mask_coco_origin') ('2025-03-15 00:04:42', 4866, 16, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-15 00:04:42', 2719, 14, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-15 00:04:42', 4184, 12, 'detection_plaque_valcor_010622') ('2025-03-15 00:04:42', 4573, 9, 'test_sam_h') ('2025-03-15 00:04:42', 4553, 8, 'copie_4387_test_replace') ('2025-03-15 00:04:42', 1026, 8, 'mask_coco_for_test') ('2025-03-15 00:04:42', 4492, 8, 'copie_4387_test_replace') ('2025-03-15 00:04:42', 233, 8, 'datou_test_rotate_conditionnel') ('2025-03-15 00:04:42', 2, 6, 'classification_model') ('2025-03-15 00:04:42', 2085, 4, 'train_points_upm_darker') ('2025-03-15 00:04:42', 2041, 4, 'test_data_aug') ('2025-03-15 00:04:42', 1818, 4, 'blanchir') ('2025-03-15 00:04:42', 571, 4, 'datou_test_flip') ('2025-03-15 00:04:42', 2665, 2, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') 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', 29433731) ('learn_RUBBIA_REFUS_AMIENS_23', 9655326) ('merge_pipeline_rubbia_jrm_details_3459', 4806906) ('d4018_output_rle', 4762997) ('output_rle_unique_d4430', 1705176) ('datou_3993_rle', 1394609) ('PhotoDescForrotata_polygone', 764274) ('datou_4322_rle', 210799) ('PhotoDescForlabels_result_test_step_tile', 91047) ('mask_filmsPE_10_8_23', 44742) ('varroa_from_ellipse_tiled_rotate_shrink_whiten_ok', 41895) ('pht_test_rle_unique_nms_output', 29558) ('learn_convoyeur_qualipapia_nantes_poly_100521_1', 29391) ('test_sam_h', 8324) ('datou_3979_rle', 6941) ('test_non_regreg_generate_new_image', 2041) ('detection_filter_test', 1600) ('mask_coco_origin', 371) 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.21user 0.09system 7:08:39elapsed 0%CPU (0avgtext+0avgdata 33540maxresident)k 29080inputs+40outputs (2460major+8467minor)pagefaults 0swaps