python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 690958 load datou : 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 ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 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 (2729049) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2729049) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104316 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2729049'] with mtr_portfolio_ids : ['22104316'] and first list_photo_ids : [] new path : /proc/690958/ Name: python3 Umask: 0002 State: R (running) Tgid: 690958 Ngid: 0 Pid: 690958 PPid: 690957 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 690958 NSpid: 690958 NSpgid: 687237 NSsid: 687237 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99320 kB VmRSS: 99320 kB RssAnon: 59748 kB RssFile: 39572 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 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: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '690958', 'Ngid': '0', 'Pid': '690958', 'PPid': '690957', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '690958', 'NSpid': '690958', 'NSpgid': '687237', 'NSsid': '687237', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99320 kB', 'VmRSS': '99320 kB', 'RssAnon': '59748 kB', 'RssFile': '39572 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 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': '108'} ('datou_batch_current', '690958', '1106932', '0', '1106932', '865680', '99320', b'', 'marlene', '2729049') 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 (22104316) 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 (2729049 ) ) 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 (22104316) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350322007, 'portfolio_id': 22104316}, {'photo_id': 1350322001, 'portfolio_id': 22104316}, {'photo_id': 1350321995, 'portfolio_id': 22104316}, {'photo_id': 1350321990, 'portfolio_id': 22104316}, {'photo_id': 1350321986, 'portfolio_id': 22104316}, {'photo_id': 1350321983, 'portfolio_id': 22104316}, {'photo_id': 1350321898, 'portfolio_id': 22104316}, {'photo_id': 1350321867, 'portfolio_id': 22104316}, {'photo_id': 1350321836, 'portfolio_id': 22104316}, {'photo_id': 1350321804, 'portfolio_id': 22104316}, {'photo_id': 1350321773, 'portfolio_id': 22104316}, {'photo_id': 1350321749, 'portfolio_id': 22104316}, {'photo_id': 1350321676, 'portfolio_id': 22104316}, {'photo_id': 1350321674, 'portfolio_id': 22104316}, {'photo_id': 1350321615, 'portfolio_id': 22104316}, {'photo_id': 1350321609, 'portfolio_id': 22104316}, {'photo_id': 1350321604, 'portfolio_id': 22104316}, {'photo_id': 1350321599, 'portfolio_id': 22104316}, {'photo_id': 1350321544, 'portfolio_id': 22104316}, {'photo_id': 1350321540, 'portfolio_id': 22104316}, {'photo_id': 1350321526, 'portfolio_id': 22104316}, {'photo_id': 1350321300, 'portfolio_id': 22104316}, {'photo_id': 1350321293, 'portfolio_id': 22104316}, {'photo_id': 1350321287, 'portfolio_id': 22104316}, {'photo_id': 1350321279, 'portfolio_id': 22104316}, {'photo_id': 1350321254, 'portfolio_id': 22104316}, {'photo_id': 1350321019, 'portfolio_id': 22104316}, {'photo_id': 1350321012, 'portfolio_id': 22104316}, {'photo_id': 1350321006, 'portfolio_id': 22104316}, {'photo_id': 1350320998, 'portfolio_id': 22104316}, {'photo_id': 1350320840, 'portfolio_id': 22104316}, {'photo_id': 1350320816, 'portfolio_id': 22104316}, {'photo_id': 1350320791, 'portfolio_id': 22104316}, {'photo_id': 1350320646, 'portfolio_id': 22104316}, {'photo_id': 1350320640, 'portfolio_id': 22104316}, {'photo_id': 1350320636, 'portfolio_id': 22104316}, {'photo_id': 1350320631, 'portfolio_id': 22104316}, {'photo_id': 1350320625, 'portfolio_id': 22104316}, {'photo_id': 1350320501, 'portfolio_id': 22104316}, {'photo_id': 1350320495, 'portfolio_id': 22104316}, {'photo_id': 1350320492, 'portfolio_id': 22104316}, {'photo_id': 1350320362, 'portfolio_id': 22104316}, {'photo_id': 1350320333, 'portfolio_id': 22104316}, {'photo_id': 1350320304, 'portfolio_id': 22104316}, {'photo_id': 1350320277, 'portfolio_id': 22104316}, {'photo_id': 1350320251, 'portfolio_id': 22104316}, {'photo_id': 1350320132, 'portfolio_id': 22104316}, {'photo_id': 1350320104, 'portfolio_id': 22104316}, {'photo_id': 1350319890, 'portfolio_id': 22104316}, {'photo_id': 1350319867, 'portfolio_id': 22104316}, {'photo_id': 1350319824, 'portfolio_id': 22104316}, {'photo_id': 1350319788, 'portfolio_id': 22104316}, {'photo_id': 1350319606, 'portfolio_id': 22104316}, {'photo_id': 1350319581, 'portfolio_id': 22104316}, {'photo_id': 1350319545, 'portfolio_id': 22104316}, {'photo_id': 1350319474, 'portfolio_id': 22104316}, {'photo_id': 1350319076, 'portfolio_id': 22104316}, {'photo_id': 1350319050, 'portfolio_id': 22104316}] map_portfolio_id_photo_id: {22104316: [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749, 1350321676, 1350321674, 1350321615, 1350321609, 1350321604, 1350321599, 1350321544, 1350321540, 1350321526, 1350321300, 1350321293, 1350321287, 1350321279, 1350321254, 1350321019, 1350321012, 1350321006, 1350320998, 1350320840, 1350320816, 1350320791, 1350320646, 1350320640, 1350320636, 1350320631, 1350320625, 1350320501, 1350320495, 1350320492, 1350320362, 1350320333, 1350320304, 1350320277, 1350320251, 1350320132, 1350320104, 1350319890, 1350319867, 1350319824, 1350319788, 1350319606, 1350319581, 1350319545, 1350319474, 1350319076, 1350319050]} ##### 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.014280557632446289 #### 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 Mon Apr 7 14:16:56 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 (22104316) 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 : 22104316 get user id for portfolio 22104316 get sub ptf for main ptf 22104316, type 3726 and hashtags ['flou', 'Carton_gris', 'autre_refus', 'Carton_brun', 'kraft', 'mal_croppe', 'cartonnette', 'metal', 'plastique', 'environnement', 'papier', 'Teint_Dans_La_Masse'] 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`=22104316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','autre_refus','Carton_brun','kraft','mal_croppe','cartonnette','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) 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`=22104316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','autre_refus','Carton_brun','kraft','mal_croppe','cartonnette','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22104316, 'sub_port_id': 22104319, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587176, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'autre_refus': {'main_port_id': 22104316, 'sub_port_id': 22104320, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587177, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'mal_croppe': {'main_port_id': 22104316, 'sub_port_id': 22104321, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587178, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'environnement': {'main_port_id': 22104316, 'sub_port_id': 22104322, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587179, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'flou': {'main_port_id': 22104316, 'sub_port_id': 22104323, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587180, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'metal': {'main_port_id': 22104316, 'sub_port_id': 22104324, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587181, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'Carton_gris': {'main_port_id': 22104316, 'sub_port_id': 22104325, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587182, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'cartonnette': {'main_port_id': 22104316, 'sub_port_id': 22104326, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587183, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'papier': {'main_port_id': 22104316, 'sub_port_id': 22104327, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587184, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'kraft': {'main_port_id': 22104316, 'sub_port_id': 22104328, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587185, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22104316, 'sub_port_id': 22104329, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587186, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}, 'Carton_brun': {'main_port_id': 22104316, 'sub_port_id': 22104330, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587187, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 28), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22104319 , 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=22104316 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 (22104319) result : ((1350320376,), (1350320452,), (1350320466,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104320 , 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=22104316 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 (22104320) result : ((1350320851,), (1350321168,), (1350321170,), (1350321567,), (1350321568,), (1350321732,), (1350321733,), (1350321744,), (1350321924,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104321 , 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=22104316 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 (22104321) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104322 , 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=22104316 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 (22104322) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104323 , 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=22104316 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 (22104323) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104324 , 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=22104316 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 (22104324) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104325 , 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=22104316 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 (22104325) result : ((1350320446,), (1350320447,), (1350320852,), (1350320853,), (1350321183,), (1350321581,), (1350321582,), (1350321583,), (1350321584,), (1350321745,), (1350321932,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104326 , 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=22104316 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 (22104326) result : ((1350320366,), (1350320368,), (1350320449,), (1350320464,), (1350320854,), (1350321199,), (1350321200,), (1350321201,), (1350321202,), (1350321735,), (1350321938,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104327 , 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=22104316 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 (22104327) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104328 , 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=22104316 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 (22104328) result : ((1350320453,), (1350320454,), (1350320455,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104329 , 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=22104316 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 (22104329) result : ((1350320444,), (1350320445,), (1350320463,), (1350320660,), (1350320844,), (1350320846,), (1350320847,), (1350320848,), (1350321134,), (1350321686,), (1350321914,), (1350321915,), (1350321916,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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 22104330 , 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=22104316 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 (22104330) result : ((1350321053,), (1350321204,), (1350321208,), (1350321585,), (1350321586,), (1350321940,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22104316) result : ((1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) 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 (1350321300) 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`=22104316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','autre_refus','Carton_brun','kraft','mal_croppe','cartonnette','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) 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`=22104316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','autre_refus','Carton_brun','kraft','mal_croppe','cartonnette','metal','plastique','environnement','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 22104316, 'sub_port_id': 22104331, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587188, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'autre_refus': {'main_port_id': 22104316, 'sub_port_id': 22104332, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587189, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'mal_croppe': {'main_port_id': 22104316, 'sub_port_id': 22104333, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587190, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'environnement': {'main_port_id': 22104316, 'sub_port_id': 22104334, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587191, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'flou': {'main_port_id': 22104316, 'sub_port_id': 22104335, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587192, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'metal': {'main_port_id': 22104316, 'sub_port_id': 22104336, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587193, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'Carton_gris': {'main_port_id': 22104316, 'sub_port_id': 22104337, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587194, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'cartonnette': {'main_port_id': 22104316, 'sub_port_id': 22104338, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587195, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'papier': {'main_port_id': 22104316, 'sub_port_id': 22104339, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587196, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'kraft': {'main_port_id': 22104316, 'sub_port_id': 22104340, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587197, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22104316, 'sub_port_id': 22104341, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587198, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}, 'Carton_brun': {'main_port_id': 22104316, 'sub_port_id': 22104342, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14587199, 'last_updated_at': datetime.datetime(2025, 4, 7, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 14, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104323 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104325 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104338,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104326 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104339,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104327 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104340,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104328 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104341,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104329 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22104342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22104330 lien utilise dans velours : https://www.fotonower.com/velours/22104331,22104332,22104333,22104334,22104335,22104336,22104337,22104338,22104339,22104340,22104341,22104342?tags=plastique,autre_refus,mal_croppe,environnement,flou,metal,Carton_gris,cartonnette,papier,kraft,Teint_Dans_La_Masse,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22104316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] map_info['map_portfolio_photo'] : {22104316: [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749, 1350321676, 1350321674, 1350321615, 1350321609, 1350321604, 1350321599, 1350321544, 1350321540, 1350321526, 1350321300, 1350321293, 1350321287, 1350321279, 1350321254, 1350321019, 1350321012, 1350321006, 1350320998, 1350320840, 1350320816, 1350320791, 1350320646, 1350320640, 1350320636, 1350320631, 1350320625, 1350320501, 1350320495, 1350320492, 1350320362, 1350320333, 1350320304, 1350320277, 1350320251, 1350320132, 1350320104, 1350319890, 1350319867, 1350319824, 1350319788, 1350319606, 1350319581, 1350319545, 1350319474, 1350319076, 1350319050]} final : False mtd_id 4302 list_pids : [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] Looping around the photos to save general results len do output : 1 /22104316. 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, '2729049') ('4302', '22104316', '1350322007', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '22104316', "{'plastique': 22104319, 'autre_refus': 22104320, 'mal_croppe': 22104321, 'environnement': 22104322, 'flou': 22104323, 'metal': 22104324, 'Carton_gris': 22104325, 'cartonnette': 22104326, 'papier': 22104327, 'kraft': 22104328, 'Teint_Dans_La_Masse': 22104329, 'Carton_brun': 22104330}", None, None, None, None, '2729049'), ('4302', '22104316', '1350322007', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049')] time used for this insertion : 0.01574540138244629 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5306499004364014 time spend to save output : 0.016045570373535156 total time spend for step 1 : 0.5466954708099365 step2:final Mon Apr 7 14:16:56 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 (22104316) 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 22104316 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350319076,1350319050,1350319606,1350319581,1350319545,1350319474,1350319890,1350319867,1350319824,1350319788,1350320132,1350320104,1350320362,1350320333,1350320304,1350320277,1350320251,1350320501,1350320495,1350320492,1350320646,1350320640,1350320636,1350320631,1350320625,1350320840,1350320816,1350320791,1350321019,1350321012,1350321006,1350320998,1350321300,1350321293,1350321287,1350321279,1350321254,1350321544,1350321540,1350321526,1350321615,1350321609,1350321604,1350321599,1350321676,1350321674,1350321898,1350321867,1350321836,1350321804,1350321773,1350321749,1350322007,1350322001,1350321995,1350321990,1350321986,1350321983); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22104316]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} new output for save of step final : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] map_info['map_portfolio_photo'] : {22104316: [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749, 1350321676, 1350321674, 1350321615, 1350321609, 1350321604, 1350321599, 1350321544, 1350321540, 1350321526, 1350321300, 1350321293, 1350321287, 1350321279, 1350321254, 1350321019, 1350321012, 1350321006, 1350320998, 1350320840, 1350320816, 1350320791, 1350320646, 1350320640, 1350320636, 1350320631, 1350320625, 1350320501, 1350320495, 1350320492, 1350320362, 1350320333, 1350320304, 1350320277, 1350320251, 1350320132, 1350320104, 1350319890, 1350319867, 1350319824, 1350319788, 1350319606, 1350319581, 1350319545, 1350319474, 1350319076, 1350319050]} final : False mtd_id 4302 list_pids : [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] Looping around the photos to save general results len do output : 12 /1350322007.Didn't retrieve data . /1350322001.Didn't retrieve data . /1350321995.Didn't retrieve data . /1350321990.Didn't retrieve data . /1350321986.Didn't retrieve data . /1350321983.Didn't retrieve data . /1350321898.Didn't retrieve data . /1350321867.Didn't retrieve data . /1350321836.Didn't retrieve data . /1350321804.Didn't retrieve data . /1350321773.Didn't retrieve data . /1350321749.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, '2729049') ('4302', '22104316', '1350322007', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '22104316', '1350322007', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350322001', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321995', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321990', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321986', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321983', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321898', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321867', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321836', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321804', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321773', '0.0436942810191844', None, None, None, None, '2729049'), ('4302', '22104316', '1350321749', '0.0436942810191844', None, None, None, None, '2729049')] time used for this insertion : 0.015531539916992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07898879051208496 time spend to save output : 0.01600480079650879 total time spend for step 2 : 0.09499359130859375 step3:velours_tree Mon Apr 7 14:16:56 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 : {22104316: [{'plastique': 22104319, 'autre_refus': 22104320, 'mal_croppe': 22104321, 'environnement': 22104322, 'flou': 22104323, 'metal': 22104324, 'Carton_gris': 22104325, 'cartonnette': 22104326, 'papier': 22104327, 'kraft': 22104328, 'Teint_Dans_La_Masse': 22104329, 'Carton_brun': 22104330}]} input_args_next_step : {22104316: ()} output_args : {22104316: [{'plastique': 22104319, 'autre_refus': 22104320, 'mal_croppe': 22104321, 'environnement': 22104322, 'flou': 22104323, 'metal': 22104324, 'Carton_gris': 22104325, 'cartonnette': 22104326, 'papier': 22104327, 'kraft': 22104328, 'Teint_Dans_La_Masse': 22104329, 'Carton_brun': 22104330}]} args : 22104316 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': 22104319, 'autre_refus': 22104320, 'mal_croppe': 22104321, 'environnement': 22104322, 'flou': 22104323, 'metal': 22104324, 'Carton_gris': 22104325, 'cartonnette': 22104326, 'papier': 22104327, 'kraft': 22104328, 'Teint_Dans_La_Masse': 22104329, 'Carton_brun': 22104330},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22104316) 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([22104316]) 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.3691532611846924 time spend to save output : 0.00011301040649414062 total time spend for step 3 : 0.3692662715911865 step4:send_mail_cod Mon Apr 7 14:16:57 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 : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} input_args_next_step : {1350322007: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350322007 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350322001 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321995 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321990 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321986 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321983 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321898 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321867 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321836 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321804 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321773 depend.output_id : 0 input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ()} output_args : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',)} args : 1350321749 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 : {22104316: [{'plastique': 22104319, 'autre_refus': 22104320, 'mal_croppe': 22104321, 'environnement': 22104322, 'flou': 22104323, 'metal': 22104324, 'Carton_gris': 22104325, 'cartonnette': 22104326, 'papier': 22104327, 'kraft': 22104328, 'Teint_Dans_La_Masse': 22104329, 'Carton_brun': 22104330}]} input_args_next_step : {1350322007: ('0.0436942810191844',), 1350322001: ('0.0436942810191844',), 1350321995: ('0.0436942810191844',), 1350321990: ('0.0436942810191844',), 1350321986: ('0.0436942810191844',), 1350321983: ('0.0436942810191844',), 1350321898: ('0.0436942810191844',), 1350321867: ('0.0436942810191844',), 1350321836: ('0.0436942810191844',), 1350321804: ('0.0436942810191844',), 1350321773: ('0.0436942810191844',), 1350321749: ('0.0436942810191844',), 22104316: ()} output_args : {22104316: [{'plastique': 22104319, 'autre_refus': 22104320, 'mal_croppe': 22104321, 'environnement': 22104322, 'flou': 22104323, 'metal': 22104324, 'Carton_gris': 22104325, 'cartonnette': 22104326, 'papier': 22104327, 'kraft': 22104328, 'Teint_Dans_La_Masse': 22104329, 'Carton_brun': 22104330}]} args : 22104316 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 :13, first value : ('0.0436942810191844',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22104316) 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 (1350322007,1350322001,1350321995,1350321990,1350321986,1350321983,1350321898,1350321867,1350321836,1350321804,1350321773,1350321749) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350321749 begin to download photo : 1350321836 begin to download photo : 1350321983 begin to download photo : 1350321995 download finish for photo 1350321749 begin to download photo : 1350321773 download finish for photo 1350321995 begin to download photo : 1350322001 download finish for photo 1350321836 begin to download photo : 1350321867 download finish for photo 1350321983 begin to download photo : 1350321986 download finish for photo 1350321773 begin to download photo : 1350321804 download finish for photo 1350322001 begin to download photo : 1350322007 download finish for photo 1350321867 begin to download photo : 1350321898 download finish for photo 1350321986 begin to download photo : 1350321990 download finish for photo 1350321804 download finish for photo 1350322007 download finish for photo 1350321898 download finish for photo 1350321990 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P22104316_07-04-2025_14_16_57.pdf 22104319 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=22104319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350320376: '1744027492_1059966_1350319824_46be85768e2ecc759d935fd065becca9_rle_crop_3749023409_0.png', 1350320452: '1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025463_0.png', 1350320466: '1744027531_1060748_1350319606_b1658b64707e1d4a8431b55b335ea1fc_rle_crop_3749025622_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5a694fdede724fe4824ead4561b54070_84667315.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/faf00b15f15d3ce0734ea6e8586833b5_44528876.png change filename to text .imagette221043191744028217/ imagette221043191744028217/1744027531_1060748_1350319606_b1658b64707e1d4a8431b55b335ea1fc_rle_crop_3749025622_0.png.png imagette221043191744028217/1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025463_0.png.png imagette221043191744028217/1744027492_1059966_1350319824_46be85768e2ecc759d935fd065becca9_rle_crop_3749023409_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/4119defbf25cfa2a678d43f699453135_48043456.png imagette221043191744028217 22104320 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=22104320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350320851: '1744027652_1062755_1350320304_a0e5b28c80d9142594b9268404cd5a21_rle_crop_3749027039_0.png', 1350321168: '1744027754_1064753_1350320640_8d4360b17382b46aef587e8c411a054c_rle_crop_3749027967_0.png', 1350321170: '1744027754_1064753_1350320636_41d5c13b67ea22090b4fccb565d762c3_rle_crop_3749027984_0.png', 1350321567: '1744027872_1067093_1350321012_2bb2047a41164d6acdfa20ba6f787ada_rle_crop_3749029260_0.png', 1350321568: '1744027872_1067093_1350321006_00b30a06d71c187a2ae283643dfcd073_rle_crop_3749029269_0.png', 1350321732: '1744027992_1069203_1350321615_a6bf660121ef017e46d05c2dac8fc219_rle_crop_3749032233_0.png', 1350321733: '1744027992_1069203_1350321615_a6bf660121ef017e46d05c2dac8fc219_rle_crop_3749032230_0.png', 1350321744: '1744028014_1069668_1350321300_6582d271d2e0f7701c5b36d7b2f896b0_rle_crop_3749032408_0.png', 1350321924: '1744028033_1070008_1350321279_625aa7baa56affef6260fb604762a6eb_rle_crop_3749032813_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/38d4627f586a65bba35f183c687180b8_96347758.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/16fe4de7e03229edf5f70656a3908d69_83560090.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c41b1001958798edaa9d11153feaaf5f_55722236.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/8f46d06a1c3106116d094ad3231247bd_58282482.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/94de9db4e1f64fedff85383d74398e8b_29401263.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c4a89c4f8f2ccba4a437c03c0b288824_21439518.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3606b9217fadd6945a0f06d16fbbab96_1601978.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9ec54b5e954affe0e95185a6a3f9d3ba_48299477.png change filename to text .imagette221043201744028218/ imagette221043201744028218/1744027872_1067093_1350321012_2bb2047a41164d6acdfa20ba6f787ada_rle_crop_3749029260_0.png.png imagette221043201744028218/1744027652_1062755_1350320304_a0e5b28c80d9142594b9268404cd5a21_rle_crop_3749027039_0.png.png imagette221043201744028218/1744027754_1064753_1350320640_8d4360b17382b46aef587e8c411a054c_rle_crop_3749027967_0.png.png imagette221043201744028218/1744027992_1069203_1350321615_a6bf660121ef017e46d05c2dac8fc219_rle_crop_3749032233_0.png.png imagette221043201744028218/1744028014_1069668_1350321300_6582d271d2e0f7701c5b36d7b2f896b0_rle_crop_3749032408_0.png.png imagette221043201744028218/1744027754_1064753_1350320636_41d5c13b67ea22090b4fccb565d762c3_rle_crop_3749027984_0.png.png imagette221043201744028218/1744027992_1069203_1350321615_a6bf660121ef017e46d05c2dac8fc219_rle_crop_3749032230_0.png.png imagette221043201744028218/1744027872_1067093_1350321006_00b30a06d71c187a2ae283643dfcd073_rle_crop_3749029269_0.png.png imagette221043201744028218/1744028033_1070008_1350321279_625aa7baa56affef6260fb604762a6eb_rle_crop_3749032813_0.png.png imagette221043211744028218/ imagette221043231744028218/ imagette221043241744028218/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/204e6d07fca1a8f48f1708c898f2bd4d_84305369.png imagette221043201744028218 22104321 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=22104321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221043211744028218 22104323 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=22104323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221043231744028218 22104324 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=22104324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221043241744028218 22104326 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=22104326 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350320366: '1744027492_1059966_1350319867_87d353bb33b81b3dda6f6b4739e33779_rle_crop_3749023388_0.png', 1350320368: '1744027492_1059966_1350319867_87d353bb33b81b3dda6f6b4739e33779_rle_crop_3749023387_0.png', 1350320449: '1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025519_0.png', 1350320464: '1744027531_1060748_1350319606_b1658b64707e1d4a8431b55b335ea1fc_rle_crop_3749025618_0.png', 1350320854: '1744027652_1062755_1350320251_364cba69eed3b122bfbd4413c8a1e9ef_rle_crop_3749027083_0.png', 1350321199: '1744027754_1064753_1350320840_b4e4d53a624083f36707605b9362baa1_rle_crop_3749027949_0.png', 1350321200: '1744027754_1064753_1350320840_b4e4d53a624083f36707605b9362baa1_rle_crop_3749027945_0.png', 1350321201: '1744027754_1064753_1350320640_8d4360b17382b46aef587e8c411a054c_rle_crop_3749027962_0.png', 1350321202: '1744027754_1064753_1350320625_88de859c205f9248f84b33f00c526b6f_rle_crop_3749028011_0.png', 1350321735: '1744027992_1069203_1350321615_a6bf660121ef017e46d05c2dac8fc219_rle_crop_3749032232_0.png', 1350321938: '1744028033_1070008_1350321279_625aa7baa56affef6260fb604762a6eb_rle_crop_3749032812_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2ea6223cfe8a0559824864a6c51172cb_62379401.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/245e8c034e94b6dfbf9749e3a5768b54_36826277.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/428e78fc43d4cadc4d4a5952d935341c_56035712.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/433c93dddf579c8b717f16ebd20e140e_50954478.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9bfa13465c5dc84d840b9a5295ab372b_59710719.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1917e605cd0aaa6ccbae44d5072cdbd0_72967608.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/630fb6fdb54a6a2491ee2a50df8b31dd_9007058.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b48cd907bbed35298c88086f15b97df5_48227916.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f0cd725a611ca84696bf44527f5ff6d1_36046759.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2138adf28fac6d19e7539eafe027a539_98987481.png change filename to text .imagette221043261744028218/ imagette221043261744028218/1744027754_1064753_1350320840_b4e4d53a624083f36707605b9362baa1_rle_crop_3749027945_0.png.png imagette221043261744028218/1744027652_1062755_1350320251_364cba69eed3b122bfbd4413c8a1e9ef_rle_crop_3749027083_0.png.png imagette221043261744028218/1744027992_1069203_1350321615_a6bf660121ef017e46d05c2dac8fc219_rle_crop_3749032232_0.png.png imagette221043261744028218/1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025519_0.png.png imagette221043261744028218/1744027754_1064753_1350320625_88de859c205f9248f84b33f00c526b6f_rle_crop_3749028011_0.png.png imagette221043261744028218/1744027492_1059966_1350319867_87d353bb33b81b3dda6f6b4739e33779_rle_crop_3749023387_0.png.png imagette221043261744028218/1744027754_1064753_1350320840_b4e4d53a624083f36707605b9362baa1_rle_crop_3749027949_0.png.png imagette221043261744028218/1744027531_1060748_1350319606_b1658b64707e1d4a8431b55b335ea1fc_rle_crop_3749025618_0.png.png imagette221043261744028218/1744027492_1059966_1350319867_87d353bb33b81b3dda6f6b4739e33779_rle_crop_3749023388_0.png.png imagette221043261744028218/1744027754_1064753_1350320640_8d4360b17382b46aef587e8c411a054c_rle_crop_3749027962_0.png.png imagette221043261744028218/1744028033_1070008_1350321279_625aa7baa56affef6260fb604762a6eb_rle_crop_3749032812_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e55c429d4745d9677c6d1b33db0e9ad0_97512286.png imagette221043261744028218 22104328 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=22104328 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350320453: '1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025464_0.png', 1350320454: '1744027511_1060249_1350319545_39f6f7d40757a7bb841d6f7c4b53496b_rle_crop_3749025490_0.png', 1350320455: '1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025521_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5063a16d53654ab126f498fae3c02855_40475538.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2899ca65b220577f5c0eaf05d43a7922_11072493.png change filename to text .imagette221043281744028219/ imagette221043281744028219/1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025464_0.png.png imagette221043281744028219/1744027511_1060249_1350319545_39f6f7d40757a7bb841d6f7c4b53496b_rle_crop_3749025490_0.png.png imagette221043281744028219/1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025521_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1418b2e7c6fa8b9e0e68783c9e6d242d_9252222.png imagette221043281744028219 22104325 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=22104325 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350320446: '1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025461_0.png', 1350320447: '1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025518_0.png', 1350320852: '1744027652_1062755_1350320277_789aeb0ea10524fd330f2891a7ad7232_rle_crop_3749027061_0.png', 1350320853: '1744027652_1062755_1350320277_789aeb0ea10524fd330f2891a7ad7232_rle_crop_3749027066_0.png', 1350321183: '1744027754_1064753_1350320631_b013c67b345d750b91e4d9371cce9b64_rle_crop_3749027995_0.png', 1350321581: '1744027872_1067093_1350321012_2bb2047a41164d6acdfa20ba6f787ada_rle_crop_3749029261_0.png', 1350321582: '1744027872_1067093_1350321006_00b30a06d71c187a2ae283643dfcd073_rle_crop_3749029268_0.png', 1350321583: '1744027872_1067093_1350320998_5242771eb91b0da7c1d63a89ab7bef3e_rle_crop_3749029277_0.png', 1350321584: '1744027872_1067093_1350320998_5242771eb91b0da7c1d63a89ab7bef3e_rle_crop_3749029275_0.png', 1350321745: '1744028014_1069668_1350321300_6582d271d2e0f7701c5b36d7b2f896b0_rle_crop_3749032412_0.png', 1350321932: '1744028033_1070008_1350321293_d65f4841e18aba8d925295a763f20b8a_rle_crop_3749032763_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f196f8335037bb146fdbc2fd50d1fb45_15209880.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b71e0dfa70c3d44033fcca6622a68c4a_52660802.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3932ab189bfae1478ba97f9631761ba6_16275658.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/630c6b8edffac0974635a305c58b19a9_25013795.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e993b6b89429ce628484ab44ea9b18c3_92909071.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/923e6ec3bb03fc4de7d8305d098754c8_47811170.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/637211424883411a4a9d22d51541684f_86401109.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/8fde1ccc2357a24c3048bb79fec6e54c_40921108.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a363f2f7d9d05df9480911927e80fa2c_20236586.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/86c6352f694e57013d143bc051a5dcd1_63090453.png change filename to text .imagette221043251744028219/ imagette221043251744028219/1744028014_1069668_1350321300_6582d271d2e0f7701c5b36d7b2f896b0_rle_crop_3749032412_0.png.png imagette221043251744028219/1744027872_1067093_1350320998_5242771eb91b0da7c1d63a89ab7bef3e_rle_crop_3749029275_0.png.png imagette221043251744028219/1744027872_1067093_1350320998_5242771eb91b0da7c1d63a89ab7bef3e_rle_crop_3749029277_0.png.png imagette221043251744028219/1744027872_1067093_1350321006_00b30a06d71c187a2ae283643dfcd073_rle_crop_3749029268_0.png.png imagette221043251744028219/1744027872_1067093_1350321012_2bb2047a41164d6acdfa20ba6f787ada_rle_crop_3749029261_0.png.png imagette221043251744028219/1744027652_1062755_1350320277_789aeb0ea10524fd330f2891a7ad7232_rle_crop_3749027061_0.png.png imagette221043251744028219/1744027652_1062755_1350320277_789aeb0ea10524fd330f2891a7ad7232_rle_crop_3749027066_0.png.png imagette221043251744028219/1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025461_0.png.png imagette221043251744028219/1744028033_1070008_1350321293_d65f4841e18aba8d925295a763f20b8a_rle_crop_3749032763_0.png.png imagette221043251744028219/1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025518_0.png.png imagette221043251744028219/1744027754_1064753_1350320631_b013c67b345d750b91e4d9371cce9b64_rle_crop_3749027995_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/eb4550268421f44df432339d11b8eddd_66124930.png imagette221043251744028219 22104329 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=22104329 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350320444: '1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025466_0.png', 1350320445: '1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025523_0.png', 1350320463: '1744027531_1060748_1350319606_b1658b64707e1d4a8431b55b335ea1fc_rle_crop_3749025616_0.png', 1350320660: '1744027633_1062363_1350320362_ad7ac70c5f0c4c29d14c8c5326283101_rle_crop_3749026777_0.png', 1350320844: '1744027652_1062755_1350320501_505bc99e8c8405cafda8251a09c2e7dc_rle_crop_3749026991_0.png', 1350320846: '1744027652_1062755_1350320501_505bc99e8c8405cafda8251a09c2e7dc_rle_crop_3749026992_0.png', 1350320847: '1744027652_1062755_1350320333_9229ff2810281c77a643792c6af374d9_rle_crop_3749027023_0.png', 1350320848: '1744027652_1062755_1350320304_a0e5b28c80d9142594b9268404cd5a21_rle_crop_3749027042_0.png', 1350321134: '1744027754_1064753_1350320631_b013c67b345d750b91e4d9371cce9b64_rle_crop_3749028000_0.png', 1350321686: '1744027972_1068896_1350321609_9e1c1d96839a40d684b63d6864f903c7_rle_crop_3749031765_0.png', 1350321914: '1744028033_1070008_1350321544_ba5ba19a2ae6cbd171a614c13349cbb9_rle_crop_3749032675_0.png', 1350321915: '1744028033_1070008_1350321279_625aa7baa56affef6260fb604762a6eb_rle_crop_3749032816_0.png', 1350321916: '1744028033_1070008_1350321254_233a38639fa307929e6a8e0dd1b2f38e_rle_crop_3749032848_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/09ab57108080fc37e5d5ba7bdd7543b7_75883233.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/054d5be30d742b2bea5c3705fa3fbc34_38131917.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c4c95638431c6190944f1882a2fdabe6_15436204.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3f511db07398fbfdbbd4220f189c330f_58936435.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/37dd27a5b10d7ccadcbf7472be2b2df0_28945973.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/59057fd6b1b2f37843ccf48b3f3e7021_43483033.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/24553f1dfdbcb7f9895642ffce195724_14552044.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/fc2595274ef0a74cf24e1bcc922fc049_23697721.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c03d578b1eb8d72b65df6f0225931e83_33980710.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6d24fb43e622b34ed3674e6b36f4414b_77952471.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/efca96f5ee53c8781dc5d162380d1b70_11186572.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1915bf44082d44047bfd99a23b3c384d_72420305.png change filename to text .imagette221043291744028220/ imagette221043291744028220/1744027652_1062755_1350320501_505bc99e8c8405cafda8251a09c2e7dc_rle_crop_3749026992_0.png.png imagette221043291744028220/1744027511_1060249_1350319581_63c9c33d3ba7c526463013c4b707ad72_rle_crop_3749025466_0.png.png imagette221043291744028220/1744028033_1070008_1350321544_ba5ba19a2ae6cbd171a614c13349cbb9_rle_crop_3749032675_0.png.png imagette221043291744028220/1744027652_1062755_1350320304_a0e5b28c80d9142594b9268404cd5a21_rle_crop_3749027042_0.png.png imagette221043291744028220/1744027652_1062755_1350320333_9229ff2810281c77a643792c6af374d9_rle_crop_3749027023_0.png.png imagette221043291744028220/1744027633_1062363_1350320362_ad7ac70c5f0c4c29d14c8c5326283101_rle_crop_3749026777_0.png.png imagette221043291744028220/1744027531_1060748_1350319606_b1658b64707e1d4a8431b55b335ea1fc_rle_crop_3749025616_0.png.png imagette221043291744028220/1744027754_1064753_1350320631_b013c67b345d750b91e4d9371cce9b64_rle_crop_3749028000_0.png.png imagette221043291744028220/1744027652_1062755_1350320501_505bc99e8c8405cafda8251a09c2e7dc_rle_crop_3749026991_0.png.png imagette221043291744028220/1744028033_1070008_1350321279_625aa7baa56affef6260fb604762a6eb_rle_crop_3749032816_0.png.png imagette221043291744028220/1744027511_1060249_1350319474_0aa953a66e7680e17045b1e988565091_rle_crop_3749025523_0.png.png imagette221043291744028220/1744028033_1070008_1350321254_233a38639fa307929e6a8e0dd1b2f38e_rle_crop_3749032848_0.png.png imagette221043291744028220/1744027972_1068896_1350321609_9e1c1d96839a40d684b63d6864f903c7_rle_crop_3749031765_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/fa519517f9e1b2b65fe2e3de595d74ea_13309813.png imagette221043291744028220 22104330 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=22104330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350321053: '1744027766_371290_1350320646_3809b9ff5e005b172fc1f59cd7a1da10_rle_crop_3749027926_0.png', 1350321204: '1744027754_1064753_1350320840_b4e4d53a624083f36707605b9362baa1_rle_crop_3749027950_0.png', 1350321208: '1744027754_1064753_1350320636_41d5c13b67ea22090b4fccb565d762c3_rle_crop_3749027989_0.png', 1350321585: '1744027872_1067093_1350321012_2bb2047a41164d6acdfa20ba6f787ada_rle_crop_3749029262_0.png', 1350321586: '1744027872_1067093_1350320998_5242771eb91b0da7c1d63a89ab7bef3e_rle_crop_3749029278_0.png', 1350321940: '1744028033_1070008_1350321293_d65f4841e18aba8d925295a763f20b8a_rle_crop_3749032762_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ad4ff8ae4b781391ec86737f2712ef82_22151693.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/8f1562525f0459dcd032891e9bd82359_1130189.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/fe6212df26468c28e38317834a5b6c3d_59728858.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/83da5e3f8cd1450c50c77bc1c9c4cb9b_25342624.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0433174c523dc65d81f54781b3f2a52d_92792920.png change filename to text .imagette221043301744028220/ imagette221043301744028220/1744027754_1064753_1350320636_41d5c13b67ea22090b4fccb565d762c3_rle_crop_3749027989_0.png.png imagette221043301744028220/1744027872_1067093_1350320998_5242771eb91b0da7c1d63a89ab7bef3e_rle_crop_3749029278_0.png.png imagette221043301744028220/1744027872_1067093_1350321012_2bb2047a41164d6acdfa20ba6f787ada_rle_crop_3749029262_0.png.png imagette221043301744028220/1744028033_1070008_1350321293_d65f4841e18aba8d925295a763f20b8a_rle_crop_3749032762_0.png.png imagette221043301744028220/1744027766_371290_1350320646_3809b9ff5e005b172fc1f59cd7a1da10_rle_crop_3749027926_0.png.png imagette221043301744028220/1744027754_1064753_1350320840_b4e4d53a624083f36707605b9362baa1_rle_crop_3749027950_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5cf05c227766fdb795cff506cfc0a6fd_90484071.png imagette221043301744028220 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22104316 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22104331,22104332,22104333,22104334,22104335,22104336,22104337,22104338,22104339,22104340,22104341,22104342?tags=plastique,autre_refus,mal_croppe,environnement,flou,metal,Carton_gris,cartonnette,papier,kraft,Teint_Dans_La_Masse,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350322007] : ('0.0436942810191844',) no score found for photo 1350322007 We are sending mail with results at report@fotonower.com args[1350322001] : ('0.0436942810191844',) no score found for photo 1350322001 We are sending mail with results at report@fotonower.com args[1350321995] : ('0.0436942810191844',) no score found for photo 1350321995 We are sending mail with results at report@fotonower.com args[1350321990] : ('0.0436942810191844',) no score found for photo 1350321990 We are sending mail with results at report@fotonower.com args[1350321986] : ('0.0436942810191844',) no score found for photo 1350321986 We are sending mail with results at report@fotonower.com args[1350321983] : ('0.0436942810191844',) no score found for photo 1350321983 We are sending mail with results at report@fotonower.com args[1350321898] : ('0.0436942810191844',) no score found for photo 1350321898 We are sending mail with results at report@fotonower.com args[1350321867] : ('0.0436942810191844',) no score found for photo 1350321867 We are sending mail with results at report@fotonower.com args[1350321836] : ('0.0436942810191844',) no score found for photo 1350321836 We are sending mail with results at report@fotonower.com args[1350321804] : ('0.0436942810191844',) no score found for photo 1350321804 We are sending mail with results at report@fotonower.com args[1350321773] : ('0.0436942810191844',) no score found for photo 1350321773 We are sending mail with results at report@fotonower.com args[1350321749] : ('0.0436942810191844',) no score found for photo 1350321749 We are sending mail with results at report@fotonower.com refus_total : 0.0436942810191844 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=22104316 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_P22104316_07-04-2025_14_16_57.pdf results_Auto_P22104316_07-04-2025_14_16_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104316_07-04-2025_14_16_57.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','22104316','results_Auto_P22104316_07-04-2025_14_16_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104316_07-04-2025_14_16_57.pdf','pdf','','0.3','0.0436942810191844') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22104316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] map_info['map_portfolio_photo'] : {22104316: [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749, 1350321676, 1350321674, 1350321615, 1350321609, 1350321604, 1350321599, 1350321544, 1350321540, 1350321526, 1350321300, 1350321293, 1350321287, 1350321279, 1350321254, 1350321019, 1350321012, 1350321006, 1350320998, 1350320840, 1350320816, 1350320791, 1350320646, 1350320640, 1350320636, 1350320631, 1350320625, 1350320501, 1350320495, 1350320492, 1350320362, 1350320333, 1350320304, 1350320277, 1350320251, 1350320132, 1350320104, 1350319890, 1350319867, 1350319824, 1350319788, 1350319606, 1350319581, 1350319545, 1350319474, 1350319076, 1350319050]} final : False mtd_id 4302 list_pids : [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] 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, '2729049') ('4302', '22104316', '1350322007', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '22104316', '1350322007', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049')] time used for this insertion : 0.015852689743041992 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.133399724960327 time spend to save output : 0.016144752502441406 total time spend for step 4 : 5.1495444774627686 step5:split_time_score Mon Apr 7 14:17:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22104316'] 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 : [('22104316',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22104316) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350321749: {'path': 'temp/1744028217_690958_1350321749_b2a0f0d891f98c7932f927ab3a0a9fcb.jpg', 'extension': 'jpg'}, 1350321773: {'path': 'temp/1744028217_690958_1350321773_e7530919bb86fa8be56c9b72bc437b3c.jpg', 'extension': 'jpg'}, 1350321804: {'path': 'temp/1744028217_690958_1350321804_513e8b554e49f202770770ea55d11c78.jpg', 'extension': 'jpg'}, 1350321995: {'path': 'temp/1744028217_690958_1350321995_ebdbbb6b1abbbb1b3191c70dbc37139d.jpg', 'extension': 'jpg'}, 1350322001: {'path': 'temp/1744028217_690958_1350322001_618b7ca68a02584faa7b7fe15b843b44.jpg', 'extension': 'jpg'}, 1350322007: {'path': 'temp/1744028217_690958_1350322007_93e4cbb1e6cfd1c1ec770e9675e5b5d0.jpg', 'extension': 'jpg'}, 1350321836: {'path': 'temp/1744028217_690958_1350321836_8735f6d6ca22cf6a2bd8c790354578be.jpg', 'extension': 'jpg'}, 1350321867: {'path': 'temp/1744028217_690958_1350321867_948f4cc081b7af34a61e624b7dfb2168.jpg', 'extension': 'jpg'}, 1350321898: {'path': 'temp/1744028217_690958_1350321898_647f06419effa3fa0c096e0873a9cc99.jpg', 'extension': 'jpg'}, 1350321983: {'path': 'temp/1744028217_690958_1350321983_e91a7023dc39b529d21f64bd7e24e7bc.jpg', 'extension': 'jpg'}, 1350321986: {'path': 'temp/1744028217_690958_1350321986_15f4393a100449456ce477f6e806ea5b.jpg', 'extension': 'jpg'}, 1350321990: {'path': 'temp/1744028217_690958_1350321990_005c38158959207ab4b262fb10d8ecaa.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 = 22104316; (('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 = 22104316 group by h (('14', 58),) 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=22104316 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 (22104316) 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 (22104316) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07042025 22104316 Nombre de photos uploadées : 58 / 23040 (0%) 07042025 22104316 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 07042025 22104316 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1350319076, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b2576f407d2b391d9a52cfb40bd0298b.jpg', 'username': None, 'uploaded_at': 1744027268, 'text': 'image_07042025_14_00_14_010212m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350319050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5121fef8b331ab698a14dc3e7a2562a0.jpg', 'username': None, 'uploaded_at': 1744027268, 'text': 'image_07042025_14_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350319606, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b1658b64707e1d4a8431b55b335ea1fc.jpg', 'username': None, 'uploaded_at': 1744027327, 'text': 'image_07042025_14_00_45_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350319581, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/63c9c33d3ba7c526463013c4b707ad72.jpg', 'username': None, 'uploaded_at': 1744027327, 'text': 'image_07042025_14_01_05_010160m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026493072509765625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22104316, '2025-04-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1719143,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029416799545288086 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= 1719143 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728018, 'mtr_portfolio_id': 22103934, 'dashboard_result_id': 9906513, '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_P22103934_07-04-2025_14_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22103939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22103940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22103941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22103942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22103943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22103944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22103945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22103946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22103947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22103948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22103949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22103950, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728018, 'mtr_portfolio_id': 22104316, 'dashboard_result_id': 9906514, '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_P22104316_07-04-2025_14_14_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104330, '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 = 22103934 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': 2729022, 'mtr_portfolio_id': 22103934, 'created_at': datetime.datetime(2025, 4, 7, 14, 2, 59), 'result': '0.06117697663142463', 'result_long': None, 'result_double': None}] Qualite : 0.06117697663142463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22103934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22103934_07-04-2025_14_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22103934 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_P22103934_07-04-2025_14_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22103939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22103940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22103941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22103942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22103943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22103944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22103945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22103946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22103947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22103948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22103949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22103950, 'pht': 3726}}" where mtr_portfolio_id = 22103934 and dashboard_run_id = 1728018 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`=22103934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9906513, 0.06117697663142463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22103934_07-04-2025_14_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22103939, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22103940, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22103941, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22103942, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22103943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22103944, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22103945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22103946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22103947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22103948, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22103949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22103950, '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 = 22104316 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': 2729049, 'mtr_portfolio_id': 22104316, 'created_at': datetime.datetime(2025, 4, 7, 14, 16, 56), 'result': '0.0436942810191844', 'result_long': None, 'result_double': None}] Qualite : 0.0436942810191844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22104316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104316_07-04-2025_14_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22104316 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_P22104316_07-04-2025_14_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104330, 'pht': 3726}}" where mtr_portfolio_id = 22104316 and dashboard_run_id = 1728018 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`=22104316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9906514, 0.0436942810191844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104316_07-04-2025_14_16_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104319, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104320, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104322, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104323, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104324, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104328, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104330, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22103934,22104316) result : ((1350315577,), (1350315591,), (1350315601,), (1350315931,), (1350316474,), (1350316498,), (1350316724,), (1350316752,), (1350316755,), (1350316787,), (1350316794,), (1350316800,), (1350316848,), (1350316850,), (1350316853,), (1350317018,), (1350317047,), (1350317110,), (1350317186,), (1350317273,), (1350317361,), (1350318398,), (1350318437,), (1350319142,), (1350319050,), (1350319076,), (1350319474,), (1350319545,), (1350319581,), (1350319606,), (1350319788,), (1350319824,), (1350319867,), (1350319890,), (1350320104,), (1350320132,), (1350320251,), (1350320277,), (1350320304,), (1350320333,), (1350320362,), (1350320492,), (1350320495,), (1350320501,), (1350320625,), (1350320631,), (1350320636,), (1350320640,), (1350320646,), (1350320791,), (1350320816,), (1350320840,), (1350320998,), (1350321006,), (1350321012,), (1350321019,), (1350321254,), (1350321279,), (1350321287,), (1350321293,), (1350321300,), (1350321526,), (1350321540,), (1350321544,), (1350321599,), (1350321604,), (1350321609,), (1350321615,), (1350321674,), (1350321676,), (1350321749,), (1350321773,), (1350321804,), (1350321836,), (1350321867,), (1350321898,), (1350321983,), (1350321986,), (1350321990,), (1350321995,), (1350322001,), (1350322007,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07042025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22104316]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] map_info['map_portfolio_photo'] : {22104316: [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749, 1350321676, 1350321674, 1350321615, 1350321609, 1350321604, 1350321599, 1350321544, 1350321540, 1350321526, 1350321300, 1350321293, 1350321287, 1350321279, 1350321254, 1350321019, 1350321012, 1350321006, 1350320998, 1350320840, 1350320816, 1350320791, 1350320646, 1350320640, 1350320636, 1350320631, 1350320625, 1350320501, 1350320495, 1350320492, 1350320362, 1350320333, 1350320304, 1350320277, 1350320251, 1350320132, 1350320104, 1350319890, 1350319867, 1350319824, 1350319788, 1350319606, 1350319581, 1350319545, 1350319474, 1350319076, 1350319050]} final : True mtd_id 4302 list_pids : [1350322007, 1350322001, 1350321995, 1350321990, 1350321986, 1350321983, 1350321898, 1350321867, 1350321836, 1350321804, 1350321773, 1350321749] Looping around the photos to save general results len do output : 1 /22104316Didn'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, '2729049') ('4302', '22104316', '1350322007', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049') ('4302', None, None, None, None, None, None, None, '2729049') ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '22104316', 'None', None, None, None, None, '2729049'), ('4302', '22104316', '1350322007', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350322001', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321995', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321990', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321986', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321983', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321898', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321867', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321836', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321804', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321773', None, None, None, None, None, '2729049'), ('4302', '22104316', '1350321749', None, None, None, None, None, '2729049')] time used for this insertion : 0.014436483383178711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.24557709693908691 time spend to save output : 0.014681816101074219 total time spend for step 5 : 0.26025891304016113 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 (2729049) 2.30user 2.24system 0:08.31elapsed 54%CPU (0avgtext+0avgdata 161016maxresident)k 8112inputs+17000outputs (74major+74930minor)pagefaults 0swaps