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: 17/02/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-02-17 07:00:26', 118) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-02-17 07:00:26', 103231) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-02-17 07:02:06', 93911) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-02-17 07:02:07', 1310) 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-02-17 07:02:28', 4219, 1049, 3, 1046, 'detection_plaque_valcor_010622', 1853.0, '18808289:plaque_val:1064:0', 1) ('2025-02-17 07:02:28', 4892, 12230, 11991, 239, 'multi_classification_tapis_dechet', 34.666666666666664, '20543691:sevran_122:739:0,20590016:angers_mon:1017:1,20594769:angers_mon:1017:1', 3) ('2025-02-17 07:02:28', 4310, 1122, 1104, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '20593936:dechet_val:991:0', 1) ('2025-02-17 07:02:28', 4871, 221, 213, 8, 'blur_rubbia_live', 1.0, '20594175:arc_en_cie:979:0', 1) ('2025-02-17 07:02:28', 4877, 12, 10, 2, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '20594834:JRM_diff_b:979:1,20595394:JRM_diff_b:979:1,20595727:JRM_diff_b:979:1', 3) ('2025-02-17 07:02:28', 4302, 31, 30, 1, 'RUBBIA_JRM_consolidate', 0.0, '20595598:JRM_diff_b:979:0', 1) ('2025-02-17 07:02:28', 533, 466, 466, 0, 'multi_classification_tapis_dechet', 23.0, '20591085:arc_en_cie:739: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-02-17 07:02:29', 533, 2, 'multi_classification_tapis_dechet', Decimal('0.0000'), '20595779:arc_en_cie:739:0', 1) ('2025-02-17 07:02:29', 4219, 91745, 'detection_plaque_valcor_010622', Decimal('879.4472'), '18887370:plaque_val:1064:0,18909144:plaque_val:1064:0,18922048:plaque_val:1064:0,18948750:plaque_val:1064:0,18966527:plaque_val:1064:0,18984980:plaque_val:1064:0,18999159:plaque_val:1064:0,19036179:plaque_val:1064:0,19088052:plaque_val:1064:0,19109709:plaque_val:1064:0,19132512:plaque_val:1064:0,19150488:plaque_val:1064:0,19163211:plaque_val:1064:0,19176663:plaque_val:1064:0,19265243:plaque_val:1064:0,19283258:plaque_val:1064:0,19330815:plaque_val:1064:0,19362748:plaque_val:1064:0,19387885:plaque_val:1064:0,19407643:plaque_val:1064:0,19418253:plaque_val:1064:0,19426242:plaque_val:1064:0,19463603:plaque_val:1064:0,19482376:plaque_val:1064:0,19494244:plaque_val:1064:0,19643171:plaque_val:1064:0,19654020:plaque_val:1064:0,19674312:plaque_val:1064:0,19740119:plaque_val:1064:0,19749453:plaque_val:1064:0,19783840:plaque_val:1064:0,19806631:plaque_val:1064:0,19842456:plaque_val:1064:0,19908524:plaque_val:1064:0,19928190:plaque_val:1064:0,19942325:plaque_val:1064:0,19989529:plaque_val:1064:0,20031499:plaque_val:1064:', 55) ('2025-02-17 07:02:29', 4220, 1407, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '20590135:plaque_val:1064:0', 1) ('2025-02-17 07:02:29', 4234, 3, 'refus_rym_velours_valcor', Decimal('0.0000'), '20595624:incinerati:1103:0', 1) ('2025-02-17 07:02:29', 4302, 31, 'RUBBIA_JRM_consolidate', Decimal('0.0000'), '20595598:JRM_diff_b:979:1', 1) ('2025-02-17 07:02:29', 4891, 320, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '20594769:angers_mon:1017: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-02-17 07:02:29', 4892, 12972, 'multi_classification_tapis_dechet') ('2025-02-17 07:02:29', 533, 1396, 'multi_classification_tapis_dechet') ('2025-02-17 07:02:29', 4310, 3312, 'classifieur_2camions_valcor_021122_v1') ('2025-02-17 07:02:29', 4871, 213, 'blur_rubbia_live') ('2025-02-17 07:02:29', 4877, 60, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-02-17 07:02:29', 4302, 120, 'RUBBIA_JRM_consolidate') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 10) (-5, 21) (0, 106) 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-02-17 07:02:46', 4234, 51776, 'refus_rym_velours_valcor') ('2025-02-17 07:02:46', 4310, 19248, 'classifieur_2camions_valcor_021122_v1') ('2025-02-17 07:02:46', 4892, 12972, 'multi_classification_tapis_dechet') ('2025-02-17 07:02:46', 4883, 3721, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-17 07:02:46', 4876, 3721, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-17 07:02:46', 4877, 1924, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-02-17 07:02:46', 3789, 1624, 'split_time_score_test_multi_matiere') ('2025-02-17 07:02:46', 533, 1399, 'multi_classification_tapis_dechet') ('2025-02-17 07:02:46', 4311, 900, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-02-17 07:02:46', 4302, 876, 'RUBBIA_JRM_consolidate') ('2025-02-17 07:02:46', 4851, 817, 'split_time_score_SCCU_8') ('2025-02-17 07:02:46', 4891, 800, 'split_time_score_angers_montee_convoyeur') ('2025-02-17 07:02:46', 4849, 790, 'split_time_score_SCCU_6') ('2025-02-17 07:02:46', 4220, 525, 'split_time_score_plaque_Valcor') ('2025-02-17 07:02:46', 3787, 448, 'split_time_score_urban_fest') ('2025-02-17 07:02:46', 4850, 374, 'split_time_score_SCCU_7') ('2025-02-17 07:02:46', 3181, 231, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-17 07:02:46', 4871, 222, 'blur_rubbia_live') ('2025-02-17 07:02:46', 243, 182, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-02-17 07:02:46', 370, 175, 'proportion_papier_qualite_dechets_tri') ('2025-02-17 07:02:46', 3164, 98, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-02-17 07:02:46', 4208, 70, 'test_acp_fit_transform_20') ('2025-02-17 07:02:46', 4209, 70, 'test_acp') ('2025-02-17 07:02:46', 4212, 70, 'ACP_from_port_5709050_type_5619_size_9') ('2025-02-17 07:02:46', 686, 63, 'copy_argmax_crop') ('2025-02-17 07:02:46', 3781, 49, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-02-17 07:02:46', 4621, 42, 'tfhub_18_7_2023') ('2025-02-17 07:02:46', 4567, 42, 'tfhub_19_06_2023') ('2025-02-17 07:02:46', 3070, 35, 'test_ventilate_hashtag_type_3326') ('2025-02-17 07:02:46', 2896, 35, 'test_radom_deformation') ('2025-02-17 07:02:46', 3990, 35, 'test_crop_condition_blur') ('2025-02-17 07:02:46', 1848, 35, 'Pipeline_upm_photos_blanches') ('2025-02-17 07:02:46', 3856, 28, 'RUBBIA_Carton_050821_extract_RYM') ('2025-02-17 07:02:46', 230, 28, 'datou_test_rotate') ('2025-02-17 07:02:46', 3979, 24, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-17 07:02:46', 3385, 20, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-02-17 07:02:46', 2719, 20, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-02-17 07:02:46', 40, 20, 'mask_coco_origin') ('2025-02-17 07:02:46', 4184, 16, 'detection_plaque_valcor_010622') ('2025-02-17 07:02:46', 4492, 14, 'copie_4387_test_replace') ('2025-02-17 07:02:46', 4553, 14, 'copie_4387_test_replace') ('2025-02-17 07:02:46', 233, 14, 'datou_test_rotate_conditionnel') ('2025-02-17 07:02:46', 4573, 10, 'test_sam_h') ('2025-02-17 07:02:46', 1026, 10, 'mask_coco_for_test') ('2025-02-17 07:02:46', 2, 7, 'classification_model') ('2025-02-17 07:02:46', 2085, 7, 'train_points_upm_darker') ('2025-02-17 07:02:46', 2041, 7, 'test_data_aug') ('2025-02-17 07:02:46', 1818, 7, 'blanchir') ('2025-02-17 07:02:46', 571, 7, 'datou_test_flip') ('2025-02-17 07:02:46', 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.25user 0.19system 9:36.76elapsed 0%CPU (0avgtext+0avgdata 32760maxresident)k 49800inputs+24outputs (2157major+8522minor)pagefaults 0swaps