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 : 1795307 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 : ['2561238'] with mtr_portfolio_ids : ['20315060'] and first list_photo_ids : [] new path : /proc/1795307/ 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.09157109260559082 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Fri Feb 7 05:14: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'}] (('01', 38), ('00', 138), ('02', 52), ('03', 37), ('04', 116), ('05', 10)) ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {1: 190} 07022025 20315060 Nombre de photos uploadées : 164 / 23040 (0%) 07022025 20315060 Nombre de photos taguées (types de déchets): 190 / 164 (115%) 07022025 20315060 Nombre de photos taguées (volume) : 190 / 164 (115%) elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 9.226799011230469e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00882577896118164 elapsed_time : insert_dashboard_record_day_entry 0.023059844970703125 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 elapsed_time : list_photo_by_hashtags 0.008765220642089844 photos_removed : len 0 elapsed_time : load_duplicate_info 0.013000726699829102 ***** BEGIN SPLIT TIME ***** True 1738886400.0 `1738892114.010138 1738891800.0 `1738894925.010167 1738894500.0 `1738895475.010142 1738895400.0 `1738896025.010138 1738895400.0 `1738896465.010146 1738896300.0 `1738896475.01014 1738896300.0 `1738896485.010138 1738896300.0 `1738896504.009128 1738896300.0 `1738896514.010144 1738896300.0 `1738896525.010145 1738896300.0 `1738896545.010151 1738896300.0 `1738896565.010135 1738896300.0 `1738896574.009124 1738896300.0 `1738896584.010135 1738896300.0 `1738896644.009134 1738896300.0 `1738896665.010154 1738896300.0 `1738896685.010136 1738896300.0 `1738896735.010137 1738896300.0 `1738896755.010143 1738896300.0 `1738896775.010137 1738896300.0 `1738896805.010135 1738896300.0 `1738896815.01021 1738896300.0 `1738896845.010156 1738896300.0 `1738896875.010144 1738896300.0 `1738896885.010142 1738896300.0 `1738896895.01014 1738896300.0 `1738896924.009126 1738896300.0 `1738896935.010162 1738896300.0 `1738896984.00924 1738896300.0 `1738897025.010136 1738896300.0 `1738897035.010133 1738896300.0 `1738897054.009126 1738896300.0 `1738897064.010146 1738896300.0 `1738897095.010136 1738896300.0 `1738897105.010136 1738896300.0 `1738897115.010143 1738896300.0 `1738897124.009281 1738896300.0 `1738897135.01014 1738896300.0 `1738897213.010159 1738897200.0 `1738897234.010144 1738897200.0 `1738897244.010147 1738897200.0 `1738897264.010159 1738897200.0 `1738897273.009125 1738897200.0 `1738897314.010137 1738897200.0 `1738897324.010142 1738897200.0 `1738897353.009144 1738897200.0 `1738897364.010145 1738897200.0 `1738897444.01015 1738897200.0 `1738897474.010145 1738897200.0 `1738897504.010154 1738897200.0 `1738897544.01014 1738897200.0 `1738897553.009138 1738897200.0 `1738897584.010136 1738897200.0 `1738897594.010144 1738897200.0 `1738897604.010146 1738897200.0 `1738897633.01014 1738897200.0 `1738897654.010141 1738897200.0 `1738897693.009125 1738897200.0 `1738897703.010135 1738897200.0 `1738897724.010142 1738897200.0 `1738897734.010143 1738897200.0 `1738897773.010156 1738897200.0 `1738897794.010137 1738897200.0 `1738897804.01017 1738897200.0 `1738897814.01014 1738897200.0 `1738897824.010136 1738897200.0 `1738897833.00913 1738897200.0 `1738897854.010142 1738897200.0 `1738897864.010169 1738897200.0 `1738897874.010136 1738897200.0 `1738897884.010137 1738897200.0 `1738897894.010134 1738897200.0 `1738897983.010153 1738897200.0 `1738898024.010137 1738897200.0 `1738898053.010139 1738897200.0 `1738898074.01014 1738897200.0 `1738898084.010142 1738897200.0 `1738898094.010136 1738897200.0 `1738898104.010142 1738898100.0 `1738898114.010139 1738898100.0 `1738898123.00913 1738898100.0 `1738898134.010135 1738898100.0 `1738898164.01014 1738898100.0 `1738898203.010146 1738898100.0 `1738898214.010148 1738898100.0 `1738898234.010136 1738898100.0 `1738898244.010136 1738898100.0 `1738898294.010138 1738898100.0 `1738898604.010137 1738898100.0 `1738898644.010164 1738898100.0 `1738898654.010137 1738898100.0 `1738898664.010138 1738898100.0 `1738898674.010143 1738898100.0 `1738898724.010142 1738898100.0 `1738898753.009128 1738898100.0 `1738898774.010138 1738898100.0 `1738898784.010141 1738898100.0 `1738898794.010141 1738898100.0 `1738898804.010144 1738898100.0 `1738898833.01014 1738898100.0 `1738898844.010145 1738898100.0 `1738898874.010139 1738898100.0 `1738898884.010146 1738898100.0 `1738898893.009135 1738898100.0 `1738898914.010146 1738898100.0 `1738898934.010136 1738898100.0 `1738898954.010139 1738898100.0 `1738898973.010135 1738898100.0 `1738898984.010138 1738898100.0 `1738898994.010137 1738898100.0 `1738899004.010162 1738899000.0 `1738899024.010135 1738899000.0 `1738899043.010136 1738899000.0 `1738899054.010136 1738899000.0 `1738899084.010135 1738899000.0 `1738899094.010136 1738899000.0 `1738899113.009127 1738899000.0 `1738899123.010135 1738899000.0 `1738899134.010146 1738899000.0 `1738899144.010134 1738899000.0 `1738899154.010146 1738899000.0 `1738899183.009149 1738899000.0 `1738899193.010145 1738899000.0 `1738899214.010136 1738899000.0 `1738899234.010141 1738899000.0 `1738899244.010165 1738899000.0 `1738899263.010134 1738899000.0 `1738899274.010138 1738899000.0 `1738899284.010139 1738899000.0 `1738899304.010159 1738899000.0 `1738899323.009125 1738899000.0 `1738899333.010143 1738899000.0 `1738899344.010141 1738899000.0 `1738899354.010136 1738899000.0 `1738899384.010133 1738899000.0 `1738899393.009123 1738899000.0 `1738899403.01014 1738899000.0 `1738899424.010152 1738899000.0 `1738899444.010143 1738899000.0 `1738899454.010145 1738899000.0 `1738899463.009131 1738899000.0 `1738899473.010136 1738899000.0 `1738899484.010147 1738899000.0 `1738899504.010137 1738899000.0 `1738899514.010136 1738899000.0 `1738899524.010138 1738899000.0 `1738899534.010137 1738899000.0 `1738899554.010139 1738899000.0 `1738899564.010143 1738899000.0 `1738899574.010138 1738899000.0 `1738899604.010159 1738899000.0 `1738899613.009128 1738899000.0 `1738899623.010136 1738899000.0 `1738899893.009134 1738899000.0 `1738900924.01014 1738900800.0 `1738900934.010139 1738900800.0 `1738900984.010146 1738900800.0 `1738901014.010142 1738900800.0 `1738901224.010157 1738900800.0 `1738901264.01014 1738900800.0 `1738901274.010144 1738900800.0 `1738901313.010158 1738900800.0 `1738901523.01015 1738900800.0 `1738901564.010145 1738900800.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]] forced_hashtag: JRM force hashtag to JRM elapsed_time : SPLIT_TIME 0.011385679244995117 ***** 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': '07022025', 'map_nb_amount': {0: 6, 1: 22, 2: 4, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 669.9999940395355, 'nb_balles_papier': 0.0003200000000000002, 'begin_time_port': 'image_07022025_03_47_45_010146m0.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.0003200000000000002 We reject this portfolio because of the condition_save_data : 2025-02-07 03:47:45.010146 result_one_balle_Type_JRM:{'day': '07022025', 'map_nb_amount': {0: 5, 1: 30, 2: 5, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 880.9999768733978, 'nb_balles_papier': 0.0004000000000000004, 'begin_time_port': 'image_07022025_04_00_13_010159m0.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.0004000000000000004 We reject this portfolio because of the condition_save_data : 2025-02-07 04:00:13.010159 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': '07022025', 'map_nb_amount': {0: 3, 1: 19, 2: 1, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 889.9999949932098, 'nb_balles_papier': 0.00023, 'begin_time_port': 'image_07022025_04_15_04_010142m0.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.00023 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': '07022025', 'map_nb_amount': {0: 6, 1: 26, 2: 3, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 888.9989719390869, 'nb_balles_papier': 0.00035000000000000027, 'begin_time_port': 'image_07022025_04_30_04_010162m0.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.00035000000000000027 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': '07022025', 'map_nb_amount': {0: 0, 1: 4, 2: 0, 3: 0, 4: 0}, 'map_time_amount': {0: 0, 1: 0, 2: 0, 3: 0, 4: 0}, 'duration': 640.0000050067902, 'nb_balles_papier': 4e-05, 'begin_time_port': 'image_07022025_05_02_04_10140.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'} Production hashtag (incorrect ponderation at 20-10-18) : 4e-05 We have rejected 4 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 ! Still a lot to verify ! list_same_port_ids : [] https://marlene.fotonower.com/api/v1/secured/portfolio/new?name=JRM_diff_batch__07022025_05_02_04_010140&access_token=3e00c8f3e5af383c48e3c68940ba6fe7 Qualite : 0.04152238855495941 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`=20318337 AND mptpi.`type`=3726 To do Qualite : 0.04539250344944499 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`=20318874 AND mptpi.`type`=3726 To do There was a bug due to new port without datou_current_id # 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`=20319461 AND mptpi.`type`=3726 To do elapsed_time : count_nb_balles_and_create_portfolio 5.693871974945068 # DISPLAY ALL COLLECTED DATA : {'07022025': {'nb_upload': 164, 'nb_taggue_class': 190, 'nb_taggue_densite': 190}} Inside saveOutput : final : True verbose : 0 saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335395682, 1335395621, 1335395567, 1335394617, 1335394534, 1335394531, 1335394485, 1335392162, 1335392157, 1335392084, 1335392082, 1335386245, 1335384455, 1335384448, 1335384439, 1335384338, 1335384335, 1335384332, 1335384303, 1335384284, 1335384281, 1335384279, 1335384276, 1335384251, 1335384247, 1335384245, 1335384243, 1335384241, 1335384220, 1335384216, 1335384213, 1335384192, 1335384186, 1335384184, 1335384181, 1335384136, 1335384098, 1335384096, 1335384093, 1335384090, 1335384049, 1335384047, 1335384040, 1335384038, 1335383957, 1335383947, 1335383938, 1335383825, 1335383651, 1335383626, 1335383603, 1335383490, 1335383487, 1335383482, 1335383471, 1335383160, 1335383149, 1335383145, 1335383141, 1335382835, 1335382759, 1335382687, 1335382613, 1335382050, 1335382047, 1335382044, 1335381994, 1335381991, 1335381988, 1335381974, 1335381956, 1335381954, 1335381935, 1335381933, 1335381928, 1335381923, 1335381896, 1335379848, 1335379798, 1335379644, 1335379162, 1335379136, 1335379101, 1335378564, 1335378371, 1335378283, 1335378211, 1335378124, 1335378121, 1335378118, 1335378113, 1335378014, 1335378010, 1335376616, 1335376612, 1335376607, 1335376605, 1335376568, 1335376564, 1335376560] Looping around the photos to save general results len do output : 1 /20315060Didn'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, '2561238') ('4876', '20315060', '1335395682', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335395621', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335395567', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335394617', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335394534', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335394531', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335394485', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335392162', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335392157', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335392084', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335392082', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335386245', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384455', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384448', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384439', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384338', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384335', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384332', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384303', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384284', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384281', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384279', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384276', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384251', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384247', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384245', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384243', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384241', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384220', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384216', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384213', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384192', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384186', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384184', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384181', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384136', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384098', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384096', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384093', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384090', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384049', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384047', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384040', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335384038', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383957', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383947', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383938', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383825', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383651', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383626', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383603', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383490', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383487', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383482', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383471', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383160', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383149', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383145', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335383141', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382835', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382759', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382687', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382613', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382050', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382047', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335382044', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381994', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381991', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381988', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381974', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381956', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381954', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381935', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381933', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381928', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381923', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335381896', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335379848', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335379798', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335379644', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335379162', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335379136', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335379101', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378564', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378371', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378283', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378211', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378124', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378121', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378118', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378113', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378014', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335378010', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376616', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376612', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376607', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376605', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376568', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376564', None, None, None, None, None, '2561238') ('4876', None, None, None, None, None, None, None, '2561238') ('4876', '20315060', '1335376560', None, None, None, None, None, '2561238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 101 time used for this insertion : 0.04265093803405762 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.969820737838745 time spend to save output : 0.043550968170166016 total time spend for step 1 : 6.013371706008911 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.20user 0.86system 0:10.47elapsed 19%CPU (0avgtext+0avgdata 100936maxresident)k 0inputs+96outputs (3major+48981minor)pagefaults 0swaps