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 : 3231339 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 we have a portfolio with more photos than limit : 2097>1000 please execute split_portfolio.py -i 21674640 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4876, datou_cur_ids : ['2690440'] with mtr_portfolio_ids : ['21674640'] and first list_photo_ids : [] new path : /proc/3231339/ 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.03378486633300781 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue Mar 25 19:52: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', 9), ('01', 10), ('02', 12), ('03', 12), ('04', 5), ('05', 205), ('06', 254), ('07', 275), ('08', 263), ('09', 7), ('10', 3), ('11', 6), ('12', 4), ('13', 10), ('14', 204), ('15', 264), ('16', 259), ('17', 132), ('18', 4), ('19', 159)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 1906} 25032025 21674640 Nombre de photos uploadées : 165 / 23040 (0%) 25032025 21674640 Nombre de photos taguées (types de déchets): 1906 / 165 (1155%) 25032025 21674640 Nombre de photos taguées (volume) : 1906 / 165 (1155%) elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 0.0010917186737060547 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.010592222213745117 elapsed_time : insert_dashboard_record_day_entry 0.023211240768432617 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 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 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.007921457290649414 photos_removed : len 0 elapsed_time : load_duplicate_info 0.014019250869750977 ***** BEGIN SPLIT TIME ***** True 1742860800.0 `1742920144.010147 1742919300.0 `1742921464.010139 1742921100.0 `1742922025.01014 1742922000.0 `1742922584.010136 1742922000.0 `1742923134.010138 1742922900.0 `1742924804.010142 1742924700.0 `1742925875.010142 1742925600.0 `1742926035.010138 1742925600.0 `1742926064.010138 1742925600.0 `1742926714.010145 1742926500.0 `1742926725.010133 1742926500.0 `1742926784.010135 1742926500.0 `1742926795.010134 1742926500.0 `1742926805.010142 1742926500.0 `1742926815.010135 1742926500.0 `1742926854.010133 1742926500.0 `1742926865.010153 1742926500.0 `1742926895.010142 1742926500.0 `1742926904.009129 1742926500.0 `1742926914.010136 1742926500.0 `1742926914.010136 1742926500.0 `1742926924.010151 1742926500.0 `1742926924.010151 1742926500.0 `1742926934.010133 1742926500.0 `1742926934.010133 1742926500.0 `1742926945.010135 1742926500.0 `1742926945.010135 1742926500.0 `1742926955.010135 1742926500.0 `1742926955.010135 1742926500.0 `1742926965.010134 1742926500.0 `1742926965.010134 1742926500.0 `1742926974.009126 1742926500.0 `1742926984.010143 1742926500.0 `1742926994.010135 1742926500.0 `1742927004.010133 1742926500.0 `1742927025.010133 1742926500.0 `1742927035.010133 1742926500.0 `1742927035.010133 1742926500.0 `1742927045.01016 1742926500.0 `1742927045.01016 1742926500.0 `1742927054.009124 1742926500.0 `1742927154.010134 1742926500.0 `1742927165.010141 1742926500.0 `1742927194.009131 1742926500.0 `1742927204.010136 1742926500.0 `1742927214.010139 1742926500.0 `1742927224.01017 1742926500.0 `1742927235.010138 1742926500.0 `1742927245.010138 1742926500.0 `1742927255.010149 1742926500.0 `1742927264.009126 1742926500.0 `1742927294.010133 1742926500.0 `1742927305.010132 1742926500.0 `1742927315.010133 1742926500.0 `1742927325.010135 1742926500.0 `1742927335.010141 1742926500.0 `1742927344.00914 1742926500.0 `1742927354.010136 1742926500.0 `1742927364.010135 1742926500.0 `1742927375.010134 1742926500.0 `1742927385.010137 1742926500.0 `1742927395.010135 1742926500.0 `1742927424.010133 1742927400.0 `1742927434.010133 1742927400.0 `1742927444.010136 1742927400.0 `1742927455.010138 1742927400.0 `1742927465.010152 1742927400.0 `1742927475.010136 1742927400.0 `1742927484.009126 1742927400.0 `1742927494.01014 1742927400.0 `1742927504.010135 1742927400.0 `1742927525.010151 1742927400.0 `1742927535.010137 1742927400.0 `1742927545.010134 1742927400.0 `1742927555.010141 1742927400.0 `1742927564.009126 1742927400.0 `1742927574.010143 1742927400.0 `1742927584.010148 1742927400.0 `1742927595.010137 1742927400.0 `1742927625.010135 1742927400.0 `1742927634.009126 1742927400.0 `1742927644.01015 1742927400.0 `1742927654.010135 1742927400.0 `1742927664.010137 1742927400.0 `1742927675.010135 1742927400.0 `1742927685.010136 1742927400.0 `1742927695.010135 1742927400.0 `1742927714.010135 1742927400.0 `1742927724.010132 1742927400.0 `1742927734.010134 1742927400.0 `1742927745.010136 1742927400.0 `1742927755.010135 1742927400.0 `1742927765.010148 1742927400.0 `1742927775.010137 1742927400.0 `1742927804.010136 1742927400.0 `1742927815.010143 1742927400.0 `1742927825.010201 1742927400.0 `1742927835.010136 1742927400.0 `1742927844.009125 1742927400.0 `1742927854.010135 1742927400.0 `1742927864.010135 1742927400.0 `1742927874.01014 1742927400.0 `1742927885.010148 1742927400.0 `1742927905.010133 1742927400.0 `1742927915.010132 1742927400.0 `1742927924.009124 1742927400.0 `1742927934.010135 1742927400.0 `1742927944.010148 1742927400.0 `1742927955.010144 1742927400.0 `1742927965.010135 1742927400.0 `1742927975.010134 1742927400.0 `1742927985.010137 1742927400.0 `1742928014.010135 1742927400.0 `1742928024.010135 1742927400.0 `1742928035.010137 1742927400.0 `1742928045.010136 1742927400.0 `1742928055.010138 1742927400.0 `1742928064.009138 1742927400.0 `1742928074.010136 1742927400.0 `1742928084.010133 1742927400.0 `1742928105.010133 1742927400.0 `1742928115.010134 1742927400.0 `1742928125.010154 1742927400.0 `1742928135.010135 1742927400.0 `1742928144.009127 1742927400.0 `1742928154.010143 1742927400.0 `1742928164.010136 1742927400.0 `1742928175.010137 1742927400.0 `1742928195.010134 1742927400.0 `1742928205.010132 1742927400.0 `1742928214.009125 1742927400.0 `1742928224.010137 1742927400.0 `1742928234.010138 1742927400.0 `1742928245.01016 1742927400.0 `1742928255.010133 1742927400.0 `1742928265.010133 1742927400.0 `1742928304.01014 1742928300.0 `1742928314.010136 1742928300.0 `1742928325.010135 1742928300.0 `1742928335.010144 1742928300.0 `1742928345.010142 1742928300.0 `1742928354.009126 1742928300.0 `1742928364.010141 1742928300.0 `1742928374.010136 1742928300.0 `1742928405.010133 1742928300.0 `1742928415.010133 1742928300.0 `1742928425.010171 1742928300.0 `1742928434.009132 1742928300.0 `1742928444.010134 1742928300.0 `1742928454.010133 1742928300.0 `1742928465.010135 1742928300.0 `1742928475.010136 1742928300.0 `1742928485.010138 1742928300.0 `1742928504.009123 1742928300.0 `1742928514.010135 1742928300.0 `1742928524.010133 1742928300.0 `1742928534.010138 1742928300.0 `1742928545.01016 1742928300.0 `1742928555.010137 1742928300.0 `1742928565.010135 1742928300.0 `1742928574.009124 1742928300.0 `1742928584.010136 1742928300.0 `1742928594.010138 1742928300.0 `1742928604.010149 1742928300.0 `1742928615.010134 1742928300.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.011230230331420898 ***** END SPLIT TIME ***** NUMBER BATCH : 9 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 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 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': '25032025', 'map_nb_amount': {0: 2, 1: 23, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 680.9999899864197, 'nb_balles_papier': 0.0002800000000000001, 'begin_time_port': 'image_25032025_19_18_34_010145m0.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.0002800000000000001 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 ERROR missing amount info ERROR missing amount info ERROR missing amount info ERROR missing amount info result_one_balle_Type_JRM:{'day': '25032025', 'map_nb_amount': {0: 2, 1: 45, 2: 11, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 841.0, 'nb_balles_papier': 0.0005800000000000009, 'begin_time_port': 'image_25032025_19_30_24_010133m0.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.0005800000000000009 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 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 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': '25032025', 'map_nb_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 310.9999940395355, 'nb_balles_papier': 0, 'begin_time_port': 'image_25032025_19_45_04_10140.jpg'} Production hashtag (incorrect ponderation at 20-10-18) : 0 We have rejected 9 photos because of the batch_size condition ! NUMBER BATCH list_of_portfolios_to_create : 3 Still a lot to verify ! Still a lot to verify ! We need to add photos : {1347283072, 1347282817, 1347282784, 1347283044, 1347282761, 1347283177, 1347282731, 1347282572, 1347282552, 1347282703, 1347282583, 1347282712, 1347282556, 1347282590} Still a lot to verify ! Qualite : 0.05062935631658604 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`=21704505 AND mptpi.`type`=3726 To do Qualite : 0.044781338509724974 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`=21704931 AND mptpi.`type`=3726 To do 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`=21705744 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 0.5529990196228027 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 165, 'nb_taggue_class': 1906, 'nb_taggue_densite': 1906}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347283177, 1347283072, 1347283044, 1347282817, 1347282784, 1347282761, 1347282731, 1347282712, 1347282703, 1347282590, 1347282583, 1347282572, 1347282556, 1347282552, 1347282503, 1347282495, 1347282487, 1347282478, 1347282475, 1347282473, 1347282318, 1347282306, 1347282261, 1347282160, 1347281927, 1347281881, 1347281859, 1347281850, 1347281819, 1347281779, 1347281611, 1347281590, 1347281564, 1347281110, 1347281066, 1347281026, 1347280989, 1347280982, 1347280660, 1347280630, 1347280554, 1347280514, 1347280471, 1347280420, 1347280047, 1347279993, 1347279927, 1347279904, 1347279903, 1347279680, 1347279610, 1347279584, 1347279550, 1347279547, 1347279458, 1347279453, 1347279443, 1347279412, 1347279385, 1347279300, 1347279295, 1347279291, 1347279287, 1347279283, 1347279202, 1347279181, 1347279155, 1347279147, 1347279138, 1347279127, 1347278934, 1347278922, 1347278918, 1347278903, 1347278534, 1347278514, 1347278503, 1347278498, 1347278474, 1347278368, 1347278360, 1347278352, 1347278298, 1347278274, 1347278185, 1347278009, 1347277945, 1347277835, 1347277779, 1347277389, 1347277385, 1347277381, 1347277377, 1347277374, 1347277360, 1347277194, 1347277171, 1347277147, 1347277132, 1347277088] Looping around the photos to save general results len do output : 1 /21674640Didn'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, '2690440') ('4876', '21674640', '1347283177', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347283072', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347283044', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282817', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282784', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282761', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282731', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282712', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282703', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282590', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282583', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282572', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282556', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282552', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282503', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282495', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282487', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282478', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282475', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282473', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282318', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282306', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282261', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347282160', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281927', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281881', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281859', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281850', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281819', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281779', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281611', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281590', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281564', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281110', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281066', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347281026', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280989', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280982', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280660', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280630', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280554', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280514', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280471', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280420', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347280047', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279993', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279927', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279904', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279903', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279680', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279610', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279584', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279550', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279547', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279458', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279453', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279443', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279412', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279385', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279300', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279295', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279291', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279287', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279283', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279202', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279181', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279155', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279147', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279138', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347279127', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278934', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278922', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278918', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278903', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278534', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278514', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278503', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278498', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278474', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278368', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278360', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278352', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278298', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278274', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278185', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347278009', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277945', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277835', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277779', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277389', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277385', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277381', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277377', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277374', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277360', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277194', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277171', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277147', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277132', None, None, None, None, None, '2690440') ('4876', None, None, None, None, None, None, None, '2690440') ('4876', '21674640', '1347277088', None, None, None, None, None, '2690440') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.027426719665527344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8476097583770752 time spend to save output : 0.02806258201599121 total time spend for step 1 : 0.8756723403930664 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.23user 0.60system 0:04.63elapsed 39%CPU (0avgtext+0avgdata 102124maxresident)k 0inputs+88outputs (0major+49187minor)pagefaults 0swaps