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/02/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-02-28 07:00:26', 185) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-02-28 07:00:26', 485226) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-02-28 07:02:16', 37752) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-02-28 07:02:16', 451) 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-28 07:02:23', 4322, 401, 180, 221, 'RUBBIA_filmPE_151122', 12.666666666666666, '20881908:film_pedb_:739:1,20881916:film_pedb_:739:0,20881918:film_pedb_:739:0,20881940:film_pedb_:739:0,20901767:film_pedb_:739:0,20886150:film_pedb_:1017:1,20889872:film_pedb_:1017:0,20892353:film_pedb_:1017:0,20891559:film_pedb_:1017:1', 9) ('2025-02-28 07:02:23', 4892, 2190, 2053, 137, 'multi_classification_tapis_dechet', 6.5, '20900026:old_sevran:739:0,20900024:angers_mon:1017:1', 2) ('2025-02-28 07:02:23', 4310, 1092, 1074, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '20907918:dechet_val:991:0', 1) ('2025-02-28 07:02:23', 4234, 119, 103, 16, 'refus_rym_velours_valcor', 6.25, '20912786:incinerati:1103:1,20912787:incinerati:1103:1,20891033:truck_diff:991:0,20884293:incinerati:1103:1', 4) ('2025-02-28 07:02:23', 4877, 87, 71, 16, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '20912314:JRM_diff_b:979:1,20912915:JRM_diff_b:979:1,20912863:JRM_diff_b:979:1,20912813:JRM_diff_b:979:1,20912736:JRM_diff_b:979:1,20912599:JRM_diff_b:979:1,20912448:JRM_diff_b:979:1,20912391:JRM_diff_b:979:1,20911431:JRM_diff_b:979:1,20912262:JRM_diff_b:979:1,20912084:JRM_diff_b:979:1,20911904:JRM_diff_b:979:1,20911877:JRM_diff_b:979:1,20911800:JRM_diff_b:979:1,20911703:JRM_diff_b:979:1,20911542:JRM_diff_b:979:1,20911464:JRM_diff_b:979:1', 17) ('2025-02-28 07:02:23', 4871, 1378, 1363, 15, 'blur_rubbia_live', 7.0, '20899997:arc_en_cie:979:0', 1) ('2025-02-28 07:02:23', 3994, 54, 40, 14, 'RUBBIA_proportion_papier_add_surclassifier_rapport', 12.5, '20880569:jrm_diff_b:1017:0,20885736:gm_diff_ba:1017:0', 2) ('2025-02-28 07:02:23', 3991, 32, 20, 12, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 13.0, '20888117:ela_diff_b:1017:1', 1) ('2025-02-28 07:02:23', 4489, 1037, 1035, 2, 'multi_classification_tapis_dechet', 31.0, '20860613:cedre_arge:1080:1', 1) ('2025-02-28 07:02:23', 4866, 11, 11, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 253.77777777777777, '20603587:dib_diff_b:440:1,20603553:dib_diff_b:440:1,20603557:dib_diff_b:440:1,20603524:dib_diff_b:440:1,20603562:dib_diff_b:440:1,20610133:excoffier_:1117:1,20608796:excoffier_:1117:1,20608797:excoffier_:1117:1,20608798:excoffier_:1117:1', 9) 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-28 07:02:23', 533, 2, 'multi_classification_tapis_dechet', Decimal('0.0000'), '20912955:arc_en_cie:739:0', 1) ('2025-02-28 07:02:23', 3804, 21, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM', Decimal('0.0000'), '20912929:pet_clair_:1017:0', 1) ('2025-02-28 07:02:23', 3991, 10, 'RUBBIA_ELA_131221_add_surclassifier_rapport', Decimal('6.0000'), '20901276:ela_diff_b:739:0', 1) ('2025-02-28 07:02:23', 3993, 6, 'RUBBIA_Carton_131221_add_surclassifier_rapport', Decimal('0.0000'), '20912928:emr_diff_b:1017:0', 1) ('2025-02-28 07:02:23', 3994, 21, 'RUBBIA_proportion_papier_add_surclassifier_rapport', Decimal('3.4286'), '20901283:pcm_diff_b:739:0,20912927:gm_diff_ba:1017:0', 2) ('2025-02-28 07:02:23', 4219, 11823, 'detection_plaque_valcor_010622', Decimal('119.9233'), '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', 11) ('2025-02-28 07:02:23', 4220, 1895, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '20860771:plaque_val:1064:0,20901341:plaque_val:1064:0', 2) ('2025-02-28 07:02:23', 4234, 2, 'refus_rym_velours_valcor', Decimal('0.0000'), '20912761:incinerati:1103:0', 1) ('2025-02-28 07:02:23', 4311, 1092, 'sts_dechet_valcor_matching_v2_2022Q3', Decimal('0.0000'), '20907918:dechet_val:991:0', 1) ('2025-02-28 07:02:23', 4322, 233, 'RUBBIA_filmPE_151122', Decimal('4.5837'), '20901267:film_pedb_:739:0,20901268:film_pedb_:739:0,20901278:film_pedb_:739:0,20901285:film_pedb_:739:0,20901287:film_pedb_:739:0,20901760:film_pedb_:739:0,20901761:film_pedb_:739:0,20901766:film_pedb_:739:0,20912930:film_pedb_:1017:0', 9) ('2025-02-28 07:02:23', 4346, 226, 'split_time_score_cedre', Decimal('0.0000'), '20900738:cedre_arge:1080:0', 1) ('2025-02-28 07:02:23', 4876, 1378, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '20899997:arc_en_cie:979:0', 1) ('2025-02-28 07:02:23', 4878, 3918, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '20860610:arc_en_cie:979:0', 1) ('2025-02-28 07:02:23', 4883, 1378, 'split_time_score_JRM_Arc_En_Ciel', Decimal('0.0000'), '20899997:arc_en_cie:979:0', 1) ('2025-02-28 07:02:23', 4887, 7958, 'split_time_score_Sevran_test', Decimal('0.0000'), '20873978:sevran_122:739:0', 1) ('2025-02-28 07:02:23', 4891, 7697, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '20860611:angers_mon:1017:0', 1) ('2025-02-28 07:02:23', 4892, 6, 'multi_classification_tapis_dechet', Decimal('0.0000'), '20912926:sevran_122:739:0', 1) ('2025-02-28 07:02:23', 4893, 88, 'split_time_score_Sevran_test2', Decimal('0.0000'), '20873172:sevran_122:739:0,20900026:old_sevran: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-02-28 07:02:23', 4866, 11, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-02-28 07:02:23', 4489, 2910, 'multi_classification_tapis_dechet') ('2025-02-28 07:02:23', 3994, 320, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-28 07:02:23', 4322, 1300, 'RUBBIA_filmPE_151122') ('2025-02-28 07:02:23', 4234, 623, 'refus_rym_velours_valcor') ('2025-02-28 07:02:23', 3991, 160, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-28 07:02:23', 4871, 1363, 'blur_rubbia_live') ('2025-02-28 07:02:23', 4892, 5593, 'multi_classification_tapis_dechet') ('2025-02-28 07:02:23', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') ('2025-02-28 07:02:23', 4877, 411, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 43) (-5, 19) (0, 149) 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-28 07:02:42', 4234, 91555, 'refus_rym_velours_valcor') ('2025-02-28 07:02:42', 4892, 54032, 'multi_classification_tapis_dechet') ('2025-02-28 07:02:42', 4883, 50474, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-28 07:02:42', 4876, 48674, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-28 07:02:42', 4877, 47620, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-02-28 07:02:42', 4302, 30430, 'RUBBIA_JRM_consolidate') ('2025-02-28 07:02:42', 3804, 22493, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-02-28 07:02:42', 4310, 20971, 'classifieur_2camions_valcor_021122_v1') ('2025-02-28 07:02:42', 3993, 20304, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-02-28 07:02:42', 4322, 13621, 'RUBBIA_filmPE_151122') ('2025-02-28 07:02:42', 3995, 11242, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-28 07:02:42', 3459, 9985, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-28 07:02:42', 4433, 8850, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-28 07:02:42', 3318, 8419, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-02-28 07:02:42', 3994, 7034, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-28 07:02:42', 4153, 5351, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-28 07:02:42', 533, 5174, 'multi_classification_tapis_dechet') ('2025-02-28 07:02:42', 4891, 4100, 'split_time_score_angers_montee_convoyeur') ('2025-02-28 07:02:42', 4311, 4000, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-02-28 07:02:42', 4871, 3793, 'blur_rubbia_live') ('2025-02-28 07:02:42', 4489, 3482, 'multi_classification_tapis_dechet') ('2025-02-28 07:02:42', 4893, 2119, 'split_time_score_Sevran_test2') ('2025-02-28 07:02:42', 4189, 1440, 'split_time_score_JRM_Perlen_convoyeur') ('2025-02-28 07:02:42', 3991, 1266, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-28 07:02:42', 4915, 1192, 'learn_MM_generique_26022025') ('2025-02-28 07:02:42', 4851, 917, 'split_time_score_SCCU_8') ('2025-02-28 07:02:42', 4850, 788, 'split_time_score_SCCU_7') ('2025-02-28 07:02:42', 3385, 746, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-02-28 07:02:42', 4849, 733, 'split_time_score_SCCU_6') ('2025-02-28 07:02:42', 4346, 712, 'split_time_score_cedre') ('2025-02-28 07:02:42', 4220, 700, 'split_time_score_plaque_Valcor') ('2025-02-28 07:02:42', 3992, 664, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-02-28 07:02:42', 4878, 500, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-28 07:02:42', 3789, 464, 'split_time_score_test_multi_matiere') ('2025-02-28 07:02:42', 4510, 354, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-02-28 07:02:42', 4887, 300, 'split_time_score_Sevran_test') ('2025-02-28 07:02:42', 3787, 128, 'split_time_score_urban_fest') ('2025-02-28 07:02:42', 243, 78, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-02-28 07:02:42', 3181, 66, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-28 07:02:42', 370, 55, 'proportion_papier_qualite_dechets_tri') ('2025-02-28 07:02:42', 3164, 28, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-02-28 07:02:42', 4621, 27, 'tfhub_18_7_2023') ('2025-02-28 07:02:42', 230, 24, 'datou_test_rotate') ('2025-02-28 07:02:42', 4567, 24, 'tfhub_19_06_2023') ('2025-02-28 07:02:42', 4866, 21, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-02-28 07:02:42', 4212, 20, 'ACP_from_port_5709050_type_5619_size_9') ('2025-02-28 07:02:42', 4209, 20, 'test_acp') ('2025-02-28 07:02:42', 4208, 20, 'test_acp_fit_transform_20') ('2025-02-28 07:02:42', 686, 19, 'copy_argmax_crop') ('2025-02-28 07:02:42', 3781, 14, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-02-28 07:02:42', 1848, 12, 'Pipeline_upm_photos_blanches') ('2025-02-28 07:02:42', 4184, 12, 'detection_plaque_valcor_010622') ('2025-02-28 07:02:42', 40, 11, 'mask_coco_origin') ('2025-02-28 07:02:42', 2719, 10, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-02-28 07:02:42', 3990, 10, 'test_crop_condition_blur') ('2025-02-28 07:02:42', 3070, 10, 'test_ventilate_hashtag_type_3326') ('2025-02-28 07:02:42', 2896, 10, 'test_radom_deformation') ('2025-02-28 07:02:42', 4573, 9, 'test_sam_h') ('2025-02-28 07:02:42', 3856, 8, 'RUBBIA_Carton_050821_extract_RYM') ('2025-02-28 07:02:42', 233, 6, 'datou_test_rotate_conditionnel') ('2025-02-28 07:02:42', 2, 6, 'classification_model') ('2025-02-28 07:02:42', 1026, 5, 'mask_coco_for_test') ('2025-02-28 07:02:42', 4553, 4, 'copie_4387_test_replace') ('2025-02-28 07:02:42', 4492, 4, 'copie_4387_test_replace') ('2025-02-28 07:02:42', 571, 3, 'datou_test_flip') ('2025-02-28 07:02:42', 1818, 2, 'blanchir') ('2025-02-28 07:02:42', 2041, 2, 'test_data_aug') ('2025-02-28 07:02:42', 2085, 2, 'train_points_upm_darker') ('2025-02-28 07:02:42', 2665, 2, '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.32user 0.11system 9:36.56elapsed 0%CPU (0avgtext+0avgdata 35560maxresident)k 29848inputs+40outputs (1412major+9242minor)pagefaults 0swaps