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: 18/03/2025, 07:00:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-18 07:00:25', 63) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-18 07:00:25', 588081) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-18 07:03:28', 22417) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-18 07:03:28', 4968) 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-18 07:03:43', 4219, 11246, 6674, 4572, 'detection_plaque_valcor_010622', 241.57142857142858, '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,21477964:plaque_val:1064:0,21507514:plaque_val:1064:0', 7) ('2025-03-18 07:03:43', 4892, 7906, 7626, 280, 'multi_classification_tapis_dechet', 10.333333333333334, '21506277:angers_mon:1017:1,21480734:sevran_122:739:0,21508360:sevran_122:739:1', 3) ('2025-03-18 07:03:43', 4489, 169, 74, 95, 'multi_classification_tapis_dechet', 6.0, '21506576:cedre_arge:1080:1', 1) ('2025-03-18 07:03:43', 4310, 1098, 1074, 24, 'classifieur_2camions_valcor_021122_v1', 3.0, '21507714:dechet_val:991:0', 1) ('2025-03-18 07:03:43', 4234, 5, 5, 0, 'refus_rym_velours_valcor', 0.0, '21508318:incinerati:1103:1,21508316:incinerati:1103:1', 2) ('2025-03-18 07:03:43', 4866, 3, 3, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 685.3333333333334, '20603524:dib_diff_b:440:1,20610133:excoffier_:1117:1,20603414:dib_diff_b:440:1', 3) 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-18 07:03:43', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('503.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-18 07:03:43', 4220, 2824, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21477964:plaque_val:1064:0', 1) ('2025-03-18 07:03:43', 4891, 5846, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21479094: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-03-18 07:03:43', 4866, 3, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-18 07:03:43', 4219, 5632, 'detection_plaque_valcor_010622') ('2025-03-18 07:03:43', 4892, 21219, 'multi_classification_tapis_dechet') ('2025-03-18 07:03:43', 4489, 92, 'multi_classification_tapis_dechet') ('2025-03-18 07:03:43', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') ('2025-03-18 07:03:43', 4234, 22, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 7) (-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-18 07:04:12', 4234, 304592, 'refus_rym_velours_valcor') ('2025-03-18 07:04:12', 4892, 38211, 'multi_classification_tapis_dechet') ('2025-03-18 07:04:12', 3993, 32645, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-18 07:04:12', 3804, 26568, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-18 07:04:12', 4310, 20976, 'classifieur_2camions_valcor_021122_v1') ('2025-03-18 07:04:12', 4322, 20339, 'RUBBIA_filmPE_151122') ('2025-03-18 07:04:12', 3994, 14203, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-18 07:04:12', 3995, 11609, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-18 07:04:12', 3318, 10778, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-18 07:04:12', 4219, 9430, 'detection_plaque_valcor_010622') ('2025-03-18 07:04:12', 533, 9249, 'multi_classification_tapis_dechet') ('2025-03-18 07:04:12', 4433, 8993, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-18 07:04:12', 3459, 8584, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-18 07:04:12', 4877, 8079, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-18 07:04:12', 4876, 7900, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-18 07:04:12', 4883, 7800, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-18 07:04:12', 4153, 6414, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-18 07:04:12', 4887, 6112, 'split_time_score_Sevran_test') ('2025-03-18 07:04:12', 4346, 4352, 'split_time_score_cedre') ('2025-03-18 07:04:12', 4311, 4100, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-18 07:04:12', 4891, 4000, 'split_time_score_angers_montee_convoyeur') ('2025-03-18 07:04:12', 4489, 3195, 'multi_classification_tapis_dechet') ('2025-03-18 07:04:12', 4302, 3044, 'RUBBIA_JRM_consolidate') ('2025-03-18 07:04:12', 4748, 2350, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-18 07:04:12', 3991, 2001, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-18 07:04:12', 3385, 1960, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-18 07:04:12', 4866, 1958, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-18 07:04:12', 4189, 1200, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-18 07:04:12', 4849, 967, 'split_time_score_SCCU_6') ('2025-03-18 07:04:12', 4851, 707, 'split_time_score_SCCU_8') ('2025-03-18 07:04:12', 4871, 656, 'blur_rubbia_live') ('2025-03-18 07:04:12', 4220, 588, 'split_time_score_plaque_Valcor') ('2025-03-18 07:04:12', 3992, 570, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-18 07:04:12', 4323, 520, 'split_time_score_arc_en_ciel_mm') ('2025-03-18 07:04:12', 4252, 511, 'pehd_prod_consolidate') ('2025-03-18 07:04:12', 4916, 500, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-18 07:04:12', 4850, 471, 'split_time_score_SCCU_7') ('2025-03-18 07:04:12', 3789, 232, 'split_time_score_test_multi_matiere') ('2025-03-18 07:04:12', 4510, 132, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-18 07:04:12', 4742, 112, 'entrant_consolidate') ('2025-03-18 07:04:12', 3787, 64, 'split_time_score_urban_fest') ('2025-03-18 07:04:12', 243, 52, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-18 07:04:12', 3181, 33, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-18 07:04:12', 230, 28, 'datou_test_rotate') ('2025-03-18 07:04:12', 4621, 27, 'tfhub_18_7_2023') ('2025-03-18 07:04:12', 370, 25, 'proportion_papier_qualite_dechets_tri') ('2025-03-18 07:04:12', 4567, 24, 'tfhub_19_06_2023') ('2025-03-18 07:04:12', 686, 18, 'copy_argmax_crop') ('2025-03-18 07:04:12', 40, 14, 'mask_coco_origin') ('2025-03-18 07:04:12', 3164, 14, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-18 07:04:12', 4184, 14, 'detection_plaque_valcor_010622') ('2025-03-18 07:04:12', 4212, 10, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-18 07:04:12', 4209, 10, 'test_acp') ('2025-03-18 07:04:12', 4208, 10, 'test_acp_fit_transform_20') ('2025-03-18 07:04:12', 4573, 9, 'test_sam_h') ('2025-03-18 07:04:12', 2719, 8, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-18 07:04:12', 1026, 7, 'mask_coco_for_test') ('2025-03-18 07:04:12', 2, 7, 'classification_model') ('2025-03-18 07:04:12', 3781, 7, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-18 07:04:12', 1848, 5, 'Pipeline_upm_photos_blanches') ('2025-03-18 07:04:12', 2896, 5, 'test_radom_deformation') ('2025-03-18 07:04:12', 3070, 5, 'test_ventilate_hashtag_type_3326') ('2025-03-18 07:04:12', 3990, 5, 'test_crop_condition_blur') ('2025-03-18 07:04:12', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-18 07:04:12', 233, 4, 'datou_test_rotate_conditionnel') ('2025-03-18 07:04:12', 3856, 4, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-18 07:04:12', 4553, 2, 'copie_4387_test_replace') ('2025-03-18 07:04:12', 4492, 2, 'copie_4387_test_replace') ('2025-03-18 07:04:12', 571, 2, 'datou_test_flip') ('2025-03-18 07:04:12', 2041, 1, 'test_data_aug') ('2025-03-18 07:04:12', 1818, 1, 'blanchir') ('2025-03-18 07:04:12', 2085, 1, 'train_points_upm_darker') 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.21user 0.05system 9:36.42elapsed 0%CPU (0avgtext+0avgdata 39092maxresident)k 40inputs+32outputs (0major+5774minor)pagefaults 0swaps