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: 14/02/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-02-14 07:00:26', 156) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-02-14 07:00:26', 573010) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-02-14 07:01:31', 102910) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-02-14 07:01:31', 3091) 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-02-14 07:01:41', 4219, 1049, 3, 1046, 'detection_plaque_valcor_010622', 1781.0, '18808289:plaque_val:1064:0', 1) ('2025-02-14 07:01:41', 4892, 1887, 1336, 551, 'multi_classification_tapis_dechet', 7.0, '20528771:angers_mon:1017:1', 1) ('2025-02-14 07:01:41', 4322, 869, 379, 490, 'RUBBIA_filmPE_151122', 80.125, '20524358:film_pedb_:1017:1,19783410:film_pedb_:739:0,20528865:film_pedb_:739:1,20528864:film_pedb_:739:1,20506969:film_pedb_:1017:0,20528845:film_pedb_:739:1,20522137:film_pedb_:1017:0,20522903:film_pedb_:1017:0', 8) ('2025-02-14 07:01:41', 3994, 589, 200, 389, 'RUBBIA_proportion_papier_add_surclassifier_rapport', 485.0, '19909479:pcm_diff_b:739:0', 1) ('2025-02-14 07:01:41', 4234, 629, 365, 264, 'refus_rym_velours_valcor', 185.83333333333334, '20543604:incinerati:1103:1,20029321:truck_diff:991:0,20071883:truck_diff:991:0,20079008:truck_diff:991:0,20524075:incinerati:1103:1,20524072:incinerati:1103:1', 6) ('2025-02-14 07:01:41', 4310, 8636, 8444, 192, 'classifieur_2camions_valcor_021122_v1', 376.5, '19559973:dechet_val:991:0,20537173:dechet_val:991:0', 2) ('2025-02-14 07:01:41', 4489, 412, 300, 112, 'multi_classification_tapis_dechet', 18.0, '20506636:cedre_arge:1080:0', 1) ('2025-02-14 07:01:41', 4877, 63, 50, 13, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '20543656:JRM_diff_b:979:1,20543685:JRM_diff_b:979:1,20543554:JRM_diff_b:979:1,20543504:JRM_diff_b:979:1,20543394:JRM_diff_b:979:1,20543271:JRM_diff_b:979:1,20543183:JRM_diff_b:979:1,20543003:JRM_diff_b:979:1,20542950:JRM_diff_b:979:1,20542899:JRM_diff_b:979:1,20542799:JRM_diff_b:979:1,20542660:JRM_diff_b:979:1,20542623:JRM_diff_b:979:1,20542519:JRM_diff_b:979:1,20542420:JRM_diff_b:979:1', 15) ('2025-02-14 07:01:41', 3993, 42, 30, 12, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 6.0, '20528843:emr_diff_b:739:1', 1) ('2025-02-14 07:01:41', 3804, 111, 100, 11, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', 6.0, '20528849:pet_clair_:739:1', 1) ('2025-02-14 07:01:41', 4871, 1396, 1388, 8, 'blur_rubbia_live', 7.0, '20528746:arc_en_cie:979:0', 1) ('2025-02-14 07:01:41', 3991, 22, 20, 2, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 11.0, '20519774:ela_diff_b:1017:0', 1) ('2025-02-14 07:01:41', 533, 1501, 1500, 1, 'multi_classification_tapis_dechet', 23.0, '20500135:arc_en_cie:739: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-02-14 07:01:41', 370, 15, 'proportion_papier_qualite_dechets_tri', Decimal('2.0000'), '13545772:papier_dif:739:0,13545779:papier_dif:739:0', 2) ('2025-02-14 07:01:41', 3979, 1, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', Decimal('2.0000'), '13545780:plastique_:739:0', 1) ('2025-02-14 07:01:41', 3991, 15, 'RUBBIA_ELA_131221_add_surclassifier_rapport', Decimal('6.0000'), '20528909:ela_diff_b:739:0', 1) ('2025-02-14 07:01:41', 3992, 11, 'RUBBIA_Alu_131221_add_surclassifier_rapport', Decimal('6.0000'), '20528950:aluminium_:739:0', 1) ('2025-02-14 07:01:41', 3994, 45, 'RUBBIA_proportion_papier_add_surclassifier_rapport', Decimal('5.4000'), '20528943:pcm_diff_b:739:0,20531309:pcm_diff_b:739:0', 2) ('2025-02-14 07:01:41', 4219, 89057, 'detection_plaque_valcor_010622', Decimal('832.5722'), '18887370:plaque_val:1064:0,18909144:plaque_val:1064:0,18922048:plaque_val:1064:0,18948750:plaque_val:1064:0,18966527:plaque_val:1064:0,18984980:plaque_val:1064:0,18999159:plaque_val:1064:0,19036179:plaque_val:1064:0,19088052:plaque_val:1064:0,19109709:plaque_val:1064:0,19132512:plaque_val:1064:0,19150488:plaque_val:1064:0,19163211:plaque_val:1064:0,19176663:plaque_val:1064:0,19265243:plaque_val:1064:0,19283258:plaque_val:1064:0,19330815:plaque_val:1064:0,19362748:plaque_val:1064:0,19387885:plaque_val:1064:0,19407643:plaque_val:1064:0,19418253:plaque_val:1064:0,19426242:plaque_val:1064:0,19463603:plaque_val:1064:0,19482376:plaque_val:1064:0,19494244:plaque_val:1064:0,19643171:plaque_val:1064:0,19654020:plaque_val:1064:0,19674312:plaque_val:1064:0,19740119:plaque_val:1064:0,19749453:plaque_val:1064:0,19783840:plaque_val:1064:0,19806631:plaque_val:1064:0,19842456:plaque_val:1064:0,19908524:plaque_val:1064:0,19928190:plaque_val:1064:0,19942325:plaque_val:1064:0,19989529:plaque_val:1064:0,20031499:plaque_val:1064:', 52) ('2025-02-14 07:01:41', 4220, 404, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '20494783:plaque_val:1064:0,20530021:plaque_val:1064:0', 2) ('2025-02-14 07:01:41', 4322, 126, 'RUBBIA_filmPE_151122', Decimal('6.0000'), '20528937:film_pedb_:739:0,20528939:film_pedb_:739:0,20528941:film_pedb_:739:0,20528942:film_pedb_:739:0,20528949:film_pedb_:739:0,20528951:film_pedb_:739:0,20528953:film_pedb_:739:0', 7) ('2025-02-14 07:01:41', 4346, 19, 'split_time_score_cedre', Decimal('0.0000'), '20529099:cedre_arge:1080:0', 1) ('2025-02-14 07:01:41', 4489, 19, 'multi_classification_tapis_dechet', Decimal('6.0000'), '20529099:cedre_arge:1080:0', 1) ('2025-02-14 07:01:41', 4877, 4, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', Decimal('0.0000'), '20542623:JRM_diff_b:979:1', 1) ('2025-02-14 07:01:41', 4887, 5922, 'split_time_score_Sevran_test', Decimal('0.0000'), '20500134:sevran_122:739:0', 1) ('2025-02-14 07:01:41', 4891, 7267, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '20493604: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-02-14 07:01:41', 4310, 6062, 'classifieur_2camions_valcor_021122_v1') ('2025-02-14 07:01:41', 4322, 993, 'RUBBIA_filmPE_151122') ('2025-02-14 07:01:41', 3994, 480, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-14 07:01:41', 4234, 769, 'refus_rym_velours_valcor') ('2025-02-14 07:01:41', 533, 4500, 'multi_classification_tapis_dechet') ('2025-02-14 07:01:41', 4489, 900, 'multi_classification_tapis_dechet') ('2025-02-14 07:01:41', 3991, 160, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-14 07:01:41', 4871, 1388, 'blur_rubbia_live') ('2025-02-14 07:01:41', 4892, 3837, 'multi_classification_tapis_dechet') ('2025-02-14 07:01:41', 3993, 240, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-02-14 07:01:41', 3804, 740, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-02-14 07:01:41', 4877, 265, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 30) (-5, 21) (0, 124) 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-02-14 07:01:46', 4234, 171330, 'refus_rym_velours_valcor') ('2025-02-14 07:01:46', 4883, 69350, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-14 07:01:46', 4876, 68055, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-14 07:01:46', 4877, 46941, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-02-14 07:01:46', 4892, 36414, 'multi_classification_tapis_dechet') ('2025-02-14 07:01:46', 4302, 27769, 'RUBBIA_JRM_consolidate') ('2025-02-14 07:01:46', 4310, 23652, 'classifieur_2camions_valcor_021122_v1') ('2025-02-14 07:01:46', 4322, 18239, 'RUBBIA_filmPE_151122') ('2025-02-14 07:01:46', 3804, 16288, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-02-14 07:01:46', 3459, 14102, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-14 07:01:46', 3993, 10724, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-02-14 07:01:46', 3995, 9870, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-14 07:01:46', 4433, 8039, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-14 07:01:46', 3994, 6942, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-14 07:01:46', 533, 6915, 'multi_classification_tapis_dechet') ('2025-02-14 07:01:46', 3318, 5150, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-02-14 07:01:46', 4891, 4100, 'split_time_score_angers_montee_convoyeur') ('2025-02-14 07:01:46', 4311, 4000, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-02-14 07:01:46', 4871, 3962, 'blur_rubbia_live') ('2025-02-14 07:01:46', 3385, 3726, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-02-14 07:01:46', 4153, 3596, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-14 07:01:46', 3992, 1869, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-02-14 07:01:46', 3991, 1852, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-14 07:01:46', 4909, 1593, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-14 07:01:46', 4189, 1200, 'split_time_score_JRM_Perlen_convoyeur') ('2025-02-14 07:01:46', 3789, 1160, 'split_time_score_test_multi_matiere') ('2025-02-14 07:01:46', 4489, 900, 'multi_classification_tapis_dechet') ('2025-02-14 07:01:46', 4851, 841, 'split_time_score_SCCU_8') ('2025-02-14 07:01:46', 4849, 593, 'split_time_score_SCCU_6') ('2025-02-14 07:01:46', 4850, 574, 'split_time_score_SCCU_7') ('2025-02-14 07:01:46', 4220, 500, 'split_time_score_plaque_Valcor') ('2025-02-14 07:01:46', 4887, 480, 'split_time_score_Sevran_test') ('2025-02-14 07:01:46', 4878, 430, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-14 07:01:46', 3787, 320, 'split_time_score_urban_fest') ('2025-02-14 07:01:46', 4346, 251, 'split_time_score_cedre') ('2025-02-14 07:01:46', 4867, 186, 'split_time_score_cod_excoffier') ('2025-02-14 07:01:46', 3181, 165, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-14 07:01:46', 243, 130, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-02-14 07:01:46', 3164, 70, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-02-14 07:01:46', 370, 62, 'proportion_papier_qualite_dechets_tri') ('2025-02-14 07:01:46', 4212, 50, 'ACP_from_port_5709050_type_5619_size_9') ('2025-02-14 07:01:46', 4209, 50, 'test_acp') ('2025-02-14 07:01:46', 4208, 50, 'test_acp_fit_transform_20') ('2025-02-14 07:01:46', 686, 45, 'copy_argmax_crop') ('2025-02-14 07:01:46', 3979, 42, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-14 07:01:46', 3781, 35, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-02-14 07:01:46', 4567, 33, 'tfhub_19_06_2023') ('2025-02-14 07:01:46', 4621, 33, 'tfhub_18_7_2023') ('2025-02-14 07:01:46', 3070, 25, 'test_ventilate_hashtag_type_3326') ('2025-02-14 07:01:46', 3990, 25, 'test_crop_condition_blur') ('2025-02-14 07:01:46', 1848, 25, 'Pipeline_upm_photos_blanches') ('2025-02-14 07:01:46', 2896, 25, 'test_radom_deformation') ('2025-02-14 07:01:46', 230, 24, 'datou_test_rotate') ('2025-02-14 07:01:46', 3856, 20, 'RUBBIA_Carton_050821_extract_RYM') ('2025-02-14 07:01:46', 40, 19, 'mask_coco_origin') ('2025-02-14 07:01:46', 4184, 12, 'detection_plaque_valcor_010622') ('2025-02-14 07:01:46', 2719, 12, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-02-14 07:01:46', 233, 10, 'datou_test_rotate_conditionnel') ('2025-02-14 07:01:46', 1026, 10, 'mask_coco_for_test') ('2025-02-14 07:01:46', 4573, 10, 'test_sam_h') ('2025-02-14 07:01:46', 4553, 10, 'copie_4387_test_replace') ('2025-02-14 07:01:46', 4492, 10, 'copie_4387_test_replace') ('2025-02-14 07:01:46', 2085, 6, 'train_points_upm_darker') ('2025-02-14 07:01:46', 2, 6, 'classification_model') ('2025-02-14 07:01:46', 571, 5, 'datou_test_flip') ('2025-02-14 07:01:46', 1818, 5, 'blanchir') ('2025-02-14 07:01:46', 2041, 5, 'test_data_aug') ('2025-02-14 07:01:46', 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.24user 0.14system 9:35.45elapsed 0%CPU (0avgtext+0avgdata 35716maxresident)k 36792inputs+40outputs (2361major+8275minor)pagefaults 0swaps