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: 04/03/2025, 07:00:25 Nombre de datou current ('date', 'nombre de datou current') ('2025-03-04 07:00:25', 131) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-03-04 07:00:25', 516919) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-03-04 07:02:06', 28479) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-03-04 07:02:06', 39874) 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-04 07:02:46', 4892, 207595, 168328, 39267, 'multi_classification_tapis_dechet', 80.51724137931035, '20389954:sevran_122:739:0,20423208:angers_mon:1017:0,20322867:sevran_122:739:0,20276947:angers_mon:1017:0,20290274:sevran_122:739: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,20995109:angers_mon:1017:0,20713767:sevran_122:739:1,20784310:angers_mon:1017:0,20791115:sevran_122:739:0,20826447:sevran_122:739:0,20820339:angers_mon:1017:0,20943154:angers_mon:1017:0,20698944:angers_mon:1017:0,20961399:angers_mon:1017:0,20963253:sevran_122:739:0,20763370:sevran_122:739:0,20675555:angers_mon:1017:0,20657815:angers_mon:1017:0,20624128:angers_mon:1017:0,20590016:angers_mon:1017:0,20528771:angers_mon:1017:0,20493604:angers_mon:1017:0,20463989:angers_mon:1017:0,20431061:sevran_122:739:0', 29) ('2025-03-04 07:02:46', 4433, 595, 360, 235, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights', 21.375, '20967779:JRM_diff_b:1053:1,20966286:JRM_diff_b:1053:0,20966292:JRM_diff_b:1053:0,20966293:JRM_diff_b:1053:0,20967775:JRM_diff_b:1053:1,20967777:JRM_diff_b:1053:0,20967780:JRM_diff_b:1053:0,20967783:JRM_diff_b:1053:1', 8) ('2025-03-04 07:02:46', 4489, 769, 610, 159, 'multi_classification_tapis_dechet', 18.5, '20995110:cedre_arge:1080:0,20957787:cedre_arge:1080:0', 2) ('2025-03-04 07:02:46', 4234, 302, 179, 123, 'refus_rym_velours_valcor', 12.181818181818182, '20999291:incinerati:1103:1,20975749:truck_diff:991:1,20980756:truck_diff:991:0,20980763:truck_diff:991:0,20980765:truck_diff:991:0,20982854:truck_diff:991:0,20985347:truck_diff:991:0,20987944:truck_diff:991:0,20988887:truck_diff:991:0,20993503:incinerati:1103:1,20987941:truck_diff:991:0', 11) ('2025-03-04 07:02:46', 4322, 148, 80, 68, 'RUBBIA_filmPE_151122', 20.0, '20984096:film_pedb_:1017:0,20966324:film_pedb_:1017:0,20966335:film_pedb_:1017:0,20966348:film_pedb_:1017:0', 4) ('2025-03-04 07:02:46', 4310, 1092, 1074, 18, 'classifieur_2camions_valcor_021122_v1', 3.0, '20997635:dechet_val:991:0', 1) ('2025-03-04 07:02:46', 3991, 29, 20, 9, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 9.0, '20993232:ela_diff_b:1017:1', 1) ('2025-03-04 07:02:46', 4866, 11, 11, 0, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam', 351.0, '20603413:dib_diff_b:440:1,20603410:dib_diff_b:440:1,20603414:dib_diff_b:440:1,20603415:dib_diff_b:440:1,20603423:dib_diff_b:440:1,20603466:dib_diff_b:440:1,20603519:dib_diff_b:440:1,20603521:dib_diff_b:440:1', 8) 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-04 07:02:51', 370, 15, 'proportion_papier_qualite_dechets_tri', Decimal('3.0000'), '13545772:papier_dif:739:0,13545779:papier_dif:739:0', 2) ('2025-03-04 07:02:51', 4219, 14595, 'detection_plaque_valcor_010622', Decimal('188.4954'), '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,20999208:plaque_val:1064:0', 15) ('2025-03-04 07:02:51', 4220, 541, 'split_time_score_plaque_Valcor', Decimal('0.0000'), '20958095:plaque_val:1064:0,20999208:plaque_val:1064:0', 2) ('2025-03-04 07:02:51', 4234, 13, 'refus_rym_velours_valcor', Decimal('7.6154'), '20993505:incinerati:1103:0,20993507:incinerati:1103:0,20993509:incinerati:1103:0,20993511:incinerati:1103:0,20993513:incinerati:1103:0,20993515:incinerati:1103:0,20999292:incinerati:1103:0', 7) ('2025-03-04 07:02:51', 4322, 30, 'RUBBIA_filmPE_151122', Decimal('2.8667'), '20994125:film_pedb_:739:0,20998472:film_pedb_:739:0,20998475:film_pedb_:739:0', 3) ('2025-03-04 07:02:51', 4346, 88, 'split_time_score_cedre', Decimal('0.0000'), '20995110:cedre_arge:1080:0', 1) ('2025-03-04 07:02:51', 4887, 7615, 'split_time_score_Sevran_test', Decimal('0.0000'), '20963253:sevran_122:739:0', 1) ('2025-03-04 07:02:51', 4891, 5576, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '20961399:angers_mon:1017:0', 1) ('2025-03-04 07:02:51', 4892, 6, 'multi_classification_tapis_dechet', Decimal('0.0000'), '20999403:sevran_122: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-04 07:02:51', 4892, 102394, 'multi_classification_tapis_dechet') ('2025-03-04 07:02:51', 4866, 23, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-04 07:02:51', 4489, 1815, 'multi_classification_tapis_dechet') ('2025-03-04 07:02:51', 4433, 3000, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-04 07:02:51', 4322, 640, 'RUBBIA_filmPE_151122') ('2025-03-04 07:02:51', 4234, 1195, 'refus_rym_velours_valcor') ('2025-03-04 07:02:51', 3991, 40, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-04 07:02:51', 4310, 3222, 'classifieur_2camions_valcor_021122_v1') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 17) (-5, 19) (0, 110) 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-04 07:03:00', 4892, 132248, 'multi_classification_tapis_dechet') ('2025-03-04 07:03:00', 4234, 83825, 'refus_rym_velours_valcor') ('2025-03-04 07:03:00', 4883, 57289, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-04 07:03:00', 4876, 57173, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-04 07:03:00', 4877, 40843, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-03-04 07:03:00', 4302, 25918, 'RUBBIA_JRM_consolidate') ('2025-03-04 07:03:00', 4310, 20898, 'classifieur_2camions_valcor_021122_v1') ('2025-03-04 07:03:00', 4433, 15660, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-04 07:03:00', 3459, 13055, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-03-04 07:03:00', 533, 11805, 'multi_classification_tapis_dechet') ('2025-03-04 07:03:00', 3804, 8000, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-03-04 07:03:00', 3995, 4978, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-03-04 07:03:00', 3994, 4616, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-03-04 07:03:00', 4891, 4400, 'split_time_score_angers_montee_convoyeur') ('2025-03-04 07:03:00', 4322, 4313, 'RUBBIA_filmPE_151122') ('2025-03-04 07:03:00', 4311, 4200, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-03-04 07:03:00', 3993, 3687, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-03-04 07:03:00', 3385, 3164, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-03-04 07:03:00', 4871, 3113, 'blur_rubbia_live') ('2025-03-04 07:03:00', 4866, 2844, 'dib_crop_merge_2486_2499_classifiy_2547_extract_RYM_with_sam') ('2025-03-04 07:03:00', 4153, 1817, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-03-04 07:03:00', 4489, 1815, 'multi_classification_tapis_dechet') ('2025-03-04 07:03:00', 4189, 1800, 'split_time_score_JRM_Perlen_convoyeur') ('2025-03-04 07:03:00', 3789, 1392, 'split_time_score_test_multi_matiere') ('2025-03-04 07:03:00', 4849, 876, 'split_time_score_SCCU_6') ('2025-03-04 07:03:00', 4878, 800, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-03-04 07:03:00', 4346, 766, 'split_time_score_cedre') ('2025-03-04 07:03:00', 3318, 755, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-03-04 07:03:00', 4851, 666, 'split_time_score_SCCU_8') ('2025-03-04 07:03:00', 4252, 630, 'pehd_prod_consolidate') ('2025-03-04 07:03:00', 4220, 600, 'split_time_score_plaque_Valcor') ('2025-03-04 07:03:00', 4887, 420, 'split_time_score_Sevran_test') ('2025-03-04 07:03:00', 3991, 416, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-03-04 07:03:00', 3787, 384, 'split_time_score_urban_fest') ('2025-03-04 07:03:00', 3992, 319, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-03-04 07:03:00', 4850, 304, 'split_time_score_SCCU_7') ('2025-03-04 07:03:00', 3181, 198, 'split_time_score_JRM_Arc_En_Ciel') ('2025-03-04 07:03:00', 243, 156, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-03-04 07:03:00', 3164, 84, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-03-04 07:03:00', 370, 77, 'proportion_papier_qualite_dechets_tri') ('2025-03-04 07:03:00', 4209, 60, 'test_acp') ('2025-03-04 07:03:00', 4212, 60, 'ACP_from_port_5709050_type_5619_size_9') ('2025-03-04 07:03:00', 4208, 60, 'test_acp_fit_transform_20') ('2025-03-04 07:03:00', 686, 54, 'copy_argmax_crop') ('2025-03-04 07:03:00', 3781, 42, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-03-04 07:03:00', 4621, 36, 'tfhub_18_7_2023') ('2025-03-04 07:03:00', 4567, 33, 'tfhub_19_06_2023') ('2025-03-04 07:03:00', 3990, 30, 'test_crop_condition_blur') ('2025-03-04 07:03:00', 1848, 30, 'Pipeline_upm_photos_blanches') ('2025-03-04 07:03:00', 3070, 30, 'test_ventilate_hashtag_type_3326') ('2025-03-04 07:03:00', 2896, 30, 'test_radom_deformation') ('2025-03-04 07:03:00', 3856, 24, 'RUBBIA_Carton_050821_extract_RYM') ('2025-03-04 07:03:00', 230, 24, 'datou_test_rotate') ('2025-03-04 07:03:00', 40, 18, 'mask_coco_origin') ('2025-03-04 07:03:00', 2719, 18, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-03-04 07:03:00', 4553, 12, 'copie_4387_test_replace') ('2025-03-04 07:03:00', 4492, 12, 'copie_4387_test_replace') ('2025-03-04 07:03:00', 4184, 12, 'detection_plaque_valcor_010622') ('2025-03-04 07:03:00', 233, 12, 'datou_test_rotate_conditionnel') ('2025-03-04 07:03:00', 4573, 10, 'test_sam_h') ('2025-03-04 07:03:00', 1026, 9, 'mask_coco_for_test') ('2025-03-04 07:03:00', 571, 6, 'datou_test_flip') ('2025-03-04 07:03:00', 2, 6, 'classification_model') ('2025-03-04 07:03:00', 1818, 6, 'blanchir') ('2025-03-04 07:03:00', 2085, 6, 'train_points_upm_darker') ('2025-03-04 07:03:00', 2041, 6, 'test_data_aug') ('2025-03-04 07:03:00', 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.20user 0.04system 9:36.96elapsed 0%CPU (0avgtext+0avgdata 39016maxresident)k 11632inputs+40outputs (62major+5749minor)pagefaults 0swaps