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: 13/02/2025, 07:00:27 Nombre de datou current ('date', 'nombre de datou current') ('2025-02-13 07:00:27', 203) Nombre total de photos traitees dans les dernieres 24 heures ('date', 'total de photos traitees') ('2025-02-13 07:00:27', 525024) Nombre total de photos restant a traiter non commence ('date', 'Nombre total de photos restant a traiter non commence') ('2025-02-13 07:01:50', 99229) Nombre total de photos restant a traiter ('date', 'Nombre total de photos restant a traiter') ('2025-02-13 07:01:50', 4759) 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-13 07:02:05', 4310, 8624, 7026, 1598, 'classifieur_2camions_valcor_021122_v1', 364.5, '20496067:dechet_val:991:0,19559973:dechet_val:991:0', 2) ('2025-02-13 07:02:05', 4219, 1049, 3, 1046, 'detection_plaque_valcor_010622', 1757.0, '18808289:plaque_val:1064:0', 1) ('2025-02-13 07:02:05', 4322, 2137, 1340, 797, 'RUBBIA_filmPE_151122', 130.79310344827587, '20324556:film_pedb_:1017:0,19783410:film_pedb_:739:0,20479476:film_pedb_:1017:1,19816763:film_pedb_:739:0,20478688:film_pedb_:739:0,20476725:film_pedb_:1017:1,20179403:film_pedb_:739:0,20475365:film_pedb_:1017:0,20179529:film_pedb_:739:0,20470041:film_pedb_:739:0,20469231:film_pedb_:1017:0,20181547:film_pedb_:739:0,20461714:film_pedb_:739:0,20192830:film_pedb_:1017:0,20460492:film_pedb_:1017:0,20198535:film_pedb_:739:0,20323457:film_pedb_:1017:0,20384180:film_pedb_:739:0,20393267:film_pedb_:1017:0,20406797:film_pedb_:739:0,20406808:film_pedb_:739:0,20254657:film_pedb_:739:0,20423283:film_pedb_:739:0,20433551:film_pedb_:1017:0,20437742:film_pedb_:739:0,20441866:film_pedb_:1017:0,20194251:film_pedb_:739:0,20210196:film_pedb_:1017:0,20454227:film_pedb_:1017:0', 29) ('2025-02-13 07:02:05', 4234, 1862, 1169, 693, 'refus_rym_velours_valcor', 235.10526315789474, '20309457:truck_diff:991:1,20455142:truck_diff:991:0,20455171:truck_diff:991:0,20311768:truck_diff:991:0,20311784:truck_diff:991:0,20403193:truck_diff:991:0,20476687:truck_diff:991:0,20172866:truck_diff:991:1,20141297:truck_diff:991:0,20119109:truck_diff:991:0,20079008:truck_diff:991:0,20079007:truck_diff:991:0,20076789:truck_diff:991:0,20075394:truck_diff:991:0,20072753:truck_diff:991:0,20071883:truck_diff:991:0,20070508:truck_diff:991:0,20029335:truck_diff:991:0,20029321:truck_diff:991:0', 19) ('2025-02-13 07:02:05', 3994, 802, 300, 502, 'RUBBIA_proportion_papier_add_surclassifier_rapport', 318.3333333333333, '19909479:pcm_diff_b:739:0,19909480:pcm_diff_b:739:0,20461713:pcm_diff_b:739:0', 3) ('2025-02-13 07:02:05', 3992, 130, 80, 50, 'RUBBIA_Alu_131221_add_surclassifier_rapport', 387.0, '19993272:aluminium_:739:0', 1) ('2025-02-13 07:02:05', 4892, 5254, 5217, 37, 'multi_classification_tapis_dechet', 15.0, '20493604:angers_mon:1017:1,20468750:sevran_122:739:0', 2) ('2025-02-13 07:02:05', 4909, 75, 50, 25, 'RUBBIA_PEHD_131221_add_surclassifier_rapport', 144.0, '20321744:pehd_pp_di:739:0', 1) ('2025-02-13 07:02:05', 3991, 95, 86, 9, 'RUBBIA_ELA_131221_add_surclassifier_rapport', 32.5, '20470424:ela_diff_b:1017:0,20479233:ela_diff_b:1017:1,20451766:ela_diff_b:1017:1,20421532:ela_diff_b:1017:0', 4) ('2025-02-13 07:02:05', 4871, 507, 499, 8, 'blur_rubbia_live', 6.0, '20493659:arc_en_cie:979:0', 1) ('2025-02-13 07:02:05', 4877, 34, 27, 7, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', 0.0, '20500031:JRM_diff_b:979:1,20499892:JRM_diff_b:979:1,20500081:JRM_diff_b:979:1,20499736:JRM_diff_b:979:1,20499591:JRM_diff_b:979:1,20499306:JRM_diff_b:979:1,20499168:JRM_diff_b:979:1', 7) ('2025-02-13 07:02:05', 533, 1299, 1299, 0, 'multi_classification_tapis_dechet', 23.0, '20469168: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-13 07:02:06', 370, 2, 'proportion_papier_qualite_dechets_tri', Decimal('13.0000'), '13545783:papier_dif:739:0', 1) ('2025-02-13 07:02:06', 3991, 26, 'RUBBIA_ELA_131221_add_surclassifier_rapport', Decimal('11.0000'), '20487794:ela_diff_b:1017:0', 1) ('2025-02-13 07:02:06', 3992, 30, 'RUBBIA_Alu_131221_add_surclassifier_rapport', Decimal('11.2000'), '20485440:aluminium_:1017:0,20491207:aluminium_:739:0', 2) ('2025-02-13 07:02:06', 4219, 88664, 'detection_plaque_valcor_010622', Decimal('812.1421'), '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:', 51) ('2025-02-13 07:02:06', 4220, 2967, 'split_time_score_plaque_Valcor', Decimal('2.3468'), '20423978:plaque_val:1064:0,20464429:plaque_val:1064:0,20494783:plaque_val:1064:0', 3) ('2025-02-13 07:02:06', 4234, 59, 'refus_rym_velours_valcor', Decimal('8.5424'), '20492444:incinerati:1103:0,20492445:incinerati:1103:0,20492446:incinerati:1103:0,20492447:incinerati:1103:0,20492448:incinerati:1103:0,20492465:incinerati:1103:0,20492466:incinerati:1103:0,20492467:incinerati:1103:0,20492468:incinerati:1103:0,20492469:incinerati:1103:0,20492470:incinerati:1103:0,20492471:incinerati:1103:0,20492472:incinerati:1103:0,20492473:incinerati:1103:0,20492474:incinerati:1103:0,20492475:incinerati:1103:0,20492476:incinerati:1103:0,20492477:incinerati:1103:0,20492478:incinerati:1103:0,20492479:incinerati:1103:0,20499944:incinerati:1103:0,20499945:incinerati:1103:0', 22) ('2025-02-13 07:02:06', 4322, 183, 'RUBBIA_filmPE_151122', Decimal('11.0219'), '20485433:film_pedb_:1017:0,20485439:film_pedb_:1017:0,20487793:film_pedb_:1017:0,20491203:film_pedb_:739:0,20491204:film_pedb_:739:0,20491206:film_pedb_:739:0', 6) ('2025-02-13 07:02:06', 4876, 507, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '20493659:arc_en_cie:979:0', 1) ('2025-02-13 07:02:06', 4877, 2, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live', Decimal('0.0000'), '20500133:JRM_diff_b:979:1', 1) ('2025-02-13 07:02:06', 4878, 2047, 'split_time_score_JRM_Arc_En_Ciel_test_load', Decimal('0.0000'), '20464234:arc_en_cie:979:0', 1) ('2025-02-13 07:02:06', 4883, 507, 'split_time_score_JRM_Arc_En_Ciel', Decimal('0.0000'), '20493659:arc_en_cie:979:0', 1) ('2025-02-13 07:02:06', 4887, 3316, 'split_time_score_Sevran_test', Decimal('0.0000'), '20468750:sevran_122:739:0', 1) ('2025-02-13 07:02:06', 4891, 1938, 'split_time_score_angers_montee_convoyeur', Decimal('0.0000'), '20493604:angers_mon:1017:0', 1) ('2025-02-13 07:02:06', 4892, 1, 'multi_classification_tapis_dechet', Decimal('0.0000'), '20500134: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-02-13 07:02:06', 4310, 7122, 'classifieur_2camions_valcor_021122_v1') ('2025-02-13 07:02:06', 4322, 4880, 'RUBBIA_filmPE_151122') ('2025-02-13 07:02:06', 3994, 480, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-13 07:02:06', 3992, 160, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-02-13 07:02:06', 4234, 3066, 'refus_rym_velours_valcor') ('2025-02-13 07:02:06', 4909, 160, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-13 07:02:06', 3991, 658, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-13 07:02:06', 4892, 14849, 'multi_classification_tapis_dechet') ('2025-02-13 07:02:06', 533, 3891, 'multi_classification_tapis_dechet') ('2025-02-13 07:02:06', 4871, 499, 'blur_rubbia_live') ('2025-02-13 07:02:06', 4877, 152, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') Nombre de datous demandés par statut ('statut', 'nombre de datous') (1, 19) (-5, 21) (0, 188) 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-13 07:02:15', 4234, 171249, 'refus_rym_velours_valcor') ('2025-02-13 07:02:15', 4883, 57316, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-13 07:02:15', 4876, 56509, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-13 07:02:15', 4892, 30333, 'multi_classification_tapis_dechet') ('2025-02-13 07:02:15', 4877, 28045, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_rubbia_live') ('2025-02-13 07:02:15', 4310, 27636, 'classifieur_2camions_valcor_021122_v1') ('2025-02-13 07:02:15', 4322, 27050, 'RUBBIA_filmPE_151122') ('2025-02-13 07:02:15', 4302, 18664, 'RUBBIA_JRM_consolidate') ('2025-02-13 07:02:15', 3804, 15438, 'Rubbia_crop_merge_2486_2499_classifiy_2547_extract_RYM') ('2025-02-13 07:02:15', 3993, 12279, 'RUBBIA_Carton_131221_add_surclassifier_rapport') ('2025-02-13 07:02:15', 3459, 10125, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-13 07:02:15', 3995, 9748, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-13 07:02:15', 3994, 8072, 'RUBBIA_proportion_papier_add_surclassifier_rapport') ('2025-02-13 07:02:15', 4433, 6987, 'RUBBIA_JRM_detail_conts_mask2896_sc2868_weights') ('2025-02-13 07:02:15', 533, 6042, 'multi_classification_tapis_dechet') ('2025-02-13 07:02:15', 3318, 5471, 'RUBBIA_Refus_mask_simple_non_aussi_rle') ('2025-02-13 07:02:15', 4153, 4536, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-13 07:02:15', 4311, 4100, 'sts_dechet_valcor_matching_v2_2022Q3') ('2025-02-13 07:02:15', 4891, 4000, 'split_time_score_angers_montee_convoyeur') ('2025-02-13 07:02:15', 3385, 3917, 'split_time_score_JRM_Arc_En_Ciel_peu_dense') ('2025-02-13 07:02:15', 4871, 2455, 'blur_rubbia_live') ('2025-02-13 07:02:15', 4910, 2324, 'pehd_prod_consolidate') ('2025-02-13 07:02:15', 3991, 2247, 'RUBBIA_ELA_131221_add_surclassifier_rapport') ('2025-02-13 07:02:15', 4189, 1400, 'split_time_score_JRM_Perlen_convoyeur') ('2025-02-13 07:02:15', 4887, 1190, 'split_time_score_Sevran_test') ('2025-02-13 07:02:15', 4909, 1180, 'RUBBIA_PEHD_131221_add_surclassifier_rapport') ('2025-02-13 07:02:15', 3789, 1160, 'split_time_score_test_multi_matiere') ('2025-02-13 07:02:15', 3992, 1011, 'RUBBIA_Alu_131221_add_surclassifier_rapport') ('2025-02-13 07:02:15', 4851, 827, 'split_time_score_SCCU_8') ('2025-02-13 07:02:15', 4878, 800, 'split_time_score_JRM_Arc_En_Ciel_test_load') ('2025-02-13 07:02:15', 4849, 756, 'split_time_score_SCCU_6') ('2025-02-13 07:02:15', 4850, 488, 'split_time_score_SCCU_7') ('2025-02-13 07:02:15', 3787, 320, 'split_time_score_urban_fest') ('2025-02-13 07:02:15', 4867, 186, 'split_time_score_cod_excoffier') ('2025-02-13 07:02:15', 3181, 165, 'split_time_score_JRM_Arc_En_Ciel') ('2025-02-13 07:02:15', 243, 130, 'prepare_varroa_ellipse_tile_rotate_whiten') ('2025-02-13 07:02:15', 4220, 128, 'split_time_score_plaque_Valcor') ('2025-02-13 07:02:15', 3164, 70, 'debug_sans_detect_pipeline_qualipapia_detect_crop_classify_rle_unique_nms_040321') ('2025-02-13 07:02:15', 4208, 50, 'test_acp_fit_transform_20') ('2025-02-13 07:02:15', 4209, 50, 'test_acp') ('2025-02-13 07:02:15', 4212, 50, 'ACP_from_port_5709050_type_5619_size_9') ('2025-02-13 07:02:15', 370, 48, 'proportion_papier_qualite_dechets_tri') ('2025-02-13 07:02:15', 686, 45, 'copy_argmax_crop') ('2025-02-13 07:02:15', 3979, 42, 'RUBBIA_PET_Fonce_add_surclassifier_rapport') ('2025-02-13 07:02:15', 4621, 39, 'tfhub_18_7_2023') ('2025-02-13 07:02:15', 4567, 36, 'tfhub_19_06_2023') ('2025-02-13 07:02:15', 3781, 35, 'cod_pipeline_Perlen_manuel_sts_test') ('2025-02-13 07:02:15', 230, 28, 'datou_test_rotate') ('2025-02-13 07:02:15', 1848, 25, 'Pipeline_upm_photos_blanches') ('2025-02-13 07:02:15', 2896, 25, 'test_radom_deformation') ('2025-02-13 07:02:15', 3070, 25, 'test_ventilate_hashtag_type_3326') ('2025-02-13 07:02:15', 3990, 25, 'test_crop_condition_blur') ('2025-02-13 07:02:15', 4893, 20, 'split_time_score_Sevran_test2') ('2025-02-13 07:02:15', 3856, 20, 'RUBBIA_Carton_050821_extract_RYM') ('2025-02-13 07:02:15', 40, 17, 'mask_coco_origin') ('2025-02-13 07:02:15', 2719, 16, 'pipeline_rubbia_detect_crop_classify_rle_unique_nms_080920_only_final') ('2025-02-13 07:02:15', 4184, 14, 'detection_plaque_valcor_010622') ('2025-02-13 07:02:15', 4492, 10, 'copie_4387_test_replace') ('2025-02-13 07:02:15', 4553, 10, 'copie_4387_test_replace') ('2025-02-13 07:02:15', 233, 10, 'datou_test_rotate_conditionnel') ('2025-02-13 07:02:15', 4573, 9, 'test_sam_h') ('2025-02-13 07:02:15', 2, 7, 'classification_model') ('2025-02-13 07:02:15', 1026, 7, 'mask_coco_for_test') ('2025-02-13 07:02:15', 571, 5, 'datou_test_flip') ('2025-02-13 07:02:15', 1818, 5, 'blanchir') ('2025-02-13 07:02:15', 2041, 5, 'test_data_aug') ('2025-02-13 07:02:15', 2085, 5, 'train_points_upm_darker') ('2025-02-13 07:02:15', 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.23user 0.05system 9:35.10elapsed 0%CPU (0avgtext+0avgdata 36424maxresident)k 13072inputs+40outputs (62major+5783minor)pagefaults 0swaps