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/03/2025, 07:00:26 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-14 07:00:26', 99) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-14 07:00:26', 680512) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-14 07:05:11', 28072) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-14 07:05:11', 10273) 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-14 07:05:41', 4219, 9722, 4902, 4820, 'detection_plaque_valcor_010622', 195.83333333333334, '21372729:plaque_val:1064:0,21263468:plaque_val:1064:0,20658354:plaque_val:1064:0,21093986:plaque_val:1064:0,21130800:plaque_val:1064:0,21163827:plaque_val:1064:0', 6) ('2025-03-14 07:05:41', 4921, 4731, 660, 4071, 'learn_mask_bonbonne_120325', 42.0, '21247140:aec_metal_:702:0', 1) ('2025-03-14 07:05:41', 4489, 1380, 626, 754, 'multi_classification_tapis_dechet', 18.0, '21403133:cedre_arge:1080:1,21370519:cedre_arge:1080:1', 2) ('2025-03-14 07:05:41', 4892, 8565, 8282, 283, 'multi_classification_tapis_dechet', 15.5, '21373534:sevran_122:739:1,21402908:angers_mon:1017:1', 2) ('2025-03-14 07:05:41', 4302, 278, 118, 160, 'RUBBIA_JRM_consolidate', 0.0, '21408973:JRM_diff_b:979:1,21410769:JRM_diff_b:979:0,21408505:JRM_diff_b:979:1,21410163:JRM_diff_b:979:1', 4) ('2025-03-14 07:05:41', 4877, 121, 81, 40, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '21410770:JRM_diff_b:979:1,21410082:JRM_diff_b:979:1,21410742:JRM_diff_b:979:1,21410741:JRM_diff_b:979:1,21410697:JRM_diff_b:979:1,21410648:JRM_diff_b:979:1,21410635:JRM_diff_b:979:1,21410771:JRM_diff_b:979:1,21410772:JRM_diff_b:979:1,21410399:JRM_diff_b:979:1,21410353:JRM_diff_b:979:1,21410034:JRM_diff_b:979:1,21410033:JRM_diff_b:979:1,21409862:JRM_diff_b:979:1,21409833:JRM_diff_b:979:1,21409677:JRM_diff_b:979:1,21409508:JRM_diff_b:979:1,21409403:JRM_diff_b:979:1', 18) ('2025-03-14 07:05:41', 4310, 954, 918, 36, 'classifieur_2camions_valcor_021122_v1', 3.0, '21406569:dechet_val:991:0', 1) ('2025-03-14 07:05:41', 3991, 73, 40, 33, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 14.5, '21378587:ela_diff_b:1017:0,21381695:ela_diff_b:1017:0', 2) ('2025-03-14 07:05:41', 533, 4382, 4350, 32, 'multi_classification_tapis_dechet', 4.666666666666667, '21410743:arc_en_cie:739:1,21402976:jetson_tes:739:0,21403013:aec_metal_:739:1', 3) ('2025-03-14 07:05:41', 3993, 36, 20, 16, 'RUBBIA_Carton_131221_add_surclassifier_rapport', 14.0, '21380282:gros_carto:739:1', 1) ('2025-03-14 07:05:41', 4871, 697, 683, 14, 'blur_rubbia_live', 6.0, '21403117:arc_en_cie:979:0', 1) ('2025-03-14 07:05:41', 4748, 53, 40, 13, 'RUBBIA_PET_Fonce_add_surclassifier_rapport', 14.5, '21381691:flux_dev_r:739:0,21378613:flux_dev_r:739:0', 2) ('2025-03-14 07:05:41', 4234, 8, 8, 0, 'refus_rym_velours_valcor', 0.0, '21410523:incinerati:1103:1,21410473:incinerati:1103:1,21410474:incinerati:1103:1', 3) ('2025-03-14 07:05:41', 4866, 17, 17, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 590.2307692307693, '20603423:dib_diff_b:440:1,20603414:dib_diff_b:440:1,20603524:dib_diff_b:440:1,20603521:dib_diff_b:440:1,20603519:dib_diff_b:440:1,20603553:dib_diff_b:440:1,20603466:dib_diff_b:440:1,20603562:dib_diff_b:440:1,20603587:dib_diff_b:440:1,20608796:excoffier_:1117:1,20608797:excoffier_:1117:1,20608798:excoffier_:1117:1,20610133:excoffier_:1117:1', 13) 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-14 07:05:42', 4219, 14280, 'detection_plaque_valcor_010622', Decimal('403.0662'), '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,20954168:plaque_val:1064:0,20958095:plaque_val:1064:0,20999208:plaque_val:1064:0,21035886:plaque_val:1064:0', 15) ('2025-03-14 07:05:42', 4220, 1538, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '21372729:plaque_val:1064:0', 1) ('2025-03-14 07:05:42', 4302, 19, 'RUBBIA_JRM_consolidate', Decimal('0.0000'), '21410769:JRM_diff_b:979:0', 1) ('2025-03-14 07:05:42', 4346, 155, 'split_time_score_cedre', Decimal('0.0000'), '21403133:cedre_arge:1080:0', 1) ('2025-03-14 07:05:42', 4877, 6, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', Decimal('0.0000'), '21410648:JRM_diff_b:979:1', 1) ('2025-03-14 07:05:42', 4887, 6483, 'split_time_score_Sevran_test', Decimal('0.0000'), '21373534:sevran_122:739:0', 1) ('2025-03-14 07:05:42', 4891, 2082, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '21402908:angers_mon:1017:0', 1) ('2025-03-14 07:05:42', 4916, 2136, 'split_time_score_Acier_Arc_En_Ciel', Decimal('0.0000'), '21403013:aec_metal_:739: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-14 07:05:42', 4866, 39, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-14 07:05:42', 4921, 80, 'learn_mask_bonbonne_120325') ('2025-03-14 07:05:42', 4871, 823, 'blur_rubbia_live') ('2025-03-14 07:05:42', 4489, 1784, 'multi_classification_tapis_dechet') ('2025-03-14 07:05:42', 3459, 76, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-14 07:05:42', 4219, 1006, 'detection_plaque_valcor_010622') ('2025-03-14 07:05:42', 4892, 21424, 'multi_classification_tapis_dechet') ('2025-03-14 07:05:42', 3991, 320, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-14 07:05:42', 4748, 320, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-14 07:05:42', 3993, 160, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-14 07:05:42', 533, 13058, 'multi_classification_tapis_dechet') ('2025-03-14 07:05:42', 4310, 2742, 'classifieur_2camions_valcor_021122_v1') ('2025-03-14 07:05:42', 4302, 436, 'RUBBIA_JRM_consolidate') ('2025-03-14 07:05:42', 4877, 397, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-14 07:05:42', 4234, 14, 'refus_rym_velours_valcor') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 48) (-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-14 07:06:08', 4234, 216769, 'refus_rym_velours_valcor') ('2025-03-14 07:06:08', 533, 40769, 'multi_classification_tapis_dechet') ('2025-03-14 07:06:08', 3804, 39715, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-14 07:06:08', 4883, 38074, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-14 07:06:08', 4876, 37891, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-14 07:06:08', 4892, 36988, 'multi_classification_tapis_dechet') ('2025-03-14 07:06:08', 3993, 32765, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-14 07:06:08', 4322, 32757, 'RUBBIA_filmPE_151122') ('2025-03-14 07:06:08', 4877, 22583, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-14 07:06:08', 4310, 20639, 'classifieur_2camions_valcor_021122_v1') ('2025-03-14 07:06:08', 3994, 20636, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-14 07:06:08', 3995, 20587, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-14 07:06:08', 4302, 19737, 'RUBBIA_JRM_consolidate') ('2025-03-14 07:06:08', 3318, 15680, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-14 07:06:08', 3459, 15000, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-14 07:06:08', 4748, 10735, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-14 07:06:08', 4866, 9259, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-14 07:06:08', 3385, 8801, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-14 07:06:08', 4433, 6989, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-14 07:06:08', 4153, 4726, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-14 07:06:08', 4871, 3017, 'blur_rubbia_live') ('2025-03-14 07:06:08', 4311, 3000, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-14 07:06:08', 3991, 2751, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-14 07:06:08', 4323, 2620, 'split_time_score_arc_en_ciel_mm') ('2025-03-14 07:06:08', 4891, 2600, 'split_time_score_angers_montee_convoyeur') ('2025-03-14 07:06:08', 4219, 2452, 'detection_plaque_valcor_010622') ('2025-03-14 07:06:08', 4887, 2286, 'split_time_score_Sevran_test') ('2025-03-14 07:06:08', 3992, 1877, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-14 07:06:08', 4489, 1784, 'multi_classification_tapis_dechet') ('2025-03-14 07:06:08', 4346, 1325, 'split_time_score_cedre') ('2025-03-14 07:06:08', 4916, 1000, 'split_time_score_Acier_Arc_En_Ciel') ('2025-03-14 07:06:08', 4878, 800, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-14 07:06:08', 3789, 696, 'split_time_score_test_multi_matiere') ('2025-03-14 07:06:08', 4849, 647, 'split_time_score_SCCU_6') ('2025-03-14 07:06:08', 4851, 524, 'split_time_score_SCCU_8') ('2025-03-14 07:06:08', 4220, 432, 'split_time_score_plaque_Valcor') ('2025-03-14 07:06:08', 4850, 316, 'split_time_score_SCCU_7') ('2025-03-14 07:06:08', 4510, 315, 'entrant_rym_velours_sans_suffix_nouveaux_cont') ('2025-03-14 07:06:08', 4189, 300, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-14 07:06:08', 3787, 192, 'split_time_score_urban_fest') ('2025-03-14 07:06:08', 243, 104, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-14 07:06:08', 3181, 99, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-14 07:06:08', 4921, 80, 'learn_mask_bonbonne_120325') ('2025-03-14 07:06:08', 370, 60, 'proportion_papier_qualite_dechets_tri') ('2025-03-14 07:06:08', 4742, 56, 'entrant_consolidate') ('2025-03-14 07:06:08', 3164, 42, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-14 07:06:08', 686, 36, 'copy_argmax_crop') ('2025-03-14 07:06:08', 4209, 30, 'test_acp') ('2025-03-14 07:06:08', 4208, 30, 'test_acp_fit_transform_20') ('2025-03-14 07:06:08', 4212, 30, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-14 07:06:08', 4567, 30, 'tfhub_19_06_2023') ('2025-03-14 07:06:08', 4621, 30, 'tfhub_18_7_2023') ('2025-03-14 07:06:08', 230, 24, 'datou_test_rotate') ('2025-03-14 07:06:08', 3781, 21, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-14 07:06:08', 2896, 15, 'test_radom_deformation') ('2025-03-14 07:06:08', 40, 15, 'mask_coco_origin') ('2025-03-14 07:06:08', 3070, 15, 'test_ventilate_hashtag_type_3326') ('2025-03-14 07:06:08', 3990, 15, 'test_crop_condition_blur') ('2025-03-14 07:06:08', 1848, 14, 'Pipeline_upm_photos_blanches') ('2025-03-14 07:06:08', 2719, 12, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-14 07:06:08', 4184, 12, 'detection_plaque_valcor_010622') ('2025-03-14 07:06:08', 3856, 12, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-14 07:06:08', 4573, 8, 'test_sam_h') ('2025-03-14 07:06:08', 233, 8, 'datou_test_rotate_conditionnel') ('2025-03-14 07:06:08', 1026, 7, 'mask_coco_for_test') ('2025-03-14 07:06:08', 4553, 6, 'copie_4387_test_replace') ('2025-03-14 07:06:08', 2, 6, 'classification_model') ('2025-03-14 07:06:08', 4492, 6, 'copie_4387_test_replace') ('2025-03-14 07:06:08', 571, 4, 'datou_test_flip') ('2025-03-14 07:06:08', 2665, 4, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920') ('2025-03-14 07:06:08', 1818, 3, 'blanchir') ('2025-03-14 07:06:08', 2041, 3, 'test_data_aug') ('2025-03-14 07:06:08', 2085, 3, 'train_points_upm_darker') 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.31user 0.14system 9:36.79elapsed 0%CPU (0avgtext+0avgdata 35676maxresident)k 34256inputs+40outputs (2423major+8337minor)pagefaults 0swaps