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: 24/03/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-24 07:00:26', 106) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-24 07:00:26', 231676) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-24 07:03:08', 18598) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-24 07:03:08', 3960) 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-24 07:03:18', 4219, 18622, 15059, 3563, 'detection_plaque_valcor_010622', 326.25, '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,20658354:plaque_val:1064:0', 8) ('2025-03-24 07:03:18', 533, 3485, 3245, 240, 'multi_classification_tapis_dechet', 10.0, '21618442:arc_en_cie:739:1,21623189:aec_metal_:739:1,21626094:jetson_tes:739:1', 3) ('2025-03-24 07:03:18', 4892, 273, 200, 73, 'multi_classification_tapis_dechet', 1.0, '21627615:angers_mon:1017:1', 1) ('2025-03-24 07:03:18', 4310, 1098, 1074, 24, 'classifieur_2camions_valcor_021122_v1', 3.0, '21625899:dechet_val:991:0', 1) ('2025-03-24 07:03:18', 4220, 28, 7, 21, 'split_time_score_plaque_Valcor', 0.0, '21625734:plaque_val:1064:0', 1) ('2025-03-24 07:03:18', 4489, 100, 80, 20, 'multi_classification_tapis_dechet', 6.0, '21623111:cedre_arge:1080:1', 1) ('2025-03-24 07:03:18', 4877, 72, 56, 16, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '21629490:JRM_diff_b:979:1,21629426:JRM_diff_b:979:1,21629572:JRM_diff_b:979:1,21629248:JRM_diff_b:979:1,21629197:JRM_diff_b:979:1,21629121:JRM_diff_b:979:1,21628994:JRM_diff_b:979:1,21628786:JRM_diff_b:979:1,21628737:JRM_diff_b:979:1,21628662:JRM_diff_b:979:1,21628485:JRM_diff_b:979:1,21628410:JRM_diff_b:979:1,21628335:JRM_diff_b:979:1,21628308:JRM_diff_b:979:1,21628160:JRM_diff_b:979:1,21628108:JRM_diff_b:979:1,21628053:JRM_diff_b:979:1', 17) ('2025-03-24 07:03:18', 4234, 6, 6, 0, 'refus_rym_velours_valcor', 0.0, '21629322:incinerati:1103:1,21629324:incinerati:1103:1', 2) 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-24 07:03:18', 3804, 56, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', Decimal('0.0000'), '21629516:pet_clair_:739:0,21629522:pet_clair_:739:0', 2) ('2025-03-24 07:03:18', 3993, 110, 'RUBBIA_Carton_131221_add_surclassifier_rapport', Decimal('0.0000'), '21629511:emr_diff_b:739:0,21629512:gros_carto:739:0,21629515:emr_diff_b:739:0,21629519:emr_diff_b:739:0,21629523:emr_diff_b:739:0', 5) ('2025-03-24 07:03:18', 3994, 7, 'RUBBIA_proportion_papier_add_surclassifier_rapport', Decimal('0.0000'), '21629510:gm_diff_ba:739:0', 1) ('2025-03-24 07:03:18', 3995, 55, 'RUBBIA_PEHD_131221_add_surclassifier_rapport', Decimal('0.0000'), '21629513:pehd_pp_di:739:0,21629520:pehd_pp_di:739:0', 2) ('2025-03-24 07:03:18', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('647.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-24 07:03:18', 4220, 1041, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21617401:plaque_val:1064:0,21625734:plaque_val:1064:0', 2) ('2025-03-24 07:03:18', 4322, 107, 'RUBBIA_filmPE_151122', Decimal('0.0000'), '21629509:film_pedb_:739:0,21629517:film_pedb_:739:0', 2) ('2025-03-24 07:03:18', 4748, 59, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', Decimal('0.0000'), '21629514:flux_dev_r:739:0,21629521:flux_dev_r:739:0', 2) ('2025-03-24 07:03:18', 4876, 503, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '21626068:arc_en_cie:979:0', 1) ('2025-03-24 07:03:18', 4877, 4, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', Decimal('0.0000'), '21629572:JRM_diff_b:979:1', 1) ('2025-03-24 07:03:18', 4883, 503, 'split_time_score_JRM_Arc_En_Ciel', Decimal('0.0000'), '21626068:arc_en_cie:979:0', 1) ('2025-03-24 07:03:18', 4891, 273, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21627615:angers_mon:1017:0', 1) ('2025-03-24 07:03:18', 4916, 2135, 'split_time_score_Acier_Arc_En_Ciel', Decimal('0.0000'), '21623189:aec_metal_:739: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-24 07:03:18', 4219, 3560, 'detection_plaque_valcor_010622') ('2025-03-24 07:03:18', 533, 9718, 'multi_classification_tapis_dechet') ('2025-03-24 07:03:18', 4489, 128, 'multi_classification_tapis_dechet') ('2025-03-24 07:03:18', 4220, 7, 'split_time_score_plaque_Valcor') ('2025-03-24 07:03:18', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') ('2025-03-24 07:03:18', 4892, 200, 'multi_classification_tapis_dechet') ('2025-03-24 07:03:18', 4877, 303, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-24 07:03:18', 4234, 12, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 27) (-5, 27) (0, 95) 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-24 07:03:49', 4234, 130150, 'refus_rym_velours_valcor') ('2025-03-24 07:03:49', 533, 30381, 'multi_classification_tapis_dechet') ('2025-03-24 07:03:49', 4310, 22119, 'classifieur_2camions_valcor_021122_v1') ('2025-03-24 07:03:49', 4866, 8733, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-24 07:03:49', 4219, 8684, 'detection_plaque_valcor_010622') ('2025-03-24 07:03:49', 4877, 5222, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-24 07:03:49', 4876, 5099, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-24 07:03:49', 4883, 5075, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-24 07:03:49', 4302, 2380, 'RUBBIA_JRM_consolidate') ('2025-03-24 07:03:49', 4489, 2236, 'multi_classification_tapis_dechet') ('2025-03-24 07:03:49', 4892, 1934, 'multi_classification_tapis_dechet') ('2025-03-24 07:03:49', 3789, 1392, 'split_time_score_test_multi_matiere') ('2025-03-24 07:03:49', 3459, 1060, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-24 07:03:49', 4311, 1000, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-24 07:03:49', 4891, 900, 'split_time_score_angers_montee_convoyeur') ('2025-03-24 07:03:49', 4851, 872, 'split_time_score_SCCU_8') ('2025-03-24 07:03:49', 4849, 798, 'split_time_score_SCCU_6') ('2025-03-24 07:03:49', 4916, 700, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-24 07:03:49', 4871, 504, 'blur_rubbia_live') ('2025-03-24 07:03:49', 4850, 463, 'split_time_score_SCCU_7') ('2025-03-24 07:03:49', 4220, 407, 'split_time_score_plaque_Valcor') ('2025-03-24 07:03:49', 3787, 384, 'split_time_score_urban_fest') ('2025-03-24 07:03:49', 4346, 345, 'split_time_score_cedre') ('2025-03-24 07:03:49', 4510, 247, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-24 07:03:49', 3181, 198, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-24 07:03:49', 370, 155, 'proportion_papier_qualite_dechets_tri') ('2025-03-24 07:03:49', 4323, 142, 'split_time_score_arc_en_ciel_mm') ('2025-03-24 07:03:49', 243, 131, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-24 07:03:49', 3164, 84, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-24 07:03:49', 4208, 60, 'test_acp_fit_transform_20') ('2025-03-24 07:03:49', 4209, 60, 'test_acp') ('2025-03-24 07:03:49', 4212, 60, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-24 07:03:49', 686, 54, 'copy_argmax_crop') ('2025-03-24 07:03:49', 3781, 42, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-24 07:03:49', 4621, 36, 'tfhub_18_7_2023') ('2025-03-24 07:03:49', 4567, 33, 'tfhub_19_06_2023') ('2025-03-24 07:03:49', 3070, 30, 'test_ventilate_hashtag_type_3326') ('2025-03-24 07:03:49', 2896, 30, 'test_radom_deformation') ('2025-03-24 07:03:49', 3990, 30, 'test_crop_condition_blur') ('2025-03-24 07:03:49', 1848, 30, 'Pipeline_upm_photos_blanches') ('2025-03-24 07:03:49', 3856, 24, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-24 07:03:49', 230, 24, 'datou_test_rotate') ('2025-03-24 07:03:49', 2719, 22, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-24 07:03:49', 3385, 20, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-24 07:03:49', 40, 18, 'mask_coco_origin') ('2025-03-24 07:03:49', 4184, 12, 'detection_plaque_valcor_010622') ('2025-03-24 07:03:49', 233, 12, 'datou_test_rotate_conditionnel') ('2025-03-24 07:03:49', 4553, 12, 'copie_4387_test_replace') ('2025-03-24 07:03:49', 4492, 12, 'copie_4387_test_replace') ('2025-03-24 07:03:49', 4573, 9, 'test_sam_h') ('2025-03-24 07:03:49', 1026, 9, 'mask_coco_for_test') ('2025-03-24 07:03:49', 2085, 6, 'train_points_upm_darker') ('2025-03-24 07:03:49', 2041, 6, 'test_data_aug') ('2025-03-24 07:03:49', 1818, 6, 'blanchir') ('2025-03-24 07:03:49', 2, 6, 'classification_model') ('2025-03-24 07:03:49', 571, 6, 'datou_test_flip') ('2025-03-24 07:03:49', 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.21user 0.06system 9:36.02elapsed 0%CPU (0avgtext+0avgdata 39644maxresident)k 296inputs+40outputs (0major+5745minor)pagefaults 0swaps