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 : 3041430 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 : ['2631993'] with mtr_portfolio_ids : ['20995339'] and first list_photo_ids : [] new path : /proc/3041430/ 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.053797245025634766 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue Mar 4 10:20:28 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', 15), ('01', 7), ('02', 6), ('03', 8), ('04', 7), ('05', 11), ('06', 1), ('07', 8), ('08', 171), ('09', 76), ('10', 2)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 218} 04032025 20995339 Nombre de photos uploadées : 217 / 23040 (0%) 04032025 20995339 Nombre de photos taguées (types de déchets): 218 / 217 (100%) 04032025 20995339 Nombre de photos taguées (volume) : 218 / 217 (100%) elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 9.417533874511719e-05 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.01194906234741211 elapsed_time : insert_dashboard_record_day_entry 0.024970054626464844 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 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 Hashtag is None elapsed_time : list_photo_by_hashtags 0.014267206192016602 photos_removed : len 0 elapsed_time : load_duplicate_info 0.011230707168579102 ***** BEGIN SPLIT TIME ***** True 1741046400.0 `1741072754.010137 1741072500.0 `1741072823.010137 1741072500.0 `1741072834.010143 1741072500.0 `1741073013.010142 1741072500.0 `1741073114.010138 1741072500.0 `1741073124.010141 1741072500.0 `1741073173.01014 1741072500.0 `1741073194.01014 1741072500.0 `1741073204.010137 1741072500.0 `1741073213.009129 1741072500.0 `1741073223.010145 1741072500.0 `1741073233.010137 1741072500.0 `1741073243.010144 1741072500.0 `1741073254.010145 1741072500.0 `1741073274.010138 1741072500.0 `1741073283.009159 1741072500.0 `1741073323.010134 1741072500.0 `1741073334.01014 1741072500.0 `1741073344.01015 1741072500.0 `1741073354.010139 1741072500.0 `1741073363.009125 1741072500.0 `1741073373.010141 1741072500.0 `1741073383.010141 1741072500.0 `1741073393.010138 1741072500.0 `1741073404.01016 1741073400.0 `1741073414.010137 1741073400.0 `1741073433.009126 1741073400.0 `1741073443.010138 1741073400.0 `1741073453.010145 1741073400.0 `1741073463.010158 1741073400.0 `1741073474.010139 1741073400.0 `1741073484.010142 1741073400.0 `1741073494.010133 1741073400.0 `1741073523.010147 1741073400.0 `1741073533.010137 1741073400.0 `1741073544.010134 1741073400.0 `1741073554.010141 1741073400.0 `1741073564.01014 1741073400.0 `1741073573.009126 1741073400.0 `1741073583.01015 1741073400.0 `1741073593.010141 1741073400.0 `1741073603.010135 1741073400.0 `1741073614.010134 1741073400.0 `1741073624.010136 1741073400.0 `1741073634.010137 1741073400.0 `1741073643.009151 1741073400.0 `1741073653.010143 1741073400.0 `1741073694.010138 1741073400.0 `1741073704.010161 1741073400.0 `1741073713.00913 1741073400.0 `1741073723.010146 1741073400.0 `1741073733.010143 1741073400.0 `1741073743.010142 1741073400.0 `1741073754.010139 1741073400.0 `1741073764.010145 1741073400.0 `1741073774.010138 1741073400.0 `1741073793.009127 1741073400.0 `1741073813.010136 1741073400.0 `1741073834.010136 1741073400.0 `1741073844.010136 1741073400.0 `1741073893.01014 1741073400.0 `1741073904.010134 1741073400.0 `1741073914.01014 1741073400.0 `1741073924.010141 1741073400.0 `1741073933.009128 1741073400.0 `1741073943.010152 1741073400.0 `1741073953.01014 1741073400.0 `1741074113.01014 1741073400.0 `1741074243.010161 1741073400.0 `1741074263.010139 1741073400.0 `1741074284.010144 1741073400.0 `1741074303.009144 1741074300.0 `1741074313.010144 1741074300.0 `1741074323.010146 1741074300.0 `1741074333.010162 1741074300.0 `1741074344.010152 1741074300.0 `1741074354.010138 1741074300.0 `1741074383.010137 1741074300.0 `1741074393.010147 1741074300.0 `1741074403.010135 1741074300.0 `1741074424.010156 1741074300.0 `1741074443.009132 1741074300.0 `1741074453.010141 1741074300.0 `1741074463.010142 1741074300.0 `1741074473.010139 1741074300.0 `1741074484.010146 1741074300.0 `1741074494.010141 1741074300.0 `1741074504.010135 1741074300.0 `1741074513.009127 1741074300.0 `1741074523.010135 1741074300.0 `1741074533.010137 1741074300.0 `1741074543.01015 1741074300.0 `1741074583.009125 1741074300.0 `1741074593.010137 1741074300.0 `1741074603.010151 1741074300.0 `1741074624.010136 1741074300.0 `1741074634.010147 1741074300.0 `1741074644.010136 1741074300.0 `1741074653.009128 1741074300.0 `1741074663.010151 1741074300.0 `1741074683.010136 1741074300.0 `1741074694.010136 1741074300.0 `1741074714.01015 1741074300.0 `1741074724.01014 1741074300.0 `1741074733.00913 1741074300.0 `1741074743.010137 1741074300.0 `1741074753.010139 1741074300.0 `1741074763.010141 1741074300.0 `1741074774.010136 1741074300.0 `1741074803.00913 1741074300.0 `1741074813.010134 1741074300.0 `1741074823.010137 1741074300.0 `1741074833.010139 1741074300.0 `1741074844.010153 1741074300.0 `1741074854.010142 1741074300.0 `1741074864.010137 1741074300.0 `1741074873.009131 1741074300.0 `1741074883.010144 1741074300.0 `1741074893.010142 1741074300.0 `1741074903.010169 1741074300.0 `1741074914.010148 1741074300.0 `1741074924.010144 1741074300.0 `1741074934.010139 1741074300.0 `1741074943.009129 1741074300.0 `1741074984.010137 1741074300.0 `1741074994.010133 1741074300.0 `1741075004.010135 1741074300.0 `1741075013.009127 1741074300.0 `1741075023.010155 1741074300.0 `1741075033.010143 1741074300.0 `1741075043.010137 1741074300.0 `1741075054.010138 1741074300.0 `1741075064.010137 1741074300.0 `1741075074.010136 1741074300.0 `1741075083.009146 1741074300.0 `1741075093.01014 1741074300.0 `1741075103.010136 1741074300.0 `1741075113.010136 1741074300.0 `1741075124.010135 1741074300.0 `1741075214.010195 1741075200.0 `1741075234.010147 1741075200.0 `1741075784.010142 1741075200.0 `1741076334.009127 1741076100.0 `1741077304.010157 1741077000.0 `1741077315.010138 1741077000.0 `1741077354.010153 1741077000.0 `1741077364.010167 1741077000.0 `1741077374.010137 1741077000.0 `1741077385.010137 1741077000.0 `1741077394.009131 1741077000.0 `1741077404.01014 1741077000.0 `1741077414.010141 1741077000.0 `1741077424.010156 1741077000.0 `1741077465.010137 1741077000.0 `1741077474.009126 1741077000.0 `1741077484.010143 1741077000.0 `1741077494.01014 1741077000.0 `1741077504.010143 1741077000.0 `1741077514.010143 1741077000.0 `1741077524.010142 1741077000.0 `1741077535.010137 1741077000.0 `1741077564.010135 1741077000.0 `1741077574.010134 1741077000.0 `1741077594.010137 1741077000.0 `1741077624.010136 1741077000.0 `1741077634.010145 1741077000.0 `1741077644.010141 1741077000.0 `1741077654.010138 1741077000.0 `1741077664.010144 1741077000.0 `1741077684.009126 1741077000.0 `1741077694.010144 1741077000.0 `1741077704.01014 1741077000.0 `1741077714.010137 1741077000.0 `1741077734.010137 1741077000.0 `1741077745.010138 1741077000.0 `1741077754.009127 1741077000.0 `1741077764.010143 1741077000.0 `1741077774.01014 1741077000.0 `1741077815.010137 1741077000.0 `1741077825.010137 1741077000.0 `1741077834.009133 1741077000.0 `1741077844.010163 1741077000.0 `1741077854.010138 1741077000.0 `1741077864.010135 1741077000.0 `1741077874.010142 1741077000.0 `1741077884.010136 1741077000.0 `1741077895.010138 1741077000.0 `1741077904.009149 1741077900.0 `1741077914.010139 1741077900.0 `1741077924.01014 1741077900.0 `1741077934.010135 1741077900.0 `1741077944.010136 1741077900.0 `1741077974.009123 1741077900.0 `1741077984.010132 1741077900.0 `1741077994.010136 1741077900.0 `1741078004.010137 1741077900.0 `1741078014.010139 1741077900.0 `1741078024.010136 1741077900.0 `1741078035.010139 1741077900.0 `1741078044.009127 1741077900.0 `1741078064.010136 1741077900.0 `1741078074.010136 1741077900.0 `1741078094.010136 1741077900.0 `1741078105.010133 1741077900.0 `1741078114.009123 1741077900.0 `1741078124.010139 1741077900.0 `1741078134.010139 1741077900.0 `1741078194.010146 1741077900.0 `1741078294.010145 1741077900.0 `1741078315.010137 1741077900.0 `1741078334.009127 1741077900.0 `1741078344.010137 1741077900.0 `1741078354.010145 1741077900.0 `1741078364.010142 1741077900.0 `1741078374.010138 1741077900.0 `1741079054.010136 1741078800.0 `1741079604.009124 1741078800.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.012742757797241211 ***** END SPLIT TIME ***** NUMBER BATCH : 8 list_ponderation used : [1e-05, 1e-05, 1e-05, 1e-05, 1e-05] , list_hashtag_class_create_as_list : ['jrm'] ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '04032025', 'map_nb_amount': {0: 1, 1: 20, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 639.0000009536743, 'nb_balles_papier': 0.00022, 'begin_time_port': 'image_04032025_08_19_14_10137.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00022 We reject this portfolio because of the condition_save_data : 2025-03-04 08:19:14.010137 ERROR missing amount info result_one_balle_Type_JRM:{'day': '04032025', 'map_nb_amount': {0: 3, 1: 43, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 879.9999840259552, 'nb_balles_papier': 0.00046000000000000056, 'begin_time_port': 'image_04032025_08_30_04_010160m0.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.00046000000000000056 We reject this portfolio because of the condition_save_data : 2025-03-04 08:30:04.010160 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': '04032025', 'map_nb_amount': {0: 6, 1: 55, 2: 2, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 821.0009908676147, 'nb_balles_papier': 0.000630000000000001, 'begin_time_port': 'image_04032025_08_45_03_009144m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.000630000000000001 We reject this portfolio because of the condition_save_data : 2025-03-04 08:45:03.009144 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 ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '04032025', 'map_nb_amount': {0: 2, 1: 31, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 590.9999809265137, 'nb_balles_papier': 0.0003300000000000002, 'begin_time_port': 'image_04032025_09_35_04_010157m0.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.0003300000000000002 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 ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '04032025', 'map_nb_amount': {0: 2, 1: 11, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 470.0009889602661, 'nb_balles_papier': 0.00016, 'begin_time_port': 'image_04032025_09_45_04_009149m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 0.00016 We have rejected 6 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 2 Still a lot to verify ! We need to add photos : {1340777166} Still a lot to verify ! Qualite : 0.0798565933724748 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`=21002132 AND mptpi.`type`=3726 To do Qualite : 0.06344986286014884 Since we have set only the same portfolio in list_same_port_ids, it means the datou_current is finished and we need to re-insert it with the same id to finish the job (if we added new photos to the portfolio) We may have found the correct datou result for the same portfolio, but we will rerun it, since the portfolio may have been updated ! This function is not protected ! # 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`=21002349 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.32874131202697754 # DISPLAY ALL COLLECTED DATA : {'04032025': {'nb_upload': 217, 'nb_taggue_class': 218, 'nb_taggue_densite': 218}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340777166, 1340776300, 1340775544, 1340774004, 1340773979, 1340773973, 1340773969, 1340773824, 1340773543, 1340773526, 1340772628, 1340772580, 1340772558, 1340772552, 1340772544, 1340772534, 1340772507, 1340772502, 1340772496, 1340772493, 1340772488, 1340772407, 1340772403, 1340772374, 1340772372, 1340772368, 1340772100, 1340772095, 1340772089, 1340772085, 1340772076, 1340772041, 1340772037, 1340772033, 1340772028, 1340772025, 1340772021, 1340771980, 1340771977, 1340771973, 1340771937, 1340771933, 1340771926, 1340771920, 1340771916, 1340771886, 1340771880, 1340771870, 1340771866, 1340771863, 1340771825, 1340771819, 1340771807, 1340771804, 1340771728, 1340771657, 1340771622, 1340771558, 1340771553, 1340771547, 1340771542, 1340771536, 1340771526, 1340771434, 1340771431, 1340771427, 1340771394, 1340771389, 1340771383, 1340771377, 1340771372, 1340771369, 1340771338, 1340771333, 1340771330, 1340769825, 1340768221, 1340767493, 1340767488, 1340767146, 1340767030, 1340766993, 1340766985, 1340766978, 1340766762, 1340766758, 1340766753, 1340766750, 1340766748, 1340766743, 1340766674, 1340766669, 1340766667, 1340766663, 1340766640, 1340766635, 1340766631, 1340766628, 1340766624, 1340766591] Looping around the photos to save general results len do output : 1 /20995339Didn'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, '2631993') ('4876', '20995339', '1340777166', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340776300', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340775544', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340774004', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340773979', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340773973', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340773969', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340773824', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340773543', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340773526', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772628', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772580', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772558', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772552', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772544', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772534', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772507', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772502', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772496', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772493', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772488', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772407', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772403', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772374', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772372', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772368', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772100', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772095', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772089', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772085', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772076', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772041', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772037', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772033', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772028', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772025', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340772021', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771980', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771977', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771973', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771937', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771933', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771926', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771920', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771916', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771886', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771880', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771870', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771866', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771863', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771825', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771819', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771807', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771804', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771728', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771657', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771622', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771558', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771553', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771547', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771542', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771536', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771526', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771434', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771431', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771427', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771394', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771389', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771383', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771377', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771372', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771369', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771338', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771333', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340771330', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340769825', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340768221', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340767493', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340767488', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340767146', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340767030', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766993', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766985', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766978', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766762', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766758', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766753', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766750', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766748', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766743', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766674', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766669', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766667', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766663', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766640', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766635', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766631', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766628', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766624', None, None, None, None, None, '2631993') ('4876', None, None, None, None, None, None, None, '2631993') ('4876', '20995339', '1340766591', None, None, None, None, None, '2631993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.024704694747924805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5006587505340576 time spend to save output : 0.025503873825073242 total time spend for step 1 : 0.5261626243591309 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.55user 0.48system 0:04.43elapsed 45%CPU (0avgtext+0avgdata 101448maxresident)k 0inputs+88outputs (0major+48776minor)pagefaults 0swaps