python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4876' -s datou_current_4876 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] process id : 3758263 load datou : 4876 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2733518'] with mtr_portfolio_ids : ['22162785'] and first list_photo_ids : [] new path : /proc/3758263/ Inside batchDatouExec : verbose : 0 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! List Step Type Loaded in datou : split_time_score over limit max, limiting to limit_max 100 list_input_json : {} origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB time to download the photos : 0.038634300231933594 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Apr 18 01:22:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('00', 244), ('01', 5)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 232} 18042025 22162785 Nombre de photos uploadées : 249 / 23040 (1%) 18042025 22162785 Nombre de photos taguées (types de déchets): 232 / 249 (93%) 18042025 22162785 Nombre de photos taguées (volume) : 232 / 249 (93%) elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 0.00011754035949707031 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.012762308120727539 elapsed_time : insert_dashboard_record_day_entry 0.024184465408325195 Creating list_photo_by_hashtags Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None Hashtag is None elapsed_time : list_photo_by_hashtags 0.014841556549072266 photos_removed : len 0 elapsed_time : load_duplicate_info 0.011530876159667969 ***** BEGIN SPLIT TIME ***** 1744934400.0 `1744927204.01014 1744927200.0 `1744927214.010146 1744927200.0 `1744927224.010146 1744927200.0 `1744927233.009127 1744927200.0 `1744927243.010135 1744927200.0 `1744927284.010133 1744927200.0 `1744927294.010135 1744927200.0 `1744927313.010137 1744927200.0 `1744927323.010146 1744927200.0 `1744927334.010143 1744927200.0 `1744927344.010136 1744927200.0 `1744927364.010141 1744927200.0 `1744927373.009128 1744927200.0 `1744927383.010151 1744927200.0 `1744927393.010139 1744927200.0 `1744927404.010134 1744927200.0 `1744927414.010136 1744927200.0 `1744927424.010139 1744927200.0 `1744927453.010137 1744927200.0 `1744927463.010133 1744927200.0 `1744927473.010134 1744927200.0 `1744927484.010139 1744927200.0 `1744927494.010137 1744927200.0 `1744927504.010151 1744927200.0 `1744927514.010135 1744927200.0 `1744927523.009124 1744927200.0 `1744927543.010139 1744927200.0 `1744927554.010137 1744927200.0 `1744927564.010144 1744927200.0 `1744927574.010136 1744927200.0 `1744927584.010135 1744927200.0 `1744927613.010138 1744927200.0 `1744927624.010136 1744927200.0 `1744927634.010138 1744927200.0 `1744927644.010143 1744927200.0 `1744927654.010144 1744927200.0 `1744927663.009132 1744927200.0 `1744927673.010136 1744927200.0 `1744927683.010151 1744927200.0 `1744927694.010141 1744927200.0 `1744927704.010137 1744927200.0 `1744927714.010134 1744927200.0 `1744927724.010133 1744927200.0 `1744927753.010139 1744927200.0 `1744927763.01014 1744927200.0 `1744927774.010274 1744927200.0 `1744927784.010149 1744927200.0 `1744927794.010136 1744927200.0 `1744927803.009096 1744927200.0 `1744927813.010144 1744927200.0 `1744927824.010358 1744927200.0 `1744927834.010136 1744927200.0 `1744927844.01014 1744927200.0 `1744927853.009127 1744927200.0 `1744927864.010814 1744927200.0 `1744927903.010132 1744927200.0 `1744927914.010133 1744927200.0 `1744927924.010136 1744927200.0 `1744927934.010143 1744927200.0 `1744927944.010137 1744927200.0 `1744927953.00913 1744927200.0 `1744927963.01014 1744927200.0 `1744927973.010139 1744927200.0 `1744927984.010155 1744927200.0 `1744927994.010142 1744927200.0 `1744928004.010137 1744927200.0 `1744928014.010135 1744927200.0 `1744928023.009126 1744927200.0 `1744928033.010134 1744927200.0 `1744928064.010137 1744927200.0 `1744928074.010134 1744927200.0 `1744928084.010137 1744927200.0 `1744928094.010137 1744927200.0 `1744928103.009148 1744928100.0 `1744928113.010139 1744928100.0 `1744928123.010142 1744928100.0 `1744928134.01014 1744928100.0 `1744928154.010138 1744928100.0 `1744928164.010143 1744928100.0 `1744928173.009128 1744928100.0 `1744928183.010134 1744928100.0 `1744928193.010135 1744928100.0 `1744928204.010138 1744928100.0 `1744928214.010138 1744928100.0 `1744928224.010138 1744928100.0 `1744928234.010135 1744928100.0 `1744928273.010136 1744928100.0 `1744928294.010138 1744928100.0 `1744928304.010134 1744928100.0 `1744928323.010143 1744928100.0 `1744928334.010137 1744928100.0 `1744928344.010157 1744928100.0 `1744928364.010135 1744928100.0 `1744928383.010143 1744928100.0 `1744928404.010166 1744928100.0 `1744928414.010139 1744928100.0 `1744928424.010137 1744928100.0 `1744928434.01014 1744928100.0 `1744928443.009128 1744928100.0 `1744928453.010138 1744928100.0 `1744928494.010135 1744928100.0 `1744928504.010136 1744928100.0 `1744928513.009127 1744928100.0 `1744928523.010164 1744928100.0 `1744928533.010139 1744928100.0 `1744928543.010134 1744928100.0 `1744928564.01014 1744928100.0 `1744928574.010137 1744928100.0 `1744928583.009135 1744928100.0 `1744928603.010143 1744928100.0 `1744928613.010136 1744928100.0 `1744928624.010136 1744928100.0 `1744928634.010136 1744928100.0 `1744928644.010148 1744928100.0 `1744928673.010134 1744928100.0 `1744928684.010315 1744928100.0 `1744928694.01016 1744928100.0 `1744928904.010137 1744928100.0 `1744928914.010145 1744928100.0 `1744928923.009128 1744928100.0 `1744928933.010138 1744928100.0 `1744928943.010153 1744928100.0 `1744928964.010136 1744928100.0 `1744928974.010136 1744928100.0 `1744928994.010139 1744928100.0 `1744929013.010137 1744929000.0 `1744929034.010141 1744929000.0 `1744929044.01014 1744929000.0 `1744929054.010136 1744929000.0 `1744929093.010138 1744929000.0 `1744929114.010135 1744929000.0 `1744929254.01014 1744929000.0 `1744929264.010144 1744929000.0 `1744929274.010141 1744929000.0 `1744929283.009131 1744929000.0 `1744929303.01015 1744929000.0 `1744929314.010139 1744929000.0 `1744929324.010135 1744929000.0 `1744929334.010142 1744929000.0 `1744929344.010141 1744929000.0 `1744929353.009127 1744929000.0 `1744929363.010156 1744929000.0 `1744929373.010143 1744929000.0 `1744929384.010136 1744929000.0 `1744929423.009141 1744929000.0 `1744929433.01014 1744929000.0 `1744929454.010147 1744929000.0 `1744929464.010141 1744929000.0 `1744929474.010138 1744929000.0 `1744929484.010147 1744929000.0 `1744929493.009129 1744929000.0 `1744929503.010136 1744929000.0 `1744929513.010135 1744929000.0 `1744929534.010139 1744929000.0 `1744929554.010142 1744929000.0 `1744929564.010136 1744929000.0 `1744929573.009124 1744929000.0 `1744929583.01014 1744929000.0 `1744929593.010136 1744929000.0 `1744929634.010133 1744929000.0 `1744929643.009124 1744929000.0 `1744929663.010139 1744929000.0 `1744929674.010137 1744929000.0 `1744929684.010144 1744929000.0 `1744929694.010143 1744929000.0 `1744929704.01014 1744929000.0 `1744929723.010152 1744929000.0 `1744929733.010139 1744929000.0 `1744929744.010135 1744929000.0 `1744929754.010136 1744929000.0 `1744929764.01014 1744929000.0 `1744929774.010138 1744929000.0 `1744929783.009142 1744929000.0 `1744929793.010138 1744929000.0 `1744929803.010166 1744929000.0 `1744929814.010136 1744929000.0 `1744929853.009124 1744929000.0 `1744929873.01014 1744929000.0 `1744929883.01014 1744929000.0 `1744929904.010149 1744929900.0 `1744929914.010139 1744929900.0 `1744929924.010135 1744929900.0 `1744929943.010145 1744929900.0 `1744929953.010136 1744929900.0 `1744929964.010152 1744929900.0 `1744929974.010144 1744929900.0 `1744930003.009136 1744929900.0 `1744930034.010136 1744929900.0 `1744930073.00913 1744929900.0 `1744930083.010165 1744929900.0 `1744930093.010139 1744929900.0 `1744930124.01014 1744929900.0 `1744930134.010134 1744929900.0 `1744930143.009153 1744929900.0 `1744930153.010137 1744929900.0 `1744930163.010139 1744929900.0 `1744930184.010097 1744929900.0 `1744930204.010152 1744929900.0 `1744930213.009125 1744929900.0 `1744930223.010135 1744929900.0 `1744930233.010138 1744929900.0 `1744930243.010142 1744929900.0 `1744930254.010137 1744929900.0 `1744930264.010166 1744929900.0 `1744930274.010135 1744929900.0 `1744930283.009125 1744929900.0 `1744930324.010155 1744929900.0 `1744930344.010133 1744929900.0 `1744930354.010144 1744929900.0 `1744930363.009133 1744929900.0 `1744930373.010136 1744929900.0 `1744930383.01016 1744929900.0 `1744930394.010139 1744929900.0 `1744930404.010139 1744929900.0 `1744930414.010135 1744929900.0 `1744930424.010141 1744929900.0 `1744930433.00917 1744929900.0 `1744930453.01014 1744929900.0 `1744930464.010132 1744929900.0 `1744930493.010136 1744929900.0 `1744930504.010152 1744929900.0 `1744930514.010138 1744929900.0 `1744930524.010145 1744929900.0 `1744930534.010143 1744929900.0 `1744930543.009128 1744929900.0 `1744930553.010137 1744929900.0 `1744930563.010163 1744929900.0 `1744930574.010141 1744929900.0 `1744930584.010135 1744929900.0 `1744930594.010136 1744929900.0 `1744930623.009145 1744929900.0 `1744930633.010139 1744929900.0 `1744930643.010142 1744929900.0 `1744930654.010136 1744929900.0 `1744930664.010137 1744929900.0 `1744930674.010136 1744929900.0 `1744930684.010142 1744929900.0 `1744930693.009127 1744929900.0 `1744930703.010135 1744929900.0 `1744930724.010136 1744929900.0 `1744930734.010136 1744929900.0 `1744930755.011007 1744929900.0 `1744930784.010134 1744929900.0 `1744930794.010135 1744929900.0 `1744930804.010148 1744930800.0 `1744930814.010136 1744930800.0 `1744930825.010137 1744930800.0 `1744931204.010144 1744930800.0 `1744931754.01014 1744931700.0 list printed: [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72], [73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124], [125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178], [179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 208, 209, 210, 211, 212, 213, 214, 215, 216, 217, 218, 219, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243], [244, 245, 246, 247], [248]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.014635801315307617 ***** END SPLIT TIME ***** NUMBER BATCH : 6 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] result_one_balle_Type_JRM:{'day': '18042025', 'map_nb_amount': {0: 11, 1: 55, 2: 7, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.999997138977, 'nb_balles_papier': 0.0007300000000000013, 'begin_time_port': 'image_18042025_00_00_04_010140m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0007300000000000013 We reject this portfolio because of the condition_save_data : 2025-04-18 00:00:04.010140 result_one_balle_Type_JRM:{'day': '18042025', 'map_nb_amount': {0: 4, 1: 37, 2: 10, 3: 1, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 891.0009911060333, 'nb_balles_papier': 0.0005200000000000007, 'begin_time_port': 'image_18042025_00_15_03_009148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0005200000000000007 We reject this portfolio because of the condition_save_data : 2025-04-18 00:15:03.009148 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '18042025', 'map_nb_amount': {0: 3, 1: 38, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 870.000002861023, 'nb_balles_papier': 0.00045000000000000053, 'begin_time_port': 'image_18042025_00_30_13_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00045000000000000053 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '18042025', 'map_nb_amount': {0: 8, 1: 48, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999859333038, 'nb_balles_papier': 0.0005900000000000009, 'begin_time_port': 'image_18042025_00_45_04_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.0005900000000000009 We have rejected 5 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 Still a lot to verify ! Still a lot to verify ! Qualite : 0.07328397137675005 We don't need to reset the datou_current for this portfolio, que ce soit dans le cas ou il est fini (et found_correct devrait etre vrai, ou dans le cas ou il n'est pas fini, mais du coup on le retrouvera et mettra simplement à jour) # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22163930 AND mptpi.`type`=3726 To do Qualite : 0.06393252327376771 We don't need to reset the datou_current for this portfolio, que ce soit dans le cas ou il est fini (et found_correct devrait etre vrai, ou dans le cas ou il n'est pas fini, mais du coup on le retrouvera et mettra simplement à jour) # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22164320 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.32103800773620605 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 249, 'nb_taggue_class': 232, 'nb_taggue_densite': 232}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350919982, 1350919644, 1350919564, 1350917503, 1350917498, 1350917471, 1350917095, 1350917071, 1350917046, 1350916953, 1350916924, 1350916893, 1350916865, 1350916833, 1350916107, 1350916102, 1350916096, 1350916091, 1350916087, 1350916083, 1350916065, 1350916061, 1350916059, 1350916057, 1350916027, 1350916019, 1350916016, 1350916014, 1350916011, 1350916001, 1350915959, 1350915958, 1350915954, 1350915915, 1350915912, 1350915909, 1350915907, 1350915905, 1350915902, 1350915865, 1350915860, 1350915856, 1350915852, 1350915849, 1350915813, 1350915810, 1350915805, 1350915763, 1350915755, 1350915739, 1350915725, 1350915721, 1350915716, 1350915684, 1350915683, 1350915673, 1350915668, 1350915641, 1350915638, 1350915634, 1350915626, 1350915573, 1350915570, 1350915541, 1350915538, 1350915533, 1350915489, 1350915486, 1350915485, 1350915478, 1350915474, 1350915443, 1350915441, 1350915439, 1350915408, 1350915405, 1350915404, 1350915401, 1350915376, 1350915372, 1350915371, 1350915370, 1350915369, 1350915367, 1350915336, 1350915333, 1350915327, 1350915320, 1350915317, 1350915299, 1350915296, 1350915213, 1350915203, 1350915200, 1350915193, 1350915187, 1350915140, 1350915136, 1350915133, 1350915130] Looping around the photos to save general results len do output : 1 /22162785Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350919982', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350919644', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350919564', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350917503', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350917498', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350917471', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350917095', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350917071', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350917046', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916953', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916924', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916893', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916865', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916833', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916107', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916102', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916096', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916091', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916087', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916083', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916065', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916061', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916059', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916057', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916027', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916019', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916016', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916014', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916011', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350916001', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915959', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915958', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915954', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915915', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915912', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915909', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915907', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915905', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915902', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915865', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915860', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915856', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915852', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915849', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915813', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915810', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915805', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915763', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915755', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915739', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915725', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915721', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915716', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915684', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915683', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915673', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915668', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915641', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915638', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915634', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915626', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915573', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915570', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915541', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915538', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915533', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915489', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915486', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915485', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915478', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915474', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915443', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915441', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915439', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915408', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915405', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915404', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915401', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915376', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915372', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915371', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915370', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915369', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915367', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915336', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915333', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915327', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915320', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915317', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915299', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915296', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915213', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915203', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915200', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915193', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915187', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915140', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915136', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915133', None, None, None, None, None, '2733518') ('4876', None, None, None, None, None, None, None, '2733518') ('4876', '22162785', '1350915130', None, None, None, None, None, '2733518') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.20766663551330566 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4990811347961426 time spend to save output : 0.20858168601989746 total time spend for step 1 : 0.70766282081604 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment 1.14user 0.78system 0:04.24elapsed 45%CPU (0avgtext+0avgdata 100908maxresident)k 0inputs+80outputs (8major+48931minor)pagefaults 0swaps