(1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! 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`=21766075 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','metal','cartonnette','Teint_Dans_La_Masse','kraft','flou','environnement','Carton_gris','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 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`=21766075 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','metal','cartonnette','Teint_Dans_La_Masse','kraft','flou','environnement','Carton_gris','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21766075, 'sub_port_id': 21766089, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289081, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'mal_croppe': {'main_port_id': 21766075, 'sub_port_id': 21766090, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289082, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'flou': {'main_port_id': 21766075, 'sub_port_id': 21766091, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289083, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'kraft': {'main_port_id': 21766075, 'sub_port_id': 21766092, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289084, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'autre_refus': {'main_port_id': 21766075, 'sub_port_id': 21766093, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289085, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21766075, 'sub_port_id': 21766094, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289086, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'plastique': {'main_port_id': 21766075, 'sub_port_id': 21766095, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289087, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'metal': {'main_port_id': 21766075, 'sub_port_id': 21766096, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289088, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'papier': {'main_port_id': 21766075, 'sub_port_id': 21766097, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289089, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'cartonnette': {'main_port_id': 21766075, 'sub_port_id': 21766098, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289090, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'Carton_brun': {'main_port_id': 21766075, 'sub_port_id': 21766099, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289091, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}, 'Carton_gris': {'main_port_id': 21766075, 'sub_port_id': 21766100, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14289092, 'last_updated_at': datetime.datetime(2025, 3, 27, 3, 11, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 3, 11, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 3, 5, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766077 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766078 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766091,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766079 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766092,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766080 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766093,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766081 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766094,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766082 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766095,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766083 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766096,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766084 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766097,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766085 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766098,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766086 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766099,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766087 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21766100,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21766088 lien utilise dans velours : https://www.fotonower.com/velours/21766089,21766090,21766091,21766092,21766093,21766094,21766095,21766096,21766097,21766098,21766099,21766100?tags=environnement,mal_croppe,flou,kraft,autre_refus,Teint_Dans_La_Masse,plastique,metal,papier,cartonnette,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766075]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] map_info['map_portfolio_photo'] : {21766075: [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769, 1347733419, 1347733404, 1347733249, 1347733239, 1347731702, 1347731644, 1347731549, 1347731470, 1347731431, 1347731403, 1347731119, 1347731084, 1347731040, 1347730998, 1347730734, 1347730698, 1347730659, 1347730624, 1347730588, 1347730169, 1347730110, 1347730038, 1347729976, 1347729485, 1347729452, 1347729413, 1347729365, 1347729099, 1347729076, 1347729037, 1347728995, 1347728987]} final : False mtd_id 4302 list_pids : [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] Looping around the photos to save general results len do output : 1 /21766075. 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 ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734584', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21766075', "{'environnement': 21766077, 'mal_croppe': 21766078, 'flou': 21766079, 'kraft': 21766080, 'autre_refus': 21766081, 'Teint_Dans_La_Masse': 21766082, 'plastique': 21766083, 'metal': 21766084, 'papier': 21766085, 'cartonnette': 21766086, 'Carton_brun': 21766087, 'Carton_gris': 21766088}", None, None, None, None, '2695466'), ('4302', '21766075', '1347734584', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466')] time used for this insertion : 0.016771793365478516 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.050328969955444 time spend to save output : 0.017064571380615234 total time spend for step 1 : 5.06739354133606 step2:final Thu Mar 27 03:14:02 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766075) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 21766075 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347729099,1347729076,1347729037,1347728995,1347728987,1347729485,1347729452,1347729413,1347729365,1347730169,1347730110,1347730038,1347729976,1347730734,1347730698,1347730659,1347730624,1347730588,1347731119,1347731084,1347731040,1347730998,1347731702,1347731644,1347731549,1347731470,1347731431,1347731403,1347733249,1347733239,1347733419,1347733404,1347734113,1347734105,1347733973,1347733895,1347733825,1347733769,1347734267,1347734258,1347734239,1347734232,1347734223,1347734584,1347734550,1347734545); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766075]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} new output for save of step final : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] map_info['map_portfolio_photo'] : {21766075: [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769, 1347733419, 1347733404, 1347733249, 1347733239, 1347731702, 1347731644, 1347731549, 1347731470, 1347731431, 1347731403, 1347731119, 1347731084, 1347731040, 1347730998, 1347730734, 1347730698, 1347730659, 1347730624, 1347730588, 1347730169, 1347730110, 1347730038, 1347729976, 1347729485, 1347729452, 1347729413, 1347729365, 1347729099, 1347729076, 1347729037, 1347728995, 1347728987]} final : False mtd_id 4302 list_pids : [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] Looping around the photos to save general results len do output : 14 /1347734584.Didn't retrieve data . /1347734550.Didn't retrieve data . /1347734545.Didn't retrieve data . /1347734267.Didn't retrieve data . /1347734258.Didn't retrieve data . /1347734239.Didn't retrieve data . /1347734232.Didn't retrieve data . /1347734223.Didn't retrieve data . /1347734113.Didn't retrieve data . /1347734105.Didn't retrieve data . /1347733973.Didn't retrieve data . /1347733895.Didn't retrieve data . /1347733825.Didn't retrieve data . /1347733769.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734584', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21766075', '1347734584', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734550', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734545', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734267', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734258', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734239', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734232', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734223', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734113', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347734105', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347733973', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347733895', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347733825', '0.04745759195688828', None, None, None, None, '2695466'), ('4302', '21766075', '1347733769', '0.04745759195688828', None, None, None, None, '2695466')] time used for this insertion : 0.013463735580444336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06775903701782227 time spend to save output : 0.014163732528686523 total time spend for step 2 : 0.08192276954650879 step3:velours_tree Thu Mar 27 03:14:02 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21766075: [{'environnement': 21766077, 'mal_croppe': 21766078, 'flou': 21766079, 'kraft': 21766080, 'autre_refus': 21766081, 'Teint_Dans_La_Masse': 21766082, 'plastique': 21766083, 'metal': 21766084, 'papier': 21766085, 'cartonnette': 21766086, 'Carton_brun': 21766087, 'Carton_gris': 21766088}]} input_args_next_step : {21766075: ()} output_args : {21766075: [{'environnement': 21766077, 'mal_croppe': 21766078, 'flou': 21766079, 'kraft': 21766080, 'autre_refus': 21766081, 'Teint_Dans_La_Masse': 21766082, 'plastique': 21766083, 'metal': 21766084, 'papier': 21766085, 'cartonnette': 21766086, 'Carton_brun': 21766087, 'Carton_gris': 21766088}]} args : 21766075 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 21766077, 'mal_croppe': 21766078, 'flou': 21766079, 'kraft': 21766080, 'autre_refus': 21766081, 'Teint_Dans_La_Masse': 21766082, 'plastique': 21766083, 'metal': 21766084, 'papier': 21766085, 'cartonnette': 21766086, 'Carton_brun': 21766087, 'Carton_gris': 21766088},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766075) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766075]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.37218523025512695 time spend to save output : 7.081031799316406e-05 total time spend for step 3 : 0.3722560405731201 step4:send_mail_cod Thu Mar 27 03:14:03 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} input_args_next_step : {1347734584: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734584 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734550 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734545 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734267 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734258 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734239 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734232 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734223 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734113 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347734105 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347733973 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347733895 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347733825 depend.output_id : 0 input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ()} output_args : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',)} args : 1347733769 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21766075: [{'environnement': 21766077, 'mal_croppe': 21766078, 'flou': 21766079, 'kraft': 21766080, 'autre_refus': 21766081, 'Teint_Dans_La_Masse': 21766082, 'plastique': 21766083, 'metal': 21766084, 'papier': 21766085, 'cartonnette': 21766086, 'Carton_brun': 21766087, 'Carton_gris': 21766088}]} input_args_next_step : {1347734584: ('0.04745759195688828',), 1347734550: ('0.04745759195688828',), 1347734545: ('0.04745759195688828',), 1347734267: ('0.04745759195688828',), 1347734258: ('0.04745759195688828',), 1347734239: ('0.04745759195688828',), 1347734232: ('0.04745759195688828',), 1347734223: ('0.04745759195688828',), 1347734113: ('0.04745759195688828',), 1347734105: ('0.04745759195688828',), 1347733973: ('0.04745759195688828',), 1347733895: ('0.04745759195688828',), 1347733825: ('0.04745759195688828',), 1347733769: ('0.04745759195688828',), 21766075: ()} output_args : {21766075: [{'environnement': 21766077, 'mal_croppe': 21766078, 'flou': 21766079, 'kraft': 21766080, 'autre_refus': 21766081, 'Teint_Dans_La_Masse': 21766082, 'plastique': 21766083, 'metal': 21766084, 'papier': 21766085, 'cartonnette': 21766086, 'Carton_brun': 21766087, 'Carton_gris': 21766088}]} args : 21766075 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.04745759195688828',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766075) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1347734584,1347734550,1347734545,1347734267,1347734258,1347734239,1347734232,1347734223,1347734113,1347734105,1347733973,1347733895,1347733825,1347733769) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347733769 begin to download photo : 1347733973 begin to download photo : 1347734223 begin to download photo : 1347734258 begin to download photo : 1347734550 download finish for photo 1347734258 begin to download photo : 1347734267 download finish for photo 1347734550 begin to download photo : 1347734584 download finish for photo 1347733769 begin to download photo : 1347733825 download finish for photo 1347734223 begin to download photo : 1347734232 download finish for photo 1347733973 begin to download photo : 1347734105 download finish for photo 1347733825 begin to download photo : 1347733895 download finish for photo 1347734584 download finish for photo 1347734232 begin to download photo : 1347734239 download finish for photo 1347734267 begin to download photo : 1347734545 download finish for photo 1347734105 begin to download photo : 1347734113 download finish for photo 1347733895 download finish for photo 1347734113 download finish for photo 1347734239 download finish for photo 1347734545 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217660781743041643/ imagette217660791743041643/ imagette217660801743041643/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21766075_27-03-2025_03_14_03.pdf 21766078 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766078 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217660781743041643 21766079 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766079 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217660791743041643 21766080 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766080 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217660801743041643 21766081 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766081 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347731428: '1743041202_79282_1347729413_e351d0123e179b0f89df752922549fa5_rle_crop_3732882001_0.png', 1347733241: '1743041323_81971_1347730588_784ef12e29bf905c39196df3597ca365_rle_crop_3732884375_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4be119118aeb4de2307355e4251e3a9c_8188767.png change filename to text .imagette217660811743041643/ imagette217660811743041643/1743041202_79282_1347729413_e351d0123e179b0f89df752922549fa5_rle_crop_3732882001_0.png.png imagette217660811743041643/1743041323_81971_1347730588_784ef12e29bf905c39196df3597ca365_rle_crop_3732884375_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/31c39a2cf531f62a829c3d83a7c8a9d8_40827244.png imagette217660811743041643 21766083 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766083 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347730689: '1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880618_0.png', 1347731450: '1743041202_79282_1347729452_89eeea21061d01f50d774b524e98d3cf_rle_crop_3732881982_0.png', 1347733028: '1743041292_2744297_1347731040_dedcec11c35b60e670cb0d83c455234b_rle_crop_3732884296_0.png', 1347733244: '1743041323_81971_1347730698_df99169df81f1d294c55403000efe173_rle_crop_3732884318_0.png', 1347733740: '1743041413_2745896_1347731644_b33bf6fab7664a01792c3df56f61db50_rle_crop_3732884644_0.png', 1347733741: '1743041413_2745896_1347731549_24d651756658fdcd95b2f1b733dbafec_rle_crop_3732884659_0.png', 1347733760: '1743041413_2745896_1347731549_24d651756658fdcd95b2f1b733dbafec_rle_crop_3732884657_0.png', 1347733761: '1743041413_2745896_1347731549_24d651756658fdcd95b2f1b733dbafec_rle_crop_3732884654_0.png', 1347733763: '1743041413_2745896_1347731470_7161582e8c380d380b3f8ea716343213_rle_crop_3732884671_0.png', 1347733764: '1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884695_0.png', 1347733765: '1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884697_0.png', 1347733767: '1743041413_2745896_1347731403_f19a93c86ab3c9f7c9a83029e8f18efa_rle_crop_3732884725_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/49022a2e4878591a477836d403993ba0_9740075.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/660ff7c473014a68821b31bb7c15e2c1_98462067.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c3dcda4a5276d0b8fc3442be925d87bb_71703283.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/26d5a786df6bc23ae5a360c277a7e93e_77545867.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4843d4ffa782e354d3de71cc013c9276_72880448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/79bcaa8951deafa87325259b285b129f_98478274.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6761b45f9d884bc02b18e97df3b82073_81787091.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0385594f8c4047a64522cb79fc44e7ea_39114480.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5ac336e6103759b729cb52197328b86c_29182689.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/befe3f95e092615306ee81a3ed4e33de_95913463.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2520e9505e5fb2791e40abae751f6154_9392253.png change filename to text .imagette217660831743041643/ imagette217660831743041643/1743041292_2744297_1347731040_dedcec11c35b60e670cb0d83c455234b_rle_crop_3732884296_0.png.png imagette217660831743041643/1743041413_2745896_1347731549_24d651756658fdcd95b2f1b733dbafec_rle_crop_3732884657_0.png.png imagette217660831743041643/1743041323_81971_1347730698_df99169df81f1d294c55403000efe173_rle_crop_3732884318_0.png.png imagette217660831743041643/1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880618_0.png.png imagette217660831743041643/1743041413_2745896_1347731403_f19a93c86ab3c9f7c9a83029e8f18efa_rle_crop_3732884725_0.png.png imagette217660831743041643/1743041413_2745896_1347731549_24d651756658fdcd95b2f1b733dbafec_rle_crop_3732884659_0.png.png imagette217660831743041643/1743041202_79282_1347729452_89eeea21061d01f50d774b524e98d3cf_rle_crop_3732881982_0.png.png imagette217660831743041643/1743041413_2745896_1347731644_b33bf6fab7664a01792c3df56f61db50_rle_crop_3732884644_0.png.png imagette217660831743041643/1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884695_0.png.png imagette217660831743041643/1743041413_2745896_1347731549_24d651756658fdcd95b2f1b733dbafec_rle_crop_3732884654_0.png.png imagette217660831743041643/1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884697_0.png.png imagette217660831743041643/1743041413_2745896_1347731470_7161582e8c380d380b3f8ea716343213_rle_crop_3732884671_0.png.png imagette217660841743041644/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/30b1ea1fc8e5c20ad0372622b0646706_76723224.png imagette217660831743041643 21766084 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766084 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217660841743041644 21766086 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766086 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347730656: '1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880615_0.png', 1347733701: '1743041413_2745896_1347731470_7161582e8c380d380b3f8ea716343213_rle_crop_3732884667_0.png', 1347733703: '1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884688_0.png', 1347734291: '1743041532_2746766_1347733239_685b0255ff1f4cbbc0d3a7a863a2df55_rle_crop_3732885329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9f1afa471475c91741b845eb954b7a26_44685967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1f577da7305cbfdb682262009c872e0d_57078171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5aeb28d709d2f67e92b49646999c22bc_76673461.png change filename to text .imagette217660861743041644/ imagette217660861743041644/1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884688_0.png.png imagette217660861743041644/1743041532_2746766_1347733239_685b0255ff1f4cbbc0d3a7a863a2df55_rle_crop_3732885329_0.png.png imagette217660861743041644/1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880615_0.png.png imagette217660861743041644/1743041413_2745896_1347731470_7161582e8c380d380b3f8ea716343213_rle_crop_3732884667_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5932dfc760be27362ca948432c5e9ffc_25897898.png imagette217660861743041644 21766082 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766082 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347730621: '1743041080_78663_1347729076_5ad72f84a483ddc3b8dd70b30a084a86_rle_crop_3732880598_0.png', 1347730625: '1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880626_0.png', 1347733002: '1743041292_2744297_1347731040_dedcec11c35b60e670cb0d83c455234b_rle_crop_3732884295_0.png', 1347733004: '1743041292_2744297_1347731040_dedcec11c35b60e670cb0d83c455234b_rle_crop_3732884299_0.png', 1347733006: '1743041292_2744297_1347730998_0efffb3f175c64825f0a47a501955c55_rle_crop_3732884306_0.png', 1347733007: '1743041292_2744297_1347730998_0efffb3f175c64825f0a47a501955c55_rle_crop_3732884308_0.png', 1347733238: '1743041323_81971_1347730659_8b9c72ec357c64fc58dd2a651c43cefc_rle_crop_3732884356_0.png', 1347733679: '1743041413_2745896_1347731470_7161582e8c380d380b3f8ea716343213_rle_crop_3732884673_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e2248b0adf6269594438f160d8e7f150_11635242.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/824e2160b170892e3b28dd6bd4bdada1_33730156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/20884785fb06a064a225032a75656dd5_41916610.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e4660a09bdab8b35f1fc446798a91fd1_60494542.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/cd303d9550b95e85a8d87dd0fb11ca16_220789.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5fb706ca60a99b8a3a6f5defd1fc960e_85339097.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/399b63741b9efbfa25e2938b419d9ac1_29045970.png change filename to text .imagette217660821743041645/ imagette217660821743041645/1743041080_78663_1347729076_5ad72f84a483ddc3b8dd70b30a084a86_rle_crop_3732880598_0.png.png imagette217660821743041645/1743041292_2744297_1347731040_dedcec11c35b60e670cb0d83c455234b_rle_crop_3732884295_0.png.png imagette217660821743041645/1743041413_2745896_1347731470_7161582e8c380d380b3f8ea716343213_rle_crop_3732884673_0.png.png imagette217660821743041645/1743041323_81971_1347730659_8b9c72ec357c64fc58dd2a651c43cefc_rle_crop_3732884356_0.png.png imagette217660821743041645/1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880626_0.png.png imagette217660821743041645/1743041292_2744297_1347731040_dedcec11c35b60e670cb0d83c455234b_rle_crop_3732884299_0.png.png imagette217660821743041645/1743041292_2744297_1347730998_0efffb3f175c64825f0a47a501955c55_rle_crop_3732884306_0.png.png imagette217660821743041645/1743041292_2744297_1347730998_0efffb3f175c64825f0a47a501955c55_rle_crop_3732884308_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/3927d0d23208f6b6bd3c178743c5cc67_29686291.png imagette217660821743041645 21766087 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766087 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347730670: '1743041080_78663_1347729099_8f4cc7a41f19bc1f49d583dbc39ae446_rle_crop_3732880583_0.png', 1347730673: '1743041080_78663_1347729076_5ad72f84a483ddc3b8dd70b30a084a86_rle_crop_3732880596_0.png', 1347730676: '1743041080_78663_1347728995_0083633b6e6da767258ddf9710d2df79_rle_crop_3732880648_0.png', 1347730679: '1743041080_78663_1347728987_e9afd258d60c255d8b45781d13f7d272_rle_crop_3732880665_0.png', 1347731439: '1743041202_79282_1347730169_c4ed8486d1cec36bee6c37e27557aa36_rle_crop_3732881970_0.png', 1347731442: '1743041202_79282_1347729413_e351d0123e179b0f89df752922549fa5_rle_crop_3732882002_0.png', 1347733720: '1743041413_2745896_1347731644_b33bf6fab7664a01792c3df56f61db50_rle_crop_3732884647_0.png', 1347733721: '1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884692_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2f276d9617b6d8788122ad3d07321070_46921100.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d537c197fff508904f75de02556a1995_76867844.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/339ea6fde224faa7f1b2860b5c7a9466_5684732.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6cc25819cc3adfa019e05ab9133baebe_93646354.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/06153678cbe994687891e96566c05b2b_19986966.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b5c1e487c121bdfe73327f059a37ef48_36103662.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c412002ed87f65c26075b925cb372f4a_70973533.png change filename to text .imagette217660871743041645/ imagette217660871743041645/1743041080_78663_1347728987_e9afd258d60c255d8b45781d13f7d272_rle_crop_3732880665_0.png.png imagette217660871743041645/1743041080_78663_1347729076_5ad72f84a483ddc3b8dd70b30a084a86_rle_crop_3732880596_0.png.png imagette217660871743041645/1743041413_2745896_1347731644_b33bf6fab7664a01792c3df56f61db50_rle_crop_3732884647_0.png.png imagette217660871743041645/1743041080_78663_1347728995_0083633b6e6da767258ddf9710d2df79_rle_crop_3732880648_0.png.png imagette217660871743041645/1743041413_2745896_1347731431_b49261cb8748f4c5abdede117e881ad2_rle_crop_3732884692_0.png.png imagette217660871743041645/1743041202_79282_1347730169_c4ed8486d1cec36bee6c37e27557aa36_rle_crop_3732881970_0.png.png imagette217660871743041645/1743041080_78663_1347729099_8f4cc7a41f19bc1f49d583dbc39ae446_rle_crop_3732880583_0.png.png imagette217660871743041645/1743041202_79282_1347729413_e351d0123e179b0f89df752922549fa5_rle_crop_3732882002_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/98690f7d23a5d8522e7e511be7696a08_37898543.png imagette217660871743041645 21766088 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347730636: '1743041080_78663_1347729076_5ad72f84a483ddc3b8dd70b30a084a86_rle_crop_3732880591_0.png', 1347730639: '1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880620_0.png', 1347730643: '1743041080_78663_1347728987_e9afd258d60c255d8b45781d13f7d272_rle_crop_3732880658_0.png', 1347733242: '1743041323_81971_1347730588_784ef12e29bf905c39196df3597ca365_rle_crop_3732884371_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/22b6997c097da8ed460a3a3506554917_38491406.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e01360237c37122ed47f46d1e5a92176_75833501.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2c1ce03ad90c476af435b0ef40654450_38853556.png change filename to text .imagette217660881743041646/ imagette217660881743041646/1743041080_78663_1347728987_e9afd258d60c255d8b45781d13f7d272_rle_crop_3732880658_0.png.png imagette217660881743041646/1743041323_81971_1347730588_784ef12e29bf905c39196df3597ca365_rle_crop_3732884371_0.png.png imagette217660881743041646/1743041080_78663_1347729037_ad506289157192e5f07f3462a562c20f_rle_crop_3732880620_0.png.png imagette217660881743041646/1743041080_78663_1347729076_5ad72f84a483ddc3b8dd70b30a084a86_rle_crop_3732880591_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f93765fbacb82ad15678d60b78da5be2_94357498.png imagette217660881743041646 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21766075 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21766089,21766090,21766091,21766092,21766093,21766094,21766095,21766096,21766097,21766098,21766099,21766100?tags=environnement,mal_croppe,flou,kraft,autre_refus,Teint_Dans_La_Masse,plastique,metal,papier,cartonnette,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1347734584] : ('0.04745759195688828',) no score found for photo 1347734584 We are sending mail with results at report@fotonower.com args[1347734550] : ('0.04745759195688828',) no score found for photo 1347734550 We are sending mail with results at report@fotonower.com args[1347734545] : ('0.04745759195688828',) no score found for photo 1347734545 We are sending mail with results at report@fotonower.com args[1347734267] : ('0.04745759195688828',) no score found for photo 1347734267 We are sending mail with results at report@fotonower.com args[1347734258] : ('0.04745759195688828',) no score found for photo 1347734258 We are sending mail with results at report@fotonower.com args[1347734239] : ('0.04745759195688828',) no score found for photo 1347734239 We are sending mail with results at report@fotonower.com args[1347734232] : ('0.04745759195688828',) no score found for photo 1347734232 We are sending mail with results at report@fotonower.com args[1347734223] : ('0.04745759195688828',) no score found for photo 1347734223 We are sending mail with results at report@fotonower.com args[1347734113] : ('0.04745759195688828',) no score found for photo 1347734113 We are sending mail with results at report@fotonower.com args[1347734105] : ('0.04745759195688828',) no score found for photo 1347734105 We are sending mail with results at report@fotonower.com args[1347733973] : ('0.04745759195688828',) no score found for photo 1347733973 We are sending mail with results at report@fotonower.com args[1347733895] : ('0.04745759195688828',) no score found for photo 1347733895 We are sending mail with results at report@fotonower.com args[1347733825] : ('0.04745759195688828',) no score found for photo 1347733825 We are sending mail with results at report@fotonower.com args[1347733769] : ('0.04745759195688828',) no score found for photo 1347733769 We are sending mail with results at report@fotonower.com refus_total : 0.04745759195688828 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_14_03.pdf results_Auto_P21766075_27-03-2025_03_14_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_14_03.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21766075','results_Auto_P21766075_27-03-2025_03_14_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_14_03.pdf','pdf','','0.25','0.04745759195688828') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766075]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] map_info['map_portfolio_photo'] : {21766075: [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769, 1347733419, 1347733404, 1347733249, 1347733239, 1347731702, 1347731644, 1347731549, 1347731470, 1347731431, 1347731403, 1347731119, 1347731084, 1347731040, 1347730998, 1347730734, 1347730698, 1347730659, 1347730624, 1347730588, 1347730169, 1347730110, 1347730038, 1347729976, 1347729485, 1347729452, 1347729413, 1347729365, 1347729099, 1347729076, 1347729037, 1347728995, 1347728987]} final : False mtd_id 4302 list_pids : [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734584', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21766075', '1347734584', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466')] time used for this insertion : 0.013272762298583984 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.82904839515686 time spend to save output : 0.013573646545410156 total time spend for step 4 : 4.8426220417022705 step5:split_time_score Thu Mar 27 03:14:07 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 Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21766075'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('21766075',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21766075) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347734550: {'path': 'temp/1743041643_2020536_1347734550_5a9299ddfe2701b09f81159133c69160.jpg', 'extension': 'jpg'}, 1347734584: {'path': 'temp/1743041643_2020536_1347734584_a5338b77c20d272d04cb4f6a8c2ea85d.jpg', 'extension': 'jpg'}, 1347733769: {'path': 'temp/1743041643_2020536_1347733769_2526bfdcfac5bc1128f3f9c1e214fb44.jpg', 'extension': 'jpg'}, 1347733825: {'path': 'temp/1743041643_2020536_1347733825_4f4d6065631f5ed73f7f8f4ee9149946.jpg', 'extension': 'jpg'}, 1347733895: {'path': 'temp/1743041643_2020536_1347733895_3d2ede5faf450babdbdca5cdae075bf6.jpg', 'extension': 'jpg'}, 1347733973: {'path': 'temp/1743041643_2020536_1347733973_43846a7d450548700b3c5f44c0efc5de.jpg', 'extension': 'jpg'}, 1347734105: {'path': 'temp/1743041643_2020536_1347734105_3c543db7772b365ee52d4a3c33e35ad5.jpg', 'extension': 'jpg'}, 1347734113: {'path': 'temp/1743041643_2020536_1347734113_41f3a67747d8f4c3a6bc369b5996f189.jpg', 'extension': 'jpg'}, 1347734223: {'path': 'temp/1743041643_2020536_1347734223_8ccb22215713abbc9780a650dbec19de.jpg', 'extension': 'jpg'}, 1347734232: {'path': 'temp/1743041643_2020536_1347734232_1ea5dc3ce3c7265acba3ad5f3aa8bcf9.jpg', 'extension': 'jpg'}, 1347734239: {'path': 'temp/1743041643_2020536_1347734239_30723dca5e25e8d6ec8791ca1c6659d4.jpg', 'extension': 'jpg'}, 1347734258: {'path': 'temp/1743041643_2020536_1347734258_1db306e3f2b82fbec5ee1cc1d0255098.jpg', 'extension': 'jpg'}, 1347734267: {'path': 'temp/1743041643_2020536_1347734267_62645ca9bf315b7b0b165e4c911f9fd6.jpg', 'extension': 'jpg'}, 1347734545: {'path': 'temp/1743041643_2020536_1347734545_87f4440fc419b52a01d0cf1fad04fd19.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 21766075; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', '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': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21766075 group by h (('03', 46),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21766075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21766075) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (21766075) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21766075 Nombre de photos uploadées : 46 / 23040 (0%) 27032025 21766075 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 27032025 21766075 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1347729099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8f4cc7a41f19bc1f49d583dbc39ae446.jpg', 'username': None, 'uploaded_at': 1743040936, 'text': 'image_27032025_03_00_03_9136.jpg'}, {'photo_id': 1347729076, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5ad72f84a483ddc3b8dd70b30a084a86.jpg', 'username': None, 'uploaded_at': 1743040936, 'text': 'image_27032025_03_00_13_10135.jpg'}, {'photo_id': 1347729037, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/ad506289157192e5f07f3462a562c20f.jpg', 'username': None, 'uploaded_at': 1743040936, 'text': 'image_27032025_03_00_23_10134.jpg'}, {'photo_id': 1347728995, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0083633b6e6da767258ddf9710d2df79.jpg', 'username': None, 'uploaded_at': 1743040936, 'text': 'image_27032025_03_00_34_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016753673553466797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21766075, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027246475219726562 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699956, 'mtr_portfolio_id': 21763711, 'dashboard_result_id': 9660816, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763711_27-03-2025_02_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763776, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699956, 'mtr_portfolio_id': 21764831, 'dashboard_result_id': 9660817, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21764831_27-03-2025_02_48_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21764856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21764857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21764858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21764859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21764860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21764861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21764862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21764863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21764864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21764865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21764866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21764867, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699956, 'mtr_portfolio_id': 21765473, 'dashboard_result_id': 9660818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_27-03-2025_03_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1699956, 'mtr_portfolio_id': 21766075, 'dashboard_result_id': 9660819, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_12_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21763711 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2695322, 'mtr_portfolio_id': 21763711, 'created_at': datetime.datetime(2025, 3, 27, 2, 35), 'result': '0.043171453888626955', 'result_long': None, 'result_double': None}] Qualite : 0.043171453888626955 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21763711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763711_27-03-2025_02_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21763711 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763711_27-03-2025_02_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763776, 'pht': 3726}}" where mtr_portfolio_id = 21763711 and dashboard_run_id = 1699956 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # 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 ! no param json to modify 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`=21763711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9660816, 0.043171453888626955, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21763711_27-03-2025_02_35_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21763753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21763754, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21763758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21763764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21763769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21763770, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21763771, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21763772, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21763773, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21763774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21763775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21763776, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21764831 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2695388, 'mtr_portfolio_id': 21764831, 'created_at': datetime.datetime(2025, 3, 27, 2, 48, 1), 'result': '0.0404439932733544', 'result_long': None, 'result_double': None}] Qualite : 0.0404439932733544 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21764831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21764831_27-03-2025_02_48_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21764831 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21764831_27-03-2025_02_48_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21764856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21764857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21764858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21764859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21764860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21764861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21764862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21764863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21764864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21764865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21764866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21764867, 'pht': 3726}}" where mtr_portfolio_id = 21764831 and dashboard_run_id = 1699956 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # 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 ! no param json to modify 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`=21764831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9660817, 0.0404439932733544, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21764831_27-03-2025_02_48_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21764856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21764857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21764858, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21764859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21764860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21764861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21764862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21764863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21764864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21764865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21764866, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21764867, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21765473 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2695413, 'mtr_portfolio_id': 21765473, 'created_at': datetime.datetime(2025, 3, 27, 3, 2, 59), 'result': '0.053400387127125006', 'result_long': None, 'result_double': None}] Qualite : 0.053400387127125006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21765473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_27-03-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21765473 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_27-03-2025_03_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}" where mtr_portfolio_id = 21765473 and dashboard_run_id = 1699956 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # 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 ! no param json to modify 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`=21765473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9660818, 0.053400387127125006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21765473_27-03-2025_03_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21765490, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21765491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21765492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21765493, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21765494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21765495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21765496, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21765497, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21765498, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21765499, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21765500, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21765501, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21766075 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2695466, 'mtr_portfolio_id': 21766075, 'created_at': datetime.datetime(2025, 3, 27, 3, 14, 2), 'result': '0.04745759195688828', 'result_long': None, 'result_double': None}] Qualite : 0.04745759195688828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21766075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_14_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21766075 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_14_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}" where mtr_portfolio_id = 21766075 and dashboard_run_id = 1699956 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # 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 ! no param json to modify 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`=21766075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9660819, 0.04745759195688828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21766075_27-03-2025_03_14_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21766077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21766078, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21766079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21766080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21766081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21766082, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21766083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21766084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21766085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21766086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21766087, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21766088, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21763711,21764831,21765473,21766075) result : ((1347717294,), (1347717298,), (1347717301,), (1347717409,), (1347717410,), (1347717414,), (1347717416,), (1347717419,), (1347717424,), (1347717458,), (1347717472,), (1347717478,), (1347717574,), (1347717631,), (1347718151,), (1347718219,), (1347718287,), (1347718317,), (1347718413,), (1347718866,), (1347718947,), (1347718995,), (1347719059,), (1347719148,), (1347719234,), (1347719690,), (1347719932,), (1347720000,), (1347720068,), (1347720231,), (1347720233,), (1347720238,), (1347720244,), (1347720247,), (1347720251,), (1347720325,), (1347720349,), (1347720370,), (1347720401,), (1347720930,), (1347721129,), (1347721197,), (1347721224,), (1347721262,), (1347721447,), (1347721451,), (1347721461,), (1347721519,), (1347721549,), (1347721634,), (1347721674,), (1347721706,), (1347721745,), (1347721762,), (1347721786,), (1347721943,), (1347721966,), (1347721969,), (1347721972,), (1347721980,), (1347722049,), (1347722060,), (1347722065,), (1347722082,), (1347722094,), (1347722194,), (1347722195,), (1347722198,), (1347722202,), (1347722207,), (1347722320,), (1347722339,), (1347722345,), (1347722348,), (1347722600,), (1347722502,), (1347722522,), (1347722534,), (1347722556,), (1347722578,), (1347722836,), (1347722875,), (1347722917,), (1347722957,), (1347723308,), (1347723318,), (1347723341,), (1347723378,), (1347723393,), (1347723417,), (1347723582,), (1347723601,), (1347723607,), (1347723625,), (1347723812,), (1347723835,), (1347723886,), (1347723909,), (1347723927,), (1347723945,), (1347724125,), (1347724153,), (1347724171,), (1347724197,), (1347724266,), (1347724564,), (1347724751,), (1347724955,), (1347724958,), (1347724966,), (1347724972,), (1347725099,), (1347725102,), (1347725107,), (1347725114,), (1347725132,), (1347725135,), (1347725140,), (1347725145,), (1347725171,), (1347725175,), (1347725179,), (1347725185,), (1347725189,), (1347725201,), (1347725268,), (1347725235,), (1347725238,), (1347725246,), (1347725256,), (1347725306,), (1347725311,), (1347725321,), (1347725325,), (1347725331,), (1347725335,), (1347725355,), (1347725363,), (1347725374,), (1347725381,), (1347725394,), (1347725474,), (1347725565,), (1347725657,), (1347725673,), (1347725694,), (1347725806,), (1347726247,), (1347726266,), (1347726284,), (1347726287,), (1347726303,), (1347726326,), (1347726589,), (1347726615,), (1347726653,), (1347726676,), (1347726880,), (1347726890,), (1347726895,), (1347726902,), (1347726917,), (1347727042,), (1347727045,), (1347727065,), (1347727073,), (1347727079,), (1347727083,), (1347727397,), (1347727422,), (1347727449,), (1347727479,), (1347727507,), (1347727529,), (1347727785,), (1347727794,), (1347727800,), (1347728037,), (1347728061,), (1347728073,), (1347728078,), (1347728083,), (1347728090,), (1347728143,), (1347728146,), (1347728150,), (1347728154,), (1347728179,), (1347728182,), (1347728185,), (1347728188,), (1347728564,), (1347728589,), (1347728623,), (1347728649,), (1347728674,), (1347728726,), (1347728729,), (1347728750,), (1347728753,), (1347728773,), (1347728777,), (1347729138,), (1347728987,), (1347728995,), (1347729037,), (1347729076,), (1347729099,), (1347729365,), (1347729413,), (1347729452,), (1347729485,), (1347729976,), (1347730038,), (1347730110,), (1347730169,), (1347730588,), (1347730624,), (1347730659,), (1347730698,), (1347730734,), (1347730998,), (1347731040,), (1347731084,), (1347731119,), (1347731403,), (1347731431,), (1347731470,), (1347731549,), (1347731644,), (1347731702,), (1347733239,), (1347733249,), (1347733404,), (1347733419,), (1347733769,), (1347733825,), (1347733895,), (1347733973,), (1347734105,), (1347734113,), (1347734223,), (1347734232,), (1347734239,), (1347734258,), (1347734267,), (1347734545,), (1347734550,), (1347734584,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21766075]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] map_info['map_portfolio_photo'] : {21766075: [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769, 1347733419, 1347733404, 1347733249, 1347733239, 1347731702, 1347731644, 1347731549, 1347731470, 1347731431, 1347731403, 1347731119, 1347731084, 1347731040, 1347730998, 1347730734, 1347730698, 1347730659, 1347730624, 1347730588, 1347730169, 1347730110, 1347730038, 1347729976, 1347729485, 1347729452, 1347729413, 1347729365, 1347729099, 1347729076, 1347729037, 1347728995, 1347728987]} final : True mtd_id 4302 list_pids : [1347734584, 1347734550, 1347734545, 1347734267, 1347734258, 1347734239, 1347734232, 1347734223, 1347734113, 1347734105, 1347733973, 1347733895, 1347733825, 1347733769] Looping around the photos to save general results len do output : 1 /21766075Didn'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 ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734584', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466') ('4302', None, None, None, None, None, None, None, '2695466') ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21766075', 'None', None, None, None, None, '2695466'), ('4302', '21766075', '1347734584', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734550', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734545', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734267', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734258', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734239', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734232', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734223', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734113', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347734105', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733973', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733895', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733825', None, None, None, None, None, '2695466'), ('4302', '21766075', '1347733769', None, None, None, None, None, '2695466')] time used for this insertion : 0.1403646469116211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3441181182861328 time spend to save output : 0.14066672325134277 total time spend for step 5 : 0.4847848415374756 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 DELETE from MTRPhoto.mtr_datou_current where id in (2695466) 2.24user 2.48system 0:13.16elapsed 35%CPU (0avgtext+0avgdata 160840maxresident)k 8904inputs+14384outputs (117major+76705minor)pagefaults 0swaps