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: 28/03/2025, 07:00:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-28 07:00:25', 147) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-28 07:00:25', 852371) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-28 07:03:16', 32525) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-28 07:03:16', 8062) 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-28 07:03:25', 4219, 9008, 4415, 4593, 'detection_plaque_valcor_010622', 386.57142857142856, '20901341:plaque_val:1064:0,20944761:plaque_val:1064:0,21320165:plaque_val:1064:0,21715710:plaque_val:1064:0,21758622:plaque_val:1064:0,20658354:plaque_val:1064:0,21820547:plaque_val:1064:0', 7) ('2025-03-28 07:03:25', 4923, 3367, 300, 3067, 'learn_mask_bonbonne_140325', 20.0, '21623189:aec_metal_:702:0', 1) ('2025-03-28 07:03:25', 4489, 215, 6, 209, 'multi_classification_tapis_dechet', 6.0, '21821154:cedre_arge:1080:1', 1) ('2025-03-28 07:03:25', 3459, 48, 10, 38, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 366.0, '21370675:JRM_diff_b:739:0', 1) ('2025-03-28 07:03:25', 533, 3253, 3223, 30, 'multi_classification_tapis_dechet', 7.0, '21820553:aec_metal_:739:0,21820550:jetson_tes:739:1', 2) ('2025-03-28 07:03:25', 4302, 73, 44, 29, 'RUBBIA_JRM_consolidate', 0.0, '21827676:JRM_diff_b:979:1', 1) ('2025-03-28 07:03:25', 4310, 1098, 1074, 24, 'classifieur_2camions_valcor_021122_v1', 3.0, '21824161:dechet_val:991:0', 1) ('2025-03-28 07:03:25', 4748, 61, 40, 21, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', 11.0, '21812565:flux_dev_r:739:0,21807149:flux_dev_r:739:0', 2) ('2025-03-28 07:03:25', 4925, 141, 120, 21, 'RUBBIA_PEHD_240325_derichebourg', 13.2, '21814396:pehd_pp_di:1017:0,21810730:pehd_pp_di:1017:0,21805307:pehd_pp_di:1017:0,21798321:pehd_pp_di:1017:1,21786303:pehd_pp_di:1017:0', 5) ('2025-03-28 07:03:25', 4892, 8569, 8551, 18, 'multi_classification_tapis_dechet', 15.5, '21820549:angers_mon:1017:0,21773664:sevran_122:739:0', 2) ('2025-03-28 07:03:25', 3993, 48, 40, 8, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 23.0, '21776696:gros_carto:739:0', 1) ('2025-03-28 07:03:25', 4877, 64, 57, 7, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '21828199:JRM_diff_b:979:1,21828134:JRM_diff_b:979:1,21828081:JRM_diff_b:979:1,21828402:JRM_diff_b:979:1,21828471:JRM_diff_b:979:1,21828006:JRM_diff_b:979:1,21827853:JRM_diff_b:979:1,21827678:JRM_diff_b:979:1,21828473:JRM_diff_b:979:1,21827553:JRM_diff_b:979:1,21827036:JRM_diff_b:979:1,21827021:JRM_diff_b:979:1', 12) ('2025-03-28 07:03:25', 3991, 23, 20, 3, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 10.0, '21814369:ela_diff_b:1017:0', 1) ('2025-03-28 07:03:25', 4234, 6, 6, 0, 'refus_rym_velours_valcor', 0.0, '21828250:incinerati:1103:1,21828249: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-28 07:03:26', 3459, 146, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', Decimal('32.0137'), '21722645:JRM_diff_b:739:0,21724721:JRM_diff_b:739:0,21726598:JRM_diff_b:739:0,21726605:JRM_diff_b:739:0,21828472:jrm_diff_b:1017:0', 5) ('2025-03-28 07:03:26', 3804, 58, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', Decimal('0.0000'), '21828475:pet_clair_:1017:0,21828482:pet_clair_:1017:0', 2) ('2025-03-28 07:03:26', 3992, 11, 'RUBBIA_Alu_131221_add_surclassifier_rapport', Decimal('0.0000'), '21828479:aluminium_:1017:0', 1) ('2025-03-28 07:03:26', 3993, 15, 'RUBBIA_Carton_131221_add_surclassifier_rapport', Decimal('0.0000'), '21828484:emr_diff_b:1017:0', 1) ('2025-03-28 07:03:26', 4153, 16, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', Decimal('0.0000'), '21828486:flux_dev_d:1017:0', 1) ('2025-03-28 07:03:26', 4219, 10503, 'detection_plaque_valcor_010622', Decimal('779.4029'), '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', 9) ('2025-03-28 07:03:26', 4220, 2181, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21758622:plaque_val:1064:0,21820547:plaque_val:1064:0', 2) ('2025-03-28 07:03:26', 4234, 3, 'refus_rym_velours_valcor', Decimal('0.0000'), '21828249:incinerati:1103:1', 1) ('2025-03-28 07:03:26', 4346, 215, 'split_time_score_cedre', Decimal('0.0000'), '21821154:cedre_arge:1080:0', 1) ('2025-03-28 07:03:26', 4876, 616, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '21820661:arc_en_cie:979:0', 1) ('2025-03-28 07:03:26', 4877, 15, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', Decimal('0.0000'), '21828458:JRM_diff_b:979:0,21828462:JRM_diff_b:979:0,21828466:JRM_diff_b:979:0', 3) ('2025-03-28 07:03:26', 4878, 4388, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '21758531:arc_en_cie:979:0', 1) ('2025-03-28 07:03:26', 4883, 616, 'split_time_score_JRM_Arc_En_Ciel', Decimal('0.0000'), '21820661:arc_en_cie:979:0', 1) ('2025-03-28 07:03:26', 4887, 6959, 'split_time_score_Sevran_test', Decimal('0.0000'), '21773664:sevran_122:739:0', 1) ('2025-03-28 07:03:26', 4891, 6767, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21758468:angers_mon:1017:0', 1) ('2025-03-28 07:03:26', 4925, 22, 'RUBBIA_PEHD_240325_derichebourg', Decimal('0.0000'), '21828477:pehd_pp_di: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-28 07:03:26', 4219, 3920, 'detection_plaque_valcor_010622') ('2025-03-28 07:03:26', 4923, 300, 'learn_mask_bonbonne_140325') ('2025-03-28 07:03:26', 4892, 23516, 'multi_classification_tapis_dechet') ('2025-03-28 07:03:26', 3993, 320, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-28 07:03:26', 4925, 840, 'RUBBIA_PEHD_240325_derichebourg') ('2025-03-28 07:03:26', 4748, 320, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-28 07:03:26', 3991, 160, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-28 07:03:26', 533, 9639, 'multi_classification_tapis_dechet') ('2025-03-28 07:03:26', 4489, 18, 'multi_classification_tapis_dechet') ('2025-03-28 07:03:26', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') ('2025-03-28 07:03:26', 4877, 323, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-28 07:03:26', 4302, 134, 'RUBBIA_JRM_consolidate') ('2025-03-28 07:03:26', 4234, 6, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 24) (-5, 5) (0, 135) 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-28 07:03:58', 4234, 216409, 'refus_rym_velours_valcor') ('2025-03-28 07:03:58', 4876, 65298, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-28 07:03:58', 4883, 64963, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-28 07:03:58', 3804, 52133, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-28 07:03:58', 533, 48405, 'multi_classification_tapis_dechet') ('2025-03-28 07:03:58', 4877, 42283, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-28 07:03:58', 3993, 42226, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-28 07:03:58', 4892, 39525, 'multi_classification_tapis_dechet') ('2025-03-28 07:03:58', 4322, 35247, 'RUBBIA_filmPE_151122') ('2025-03-28 07:03:58', 4302, 30617, 'RUBBIA_JRM_consolidate') ('2025-03-28 07:03:58', 4748, 24360, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-28 07:03:58', 4310, 23495, 'classifieur_2camions_valcor_021122_v1') ('2025-03-28 07:03:58', 3996, 21983, 'RUBBIA_Refus_add_surclassifier_rapport') ('2025-03-28 07:03:58', 3459, 20617, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-28 07:03:58', 3995, 19584, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-28 07:03:58', 3994, 13562, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-28 07:03:58', 3385, 11092, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-28 07:03:58', 4925, 9068, 'RUBBIA_PEHD_240325_derichebourg') ('2025-03-28 07:03:58', 3318, 8935, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-28 07:03:58', 4923, 7748, 'learn_mask_bonbonne_140325') ('2025-03-28 07:03:58', 4219, 7142, 'detection_plaque_valcor_010622') ('2025-03-28 07:03:58', 4433, 4684, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-28 07:03:58', 4891, 4000, 'split_time_score_angers_montee_convoyeur') ('2025-03-28 07:03:58', 4153, 3923, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-28 07:03:58', 4311, 3900, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-28 07:03:58', 3991, 3536, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-28 07:03:58', 4871, 3517, 'blur_rubbia_live') ('2025-03-28 07:03:58', 4323, 3500, 'split_time_score_arc_en_ciel_mm') ('2025-03-28 07:03:58', 3992, 2829, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-28 07:03:58', 4489, 2764, 'multi_classification_tapis_dechet') ('2025-03-28 07:03:58', 4916, 1700, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-28 07:03:58', 3789, 1624, 'split_time_score_test_multi_matiere') ('2025-03-28 07:03:58', 4887, 1500, 'split_time_score_Sevran_test') ('2025-03-28 07:03:58', 4252, 1414, 'pehd_prod_consolidate') ('2025-03-28 07:03:58', 4346, 1089, 'split_time_score_cedre') ('2025-03-28 07:03:58', 4189, 1027, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-28 07:03:58', 4849, 891, 'split_time_score_SCCU_6') ('2025-03-28 07:03:58', 3142, 860, 'STS_refus_Amiens') ('2025-03-28 07:03:58', 4878, 700, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-28 07:03:58', 4851, 654, 'split_time_score_SCCU_8') ('2025-03-28 07:03:58', 4850, 458, 'split_time_score_SCCU_7') ('2025-03-28 07:03:58', 3787, 448, 'split_time_score_urban_fest') ('2025-03-28 07:03:58', 4220, 300, 'split_time_score_plaque_Valcor') ('2025-03-28 07:03:58', 3181, 231, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-28 07:03:58', 243, 157, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-28 07:03:58', 370, 110, 'proportion_papier_qualite_dechets_tri') ('2025-03-28 07:03:58', 3164, 98, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-28 07:03:58', 4212, 70, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-28 07:03:58', 4209, 70, 'test_acp') ('2025-03-28 07:03:58', 4208, 70, 'test_acp_fit_transform_20') ('2025-03-28 07:03:58', 686, 63, 'copy_argmax_crop') ('2025-03-28 07:03:58', 3781, 49, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-28 07:03:58', 4621, 45, 'tfhub_18_7_2023') ('2025-03-28 07:03:58', 4567, 42, 'tfhub_19_06_2023') ('2025-03-28 07:03:58', 3990, 35, 'test_crop_condition_blur') ('2025-03-28 07:03:58', 1848, 35, 'Pipeline_upm_photos_blanches') ('2025-03-28 07:03:58', 2896, 35, 'test_radom_deformation') ('2025-03-28 07:03:58', 3070, 35, 'test_ventilate_hashtag_type_3326') ('2025-03-28 07:03:58', 230, 32, 'datou_test_rotate') ('2025-03-28 07:03:58', 3856, 28, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-28 07:03:58', 2719, 24, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-28 07:03:58', 40, 19, 'mask_coco_origin') ('2025-03-28 07:03:58', 4184, 16, 'detection_plaque_valcor_010622') ('2025-03-28 07:03:58', 4553, 14, 'copie_4387_test_replace') ('2025-03-28 07:03:58', 4492, 14, 'copie_4387_test_replace') ('2025-03-28 07:03:58', 233, 14, 'datou_test_rotate_conditionnel') ('2025-03-28 07:03:58', 4573, 10, 'test_sam_h') ('2025-03-28 07:03:58', 1026, 10, 'mask_coco_for_test') ('2025-03-28 07:03:58', 2, 8, 'classification_model') ('2025-03-28 07:03:58', 2085, 7, 'train_points_upm_darker') ('2025-03-28 07:03:58', 2041, 7, 'test_data_aug') ('2025-03-28 07:03:58', 1818, 7, 'blanchir') ('2025-03-28 07:03:58', 571, 7, 'datou_test_flip') ('2025-03-28 07:03:58', 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.25user 0.14system 9:37.52elapsed 0%CPU (0avgtext+0avgdata 35380maxresident)k 43672inputs+40outputs (2116major+8955minor)pagefaults 0swaps