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: 23/02/2025, 07:00:27 Nombre de datou current ('date', 'nombre de datou current') ('2025-02-23 07:00:27', 87) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-02-23 07:00:27', 403938) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-02-23 07:02:15', 10346) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-02-23 07:02:15', 133) 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-23 07:02:18', 4892, 1300, 1185, 115, 'multi_classification_tapis_dechet', 6.0, '20753839:angers_mon:1017:1', 1) ('2025-02-23 07:02:18', 4310, 1088, 1070, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '20756013:dechet_val:991:0', 1) ('2025-02-23 07:02:18', 4234, 7, 7, 0, 'refus_rym_velours_valcor', 0.0, '20756457:incinerati:1103:1,20756455:incinerati:1103:1', 2) ('2025-02-23 07:02:18', 4866, 44, 44, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 131.0857142857143, '20603587:dib_diff_b:440:1,20603580:dib_diff_b:440:1,20608795:excoffier_:1117:1,20608796:excoffier_:1117:1,20608797:excoffier_:1117:1,20608798:excoffier_:1117:1,20610130:excoffier_:1117:1,20610131:excoffier_:1117:1,20610132:excoffier_:1117:1,20610133:excoffier_:1117:1,20610135:excoffier_:1117:1,20610137:excoffier_:1117:1,20610139:excoffier_:1117:1,20610140:excoffier_:1117:1,20610149:excoffier_:1117:1,20675517:excoffier_:1117:1,20603519:dib_diff_b:440:1,20603410:dib_diff_b:440:1,20603413:dib_diff_b:440:1,20603414:dib_diff_b:440:1,20603415:dib_diff_b:440:1,20603417:dib_diff_b:440:1,20603423:dib_diff_b:440:1,20603465:dib_diff_b:440:1,20603466:dib_diff_b:440:1,20607424:excoffier_:440:1,20603520:dib_diff_b:440:1,20603521:dib_diff_b:440:1,20603524:dib_diff_b:440:1,20603551:dib_diff_b:440:1,20603553:dib_diff_b:440:1,20603555:dib_diff_b:440:1,20603557:dib_diff_b:440:1,20603559:dib_diff_b:440:1,20603562:dib_diff_b:440:1', 35) 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-23 07:02:18', 4219, 4006, 'detection_plaque_valcor_010622', Decimal('77.4383'), '20625708:plaque_val:1064:0,20658354:plaque_val:1064:0,20675558:plaque_val:1064:0,20699287:plaque_val:1064:0,20739642:plaque_val:1064:0,20753913:plaque_val:1064:0', 6) ('2025-02-23 07:02:18', 4220, 463, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '20739642:plaque_val:1064:0,20753913:plaque_val:1064:0', 2) ('2025-02-23 07:02:18', 4311, 5877, 'sts_dechet_valcor_matching_v2_2022Q3', Decimal('1.0000'), '20745849:dechet_val:991: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-02-23 07:02:18', 4866, 105, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-02-23 07:02:18', 4892, 2955, 'multi_classification_tapis_dechet') ('2025-02-23 07:02:18', 4310, 3210, 'classifieur_2camions_valcor_021122_v1') ('2025-02-23 07:02:18', 4234, 7, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 40) (-5, 19) (0, 45) 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-23 07:02:36', 4234, 163867, 'refus_rym_velours_valcor') ('2025-02-23 07:02:36', 4883, 50400, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-23 07:02:36', 4876, 50000, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-23 07:02:36', 4866, 38039, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-02-23 07:02:36', 4310, 17637, 'classifieur_2camions_valcor_021122_v1') ('2025-02-23 07:02:36', 3993, 15668, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-02-23 07:02:36', 4892, 14673, 'multi_classification_tapis_dechet') ('2025-02-23 07:02:36', 4322, 10408, 'RUBBIA_filmPE_151122') ('2025-02-23 07:02:36', 4893, 5853, 'split_time_score_Sevran_test2') ('2025-02-23 07:02:36', 3459, 5830, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-23 07:02:36', 4311, 3820, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-02-23 07:02:36', 4891, 3500, 'split_time_score_angers_montee_convoyeur') ('2025-02-23 07:02:36', 4302, 3012, 'RUBBIA_JRM_consolidate') ('2025-02-23 07:02:36', 3994, 2715, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-23 07:02:36', 3385, 2693, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-02-23 07:02:36', 3804, 2651, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-02-23 07:02:36', 533, 2241, 'multi_classification_tapis_dechet') ('2025-02-23 07:02:36', 3992, 2043, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-02-23 07:02:36', 3995, 1189, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-23 07:02:36', 4851, 828, 'split_time_score_SCCU_8') ('2025-02-23 07:02:36', 4878, 800, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-23 07:02:36', 3991, 787, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-23 07:02:36', 4850, 766, 'split_time_score_SCCU_7') ('2025-02-23 07:02:36', 4153, 718, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-23 07:02:36', 3789, 696, 'split_time_score_test_multi_matiere') ('2025-02-23 07:02:36', 4849, 686, 'split_time_score_SCCU_6') ('2025-02-23 07:02:36', 4220, 400, 'split_time_score_plaque_Valcor') ('2025-02-23 07:02:36', 4189, 200, 'split_time_score_JRM_Perlen_convoyeur') ('2025-02-23 07:02:36', 3787, 192, 'split_time_score_urban_fest') ('2025-02-23 07:02:36', 4887, 140, 'split_time_score_Sevran_test') ('2025-02-23 07:02:36', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-23 07:02:36', 243, 78, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-02-23 07:02:36', 370, 50, 'proportion_papier_qualite_dechets_tri') ('2025-02-23 07:02:36', 3164, 42, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-02-23 07:02:36', 4208, 30, 'test_acp_fit_transform_20') ('2025-02-23 07:02:36', 4209, 30, 'test_acp') ('2025-02-23 07:02:36', 4212, 30, 'ACP_from_port_5709050_type_5619_size_9') ('2025-02-23 07:02:36', 4621, 27, 'tfhub_18_7_2023') ('2025-02-23 07:02:36', 4567, 27, 'tfhub_19_06_2023') ('2025-02-23 07:02:36', 686, 27, 'copy_argmax_crop') ('2025-02-23 07:02:36', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-02-23 07:02:36', 230, 20, 'datou_test_rotate') ('2025-02-23 07:02:36', 40, 20, 'mask_coco_origin') ('2025-02-23 07:02:36', 1848, 15, 'Pipeline_upm_photos_blanches') ('2025-02-23 07:02:36', 2896, 15, 'test_radom_deformation') ('2025-02-23 07:02:36', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2025-02-23 07:02:36', 3990, 15, 'test_crop_condition_blur') ('2025-02-23 07:02:36', 2719, 12, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-02-23 07:02:36', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2025-02-23 07:02:36', 4184, 10, 'detection_plaque_valcor_010622') ('2025-02-23 07:02:36', 4573, 10, 'test_sam_h') ('2025-02-23 07:02:36', 1026, 10, 'mask_coco_for_test') ('2025-02-23 07:02:36', 4492, 6, 'copie_4387_test_replace') ('2025-02-23 07:02:36', 4553, 6, 'copie_4387_test_replace') ('2025-02-23 07:02:36', 233, 6, 'datou_test_rotate_conditionnel') ('2025-02-23 07:02:36', 2, 5, 'classification_model') ('2025-02-23 07:02:36', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-02-23 07:02:36', 571, 3, 'datou_test_flip') ('2025-02-23 07:02:36', 2085, 3, 'train_points_upm_darker') ('2025-02-23 07:02:36', 2041, 3, 'test_data_aug') ('2025-02-23 07:02:36', 1818, 3, 'blanchir') 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.24user 0.08system 9:35.34elapsed 0%CPU (0avgtext+0avgdata 34276maxresident)k 19408inputs+24outputs (953major+9631minor)pagefaults 0swaps