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: 22/03/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-22 07:00:26', 138) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-22 07:00:26', 810642) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-22 07:01:55', 28625) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-22 07:01:55', 8592) 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-22 07:02:05', 4219, 15625, 10495, 5130, 'detection_plaque_valcor_010622', 317.2857142857143, '20954168:plaque_val:1064:0,21563732:plaque_val:1064:0,21547853:plaque_val:1064:0,21472442:plaque_val:1064:0,21130800:plaque_val:1064:0,21093986:plaque_val:1064:0,20658354:plaque_val:1064:0', 7) ('2025-03-22 07:02:05', 3459, 3532, 660, 2872, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 13.181818181818182, '21603891:jrm_diff_b:739:1,21603890:jrm_diff_b:739:0,21603227:jrm_diff_b:739:0,21591150:jrm_diff_b:1017:0,21590332:JRM_diff_b:739:0,21575530:JRM_diff_b:739:0,21568094:jrm_diff_b:739:0,21568096:jrm_diff_b:739:0,21568111:jrm_diff_b:739:0,21572310:JRM_diff_b:739:0,21574821:JRM_diff_b:739:0', 11) ('2025-03-22 07:02:05', 4871, 8142, 7712, 430, 'blur_rubbia_live', 42.333333333333336, '21478223:arc_en_cie:979:0,21602882:arc_en_cie:979:0,21605229:arc_en_cie:979:0', 3) ('2025-03-22 07:02:05', 4892, 456, 372, 84, 'multi_classification_tapis_dechet', 7.0, '21601226:angers_mon:1017:1', 1) ('2025-03-22 07:02:05', 533, 3943, 3906, 37, 'multi_classification_tapis_dechet', 12.5, '21601245:aec_metal_:739:1,21570234:arc_en_cie:739:1', 2) ('2025-03-22 07:02:05', 4489, 39, 6, 33, 'multi_classification_tapis_dechet', 6.0, '21601288:cedre_arge:1080:1', 1) ('2025-03-22 07:02:05', 4310, 1092, 1074, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '21604540:dechet_val:991:0', 1) ('2025-03-22 07:02:05', 4234, 4, 4, 0, 'refus_rym_velours_valcor', 0.0, '21605271:incinerati:1103:1,21605273:incinerati:1103:1', 2) 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-22 07:02:05', 3459, 2959, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', Decimal('19.7236'), '21567899:jrm_diff_b:739:0,21567984:jrm_diff_b:739:0,21567988:jrm_diff_b:739:0,21567989:jrm_diff_b:739:0,21567990:jrm_diff_b:739:0,21567991:jrm_diff_b:739:0,21567992:jrm_diff_b:739:0,21567993:jrm_diff_b:739:0,21567994:jrm_diff_b:739:0,21567995:jrm_diff_b:739:0,21567996:jrm_diff_b:739:0,21568035:jrm_diff_b:739:0,21568036:jrm_diff_b:739:0,21568037:jrm_diff_b:739:0,21568057:jrm_diff_b:739:0,21568075:jrm_diff_b:739:0,21568077:jrm_diff_b:739:0,21568079:jrm_diff_b:739:0,21568081:jrm_diff_b:739:0,21568082:jrm_diff_b:739:0,21568085:jrm_diff_b:739:0,21568087:jrm_diff_b:739:0,21568089:jrm_diff_b:739:0,21568090:jrm_diff_b:739:0,21568092:jrm_diff_b:739:0,21568093:jrm_diff_b:739:0,21572296:JRM_diff_b:739:0,21572297:JRM_diff_b:739:0,21572298:JRM_diff_b:739:0,21572299:JRM_diff_b:739:0,21572300:JRM_diff_b:739:0,21572301:JRM_diff_b:739:0,21572302:JRM_diff_b:739:0,21572303:JRM_diff_b:739:0,21572304:JRM_diff_b:739:0,21572305:JRM_diff_b:739:0,21572306:JRM_diff_b:739:0,21572307:JRM_diff_b:739:0,21572308:JRM_diff_b:739:0,21572309:J', 40) ('2025-03-22 07:02:05', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('599.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-22 07:02:05', 4220, 4, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21603410:plaque_val:1064:0', 1) ('2025-03-22 07:02:05', 4346, 39, 'split_time_score_cedre', Decimal('0.0000'), '21601288:cedre_arge:1080:0', 1) ('2025-03-22 07:02:05', 4887, 8984, 'split_time_score_Sevran_test', Decimal('0.0000'), '21566047:sevran_122:739:0,21603664:sevran_122:739:0', 2) ('2025-03-22 07:02:05', 4891, 456, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21601226:angers_mon:1017:0', 1) ('2025-03-22 07:02:05', 4916, 2436, 'split_time_score_Acier_Arc_En_Ciel', Decimal('0.0000'), '21601245: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-22 07:02:05', 4219, 5600, 'detection_plaque_valcor_010622') ('2025-03-22 07:02:05', 4871, 6640, 'blur_rubbia_live') ('2025-03-22 07:02:05', 3459, 5280, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-22 07:02:05', 533, 11376, 'multi_classification_tapis_dechet') ('2025-03-22 07:02:05', 4892, 1082, 'multi_classification_tapis_dechet') ('2025-03-22 07:02:05', 4489, 18, 'multi_classification_tapis_dechet') ('2025-03-22 07:02:05', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') ('2025-03-22 07:02:05', 4234, 4, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 9) (-5, 27) (0, 128) 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-22 07:02:15', 4234, 261017, 'refus_rym_velours_valcor') ('2025-03-22 07:02:15', 533, 67377, 'multi_classification_tapis_dechet') ('2025-03-22 07:02:15', 3459, 51914, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-22 07:02:15', 4876, 40286, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-22 07:02:15', 4883, 40259, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-22 07:02:15', 4892, 36528, 'multi_classification_tapis_dechet') ('2025-03-22 07:02:15', 4302, 35228, 'RUBBIA_JRM_consolidate') ('2025-03-22 07:02:15', 3993, 31726, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-22 07:02:15', 4322, 30675, 'RUBBIA_filmPE_151122') ('2025-03-22 07:02:15', 3804, 27982, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-22 07:02:15', 4310, 25722, 'classifieur_2camions_valcor_021122_v1') ('2025-03-22 07:02:15', 4877, 24799, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-22 07:02:15', 3995, 15120, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-22 07:02:15', 3318, 14503, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-22 07:02:15', 4748, 12992, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-22 07:02:15', 3994, 12540, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-22 07:02:15', 3385, 11272, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-22 07:02:15', 4871, 11175, 'blur_rubbia_live') ('2025-03-22 07:02:15', 4219, 10774, 'detection_plaque_valcor_010622') ('2025-03-22 07:02:15', 4433, 8538, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-22 07:02:15', 4887, 4449, 'split_time_score_Sevran_test') ('2025-03-22 07:02:15', 4153, 4404, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-22 07:02:15', 4311, 4300, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-22 07:02:15', 4891, 4000, 'split_time_score_angers_montee_convoyeur') ('2025-03-22 07:02:15', 4323, 3660, 'split_time_score_arc_en_ciel_mm') ('2025-03-22 07:02:15', 4346, 3060, 'split_time_score_cedre') ('2025-03-22 07:02:15', 4489, 2498, 'multi_classification_tapis_dechet') ('2025-03-22 07:02:15', 4916, 2100, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-22 07:02:15', 3991, 1705, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-22 07:02:15', 3789, 1624, 'split_time_score_test_multi_matiere') ('2025-03-22 07:02:15', 4189, 1222, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-22 07:02:15', 3992, 1102, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-22 07:02:15', 4849, 847, 'split_time_score_SCCU_6') ('2025-03-22 07:02:15', 4851, 801, 'split_time_score_SCCU_8') ('2025-03-22 07:02:15', 4878, 800, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-22 07:02:15', 4220, 600, 'split_time_score_plaque_Valcor') ('2025-03-22 07:02:15', 3787, 448, 'split_time_score_urban_fest') ('2025-03-22 07:02:15', 4850, 410, 'split_time_score_SCCU_7') ('2025-03-22 07:02:15', 3181, 231, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-22 07:02:15', 370, 163, 'proportion_papier_qualite_dechets_tri') ('2025-03-22 07:02:15', 4510, 159, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-22 07:02:15', 243, 158, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-22 07:02:15', 3164, 98, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-22 07:02:15', 4924, 71, 'crop_condition_bonbonne_acier') ('2025-03-22 07:02:15', 4209, 70, 'test_acp') ('2025-03-22 07:02:15', 4208, 70, 'test_acp_fit_transform_20') ('2025-03-22 07:02:15', 4212, 70, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-22 07:02:15', 4742, 56, 'entrant_consolidate') ('2025-03-22 07:02:15', 686, 55, 'copy_argmax_crop') ('2025-03-22 07:02:15', 3781, 49, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-22 07:02:15', 4621, 42, 'tfhub_18_7_2023') ('2025-03-22 07:02:15', 4567, 39, 'tfhub_19_06_2023') ('2025-03-22 07:02:15', 2896, 35, 'test_radom_deformation') ('2025-03-22 07:02:15', 3070, 35, 'test_ventilate_hashtag_type_3326') ('2025-03-22 07:02:15', 3990, 35, 'test_crop_condition_blur') ('2025-03-22 07:02:15', 1848, 32, 'Pipeline_upm_photos_blanches') ('2025-03-22 07:02:15', 3856, 28, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-22 07:02:15', 230, 28, 'datou_test_rotate') ('2025-03-22 07:02:15', 2719, 26, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-22 07:02:15', 40, 20, 'mask_coco_origin') ('2025-03-22 07:02:15', 4492, 14, 'copie_4387_test_replace') ('2025-03-22 07:02:15', 4553, 14, 'copie_4387_test_replace') ('2025-03-22 07:02:15', 4184, 14, 'detection_plaque_valcor_010622') ('2025-03-22 07:02:15', 233, 14, 'datou_test_rotate_conditionnel') ('2025-03-22 07:02:15', 4573, 10, 'test_sam_h') ('2025-03-22 07:02:15', 1026, 10, 'mask_coco_for_test') ('2025-03-22 07:02:15', 2085, 8, 'train_points_upm_darker') ('2025-03-22 07:02:15', 2, 7, 'classification_model') ('2025-03-22 07:02:15', 571, 7, 'datou_test_flip') ('2025-03-22 07:02:15', 1818, 7, 'blanchir') ('2025-03-22 07:02:15', 2041, 7, 'test_data_aug') ('2025-03-22 07:02:15', 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') 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.23user 0.04system 9:35.89elapsed 0%CPU (0avgtext+0avgdata 38988maxresident)k 376inputs+40outputs (1major+5777minor)pagefaults 0swaps