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/03/2025, 07:00:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-17 07:00:25', 72) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-17 07:00:25', 214727) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-17 07:02:20', 18879) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-17 07:02:20', 5110) 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-17 07:02:25', 4219, 8409, 3861, 4548, 'detection_plaque_valcor_010622', 307.6, '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', 5) ('2025-03-17 07:02:25', 533, 4491, 4227, 264, 'multi_classification_tapis_dechet', 11.666666666666666, '21477537:aec_metal_:739:1,21474045:arc_en_cie:739:1,21477534:jetson_tes:739:1', 3) ('2025-03-17 07:02:25', 4489, 191, 6, 185, 'multi_classification_tapis_dechet', 6.0, '21477542:cedre_arge:1080:1', 1) ('2025-03-17 07:02:25', 4892, 387, 310, 77, 'multi_classification_tapis_dechet', 27.0, '21479094:angers_mon:1017:1,21459367:sevran_122:739:0', 2) ('2025-03-17 07:02:25', 4310, 1098, 1080, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '21478122:dechet_val:991:0', 1) ('2025-03-17 07:02:25', 4871, 416, 405, 11, 'blur_rubbia_live', 1.0, '21478223:arc_en_cie:979:1', 1) ('2025-03-17 07:02:25', 4877, 46, 39, 7, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '21479388:JRM_diff_b:979:1,21479464:JRM_diff_b:979:1,21479794:JRM_diff_b:979:1,21480124:JRM_diff_b:979:1,21480327:JRM_diff_b:979:1,21480531:JRM_diff_b:979:1,21480582:JRM_diff_b:979:1,21480658:JRM_diff_b:979:1,21480659:JRM_diff_b:979:0', 9) ('2025-03-17 07:02:25', 3993, 28, 28, 0, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 0.0, '21480704:emr_diff_b:739:1,21480700:emr_diff_b:739:1', 2) ('2025-03-17 07:02:25', 4234, 4, 4, 0, 'refus_rym_velours_valcor', 0.0, '21480545:incinerati:1103:1', 1) ('2025-03-17 07:02:25', 4866, 4, 4, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 661.25, '20603524:dib_diff_b:440:1,20608796:excoffier_:1117:1,20610133:excoffier_:1117:1,20603414:dib_diff_b:440:1', 4) 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-17 07:02:26', 533, 2, 'multi_classification_tapis_dechet', Decimal('0.0000'), '21480733:arc_en_cie:739:0', 1) ('2025-03-17 07:02:26', 3804, 35, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', Decimal('0.0000'), '21480674:pet_clair_:739:0,21480703:pet_clair_:739:0', 2) ('2025-03-17 07:02:26', 3993, 13, 'RUBBIA_Carton_131221_add_surclassifier_rapport', Decimal('0.0000'), '21480700:emr_diff_b:739:1', 1) ('2025-03-17 07:02:26', 3995, 18, 'RUBBIA_PEHD_131221_add_surclassifier_rapport', Decimal('0.0000'), '21480702:pehd_pp_di:739:0', 1) ('2025-03-17 07:02:26', 4219, 13747, 'detection_plaque_valcor_010622', Decimal('479.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-17 07:02:26', 4220, 4112, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21472442:plaque_val:1064:0,21477964:plaque_val:1064:0', 2) ('2025-03-17 07:02:26', 4322, 36, 'RUBBIA_filmPE_151122', Decimal('0.0000'), '21480675:film_pedb_:739:0', 1) ('2025-03-17 07:02:26', 4346, 191, 'split_time_score_cedre', Decimal('0.0000'), '21477542:cedre_arge:1080:0', 1) ('2025-03-17 07:02:26', 4748, 21, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', Decimal('0.0000'), '21480701:flux_dev_r:739:0', 1) ('2025-03-17 07:02:26', 4876, 416, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '21478223:arc_en_cie:979:0', 1) ('2025-03-17 07:02:26', 4877, 10, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', Decimal('0.0000'), '21480659:JRM_diff_b:979:0,21480730:JRM_diff_b:979:0', 2) ('2025-03-17 07:02:26', 4891, 280, '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-17 07:02:26', 4866, 8, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-17 07:02:26', 4219, 3664, 'detection_plaque_valcor_010622') ('2025-03-17 07:02:26', 533, 12679, 'multi_classification_tapis_dechet') ('2025-03-17 07:02:26', 4489, 18, 'multi_classification_tapis_dechet') ('2025-03-17 07:02:26', 4310, 3240, 'classifieur_2camions_valcor_021122_v1') ('2025-03-17 07:02:26', 4871, 408, 'blur_rubbia_live') ('2025-03-17 07:02:26', 4892, 204, 'multi_classification_tapis_dechet') ('2025-03-17 07:02:26', 4877, 226, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-17 07:02:26', 4234, 8, 'refus_rym_velours_valcor') ('2025-03-17 07:02:26', 3993, 28, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-17 07:02:26', 3994, 9, 'RUBBIA_proportion_papier_add_surclassifier_rapport') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 26) (-5, 24) (0, 57) 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-17 07:02:37', 4866, 65928, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-17 07:02:37', 4234, 48328, 'refus_rym_velours_valcor') ('2025-03-17 07:02:37', 533, 34581, 'multi_classification_tapis_dechet') ('2025-03-17 07:02:37', 4310, 23637, 'classifieur_2camions_valcor_021122_v1') ('2025-03-17 07:02:37', 4892, 11010, 'multi_classification_tapis_dechet') ('2025-03-17 07:02:37', 4219, 8390, 'detection_plaque_valcor_010622') ('2025-03-17 07:02:37', 4883, 4190, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-17 07:02:37', 4876, 4103, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-17 07:02:37', 4877, 3689, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-17 07:02:37', 4302, 1736, 'RUBBIA_JRM_consolidate') ('2025-03-17 07:02:37', 4489, 1209, 'multi_classification_tapis_dechet') ('2025-03-17 07:02:37', 4311, 1000, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-17 07:02:37', 4891, 900, 'split_time_score_angers_montee_convoyeur') ('2025-03-17 07:02:37', 4851, 861, 'split_time_score_SCCU_8') ('2025-03-17 07:02:37', 4849, 753, 'split_time_score_SCCU_6') ('2025-03-17 07:02:37', 4323, 720, 'split_time_score_arc_en_ciel_mm') ('2025-03-17 07:02:37', 4916, 700, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-17 07:02:37', 3789, 696, 'split_time_score_test_multi_matiere') ('2025-03-17 07:02:37', 4850, 451, 'split_time_score_SCCU_7') ('2025-03-17 07:02:37', 4871, 409, 'blur_rubbia_live') ('2025-03-17 07:02:37', 4220, 400, 'split_time_score_plaque_Valcor') ('2025-03-17 07:02:37', 4346, 355, 'split_time_score_cedre') ('2025-03-17 07:02:37', 3787, 192, 'split_time_score_urban_fest') ('2025-03-17 07:02:37', 3385, 120, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-17 07:02:37', 4189, 100, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-17 07:02:37', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-17 07:02:37', 243, 78, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-17 07:02:37', 370, 75, 'proportion_papier_qualite_dechets_tri') ('2025-03-17 07:02:37', 3164, 42, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-17 07:02:37', 3993, 41, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-17 07:02:37', 4208, 30, 'test_acp_fit_transform_20') ('2025-03-17 07:02:37', 4209, 30, 'test_acp') ('2025-03-17 07:02:37', 4212, 30, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-17 07:02:37', 4621, 30, 'tfhub_18_7_2023') ('2025-03-17 07:02:37', 4567, 30, 'tfhub_19_06_2023') ('2025-03-17 07:02:37', 230, 28, 'datou_test_rotate') ('2025-03-17 07:02:37', 686, 27, 'copy_argmax_crop') ('2025-03-17 07:02:37', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-17 07:02:37', 40, 18, 'mask_coco_origin') ('2025-03-17 07:02:37', 1848, 15, 'Pipeline_upm_photos_blanches') ('2025-03-17 07:02:37', 3990, 15, 'test_crop_condition_blur') ('2025-03-17 07:02:37', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2025-03-17 07:02:37', 2896, 15, 'test_radom_deformation') ('2025-03-17 07:02:37', 4184, 14, 'detection_plaque_valcor_010622') ('2025-03-17 07:02:37', 2719, 12, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-17 07:02:37', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-17 07:02:37', 4573, 10, 'test_sam_h') ('2025-03-17 07:02:37', 1026, 10, 'mask_coco_for_test') ('2025-03-17 07:02:37', 3994, 9, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-17 07:02:37', 2, 7, 'classification_model') ('2025-03-17 07:02:37', 4553, 6, 'copie_4387_test_replace') ('2025-03-17 07:02:37', 4492, 6, 'copie_4387_test_replace') ('2025-03-17 07:02:37', 233, 6, 'datou_test_rotate_conditionnel') ('2025-03-17 07:02:37', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-17 07:02:37', 2085, 3, 'train_points_upm_darker') ('2025-03-17 07:02:37', 2041, 3, 'test_data_aug') ('2025-03-17 07:02:37', 1818, 3, 'blanchir') ('2025-03-17 07:02:37', 571, 3, 'datou_test_flip') 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.23user 0.06system 9:37.07elapsed 0%CPU (0avgtext+0avgdata 39240maxresident)k 896inputs+40outputs (6major+5737minor)pagefaults 0swaps