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: 03/03/2025, 07:00:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-03 07:00:25', 195) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-03 07:00:25', 314966) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-03 07:01:54', 15373) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-03 07:01:54', 86943) 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-03 07:02:41', 4892, 284603, 197730, 86873, 'multi_classification_tapis_dechet', 62.92857142857143, '20290274:sevran_122:739:0,20463989:angers_mon:1017:0,20431061:sevran_122:739:0,20423208:angers_mon:1017:1,20389954:sevran_122:739:0,20387535:angers_mon:1017:0,20367920:angers_mon:1017:0,20353321:angers_mon:1017:0,20322867:sevran_122:739:0,20313919:angers_mon:1017:0,20276947:angers_mon:1017:0,20493604:angers_mon:1017:0,20244820:sevran_122:739:0,20199788:sevran_122:739:0,20232661:angers_mon:1017:0,20194574:angers_mon:1017:0,20168060:sevran_122:739:0,20167655:angers_mon:1017:0,20146865:angers_mon:1017:0,20127080:angers_mon:1017:0,20912926:sevran_122:739:0,20826447:sevran_122:739:0,20624128:angers_mon:1017:1,20657815:angers_mon:1017:0,20675555:angers_mon:1017:1,20675556:sevran_122:739:1,20713767:sevran_122:739:0,20698944:angers_mon:1017:1,20763208:angers_mon:1017:0,20763370:sevran_122:739:0,20784310:angers_mon:1017:0,20791115:sevran_122:739:0,20594769:angers_mon:1017:0,20820339:angers_mon:1017:0,20943154:angers_mon:1017:0,20943983:sevran_122:739:0,20953546:angers_mon:1017:0,20590016:angers_mon:1017:1,20578707:ang', 42) ('2025-03-03 07:02:41', 4489, 31, 5, 26, 'multi_classification_tapis_dechet', 6.0, '20957787:cedre_arge:1080:0', 1) ('2025-03-03 07:02:41', 4877, 106, 86, 20, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '20963198:JRM_diff_b:979:1,20961840:JRM_diff_b:979:1,20961893:JRM_diff_b:979:1,20961945:JRM_diff_b:979:1,20962020:JRM_diff_b:979:1,20962106:JRM_diff_b:979:1,20962206:JRM_diff_b:979:1,20962233:JRM_diff_b:979:1,20962310:JRM_diff_b:979:1,20962361:JRM_diff_b:979:1,20962437:JRM_diff_b:979:1,20962511:JRM_diff_b:979:1,20962562:JRM_diff_b:979:1,20962613:JRM_diff_b:979:1,20962689:JRM_diff_b:979:1,20962745:JRM_diff_b:979:1,20962798:JRM_diff_b:979:1,20962969:JRM_diff_b:979:1,20963044:JRM_diff_b:979:1,20963094:JRM_diff_b:979:1', 20) ('2025-03-03 07:02:41', 4310, 1098, 1080, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '20959707:dechet_val:991:0', 1) ('2025-03-03 07:02:41', 4871, 473, 459, 14, 'blur_rubbia_live', 1.0, '20960306:arc_en_cie:979:1', 1) ('2025-03-03 07:02:41', 4302, 76, 65, 11, 'RUBBIA_JRM_consolidate', 0.0, '20962794:JRM_diff_b:979:0', 1) ('2025-03-03 07:02:41', 533, 293, 293, 0, 'multi_classification_tapis_dechet', 23.0, '20955307:arc_en_cie:739:1', 1) ('2025-03-03 07:02:41', 4234, 3, 3, 0, 'refus_rym_velours_valcor', 0.0, '20963097:incinerati:1103:1', 1) ('2025-03-03 07:02:41', 4866, 14, 14, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 326.0, '20603413:dib_diff_b:440:1,20603410:dib_diff_b:440:1,20610133:excoffier_:1117:1,20608798:excoffier_:1117:1,20608796:excoffier_:1117:1,20603587:dib_diff_b:440:1,20603562:dib_diff_b:440:1,20608797:excoffier_:1117:1,20603524:dib_diff_b:440:1,20603553:dib_diff_b:440:1,20603557:dib_diff_b:440:1', 11) 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-03 07:02:45', 370, 7, 'proportion_papier_qualite_dechets_tri', Decimal('3.0000'), '13545779:papier_dif:739:0,13545783:papier_dif:739:0', 2) ('2025-03-03 07:02:45', 4219, 14098, 'detection_plaque_valcor_010622', Decimal('170.1552'), '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,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,20954168:plaque_val:1064:0,20958095:plaque_val:1064:0', 14) ('2025-03-03 07:02:45', 4220, 577, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '20954168:plaque_val:1064:0,20958095:plaque_val:1064:0', 2) ('2025-03-03 07:02:45', 4234, 2, 'refus_rym_velours_valcor', Decimal('0.0000'), '20963096:incinerati:1103:0', 1) ('2025-03-03 07:02:45', 4302, 76, 'RUBBIA_JRM_consolidate', Decimal('0.0000'), '20962794:JRM_diff_b:979:0', 1) ('2025-03-03 07:02:45', 4346, 31, 'split_time_score_cedre', Decimal('0.0000'), '20957787:cedre_arge:1080:0', 1) ('2025-03-03 07:02:45', 4891, 327, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '20961399:angers_mon:1017:0', 1) ('2025-03-03 07:02:45', 4892, 332, 'multi_classification_tapis_dechet', Decimal('0.9849'), '20961399:angers_mon:1017:0,20963253:sevran_122:739:0', 2) 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-03 07:02:45', 4892, 197512, 'multi_classification_tapis_dechet') ('2025-03-03 07:02:45', 4866, 28, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-03 07:02:45', 533, 877, 'multi_classification_tapis_dechet') ('2025-03-03 07:02:45', 4489, 15, 'multi_classification_tapis_dechet') ('2025-03-03 07:02:45', 4310, 3240, 'classifieur_2camions_valcor_021122_v1') ('2025-03-03 07:02:45', 4877, 516, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-03 07:02:45', 4302, 260, 'RUBBIA_JRM_consolidate') ('2025-03-03 07:02:45', 4234, 3, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 42) (-5, 19) (0, 152) 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-03 07:02:54', 4892, 211895, 'multi_classification_tapis_dechet') ('2025-03-03 07:02:54', 4234, 49870, 'refus_rym_velours_valcor') ('2025-03-03 07:02:54', 4310, 19776, 'classifieur_2camions_valcor_021122_v1') ('2025-03-03 07:02:54', 4866, 8160, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-03 07:02:54', 4876, 4961, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-03 07:02:54', 4883, 4861, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-03 07:02:54', 4877, 4633, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-03 07:02:54', 4302, 2176, 'RUBBIA_JRM_consolidate') ('2025-03-03 07:02:54', 4489, 1827, 'multi_classification_tapis_dechet') ('2025-03-03 07:02:54', 4851, 978, 'split_time_score_SCCU_8') ('2025-03-03 07:02:54', 4311, 900, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-03 07:02:54', 533, 880, 'multi_classification_tapis_dechet') ('2025-03-03 07:02:54', 4891, 800, 'split_time_score_angers_montee_convoyeur') ('2025-03-03 07:02:54', 4849, 776, 'split_time_score_SCCU_6') ('2025-03-03 07:02:54', 4220, 560, 'split_time_score_plaque_Valcor') ('2025-03-03 07:02:54', 4871, 474, 'blur_rubbia_live') ('2025-03-03 07:02:54', 3789, 464, 'split_time_score_test_multi_matiere') ('2025-03-03 07:02:54', 4850, 372, 'split_time_score_SCCU_7') ('2025-03-03 07:02:54', 4346, 248, 'split_time_score_cedre') ('2025-03-03 07:02:54', 243, 130, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-03 07:02:54', 3787, 128, 'split_time_score_urban_fest') ('2025-03-03 07:02:54', 3181, 66, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-03 07:02:54', 686, 45, 'copy_argmax_crop') ('2025-03-03 07:02:54', 370, 43, 'proportion_papier_qualite_dechets_tri') ('2025-03-03 07:02:54', 3164, 28, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-03 07:02:54', 4621, 21, 'tfhub_18_7_2023') ('2025-03-03 07:02:54', 4567, 21, 'tfhub_19_06_2023') ('2025-03-03 07:02:54', 230, 20, 'datou_test_rotate') ('2025-03-03 07:02:54', 3385, 20, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-03 07:02:54', 4212, 20, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-03 07:02:54', 4209, 20, 'test_acp') ('2025-03-03 07:02:54', 4208, 20, 'test_acp_fit_transform_20') ('2025-03-03 07:02:54', 40, 19, 'mask_coco_origin') ('2025-03-03 07:02:54', 3781, 14, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-03 07:02:54', 1848, 12, 'Pipeline_upm_photos_blanches') ('2025-03-03 07:02:54', 3990, 10, 'test_crop_condition_blur') ('2025-03-03 07:02:54', 233, 10, 'datou_test_rotate_conditionnel') ('2025-03-03 07:02:54', 1026, 10, 'mask_coco_for_test') ('2025-03-03 07:02:54', 2719, 10, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-03 07:02:54', 2896, 10, 'test_radom_deformation') ('2025-03-03 07:02:54', 4573, 10, 'test_sam_h') ('2025-03-03 07:02:54', 3070, 10, 'test_ventilate_hashtag_type_3326') ('2025-03-03 07:02:54', 4184, 10, 'detection_plaque_valcor_010622') ('2025-03-03 07:02:54', 3856, 8, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-03 07:02:54', 571, 5, 'datou_test_flip') ('2025-03-03 07:02:54', 2, 5, 'classification_model') ('2025-03-03 07:02:54', 4553, 4, 'copie_4387_test_replace') ('2025-03-03 07:02:54', 4492, 4, 'copie_4387_test_replace') ('2025-03-03 07:02:54', 2665, 2, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-03 07:02:54', 2085, 2, 'train_points_upm_darker') ('2025-03-03 07:02:54', 2041, 2, 'test_data_aug') ('2025-03-03 07:02:54', 1818, 2, '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.21user 0.06system 9:37.47elapsed 0%CPU (0avgtext+0avgdata 39324maxresident)k 12624inputs+40outputs (63major+5739minor)pagefaults 0swaps