4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2845944) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2845944) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949616 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2845944'] with mtr_portfolio_ids : ['22949616'] and first list_photo_ids : [] new path : /proc/1860723/ Name: python3 Umask: 0002 State: R (running) Tgid: 1860723 Ngid: 0 Pid: 1860723 PPid: 1860697 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1860723 NSpid: 1860723 NSpgid: 1859760 NSsid: 1859760 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99144 kB VmRSS: 99144 kB RssAnon: 60200 kB RssFile: 38944 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 127 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1860723', 'Ngid': '0', 'Pid': '1860723', 'PPid': '1860697', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1860723', 'NSpid': '1860723', 'NSpgid': '1859760', 'NSsid': '1859760', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99144 kB', 'VmRSS': '99144 kB', 'RssAnon': '60200 kB', 'RssFile': '38944 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '127'} ('datou_batch_current', '1860723', '1107228', '0', '1107228', '865976', '99144', b'', 'marlene', '2845944') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou 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 List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22949616) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2845944 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22949616) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358100640, 'portfolio_id': 22949616}, {'photo_id': 1358100637, 'portfolio_id': 22949616}, {'photo_id': 1358100634, 'portfolio_id': 22949616}, {'photo_id': 1358100632, 'portfolio_id': 22949616}, {'photo_id': 1358100616, 'portfolio_id': 22949616}, {'photo_id': 1358100612, 'portfolio_id': 22949616}, {'photo_id': 1358100608, 'portfolio_id': 22949616}, {'photo_id': 1358100605, 'portfolio_id': 22949616}, {'photo_id': 1358100602, 'portfolio_id': 22949616}, {'photo_id': 1358100598, 'portfolio_id': 22949616}, {'photo_id': 1358100580, 'portfolio_id': 22949616}, {'photo_id': 1358100578, 'portfolio_id': 22949616}, {'photo_id': 1358100575, 'portfolio_id': 22949616}, {'photo_id': 1358100572, 'portfolio_id': 22949616}, {'photo_id': 1358100569, 'portfolio_id': 22949616}, {'photo_id': 1358100566, 'portfolio_id': 22949616}, {'photo_id': 1358100545, 'portfolio_id': 22949616}, {'photo_id': 1358100542, 'portfolio_id': 22949616}, {'photo_id': 1358100539, 'portfolio_id': 22949616}, {'photo_id': 1358100536, 'portfolio_id': 22949616}, {'photo_id': 1358100519, 'portfolio_id': 22949616}, {'photo_id': 1358100516, 'portfolio_id': 22949616}, {'photo_id': 1358100512, 'portfolio_id': 22949616}, {'photo_id': 1358100507, 'portfolio_id': 22949616}, {'photo_id': 1358100503, 'portfolio_id': 22949616}, {'photo_id': 1358100500, 'portfolio_id': 22949616}, {'photo_id': 1358100482, 'portfolio_id': 22949616}, {'photo_id': 1358100479, 'portfolio_id': 22949616}, {'photo_id': 1358100475, 'portfolio_id': 22949616}, {'photo_id': 1358100471, 'portfolio_id': 22949616}, {'photo_id': 1358100466, 'portfolio_id': 22949616}, {'photo_id': 1358100463, 'portfolio_id': 22949616}, {'photo_id': 1358100438, 'portfolio_id': 22949616}, {'photo_id': 1358100431, 'portfolio_id': 22949616}, {'photo_id': 1358100426, 'portfolio_id': 22949616}, {'photo_id': 1358100423, 'portfolio_id': 22949616}, {'photo_id': 1358100380, 'portfolio_id': 22949616}, {'photo_id': 1358100378, 'portfolio_id': 22949616}] map_portfolio_id_photo_id: {22949616: [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500, 1358100482, 1358100479, 1358100475, 1358100471, 1358100466, 1358100463, 1358100438, 1358100431, 1358100426, 1358100423, 1358100380, 1358100378]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.014501571655273438 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 14 08:08:30 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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22949616) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 22949616 get user id for portfolio 22949616 get sub ptf for main ptf 22949616, type 3726 and hashtags ['Carton_brun', 'environnement', 'Teint_Dans_La_Masse', 'Carton_gris', 'plastique', 'metal', 'autre_refus', 'flou', 'cartonnette', 'kraft', 'mal_croppe', 'papier'] 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`=22949616 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','plastique','metal','autre_refus','flou','cartonnette','kraft','mal_croppe','papier')) 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`=22949616 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','plastique','metal','autre_refus','flou','cartonnette','kraft','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22949616, 'sub_port_id': 22949617, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321370, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'mal_croppe': {'main_port_id': 22949616, 'sub_port_id': 22949618, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321371, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'Carton_gris': {'main_port_id': 22949616, 'sub_port_id': 22949619, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321372, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'kraft': {'main_port_id': 22949616, 'sub_port_id': 22949620, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321373, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'Carton_brun': {'main_port_id': 22949616, 'sub_port_id': 22949621, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321374, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22949616, 'sub_port_id': 22949622, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321375, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'papier': {'main_port_id': 22949616, 'sub_port_id': 22949623, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321376, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'environnement': {'main_port_id': 22949616, 'sub_port_id': 22949624, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321377, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'autre_refus': {'main_port_id': 22949616, 'sub_port_id': 22949625, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321378, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'flou': {'main_port_id': 22949616, 'sub_port_id': 22949626, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321379, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'cartonnette': {'main_port_id': 22949616, 'sub_port_id': 22949627, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321380, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}, 'metal': {'main_port_id': 22949616, 'sub_port_id': 22949628, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321381, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949617 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949617) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949618 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949618) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949619 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949619) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949620 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949620) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949621 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949621) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949622 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949622) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949623 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949623) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949624 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949625 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949625) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949626 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949626) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949627 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949627) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22949628 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22949616 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949628) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22949616) result : ((1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1358100500) and cspi.crop_hashtag_id = chi.id; 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`=22949616 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','plastique','metal','autre_refus','flou','cartonnette','kraft','mal_croppe','papier')) 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`=22949616 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','Teint_Dans_La_Masse','Carton_gris','plastique','metal','autre_refus','flou','cartonnette','kraft','mal_croppe','papier')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22949616, 'sub_port_id': 22949629, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321382, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'mal_croppe': {'main_port_id': 22949616, 'sub_port_id': 22949630, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321383, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'Carton_gris': {'main_port_id': 22949616, 'sub_port_id': 22949631, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321384, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'kraft': {'main_port_id': 22949616, 'sub_port_id': 22949632, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321385, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'Carton_brun': {'main_port_id': 22949616, 'sub_port_id': 22949633, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321386, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 22949616, 'sub_port_id': 22949634, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321387, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'papier': {'main_port_id': 22949616, 'sub_port_id': 22949635, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321388, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'environnement': {'main_port_id': 22949616, 'sub_port_id': 22949636, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321389, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'autre_refus': {'main_port_id': 22949616, 'sub_port_id': 22949637, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321390, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'flou': {'main_port_id': 22949616, 'sub_port_id': 22949638, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321391, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'cartonnette': {'main_port_id': 22949616, 'sub_port_id': 22949639, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321392, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}, 'metal': {'main_port_id': 22949616, 'sub_port_id': 22949640, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15321393, 'last_updated_at': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 8, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 8, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949617 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949620 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949621 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22949640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22949628 lien utilise dans velours : https://www.fotonower.com/velours/22949629,22949630,22949631,22949632,22949633,22949634,22949635,22949636,22949637,22949638,22949639,22949640?tags=plastique,mal_croppe,Carton_gris,kraft,Carton_brun,Teint_Dans_La_Masse,papier,environnement,autre_refus,flou,cartonnette,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22949616]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] map_info['map_portfolio_photo'] : {22949616: [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500, 1358100482, 1358100479, 1358100475, 1358100471, 1358100466, 1358100463, 1358100438, 1358100431, 1358100426, 1358100423, 1358100380, 1358100378]} final : False mtd_id 4302 list_pids : [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] Looping around the photos to save general results len do output : 1 /22949616. 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, '2845944') ('4302', '22949616', '1358100640', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '22949616', "{'plastique': 22949617, 'mal_croppe': 22949618, 'Carton_gris': 22949619, 'kraft': 22949620, 'Carton_brun': 22949621, 'Teint_Dans_La_Masse': 22949622, 'papier': 22949623, 'environnement': 22949624, 'autre_refus': 22949625, 'flou': 22949626, 'cartonnette': 22949627, 'metal': 22949628}", None, None, None, None, '2845944'), ('4302', '22949616', '1358100640', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944')] time used for this insertion : 0.023524761199951172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41050195693969727 time spend to save output : 0.02388167381286621 total time spend for step 1 : 0.4343836307525635 step2:final Wed May 14 08:08:30 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 (22949616) 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 22949616 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358100380,1358100378,1358100438,1358100431,1358100426,1358100423,1358100482,1358100479,1358100475,1358100471,1358100466,1358100463,1358100519,1358100516,1358100512,1358100507,1358100503,1358100500,1358100545,1358100542,1358100539,1358100536,1358100580,1358100578,1358100575,1358100572,1358100569,1358100566,1358100616,1358100612,1358100608,1358100605,1358100602,1358100598,1358100640,1358100637,1358100634,1358100632); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22949616]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} new output for save of step final : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] map_info['map_portfolio_photo'] : {22949616: [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500, 1358100482, 1358100479, 1358100475, 1358100471, 1358100466, 1358100463, 1358100438, 1358100431, 1358100426, 1358100423, 1358100380, 1358100378]} final : False mtd_id 4302 list_pids : [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] Looping around the photos to save general results len do output : 26 /1358100640.Didn't retrieve data . /1358100637.Didn't retrieve data . /1358100634.Didn't retrieve data . /1358100632.Didn't retrieve data . /1358100616.Didn't retrieve data . /1358100612.Didn't retrieve data . /1358100608.Didn't retrieve data . /1358100605.Didn't retrieve data . /1358100602.Didn't retrieve data . /1358100598.Didn't retrieve data . /1358100580.Didn't retrieve data . /1358100578.Didn't retrieve data . /1358100575.Didn't retrieve data . /1358100572.Didn't retrieve data . /1358100569.Didn't retrieve data . /1358100566.Didn't retrieve data . /1358100545.Didn't retrieve data . /1358100542.Didn't retrieve data . /1358100539.Didn't retrieve data . /1358100536.Didn't retrieve data . /1358100519.Didn't retrieve data . /1358100516.Didn't retrieve data . /1358100512.Didn't retrieve data . /1358100507.Didn't retrieve data . /1358100503.Didn't retrieve data . /1358100500.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, '2845944') ('4302', '22949616', '1358100640', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 78 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', '22949616', '1358100640', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100637', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100634', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100632', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100616', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100612', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100608', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100605', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100602', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100598', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100580', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100578', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100575', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100572', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100569', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100566', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100545', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100542', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100539', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100536', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100519', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100516', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100512', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100507', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100503', '0.0', None, None, None, None, '2845944'), ('4302', '22949616', '1358100500', '0.0', None, None, None, None, '2845944')] time used for this insertion : 0.040044307708740234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05410122871398926 time spend to save output : 0.04096674919128418 total time spend for step 2 : 0.09506797790527344 step3:velours_tree Wed May 14 08:08:30 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 : {22949616: [{'plastique': 22949617, 'mal_croppe': 22949618, 'Carton_gris': 22949619, 'kraft': 22949620, 'Carton_brun': 22949621, 'Teint_Dans_La_Masse': 22949622, 'papier': 22949623, 'environnement': 22949624, 'autre_refus': 22949625, 'flou': 22949626, 'cartonnette': 22949627, 'metal': 22949628}]} input_args_next_step : {22949616: ()} output_args : {22949616: [{'plastique': 22949617, 'mal_croppe': 22949618, 'Carton_gris': 22949619, 'kraft': 22949620, 'Carton_brun': 22949621, 'Teint_Dans_La_Masse': 22949622, 'papier': 22949623, 'environnement': 22949624, 'autre_refus': 22949625, 'flou': 22949626, 'cartonnette': 22949627, 'metal': 22949628}]} args : 22949616 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 : ({'plastique': 22949617, 'mal_croppe': 22949618, 'Carton_gris': 22949619, 'kraft': 22949620, 'Carton_brun': 22949621, 'Teint_Dans_La_Masse': 22949622, 'papier': 22949623, 'environnement': 22949624, 'autre_refus': 22949625, 'flou': 22949626, 'cartonnette': 22949627, 'metal': 22949628},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22949616) 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([22949616]) 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.3437538146972656 time spend to save output : 5.602836608886719e-05 total time spend for step 3 : 0.3438098430633545 step4:send_mail_cod Wed May 14 08:08:31 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 : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} input_args_next_step : {1358100640: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100640 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100637 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100634 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100632 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100616 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100612 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100608 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100605 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100602 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100598 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100580 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100578 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100575 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100572 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100569 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100566 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100545 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100542 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100539 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100536 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100519 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100516 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100512 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100507 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100503 depend.output_id : 0 input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ()} output_args : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',)} args : 1358100500 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 : {22949616: [{'plastique': 22949617, 'mal_croppe': 22949618, 'Carton_gris': 22949619, 'kraft': 22949620, 'Carton_brun': 22949621, 'Teint_Dans_La_Masse': 22949622, 'papier': 22949623, 'environnement': 22949624, 'autre_refus': 22949625, 'flou': 22949626, 'cartonnette': 22949627, 'metal': 22949628}]} input_args_next_step : {1358100640: ('0.0',), 1358100637: ('0.0',), 1358100634: ('0.0',), 1358100632: ('0.0',), 1358100616: ('0.0',), 1358100612: ('0.0',), 1358100608: ('0.0',), 1358100605: ('0.0',), 1358100602: ('0.0',), 1358100598: ('0.0',), 1358100580: ('0.0',), 1358100578: ('0.0',), 1358100575: ('0.0',), 1358100572: ('0.0',), 1358100569: ('0.0',), 1358100566: ('0.0',), 1358100545: ('0.0',), 1358100542: ('0.0',), 1358100539: ('0.0',), 1358100536: ('0.0',), 1358100519: ('0.0',), 1358100516: ('0.0',), 1358100512: ('0.0',), 1358100507: ('0.0',), 1358100503: ('0.0',), 1358100500: ('0.0',), 22949616: ()} output_args : {22949616: [{'plastique': 22949617, 'mal_croppe': 22949618, 'Carton_gris': 22949619, 'kraft': 22949620, 'Carton_brun': 22949621, 'Teint_Dans_La_Masse': 22949622, 'papier': 22949623, 'environnement': 22949624, 'autre_refus': 22949625, 'flou': 22949626, 'cartonnette': 22949627, 'metal': 22949628}]} args : 22949616 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 :27, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22949616) 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 (1358100640,1358100637,1358100634,1358100632,1358100616,1358100612,1358100608,1358100605,1358100602,1358100598,1358100580,1358100578,1358100575,1358100572,1358100569,1358100566,1358100545,1358100542,1358100539,1358100536,1358100519,1358100516,1358100512,1358100507,1358100503,1358100500) Found this number of photos: 26 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358100500 begin to download photo : 1358100536 begin to download photo : 1358100572 begin to download photo : 1358100605 begin to download photo : 1358100637 download finish for photo 1358100536 begin to download photo : 1358100539 download finish for photo 1358100500 begin to download photo : 1358100503 download finish for photo 1358100637 begin to download photo : 1358100640 download finish for photo 1358100572 begin to download photo : 1358100575 download finish for photo 1358100605 begin to download photo : 1358100608 download finish for photo 1358100503 begin to download photo : 1358100507 download finish for photo 1358100640 download finish for photo 1358100575 begin to download photo : 1358100578 download finish for photo 1358100539 begin to download photo : 1358100542 download finish for photo 1358100608 begin to download photo : 1358100612 download finish for photo 1358100612 begin to download photo : 1358100616 download finish for photo 1358100507 begin to download photo : 1358100512 download finish for photo 1358100578 begin to download photo : 1358100580 download finish for photo 1358100542 begin to download photo : 1358100545 download finish for photo 1358100616 begin to download photo : 1358100632 download finish for photo 1358100545 begin to download photo : 1358100566 download finish for photo 1358100580 begin to download photo : 1358100598 download finish for photo 1358100512 begin to download photo : 1358100516 download finish for photo 1358100632 begin to download photo : 1358100634 download finish for photo 1358100598 begin to download photo : 1358100602 download finish for photo 1358100566 begin to download photo : 1358100569 download finish for photo 1358100516 begin to download photo : 1358100519 download finish for photo 1358100602 download finish for photo 1358100634 download finish for photo 1358100569 download finish for photo 1358100519 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette229496171747202911/ imagette229496181747202911/ imagette229496201747202911/ imagette229496251747202911/ imagette229496261747202911/ imagette229496271747202911/ imagette229496281747202911/ imagette229496191747202911/ imagette229496211747202911/ imagette229496221747202911/ length of list_filenames : 26 ; length of list_pids : 26 ; length of list_args : 26 results_Auto_P22949616_14-05-2025_08_08_31.pdf 22949617 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=22949617 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496171747202911 22949618 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=22949618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496181747202911 22949620 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=22949620 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496201747202911 22949625 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=22949625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496251747202911 22949626 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=22949626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496261747202911 22949627 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=22949627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496271747202911 22949628 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=22949628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496281747202911 22949619 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=22949619 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496191747202911 22949621 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=22949621 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496211747202911 22949622 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=22949622 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229496221747202911 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22949616 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22949629,22949630,22949631,22949632,22949633,22949634,22949635,22949636,22949637,22949638,22949639,22949640?tags=plastique,mal_croppe,Carton_gris,kraft,Carton_brun,Teint_Dans_La_Masse,papier,environnement,autre_refus,flou,cartonnette,metal your option no_mail is active, we will not send the real mail to your client args[1358100640] : ('0.0',) no score found for photo 1358100640 We are sending mail with results at report@fotonower.com args[1358100637] : ('0.0',) no score found for photo 1358100637 We are sending mail with results at report@fotonower.com args[1358100634] : ('0.0',) no score found for photo 1358100634 We are sending mail with results at report@fotonower.com args[1358100632] : ('0.0',) no score found for photo 1358100632 We are sending mail with results at report@fotonower.com args[1358100616] : ('0.0',) no score found for photo 1358100616 We are sending mail with results at report@fotonower.com args[1358100612] : ('0.0',) no score found for photo 1358100612 We are sending mail with results at report@fotonower.com args[1358100608] : ('0.0',) no score found for photo 1358100608 We are sending mail with results at report@fotonower.com args[1358100605] : ('0.0',) no score found for photo 1358100605 We are sending mail with results at report@fotonower.com args[1358100602] : ('0.0',) no score found for photo 1358100602 We are sending mail with results at report@fotonower.com args[1358100598] : ('0.0',) no score found for photo 1358100598 We are sending mail with results at report@fotonower.com args[1358100580] : ('0.0',) no score found for photo 1358100580 We are sending mail with results at report@fotonower.com args[1358100578] : ('0.0',) no score found for photo 1358100578 We are sending mail with results at report@fotonower.com args[1358100575] : ('0.0',) no score found for photo 1358100575 We are sending mail with results at report@fotonower.com args[1358100572] : ('0.0',) no score found for photo 1358100572 We are sending mail with results at report@fotonower.com args[1358100569] : ('0.0',) no score found for photo 1358100569 We are sending mail with results at report@fotonower.com args[1358100566] : ('0.0',) no score found for photo 1358100566 We are sending mail with results at report@fotonower.com args[1358100545] : ('0.0',) no score found for photo 1358100545 We are sending mail with results at report@fotonower.com args[1358100542] : ('0.0',) no score found for photo 1358100542 We are sending mail with results at report@fotonower.com args[1358100539] : ('0.0',) no score found for photo 1358100539 We are sending mail with results at report@fotonower.com args[1358100536] : ('0.0',) no score found for photo 1358100536 We are sending mail with results at report@fotonower.com args[1358100519] : ('0.0',) no score found for photo 1358100519 We are sending mail with results at report@fotonower.com args[1358100516] : ('0.0',) no score found for photo 1358100516 We are sending mail with results at report@fotonower.com args[1358100512] : ('0.0',) no score found for photo 1358100512 We are sending mail with results at report@fotonower.com args[1358100507] : ('0.0',) no score found for photo 1358100507 We are sending mail with results at report@fotonower.com args[1358100503] : ('0.0',) no score found for photo 1358100503 We are sending mail with results at report@fotonower.com args[1358100500] : ('0.0',) no score found for photo 1358100500 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=22949616 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_P22949616_14-05-2025_08_08_31.pdf results_Auto_P22949616_14-05-2025_08_08_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_14-05-2025_08_08_31.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','22949616','results_Auto_P22949616_14-05-2025_08_08_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_14-05-2025_08_08_31.pdf','pdf','','0.2','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22949616]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] map_info['map_portfolio_photo'] : {22949616: [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500, 1358100482, 1358100479, 1358100475, 1358100471, 1358100466, 1358100463, 1358100438, 1358100431, 1358100426, 1358100423, 1358100380, 1358100378]} final : False mtd_id 4302 list_pids : [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] 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, '2845944') ('4302', '22949616', '1358100640', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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', '22949616', '1358100640', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944')] time used for this insertion : 0.12281203269958496 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.303072929382324 time spend to save output : 0.12311601638793945 total time spend for step 4 : 2.4261889457702637 step5:split_time_score Wed May 14 08:08:33 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 : ['22949616'] 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 : [('22949616',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22949616) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358100637: {'path': 'temp/1747202911_1860723_1358100637_1f93d87e339034bbd28ccbd5d76ca62e.jpg', 'extension': 'jpg'}, 1358100640: {'path': 'temp/1747202911_1860723_1358100640_7199771833c0d1b842e07a09f78c9252.jpg', 'extension': 'jpg'}, 1358100572: {'path': 'temp/1747202911_1860723_1358100572_2f5b3296f25056ce79a6ca52fed81f0d.jpg', 'extension': 'jpg'}, 1358100575: {'path': 'temp/1747202911_1860723_1358100575_68805c7cfbc7fbbed4010e9aa0eab322.jpg', 'extension': 'jpg'}, 1358100578: {'path': 'temp/1747202911_1860723_1358100578_87c99906fef02fd88028b149ee775316.jpg', 'extension': 'jpg'}, 1358100580: {'path': 'temp/1747202911_1860723_1358100580_863fc6565d57913b81f0b1145d9d25c8.jpg', 'extension': 'jpg'}, 1358100598: {'path': 'temp/1747202911_1860723_1358100598_f98ae062a799b43c4278b9fead1ec305.jpg', 'extension': 'jpg'}, 1358100602: {'path': 'temp/1747202911_1860723_1358100602_54e8868b7b10a6144a3e275468469f4b.jpg', 'extension': 'jpg'}, 1358100605: {'path': 'temp/1747202911_1860723_1358100605_51105b6e2415d9103276b0dc1cdc62cc.jpg', 'extension': 'jpg'}, 1358100608: {'path': 'temp/1747202911_1860723_1358100608_b09059fccd0d7152ebd75a08228ee110.jpg', 'extension': 'jpg'}, 1358100612: {'path': 'temp/1747202911_1860723_1358100612_552f67c1f2eb3c8ee0514c86ea676242.jpg', 'extension': 'jpg'}, 1358100616: {'path': 'temp/1747202911_1860723_1358100616_b092d2a9a8a9b761e074e98491fcd756.jpg', 'extension': 'jpg'}, 1358100632: {'path': 'temp/1747202911_1860723_1358100632_5bfa5f1c1cab873ffeeec55f98c0ae65.jpg', 'extension': 'jpg'}, 1358100634: {'path': 'temp/1747202911_1860723_1358100634_ff731df7d25758526705e96d9a0e6d90.jpg', 'extension': 'jpg'}, 1358100536: {'path': 'temp/1747202911_1860723_1358100536_7bc551e769958843d1444edb9f6eb481.jpg', 'extension': 'jpg'}, 1358100539: {'path': 'temp/1747202911_1860723_1358100539_d882e83ae4f8020a41aadb0b41de41ed.jpg', 'extension': 'jpg'}, 1358100542: {'path': 'temp/1747202911_1860723_1358100542_5f7348986f069b339e48edbee8f46305.jpg', 'extension': 'jpg'}, 1358100545: {'path': 'temp/1747202911_1860723_1358100545_8cd8cea39f7e20a93f7a78558e968374.jpg', 'extension': 'jpg'}, 1358100566: {'path': 'temp/1747202911_1860723_1358100566_2a8a27bbd9b0891f65fce32a734a7264.jpg', 'extension': 'jpg'}, 1358100569: {'path': 'temp/1747202911_1860723_1358100569_7db825dc63e67e2f0f7bac81b1fe95ba.jpg', 'extension': 'jpg'}, 1358100500: {'path': 'temp/1747202911_1860723_1358100500_7acd8c014bcec236a89fa60a0ab48225.jpg', 'extension': 'jpg'}, 1358100503: {'path': 'temp/1747202911_1860723_1358100503_4a8fc4f1c9efa76ab81b5f1ce44ff8a7.jpg', 'extension': 'jpg'}, 1358100507: {'path': 'temp/1747202911_1860723_1358100507_d71ed922081fb8f0b2e1e0a8a151a261.jpg', 'extension': 'jpg'}, 1358100512: {'path': 'temp/1747202911_1860723_1358100512_320b76d2abef2b34699814ed099af1b8.jpg', 'extension': 'jpg'}, 1358100516: {'path': 'temp/1747202911_1860723_1358100516_b1a911974c2f49322da3cd70335cbf89.jpg', 'extension': 'jpg'}, 1358100519: {'path': 'temp/1747202911_1860723_1358100519_c07d4fd068719aaddeb42b78caff696a.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 = 22949616; (('arc_en_ciel_jrm_live',), ('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 = 22949616 group by h (('08', 38),) 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=22949616 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 (22949616) 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 (22949616) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14052025 22949616 Nombre de photos uploadées : 38 / 23040 (0%) 14052025 22949616 Nombre de photos taguées (types de déchets): 0 / 38 (0%) 14052025 22949616 Nombre de photos taguées (volume) : 0 / 38 (0%) [{'photo_id': 1358100380, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/9574635d881bd50769f6bd8d34b3bafb.jpg', 'username': None, 'uploaded_at': 1747202468, 'text': 'image_14052025_08_00_14_10145.jpg'}, {'photo_id': 1358100378, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/853dda15ad0b93cb7f1d2ddcf34d4c52.jpg', 'username': None, 'uploaded_at': 1747202468, 'text': 'image_14052025_08_00_44_10139.jpg'}, {'photo_id': 1358100438, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/151a2126a44ca9d8e11cefad868f5d1a.jpg', 'username': None, 'uploaded_at': 1747202527, 'text': 'image_14052025_08_00_54_10137.jpg'}, {'photo_id': 1358100431, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/0a69d662d22ba927adb693e1cec8e9fc.jpg', 'username': None, 'uploaded_at': 1747202527, 'text': 'image_14052025_08_01_04_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 2.3603439331054688e-05 ?????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027933120727539062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22949616, '2025-05-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1803731,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02325129508972168 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= 1803731 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812113, 'mtr_portfolio_id': 22948351, 'dashboard_result_id': 10545042, '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_P22948351_14-05-2025_07_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22948389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948401, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812113, 'mtr_portfolio_id': 22948827, 'dashboard_result_id': 10545043, '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_P22948827_14-05-2025_07_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22948873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948877, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812113, 'mtr_portfolio_id': 22949170, 'dashboard_result_id': 10545044, '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_P22949170_14-05-2025_08_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949232, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812113, 'mtr_portfolio_id': 22949616, 'dashboard_result_id': 10545045, '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_P22949616_14-05-2025_08_03_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949628, '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 = 22948351 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': 2845489, 'mtr_portfolio_id': 22948351, 'created_at': datetime.datetime(2025, 5, 14, 7, 32, 57), 'result': '0.03373586804746417', 'result_long': None, 'result_double': None}] Qualite : 0.03373586804746417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22948351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948351_14-05-2025_07_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22948351 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_P22948351_14-05-2025_07_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22948389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948401, 'pht': 3726}}" where mtr_portfolio_id = 22948351 and dashboard_run_id = 1812112 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`=22948351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10545042, 0.03373586804746417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948351_14-05-2025_07_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22948389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948390, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948398, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948401, '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 = 22948827 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': 2845630, 'mtr_portfolio_id': 22948827, 'created_at': datetime.datetime(2025, 5, 14, 7, 49), 'result': '0.04776403453925766', 'result_long': None, 'result_double': None}] Qualite : 0.04776403453925766 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22948827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948827_14-05-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22948827 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_P22948827_14-05-2025_07_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22948873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948877, 'pht': 3726}}" where mtr_portfolio_id = 22948827 and dashboard_run_id = 1812112 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`=22948827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10545043, 0.04776403453925766, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22948827_14-05-2025_07_49_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22948865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22948866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22948867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22948868, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22948870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22948871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22948872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22948873, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22948874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22948875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22948876, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22948877, '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 = 22949170 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': 2845759, 'mtr_portfolio_id': 22949170, 'created_at': datetime.datetime(2025, 5, 14, 8, 2, 59), 'result': '0.03252208287485292', 'result_long': None, 'result_double': None}] Qualite : 0.03252208287485292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22949170 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949170_14-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22949170 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_P22949170_14-05-2025_08_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949232, 'pht': 3726}}" where mtr_portfolio_id = 22949170 and dashboard_run_id = 1812112 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`=22949170 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10545044, 0.03252208287485292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949170_14-05-2025_08_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949221, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949222, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949225, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949229, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949230, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949231, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949232, '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 = 22949616 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22949616 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22949616 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22949616 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22949616 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22949616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22949616_14-05-2025_08_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22949616 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_P22949616_14-05-2025_08_08_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22949617, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22949618, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22949619, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22949620, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22949621, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22949622, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22949623, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22949624, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22949625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22949626, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22949627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22949628, 'pht': 3726}}" where mtr_portfolio_id = 22949616 and dashboard_run_id = 1812112 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22948351,22948827,22949170,22949616) result : ((1358097118,), (1358097124,), (1358097159,), (1358097164,), (1358097168,), (1358097171,), (1358097196,), (1358097200,), (1358097204,), (1358097207,), (1358097210,), (1358097239,), (1358097242,), (1358097245,), (1358097248,), (1358097253,), (1358097257,), (1358097284,), (1358097288,), (1358097292,), (1358097326,), (1358097330,), (1358097333,), (1358097337,), (1358097341,), (1358097344,), (1358097366,), (1358097378,), (1358097381,), (1358097385,), (1358097422,), (1358097425,), (1358097427,), (1358097430,), (1358097458,), (1358097465,), (1358097469,), (1358097473,), (1358097477,), (1358097479,), (1358097529,), (1358097555,), (1358097560,), (1358097659,), (1358097663,), (1358097665,), (1358097667,), (1358097671,), (1358097696,), (1358097700,), (1358097704,), (1358097708,), (1358097711,), (1358097714,), (1358097739,), (1358097749,), (1358097755,), (1358097768,), (1358097772,), (1358097831,), (1358097837,), (1358097855,), (1358097859,), (1358097864,), (1358098164,), (1358098169,), (1358098172,), (1358098174,), (1358098203,), (1358098229,), (1358098734,), (1358098583,), (1358098676,), (1358098728,), (1358098732,), (1358098837,), (1358098841,), (1358098843,), (1358098845,), (1358098891,), (1358098915,), (1358098921,), (1358098927,), (1358098930,), (1358098962,), (1358098968,), (1358098971,), (1358098974,), (1358098976,), (1358098980,), (1358099008,), (1358099011,), (1358099015,), (1358099018,), (1358099054,), (1358099059,), (1358099062,), (1358099064,), (1358099066,), (1358099070,), (1358099097,), (1358099101,), (1358099105,), (1358099132,), (1358099135,), (1358099138,), (1358099141,), (1358099145,), (1358099177,), (1358099180,), (1358099184,), (1358099188,), (1358099192,), (1358099195,), (1358099238,), (1358099248,), (1358099250,), (1358099254,), (1358099290,), (1358099295,), (1358099298,), (1358099303,), (1358099307,), (1358099344,), (1358099348,), (1358099354,), (1358099357,), (1358099362,), (1358099404,), (1358099408,), (1358099412,), (1358099416,), (1358099499,), (1358099531,), (1358099558,), (1358099585,), (1358099619,), (1358099646,), (1358099664,), (1358099667,), (1358099672,), (1358099676,), (1358099726,), (1358099706,), (1358099711,), (1358099715,), (1358099719,), (1358099722,), (1358099748,), (1358099751,), (1358099754,), (1358099778,), (1358099781,), (1358099785,), (1358099789,), (1358099796,), (1358099807,), (1358099827,), (1358099839,), (1358099842,), (1358099846,), (1358099849,), (1358099853,), (1358099877,), (1358099882,), (1358099885,), (1358099888,), (1358099951,), (1358099960,), (1358099969,), (1358099974,), (1358100000,), (1358100005,), (1358100009,), (1358100012,), (1358100016,), (1358100020,), (1358100021,), (1358100023,), (1358100024,), (1358100032,), (1358100033,), (1358100043,), (1358100044,), (1358100047,), (1358100048,), (1358100061,), (1358100065,), (1358100068,), (1358100102,), (1358100107,), (1358100110,), (1358100113,), (1358100138,), (1358100141,), (1358100144,), (1358100147,), (1358100150,), (1358100152,), (1358100182,), (1358100185,), (1358100189,), (1358100225,), (1358100231,), (1358100234,), (1358100261,), (1358100263,), (1358100268,), (1358100281,), (1358100284,), (1358100288,), (1358100290,), (1358100293,), (1358100340,), (1358100345,), (1358100352,), (1358100357,), (1358100382,), (1358100385,), (1358100387,), (1358100392,), (1358100412,), (1358100416,), (1358100378,), (1358100380,), (1358100423,), (1358100426,), (1358100431,), (1358100438,), (1358100463,), (1358100466,), (1358100471,), (1358100475,), (1358100479,), (1358100482,), (1358100500,), (1358100503,), (1358100507,), (1358100512,), (1358100516,), (1358100519,), (1358100536,), (1358100539,), (1358100542,), (1358100545,), (1358100566,), (1358100569,), (1358100572,), (1358100575,), (1358100578,), (1358100580,), (1358100598,), (1358100602,), (1358100605,), (1358100608,), (1358100612,), (1358100616,), (1358100632,), (1358100634,), (1358100637,), (1358100640,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14052025': {'nb_upload': 38, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22949616]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] map_info['map_portfolio_photo'] : {22949616: [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500, 1358100482, 1358100479, 1358100475, 1358100471, 1358100466, 1358100463, 1358100438, 1358100431, 1358100426, 1358100423, 1358100380, 1358100378]} final : True mtd_id 4302 list_pids : [1358100640, 1358100637, 1358100634, 1358100632, 1358100616, 1358100612, 1358100608, 1358100605, 1358100602, 1358100598, 1358100580, 1358100578, 1358100575, 1358100572, 1358100569, 1358100566, 1358100545, 1358100542, 1358100539, 1358100536, 1358100519, 1358100516, 1358100512, 1358100507, 1358100503, 1358100500] Looping around the photos to save general results len do output : 1 /22949616Didn'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, '2845944') ('4302', '22949616', '1358100640', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944') ('4302', None, None, None, None, None, None, None, '2845944') ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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, '22949616', 'None', None, None, None, None, '2845944'), ('4302', '22949616', '1358100640', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100637', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100634', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100632', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100616', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100612', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100608', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100605', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100602', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100598', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100580', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100578', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100575', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100572', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100569', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100566', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100545', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100542', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100539', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100536', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100519', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100516', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100512', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100507', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100503', None, None, None, None, None, '2845944'), ('4302', '22949616', '1358100500', None, None, None, None, None, '2845944')] time used for this insertion : 0.03288078308105469 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3267977237701416 time spend to save output : 0.033298492431640625 total time spend for step 5 : 0.3600962162017822 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 (2845944) 2.57user 2.05system 0:07.63elapsed 60%CPU (0avgtext+0avgdata 160864maxresident)k 13544inputs+13520outputs (117major+79225minor)pagefaults 0swaps