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: 21/03/2025, 07:00:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-21 07:00:25', 79) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-21 07:00:25', 385931) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-21 07:02:54', 33395) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-21 07:02:54', 4980) 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-21 07:02:58', 4219, 12447, 7735, 4712, 'detection_plaque_valcor_010622', 293.2857142857143, '20658354:plaque_val:1064:0,20954168:plaque_val:1064:0,21093986:plaque_val:1064:0,21130800:plaque_val:1064:0,21472442:plaque_val:1064:0,21547853:plaque_val:1064:0,21563732:plaque_val:1064:0', 7) ('2025-03-21 07:02:58', 4489, 140, 10, 130, 'multi_classification_tapis_dechet', 6.0, '21563005:cedre_arge:1080:1', 1) ('2025-03-21 07:02:58', 4892, 1845, 1779, 66, 'multi_classification_tapis_dechet', 7.0, '21562305:angers_mon:1017:1', 1) ('2025-03-21 07:02:58', 533, 165, 111, 54, 'multi_classification_tapis_dechet', 0.0, '21565985:jetson_tes:739:1', 1) ('2025-03-21 07:02:58', 4310, 1104, 1080, 24, 'classifieur_2camions_valcor_021122_v1', 3.0, '21565481:dechet_val:991:0', 1) ('2025-03-21 07:02:58', 3993, 17, 17, 0, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 0.0, '21566044:gros_carto:739:1', 1) ('2025-03-21 07:02:58', 3994, 8, 8, 0, 'RUBBIA_proportion_papier_add_surclassifier_rapport', 0.0, '21566043:gm_diff_ba:739:1', 1) ('2025-03-21 07:02:58', 4234, 5, 5, 0, 'refus_rym_velours_valcor', 0.5, '21565854:incinerati:1103:1,21565996:incinerati:1103:1', 2) ('2025-03-21 07:02:58', 4866, 1, 1, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 759.0, '20603524:dib_diff_b:440: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-21 07:02:59', 3804, 22, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', Decimal('0.0000'), '21566045:pet_clair_:739:1', 1) ('2025-03-21 07:02:59', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('575.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-21 07:02:59', 4220, 3939, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21547853:plaque_val:1064:0', 1) ('2025-03-21 07:02:59', 4311, 7422, 'sts_dechet_valcor_matching_v2_2022Q3', Decimal('1.0000'), '21549525:dechet_val:991:1', 1) ('2025-03-21 07:02:59', 4346, 140, 'split_time_score_cedre', Decimal('0.0000'), '21563005:cedre_arge:1080:0', 1) ('2025-03-21 07:02:59', 4887, 8125, 'split_time_score_Sevran_test', Decimal('0.0000'), '21550261:sevran_122:739:1', 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-21 07:02:59', 4866, 3, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-21 07:02:59', 4219, 3490, 'detection_plaque_valcor_010622') ('2025-03-21 07:02:59', 4892, 5677, 'multi_classification_tapis_dechet') ('2025-03-21 07:02:59', 4489, 30, 'multi_classification_tapis_dechet') ('2025-03-21 07:02:59', 4310, 3240, 'classifieur_2camions_valcor_021122_v1') ('2025-03-21 07:02:59', 4234, 14, 'refus_rym_velours_valcor') ('2025-03-21 07:02:59', 533, 321, 'multi_classification_tapis_dechet') ('2025-03-21 07:02:59', 3994, 24, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-21 07:02:59', 3993, 34, 'RUBBIA_Carton_131221_add_surclassifier_rapport') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 12) (-5, 27) (0, 70) 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-21 07:03:29', 4234, 179092, 'refus_rym_velours_valcor') ('2025-03-21 07:03:29', 4892, 43449, 'multi_classification_tapis_dechet') ('2025-03-21 07:03:29', 4310, 21211, 'classifieur_2camions_valcor_021122_v1') ('2025-03-21 07:03:29', 3804, 14958, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-21 07:03:29', 533, 13263, 'multi_classification_tapis_dechet') ('2025-03-21 07:03:29', 3459, 12252, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-21 07:03:29', 3995, 12052, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-21 07:03:29', 3994, 11856, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-21 07:03:29', 4322, 9761, 'RUBBIA_filmPE_151122') ('2025-03-21 07:03:29', 4219, 8386, 'detection_plaque_valcor_010622') ('2025-03-21 07:03:29', 3993, 8129, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-21 07:03:29', 4153, 5706, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-21 07:03:29', 4916, 5300, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-21 07:03:29', 4433, 5272, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-21 07:03:29', 4866, 4047, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-21 07:03:29', 4891, 3500, 'split_time_score_angers_montee_convoyeur') ('2025-03-21 07:03:29', 4748, 3401, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-21 07:03:29', 4346, 3275, 'split_time_score_cedre') ('2025-03-21 07:03:29', 4323, 3140, 'split_time_score_arc_en_ciel_mm') ('2025-03-21 07:03:29', 4311, 3100, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-21 07:03:29', 4887, 2640, 'split_time_score_Sevran_test') ('2025-03-21 07:03:29', 4489, 2603, 'multi_classification_tapis_dechet') ('2025-03-21 07:03:29', 3991, 1338, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-21 07:03:29', 3789, 1160, 'split_time_score_test_multi_matiere') ('2025-03-21 07:03:29', 3318, 1053, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-21 07:03:29', 4742, 868, 'entrant_consolidate') ('2025-03-21 07:03:29', 4189, 838, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-21 07:03:29', 3992, 815, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-21 07:03:29', 4849, 641, 'split_time_score_SCCU_6') ('2025-03-21 07:03:29', 4220, 591, 'split_time_score_plaque_Valcor') ('2025-03-21 07:03:29', 4851, 416, 'split_time_score_SCCU_8') ('2025-03-21 07:03:29', 4510, 344, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-21 07:03:29', 3787, 320, 'split_time_score_urban_fest') ('2025-03-21 07:03:29', 4850, 281, 'split_time_score_SCCU_7') ('2025-03-21 07:03:29', 3181, 165, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-21 07:03:29', 243, 130, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-21 07:03:29', 370, 125, 'proportion_papier_qualite_dechets_tri') ('2025-03-21 07:03:29', 3164, 70, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-21 07:03:29', 4209, 50, 'test_acp') ('2025-03-21 07:03:29', 4212, 50, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-21 07:03:29', 4208, 50, 'test_acp_fit_transform_20') ('2025-03-21 07:03:29', 686, 45, 'copy_argmax_crop') ('2025-03-21 07:03:29', 3781, 35, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-21 07:03:29', 4621, 30, 'tfhub_18_7_2023') ('2025-03-21 07:03:29', 4567, 30, 'tfhub_19_06_2023') ('2025-03-21 07:03:29', 2896, 25, 'test_radom_deformation') ('2025-03-21 07:03:29', 3070, 25, 'test_ventilate_hashtag_type_3326') ('2025-03-21 07:03:29', 3990, 25, 'test_crop_condition_blur') ('2025-03-21 07:03:29', 1848, 25, 'Pipeline_upm_photos_blanches') ('2025-03-21 07:03:29', 230, 20, 'datou_test_rotate') ('2025-03-21 07:03:29', 3856, 20, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-21 07:03:29', 40, 18, 'mask_coco_origin') ('2025-03-21 07:03:29', 2719, 16, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-21 07:03:29', 4553, 10, 'copie_4387_test_replace') ('2025-03-21 07:03:29', 4492, 10, 'copie_4387_test_replace') ('2025-03-21 07:03:29', 4184, 10, 'detection_plaque_valcor_010622') ('2025-03-21 07:03:29', 233, 10, 'datou_test_rotate_conditionnel') ('2025-03-21 07:03:29', 4573, 9, 'test_sam_h') ('2025-03-21 07:03:29', 1026, 9, 'mask_coco_for_test') ('2025-03-21 07:03:29', 2085, 5, 'train_points_upm_darker') ('2025-03-21 07:03:29', 2, 5, 'classification_model') ('2025-03-21 07:03:29', 571, 5, 'datou_test_flip') ('2025-03-21 07:03:29', 1818, 5, 'blanchir') ('2025-03-21 07:03:29', 2041, 5, 'test_data_aug') ('2025-03-21 07:03:29', 2665, 4, '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.22user 0.04system 9:35.99elapsed 0%CPU (0avgtext+0avgdata 39432maxresident)k 376inputs+32outputs (3major+5784minor)pagefaults 0swaps