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/03/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-23 07:00:26', 82) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-23 07:00:26', 417610) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-23 07:02:49', 13747) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-23 07:02:49', 5518) 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-23 07:02:57', 4219, 18622, 13279, 5343, 'detection_plaque_valcor_010622', 302.25, '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,21603410:plaque_val:1064:0', 8) ('2025-03-23 07:02:57', 3459, 704, 600, 104, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 44.0, '21568037:jrm_diff_b:739:1', 1) ('2025-03-23 07:02:57', 4489, 52, 4, 48, 'multi_classification_tapis_dechet', 6.0, '21616828:cedre_arge:1080:1', 1) ('2025-03-23 07:02:57', 533, 2482, 2470, 12, 'multi_classification_tapis_dechet', 7.0, '21616424:aec_metal_:739:1', 1) ('2025-03-23 07:02:57', 4892, 423, 412, 11, 'multi_classification_tapis_dechet', 7.0, '21616411:angers_mon:1017:1', 1) ('2025-03-23 07:02:57', 4234, 4, 4, 0, 'refus_rym_velours_valcor', 0.0, '21618328:incinerati:1103:1,21618329:incinerati:1103:1', 2) ('2025-03-23 07:02:57', 4866, 1, 1, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 807.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-23 07:02:57', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('623.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) 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-23 07:02:57', 4866, 3, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-23 07:02:57', 4219, 5560, 'detection_plaque_valcor_010622') ('2025-03-23 07:02:57', 3459, 4680, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-23 07:02:57', 4892, 1188, 'multi_classification_tapis_dechet') ('2025-03-23 07:02:57', 533, 7446, 'multi_classification_tapis_dechet') ('2025-03-23 07:02:57', 4489, 12, 'multi_classification_tapis_dechet') ('2025-03-23 07:02:57', 4234, 8, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 8) (-5, 27) (0, 71) 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-23 07:03:27', 4234, 145125, 'refus_rym_velours_valcor') ('2025-03-23 07:03:27', 3459, 70585, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-23 07:03:27', 4310, 24735, 'classifieur_2camions_valcor_021122_v1') ('2025-03-23 07:03:27', 533, 22649, 'multi_classification_tapis_dechet') ('2025-03-23 07:03:27', 4883, 15120, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-23 07:03:27', 4876, 15120, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-23 07:03:27', 3804, 15060, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-23 07:03:27', 4322, 11516, 'RUBBIA_filmPE_151122') ('2025-03-23 07:03:27', 4748, 11153, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-23 07:03:27', 4219, 10488, 'detection_plaque_valcor_010622') ('2025-03-23 07:03:27', 3993, 8953, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-23 07:03:27', 3995, 8276, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-23 07:03:27', 4871, 7501, 'blur_rubbia_live') ('2025-03-23 07:03:27', 4887, 5680, 'split_time_score_Sevran_test') ('2025-03-23 07:03:27', 4892, 4962, 'multi_classification_tapis_dechet') ('2025-03-23 07:03:27', 3994, 4287, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-23 07:03:27', 4866, 4283, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-23 07:03:27', 4311, 4020, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-23 07:03:27', 4346, 3877, 'split_time_score_cedre') ('2025-03-23 07:03:27', 4323, 3720, 'split_time_score_arc_en_ciel_mm') ('2025-03-23 07:03:27', 4916, 3600, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-23 07:03:27', 4891, 3300, 'split_time_score_angers_montee_convoyeur') ('2025-03-23 07:03:27', 3385, 2469, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-23 07:03:27', 4433, 2380, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-23 07:03:27', 4489, 1581, 'multi_classification_tapis_dechet') ('2025-03-23 07:03:27', 3992, 1201, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-23 07:03:27', 3789, 1160, 'split_time_score_test_multi_matiere') ('2025-03-23 07:03:27', 3991, 810, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-23 07:03:27', 4849, 777, 'split_time_score_SCCU_6') ('2025-03-23 07:03:27', 4851, 674, 'split_time_score_SCCU_8') ('2025-03-23 07:03:27', 4220, 510, 'split_time_score_plaque_Valcor') ('2025-03-23 07:03:27', 3787, 320, 'split_time_score_urban_fest') ('2025-03-23 07:03:27', 4878, 240, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-23 07:03:27', 4189, 220, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-23 07:03:27', 4850, 183, 'split_time_score_SCCU_7') ('2025-03-23 07:03:27', 243, 182, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-23 07:03:27', 3181, 165, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-23 07:03:27', 370, 110, 'proportion_papier_qualite_dechets_tri') ('2025-03-23 07:03:27', 3164, 70, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-23 07:03:27', 686, 63, 'copy_argmax_crop') ('2025-03-23 07:03:27', 4208, 50, 'test_acp_fit_transform_20') ('2025-03-23 07:03:27', 4209, 50, 'test_acp') ('2025-03-23 07:03:27', 4212, 50, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-23 07:03:27', 4621, 42, 'tfhub_18_7_2023') ('2025-03-23 07:03:27', 4567, 42, 'tfhub_19_06_2023') ('2025-03-23 07:03:27', 3781, 35, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-23 07:03:27', 1848, 30, 'Pipeline_upm_photos_blanches') ('2025-03-23 07:03:27', 230, 28, 'datou_test_rotate') ('2025-03-23 07:03:27', 2896, 25, 'test_radom_deformation') ('2025-03-23 07:03:27', 3070, 25, 'test_ventilate_hashtag_type_3326') ('2025-03-23 07:03:27', 3990, 25, 'test_crop_condition_blur') ('2025-03-23 07:03:27', 40, 20, 'mask_coco_origin') ('2025-03-23 07:03:27', 3856, 20, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-23 07:03:27', 2719, 20, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-23 07:03:27', 4184, 14, 'detection_plaque_valcor_010622') ('2025-03-23 07:03:27', 233, 14, 'datou_test_rotate_conditionnel') ('2025-03-23 07:03:27', 4573, 10, 'test_sam_h') ('2025-03-23 07:03:27', 4553, 10, 'copie_4387_test_replace') ('2025-03-23 07:03:27', 4492, 10, 'copie_4387_test_replace') ('2025-03-23 07:03:27', 1026, 10, 'mask_coco_for_test') ('2025-03-23 07:03:27', 571, 7, 'datou_test_flip') ('2025-03-23 07:03:27', 2, 7, 'classification_model') ('2025-03-23 07:03:27', 2665, 6, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-23 07:03:27', 2085, 5, 'train_points_upm_darker') ('2025-03-23 07:03:27', 2041, 5, 'test_data_aug') ('2025-03-23 07:03:27', 1818, 5, '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.03system 9:35.23elapsed 0%CPU (0avgtext+0avgdata 39184maxresident)k 152inputs+32outputs (0major+5760minor)pagefaults 0swaps