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 : 2023049 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 (4319642) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4319642) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30001993 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4319642'] with mtr_portfolio_ids : ['30001993'] and first list_photo_ids : [] new path : /proc/2023049/ Name: python3 Umask: 0002 State: R (running) Tgid: 2023049 Ngid: 0 Pid: 2023049 PPid: 2023048 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2023049 NSpid: 2023049 NSpgid: 2021822 NSsid: 2021822 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105488 kB VmRSS: 105488 kB RssAnon: 66304 kB RssFile: 39184 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 42 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2023049', 'Ngid': '0', 'Pid': '2023049', 'PPid': '2023048', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2023049', 'NSpid': '2023049', 'NSpgid': '2021822', 'NSsid': '2021822', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105488 kB', 'VmRSS': '105488 kB', 'RssAnon': '66304 kB', 'RssFile': '39184 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '42', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2023049', '1113368', '0', '1113368', '872096', '105488', b'', 'marlene', '4319642') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (30001993) 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 (4319642 ) ) 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 (30001993) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402737432, 'portfolio_id': 30001993}, {'photo_id': 1402737428, 'portfolio_id': 30001993}, {'photo_id': 1402737426, 'portfolio_id': 30001993}, {'photo_id': 1402737425, 'portfolio_id': 30001993}, {'photo_id': 1402737424, 'portfolio_id': 30001993}, {'photo_id': 1402737412, 'portfolio_id': 30001993}, {'photo_id': 1402737411, 'portfolio_id': 30001993}, {'photo_id': 1402737410, 'portfolio_id': 30001993}, {'photo_id': 1402737409, 'portfolio_id': 30001993}, {'photo_id': 1402737354, 'portfolio_id': 30001993}, {'photo_id': 1402737311, 'portfolio_id': 30001993}, {'photo_id': 1402737289, 'portfolio_id': 30001993}, {'photo_id': 1402737287, 'portfolio_id': 30001993}, {'photo_id': 1402737280, 'portfolio_id': 30001993}, {'photo_id': 1402737058, 'portfolio_id': 30001993}, {'photo_id': 1402737055, 'portfolio_id': 30001993}, {'photo_id': 1402737050, 'portfolio_id': 30001993}, {'photo_id': 1402737048, 'portfolio_id': 30001993}, {'photo_id': 1402736652, 'portfolio_id': 30001993}, {'photo_id': 1402736615, 'portfolio_id': 30001993}, {'photo_id': 1402736366, 'portfolio_id': 30001993}, {'photo_id': 1402736363, 'portfolio_id': 30001993}, {'photo_id': 1402736348, 'portfolio_id': 30001993}, {'photo_id': 1402736314, 'portfolio_id': 30001993}, {'photo_id': 1402736304, 'portfolio_id': 30001993}, {'photo_id': 1402736290, 'portfolio_id': 30001993}, {'photo_id': 1402736049, 'portfolio_id': 30001993}, {'photo_id': 1402736023, 'portfolio_id': 30001993}, {'photo_id': 1402736022, 'portfolio_id': 30001993}, {'photo_id': 1402735987, 'portfolio_id': 30001993}, {'photo_id': 1402735951, 'portfolio_id': 30001993}, {'photo_id': 1402735677, 'portfolio_id': 30001993}, {'photo_id': 1402735676, 'portfolio_id': 30001993}, {'photo_id': 1402735648, 'portfolio_id': 30001993}, {'photo_id': 1402735613, 'portfolio_id': 30001993}, {'photo_id': 1402735242, 'portfolio_id': 30001993}, {'photo_id': 1402735161, 'portfolio_id': 30001993}, {'photo_id': 1402735095, 'portfolio_id': 30001993}, {'photo_id': 1402735029, 'portfolio_id': 30001993}, {'photo_id': 1402734967, 'portfolio_id': 30001993}, {'photo_id': 1402734885, 'portfolio_id': 30001993}, {'photo_id': 1402734573, 'portfolio_id': 30001993}, {'photo_id': 1402734465, 'portfolio_id': 30001993}, {'photo_id': 1402734359, 'portfolio_id': 30001993}, {'photo_id': 1402734241, 'portfolio_id': 30001993}, {'photo_id': 1402734111, 'portfolio_id': 30001993}, {'photo_id': 1402733994, 'portfolio_id': 30001993}, {'photo_id': 1402733569, 'portfolio_id': 30001993}, {'photo_id': 1402733531, 'portfolio_id': 30001993}, {'photo_id': 1402733499, 'portfolio_id': 30001993}, {'photo_id': 1402733147, 'portfolio_id': 30001993}, {'photo_id': 1402733143, 'portfolio_id': 30001993}, {'photo_id': 1402733142, 'portfolio_id': 30001993}, {'photo_id': 1402733141, 'portfolio_id': 30001993}, {'photo_id': 1402733140, 'portfolio_id': 30001993}] map_portfolio_id_photo_id: {30001993: [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280, 1402737058, 1402737055, 1402737050, 1402737048, 1402736652, 1402736615, 1402736366, 1402736363, 1402736348, 1402736314, 1402736304, 1402736290, 1402736049, 1402736023, 1402736022, 1402735987, 1402735951, 1402735677, 1402735676, 1402735648, 1402735613, 1402735242, 1402735161, 1402735095, 1402735029, 1402734967, 1402734885, 1402734573, 1402734465, 1402734359, 1402734241, 1402734111, 1402733994, 1402733569, 1402733531, 1402733499, 1402733147, 1402733143, 1402733142, 1402733141, 1402733140]} ##### 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.020412445068359375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jan 7 02:12:58 2026 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 (30001993) 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 : 30001993 get user id for portfolio 30001993 get sub ptf for main ptf 30001993, type 3726 and hashtags ['Teint_Dans_La_Masse', 'metal', 'autre_refus', 'environnement', 'papier', 'Carton_brun', 'cartonnette', 'plastique', 'mal_croppe', 'Carton_gris', 'kraft', 'flou'] 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`=30001993 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','autre_refus','environnement','papier','Carton_brun','cartonnette','plastique','mal_croppe','Carton_gris','kraft','flou')) 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`=30001993 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','autre_refus','environnement','papier','Carton_brun','cartonnette','plastique','mal_croppe','Carton_gris','kraft','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 30001993, 'sub_port_id': 30002015, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532917, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 30001993, 'sub_port_id': 30002016, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532918, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'flou': {'main_port_id': 30001993, 'sub_port_id': 30002017, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532919, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'Carton_gris': {'main_port_id': 30001993, 'sub_port_id': 30002018, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532920, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'cartonnette': {'main_port_id': 30001993, 'sub_port_id': 30002019, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532921, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'metal': {'main_port_id': 30001993, 'sub_port_id': 30002020, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532922, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'Carton_brun': {'main_port_id': 30001993, 'sub_port_id': 30002021, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532923, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'autre_refus': {'main_port_id': 30001993, 'sub_port_id': 30002022, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532924, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'environnement': {'main_port_id': 30001993, 'sub_port_id': 30002023, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532925, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'plastique': {'main_port_id': 30001993, 'sub_port_id': 30002024, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532926, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'papier': {'main_port_id': 30001993, 'sub_port_id': 30002025, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532927, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}, 'kraft': {'main_port_id': 30001993, 'sub_port_id': 30002026, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532928, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002015 , 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=30001993 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 (30002015) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002016 , 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=30001993 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 (30002016) result : ((1402735945,), (1402735946,), (1402735947,), (1402735948,), (1402737130,), (1402737132,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002017 , 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=30001993 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 (30002017) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002018 , 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=30001993 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 (30002018) result : ((1402735485,), (1402735950,), (1402736977,), (1402737147,), (1402737149,), (1402737151,), (1402737153,), (1402737273,), (1402737274,), (1402737275,), (1402737449,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002019 , 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=30001993 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 (30002019) result : ((1402735954,), (1402736985,), (1402737165,), (1402737167,), (1402737169,), (1402737276,), (1402737277,), (1402737278,), (1402737279,), (1402737450,), (1402737451,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002020 , 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=30001993 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 (30002020) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002021 , 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=30001993 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 (30002021) result : ((1402735493,), (1402735966,), (1402735968,), (1402735970,), (1402735972,), (1402737181,), (1402737183,), (1402737185,), (1402737187,), (1402737281,), (1402737282,), (1402737283,), (1402737284,), (1402737285,), (1402737452,), (1402737453,), (1402737454,), (1402737455,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002022 , 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=30001993 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 (30002022) result : ((1402735949,), (1402737271,), (1402737272,), (1402737446,), (1402737447,), (1402737448,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002023 , 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=30001993 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 (30002023) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002024 , 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=30001993 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 (30002024) result : ((1402736993,), (1402737201,), (1402737203,), (1402737205,), (1402737207,), (1402737286,), (1402737288,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002025 , 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=30001993 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 (30002025) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30002026 , 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=30001993 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 (30002026) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30001993) result : ((1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=30001993 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','autre_refus','environnement','papier','Carton_brun','cartonnette','plastique','mal_croppe','Carton_gris','kraft','flou')) 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`=30001993 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','autre_refus','environnement','papier','Carton_brun','cartonnette','plastique','mal_croppe','Carton_gris','kraft','flou')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 30001993, 'sub_port_id': 30002027, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532929, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 30001993, 'sub_port_id': 30002028, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532930, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'flou': {'main_port_id': 30001993, 'sub_port_id': 30002029, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532931, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'Carton_gris': {'main_port_id': 30001993, 'sub_port_id': 30002030, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532932, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'cartonnette': {'main_port_id': 30001993, 'sub_port_id': 30002031, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532933, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'metal': {'main_port_id': 30001993, 'sub_port_id': 30002032, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532934, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'Carton_brun': {'main_port_id': 30001993, 'sub_port_id': 30002033, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532935, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'autre_refus': {'main_port_id': 30001993, 'sub_port_id': 30002034, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532936, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'environnement': {'main_port_id': 30001993, 'sub_port_id': 30002035, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532937, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'plastique': {'main_port_id': 30001993, 'sub_port_id': 30002036, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532938, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'papier': {'main_port_id': 30001993, 'sub_port_id': 30002037, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532939, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 3, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}, 'kraft': {'main_port_id': 30001993, 'sub_port_id': 30002038, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20532940, 'last_updated_at': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 2, 10, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 2, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002027,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002028,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002016 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002029,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002030,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002018 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002031,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002019 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002032,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002020 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002033,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002021 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002034,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002022 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002035,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002023 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002036,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002024 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002037,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002025 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30002038,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30002026 lien utilise dans velours : https://marlene.fotonower.com/velours/30002027,30002028,30002029,30002030,30002031,30002032,30002033,30002034,30002035,30002036,30002037,30002038?tags=mal_croppe,Teint_Dans_La_Masse,flou,Carton_gris,cartonnette,metal,Carton_brun,autre_refus,environnement,plastique,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30001993]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] map_info['map_portfolio_photo'] : {30001993: [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280, 1402737058, 1402737055, 1402737050, 1402737048, 1402736652, 1402736615, 1402736366, 1402736363, 1402736348, 1402736314, 1402736304, 1402736290, 1402736049, 1402736023, 1402736022, 1402735987, 1402735951, 1402735677, 1402735676, 1402735648, 1402735613, 1402735242, 1402735161, 1402735095, 1402735029, 1402734967, 1402734885, 1402734573, 1402734465, 1402734359, 1402734241, 1402734111, 1402733994, 1402733569, 1402733531, 1402733499, 1402733147, 1402733143, 1402733142, 1402733141, 1402733140]} final : False mtd_id 4302 list_pids : [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] Looping around the photos to save general results len do output : 1 /30001993. 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, '4319642') ('4302', '30001993', '1402737432', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '30001993', "{'mal_croppe': 30002015, 'Teint_Dans_La_Masse': 30002016, 'flou': 30002017, 'Carton_gris': 30002018, 'cartonnette': 30002019, 'metal': 30002020, 'Carton_brun': 30002021, 'autre_refus': 30002022, 'environnement': 30002023, 'plastique': 30002024, 'papier': 30002025, 'kraft': 30002026}", None, None, None, None, '4319642'), ('4302', '30001993', '1402737432', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642')] time used for this insertion : 0.017166852951049805 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.862046718597412 time spend to save output : 0.017475128173828125 total time spend for step 1 : 1.8795218467712402 step2:final Wed Jan 7 02:13:00 2026 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 (30001993) 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 30001993 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402733147,1402733143,1402733142,1402733141,1402733140,1402733569,1402733531,1402733499,1402734573,1402734465,1402734359,1402734241,1402734111,1402733994,1402735242,1402735161,1402735095,1402735029,1402734967,1402734885,1402735677,1402735676,1402735648,1402735613,1402736049,1402736023,1402736022,1402735987,1402735951,1402736366,1402736363,1402736348,1402736314,1402736304,1402736290,1402736652,1402736615,1402737058,1402737055,1402737050,1402737048,1402737354,1402737311,1402737289,1402737287,1402737280,1402737412,1402737411,1402737410,1402737409,1402737432,1402737428,1402737426,1402737425,1402737424); 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([30001993]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} new output for save of step final : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] map_info['map_portfolio_photo'] : {30001993: [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280, 1402737058, 1402737055, 1402737050, 1402737048, 1402736652, 1402736615, 1402736366, 1402736363, 1402736348, 1402736314, 1402736304, 1402736290, 1402736049, 1402736023, 1402736022, 1402735987, 1402735951, 1402735677, 1402735676, 1402735648, 1402735613, 1402735242, 1402735161, 1402735095, 1402735029, 1402734967, 1402734885, 1402734573, 1402734465, 1402734359, 1402734241, 1402734111, 1402733994, 1402733569, 1402733531, 1402733499, 1402733147, 1402733143, 1402733142, 1402733141, 1402733140]} final : False mtd_id 4302 list_pids : [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] Looping around the photos to save general results len do output : 14 /1402737432.Didn't retrieve data . /1402737428.Didn't retrieve data . /1402737426.Didn't retrieve data . /1402737425.Didn't retrieve data . /1402737424.Didn't retrieve data . /1402737412.Didn't retrieve data . /1402737411.Didn't retrieve data . /1402737410.Didn't retrieve data . /1402737409.Didn't retrieve data . /1402737354.Didn't retrieve data . /1402737311.Didn't retrieve data . /1402737289.Didn't retrieve data . /1402737287.Didn't retrieve data . /1402737280.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, '4319642') ('4302', '30001993', '1402737432', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '30001993', '1402737432', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737428', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737426', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737425', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737424', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737412', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737411', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737410', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737409', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737354', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737311', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737289', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737287', '0.048700366412094215', None, None, None, None, '4319642'), ('4302', '30001993', '1402737280', '0.048700366412094215', None, None, None, None, '4319642')] time used for this insertion : 0.015309810638427734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08055615425109863 time spend to save output : 0.015954971313476562 total time spend for step 2 : 0.0965111255645752 step3:velours_tree Wed Jan 7 02:13:00 2026 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 : {30001993: [{'mal_croppe': 30002015, 'Teint_Dans_La_Masse': 30002016, 'flou': 30002017, 'Carton_gris': 30002018, 'cartonnette': 30002019, 'metal': 30002020, 'Carton_brun': 30002021, 'autre_refus': 30002022, 'environnement': 30002023, 'plastique': 30002024, 'papier': 30002025, 'kraft': 30002026}]} input_args_next_step : {30001993: ()} output_args : {30001993: [{'mal_croppe': 30002015, 'Teint_Dans_La_Masse': 30002016, 'flou': 30002017, 'Carton_gris': 30002018, 'cartonnette': 30002019, 'metal': 30002020, 'Carton_brun': 30002021, 'autre_refus': 30002022, 'environnement': 30002023, 'plastique': 30002024, 'papier': 30002025, 'kraft': 30002026}]} args : 30001993 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 : ({'mal_croppe': 30002015, 'Teint_Dans_La_Masse': 30002016, 'flou': 30002017, 'Carton_gris': 30002018, 'cartonnette': 30002019, 'metal': 30002020, 'Carton_brun': 30002021, 'autre_refus': 30002022, 'environnement': 30002023, 'plastique': 30002024, 'papier': 30002025, 'kraft': 30002026},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30001993) 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([30001993]) 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.2915475368499756 time spend to save output : 6.67572021484375e-05 total time spend for step 3 : 0.291614294052124 step4:send_mail_cod Wed Jan 7 02:13:00 2026 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 : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} input_args_next_step : {1402737432: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737432 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737428 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737426 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737425 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737424 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737412 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737411 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737410 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737409 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737354 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737311 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737289 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737287 depend.output_id : 0 input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ()} output_args : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',)} args : 1402737280 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 : {30001993: [{'mal_croppe': 30002015, 'Teint_Dans_La_Masse': 30002016, 'flou': 30002017, 'Carton_gris': 30002018, 'cartonnette': 30002019, 'metal': 30002020, 'Carton_brun': 30002021, 'autre_refus': 30002022, 'environnement': 30002023, 'plastique': 30002024, 'papier': 30002025, 'kraft': 30002026}]} input_args_next_step : {1402737432: ('0.048700366412094215',), 1402737428: ('0.048700366412094215',), 1402737426: ('0.048700366412094215',), 1402737425: ('0.048700366412094215',), 1402737424: ('0.048700366412094215',), 1402737412: ('0.048700366412094215',), 1402737411: ('0.048700366412094215',), 1402737410: ('0.048700366412094215',), 1402737409: ('0.048700366412094215',), 1402737354: ('0.048700366412094215',), 1402737311: ('0.048700366412094215',), 1402737289: ('0.048700366412094215',), 1402737287: ('0.048700366412094215',), 1402737280: ('0.048700366412094215',), 30001993: ()} output_args : {30001993: [{'mal_croppe': 30002015, 'Teint_Dans_La_Masse': 30002016, 'flou': 30002017, 'Carton_gris': 30002018, 'cartonnette': 30002019, 'metal': 30002020, 'Carton_brun': 30002021, 'autre_refus': 30002022, 'environnement': 30002023, 'plastique': 30002024, 'papier': 30002025, 'kraft': 30002026}]} args : 30001993 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.048700366412094215',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30001993) 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_view ph WHERE photo_id IN (1402737432,1402737428,1402737426,1402737425,1402737424,1402737412,1402737411,1402737410,1402737409,1402737354,1402737311,1402737289,1402737287,1402737280) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402737280 begin to download photo : 1402737311 begin to download photo : 1402737410 begin to download photo : 1402737424 begin to download photo : 1402737428 download finish for photo 1402737311 begin to download photo : 1402737354 download finish for photo 1402737280 begin to download photo : 1402737287 download finish for photo 1402737410 begin to download photo : 1402737411 download finish for photo 1402737428 begin to download photo : 1402737432 download finish for photo 1402737424 begin to download photo : 1402737425 download finish for photo 1402737354 begin to download photo : 1402737409 download finish for photo 1402737287 begin to download photo : 1402737289 download finish for photo 1402737432 download finish for photo 1402737411 begin to download photo : 1402737412 download finish for photo 1402737425 begin to download photo : 1402737426 download finish for photo 1402737412 download finish for photo 1402737409 download finish for photo 1402737289 download finish for photo 1402737426 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette300020151767748381/ imagette300020171767748381/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P30001993_07-01-2026_02_13_01.pdf 30002015 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002015 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300020151767748381 30002017 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002017 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300020171767748381 30002019 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002019 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402735954: '1767747926_1791305_1402733141_4d9000d03cb590466aee2757da6b4a12_rle_crop_4092294670_0.png', 1402736985: '1767748105_1801179_1402735676_0dcfe032729e0cfeb342f38115ad8be5_rle_crop_4092296457_0.png', 1402737165: '1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296670_0.png', 1402737167: '1767748147_1802535_1402734885_58d903f54057c2e2ad97f5bb16025023_rle_crop_4092296922_0.png', 1402737169: '1767748147_1802535_1402734885_58d903f54057c2e2ad97f5bb16025023_rle_crop_4092296918_0.png', 1402737276: '1767748166_1804893_1402734359_21301efca002c8453dc85450e2650a37_rle_crop_4092296959_0.png', 1402737277: '1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296971_0.png', 1402737278: '1767748166_1804893_1402734111_8077cc58c867457e14c439a260bdc77f_rle_crop_4092296993_0.png', 1402737279: '1767748166_1804893_1402733994_c1b3ae01a7170819361daa5b8c5d3628_rle_crop_4092297015_0.png', 1402737450: '1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297211_0.png', 1402737451: '1767748347_1815454_1402737048_c269372f561f3b52636c35a6731bef14_rle_crop_4092297228_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/74fc4cb16c42d2fd7f0f0d73ae175689_6283700.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/5d15c5f2299b7d34e8fae53b15ed7d3f_43863600.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/01d33a30f100ed5acc79880aad904ce5_77225210.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/5f5c1309a3635a097d693c2c8684b74e_79282739.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3d4faf736312e9ec0cd18e641ccc267a_92551266.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ad28ad8524e1f62f0decbeab675e4c54_93249848.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bb2ec393fc28232343b100de147dd894_27013404.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/701b159efbb88d426cc52a9deb4ac191_32725876.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c4a5c3860e597ba4c44d996be86110a4_73256380.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/29099e624d66474cf482432b996d575d_3345525.png change filename to text .imagette300020191767748381/ imagette300020191767748381/1767748147_1802535_1402734885_58d903f54057c2e2ad97f5bb16025023_rle_crop_4092296922_0.png.png imagette300020191767748381/1767747926_1791305_1402733141_4d9000d03cb590466aee2757da6b4a12_rle_crop_4092294670_0.png.png imagette300020191767748381/1767748166_1804893_1402734359_21301efca002c8453dc85450e2650a37_rle_crop_4092296959_0.png.png imagette300020191767748381/1767748147_1802535_1402734885_58d903f54057c2e2ad97f5bb16025023_rle_crop_4092296918_0.png.png imagette300020191767748381/1767748166_1804893_1402734111_8077cc58c867457e14c439a260bdc77f_rle_crop_4092296993_0.png.png imagette300020191767748381/1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296670_0.png.png imagette300020191767748381/1767748347_1815454_1402737048_c269372f561f3b52636c35a6731bef14_rle_crop_4092297228_0.png.png imagette300020191767748381/1767748166_1804893_1402733994_c1b3ae01a7170819361daa5b8c5d3628_rle_crop_4092297015_0.png.png imagette300020191767748381/1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296971_0.png.png imagette300020191767748381/1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297211_0.png.png imagette300020191767748381/1767748105_1801179_1402735676_0dcfe032729e0cfeb342f38115ad8be5_rle_crop_4092296457_0.png.png imagette300020201767748382/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/79c3f9d4c6b34b70977728998cf52d0e_25188959.png imagette300020191767748381 30002020 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002020 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300020201767748382 30002022 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002022 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402735949: '1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295301_0.png', 1402737271: '1767748166_1804893_1402734359_21301efca002c8453dc85450e2650a37_rle_crop_4092296953_0.png', 1402737272: '1767748166_1804893_1402733994_c1b3ae01a7170819361daa5b8c5d3628_rle_crop_4092297010_0.png', 1402737446: '1767748347_1815454_1402737055_a58629395609adffbf25122040e895c7_rle_crop_4092297201_0.png', 1402737447: '1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297213_0.png', 1402737448: '1767748347_1815454_1402737048_c269372f561f3b52636c35a6731bef14_rle_crop_4092297232_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/541b6d92471b59ae186cb1172af26596_39100144.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d343f91fb3d5a3ab2fed9e70c2f7ec8f_53868736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7de262482fec3bfd2edd790cdd13ad4c_65373841.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/696f98fd8f0f6e5226cb001c2387588a_18926395.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/4bbe09be673afbc9fb9ab4164bafc413_57626467.png change filename to text .imagette300020221767748382/ imagette300020221767748382/1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295301_0.png.png imagette300020221767748382/1767748347_1815454_1402737048_c269372f561f3b52636c35a6731bef14_rle_crop_4092297232_0.png.png imagette300020221767748382/1767748166_1804893_1402734359_21301efca002c8453dc85450e2650a37_rle_crop_4092296953_0.png.png imagette300020221767748382/1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297213_0.png.png imagette300020221767748382/1767748166_1804893_1402733994_c1b3ae01a7170819361daa5b8c5d3628_rle_crop_4092297010_0.png.png imagette300020221767748382/1767748347_1815454_1402737055_a58629395609adffbf25122040e895c7_rle_crop_4092297201_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3f9c9c7d41b19b4828840e164bdff5c9_93808046.png imagette300020221767748382 30002024 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002024 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402736993: '1767748105_1801179_1402735676_0dcfe032729e0cfeb342f38115ad8be5_rle_crop_4092296462_0.png', 1402737201: '1767748147_1802535_1402735677_8c850094ecefa62aac442d19859514f8_rle_crop_4092296654_0.png', 1402737203: '1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296663_0.png', 1402737205: '1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296678_0.png', 1402737207: '1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296679_0.png', 1402737286: '1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296939_0.png', 1402737288: '1767748166_1804893_1402734111_8077cc58c867457e14c439a260bdc77f_rle_crop_4092296995_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/094f7bae30d6f66746bd13548fbef1d4_5570834.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f546a304f90c0f34f0d6c0c9ae9a13a3_6887286.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1471fc06995becfa273f5f3bfb70317f_50021782.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e38c082b55b2feb5343310e2427e2be6_14116254.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/59b206b91b275486c2b9ea0d6a38acb6_36625493.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/aa0a45d575f3f973db5c57071de8f2dc_13237522.png change filename to text .imagette300020241767748382/ imagette300020241767748382/1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296679_0.png.png imagette300020241767748382/1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296678_0.png.png imagette300020241767748382/1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296939_0.png.png imagette300020241767748382/1767748166_1804893_1402734111_8077cc58c867457e14c439a260bdc77f_rle_crop_4092296995_0.png.png imagette300020241767748382/1767748105_1801179_1402735676_0dcfe032729e0cfeb342f38115ad8be5_rle_crop_4092296462_0.png.png imagette300020241767748382/1767748147_1802535_1402735677_8c850094ecefa62aac442d19859514f8_rle_crop_4092296654_0.png.png imagette300020241767748382/1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296663_0.png.png imagette300020261767748383/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/30787ac16e9e846579db2f6549387db4_29616877.png imagette300020241767748382 30002026 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300020261767748383 30002016 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002016 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402735945: '1767747926_1791305_1402733143_a1d66eae48fc93d8005fc8f77b3a8b0a_rle_crop_4092294652_0.png', 1402735946: '1767747926_1791305_1402733143_a1d66eae48fc93d8005fc8f77b3a8b0a_rle_crop_4092294647_0.png', 1402735947: '1767747926_1791305_1402733143_a1d66eae48fc93d8005fc8f77b3a8b0a_rle_crop_4092294644_0.png', 1402735948: '1767747926_1791305_1402733142_f43bbe669503f22b5e6d21879e272a85_rle_crop_4092294663_0.png', 1402737130: '1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296662_0.png', 1402737132: '1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296675_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1a38dc2243b3dca8d9313ed26aba0b0e_12442324.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d7edc5d74e8404313646e4754a617a85_16718129.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9dffd27d25d460a851c12ffe389ff26e_58516671.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0c82c879367b366dc403a997494f8bf1_72537493.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c23ebd8733c754cca935b31c43774000_81961610.png change filename to text .imagette300020161767748383/ imagette300020161767748383/1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296662_0.png.png imagette300020161767748383/1767747926_1791305_1402733143_a1d66eae48fc93d8005fc8f77b3a8b0a_rle_crop_4092294652_0.png.png imagette300020161767748383/1767747926_1791305_1402733143_a1d66eae48fc93d8005fc8f77b3a8b0a_rle_crop_4092294644_0.png.png imagette300020161767748383/1767747926_1791305_1402733143_a1d66eae48fc93d8005fc8f77b3a8b0a_rle_crop_4092294647_0.png.png imagette300020161767748383/1767747926_1791305_1402733142_f43bbe669503f22b5e6d21879e272a85_rle_crop_4092294663_0.png.png imagette300020161767748383/1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296675_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/75436ae439a48afba45a23ad5422907e_21243374.png imagette300020161767748383 30002018 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002018 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402735485: '1767747865_1788233_1402733531_bb089e1ab5f8d811920f570b9d4eea97_rle_crop_4092290316_0.png', 1402735950: '1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295300_0.png', 1402736977: '1767748105_1801179_1402735676_0dcfe032729e0cfeb342f38115ad8be5_rle_crop_4092296454_0.png', 1402737147: '1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296658_0.png', 1402737149: '1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296666_0.png', 1402737151: '1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296684_0.png', 1402737153: '1767748147_1802535_1402734967_711068960392c334178986a178c8ee08_rle_crop_4092296897_0.png', 1402737273: '1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296941_0.png', 1402737274: '1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296944_0.png', 1402737275: '1767748166_1804893_1402734359_21301efca002c8453dc85450e2650a37_rle_crop_4092296961_0.png', 1402737449: '1767748347_1815454_1402737055_a58629395609adffbf25122040e895c7_rle_crop_4092297199_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/e73f4b266a5c4107a19a88dcdc8e51e8_50396086.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c579eae2f6c69b38d7c37e1b8933cc66_88013272.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/53ccf7353e40a98933c67d24b6b1222f_66265693.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/2b92b0ac917ac86be42aed050fcccc33_98850721.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f334077720b303daab2ce3ce727acd0d_64552518.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/4ecfdbab394f9c32557bd7e90e7a86c1_8884332.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bc461853bf0a669ec082919c65a60ffb_41289378.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/253af974144cbf8bf714aed3c4a30484_63072787.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/54bb32ee313ebdc5be7310085c751a67_32229998.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/20819c5f954ea35abb8dec58bdf78e71_22406843.png change filename to text .imagette300020181767748383/ imagette300020181767748383/1767748166_1804893_1402734359_21301efca002c8453dc85450e2650a37_rle_crop_4092296961_0.png.png imagette300020181767748383/1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296944_0.png.png imagette300020181767748383/1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296941_0.png.png imagette300020181767748383/1767748147_1802535_1402735095_1244bb508879d10bf525beba51fe3844_rle_crop_4092296684_0.png.png imagette300020181767748383/1767747865_1788233_1402733531_bb089e1ab5f8d811920f570b9d4eea97_rle_crop_4092290316_0.png.png imagette300020181767748383/1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296658_0.png.png imagette300020181767748383/1767748105_1801179_1402735676_0dcfe032729e0cfeb342f38115ad8be5_rle_crop_4092296454_0.png.png imagette300020181767748383/1767748347_1815454_1402737055_a58629395609adffbf25122040e895c7_rle_crop_4092297199_0.png.png imagette300020181767748383/1767748147_1802535_1402734967_711068960392c334178986a178c8ee08_rle_crop_4092296897_0.png.png imagette300020181767748383/1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296666_0.png.png imagette300020181767748383/1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295300_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/5b4626c01374b9475aa53e043fc97d24_19993529.png imagette300020181767748383 30002021 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30002021 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402737281: '1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296945_0.png', 1402737455: '1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297218_0.png', 1402737454: '1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297216_0.png', 1402737453: '1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297215_0.png', 1402737452: '1767748347_1815454_1402737055_a58629395609adffbf25122040e895c7_rle_crop_4092297204_0.png', 1402737285: '1767748166_1804893_1402734111_8077cc58c867457e14c439a260bdc77f_rle_crop_4092297006_0.png', 1402737284: '1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296980_0.png', 1402737283: '1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296974_0.png', 1402737282: '1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296983_0.png', 1402735493: '1767747865_1788233_1402733531_bb089e1ab5f8d811920f570b9d4eea97_rle_crop_4092290314_0.png', 1402737187: '1767748147_1802535_1402734967_711068960392c334178986a178c8ee08_rle_crop_4092296899_0.png', 1402737185: '1767748147_1802535_1402735029_cb27f3d430aa4029d09ac608c35bc650_rle_crop_4092296698_0.png', 1402737183: '1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296664_0.png', 1402737181: '1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296660_0.png', 1402735972: '1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295311_0.png', 1402735970: '1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295312_0.png', 1402735968: '1767747926_1791305_1402733142_f43bbe669503f22b5e6d21879e272a85_rle_crop_4092294660_0.png', 1402735966: '1767747926_1791305_1402733147_8c837a550ec7e453c5e7cd02fd36d4fc_rle_crop_4092294636_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f8d223d9aac545689ec66da518552a51_18395802.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/159fa907a6955b21928117509b02441f_61605440.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/55f5c365928f08504256487385604123_13826597.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8cceb6c34e94c5ad2607856bdefe3e56_98863355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/fe9047c77369872d91f355936bfcb23d_96707085.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/55d53c72ec10415e27fc9672eb9cddec_70666093.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/4d1ce5633f37142bbaa1256ca4ba2654_27299208.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/47b714df871ec72bcb27ca05fcae93da_91306645.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/d5f8835c7af11683564532c4236c7b92_64094142.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/59dc4f5d3084c4fa7cdb0a3636468962_51534679.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c6d027474275c0fc909aedc35ee117c3_5864386.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/055c1b5cd97ef1034cb98113f278ed43_6235186.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c0dff0ea41a0b99ef83da6b44b4e3e4a_25083327.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8f9381cc0b762845f43708781407c13f_76963935.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/9b027f65cad4fff98a1d19d238765eaa_239552.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/b5ffce35b6ec5c4aaeb6ed26c9bf293e_30128660.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/284af107bcb9dd8c9100641ad0bce11b_64899276.png change filename to text .imagette300020211767748384/ imagette300020211767748384/1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296660_0.png.png imagette300020211767748384/1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297215_0.png.png imagette300020211767748384/1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296980_0.png.png imagette300020211767748384/1767747865_1788233_1402733531_bb089e1ab5f8d811920f570b9d4eea97_rle_crop_4092290314_0.png.png imagette300020211767748384/1767748166_1804893_1402734465_70ca8937771595972e23dc078523381c_rle_crop_4092296945_0.png.png imagette300020211767748384/1767748147_1802535_1402735029_cb27f3d430aa4029d09ac608c35bc650_rle_crop_4092296698_0.png.png imagette300020211767748384/1767748347_1815454_1402737055_a58629395609adffbf25122040e895c7_rle_crop_4092297204_0.png.png imagette300020211767748384/1767748147_1802535_1402734967_711068960392c334178986a178c8ee08_rle_crop_4092296899_0.png.png imagette300020211767748384/1767748147_1802535_1402735161_0f4412cf28ea083d2f47db2eb7363d73_rle_crop_4092296664_0.png.png imagette300020211767748384/1767747926_1791305_1402733147_8c837a550ec7e453c5e7cd02fd36d4fc_rle_crop_4092294636_0.png.png imagette300020211767748384/1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297216_0.png.png imagette300020211767748384/1767748166_1804893_1402734111_8077cc58c867457e14c439a260bdc77f_rle_crop_4092297006_0.png.png imagette300020211767748384/1767747926_1791305_1402733142_f43bbe669503f22b5e6d21879e272a85_rle_crop_4092294660_0.png.png imagette300020211767748384/1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296983_0.png.png imagette300020211767748384/1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295312_0.png.png imagette300020211767748384/1767747926_1791305_1402733140_7a617bf1c90e9571ca1ff3bf133fd730_rle_crop_4092295311_0.png.png imagette300020211767748384/1767748166_1804893_1402734241_32a06c4bd3b78a66760a0ea369c47e8a_rle_crop_4092296974_0.png.png imagette300020211767748384/1767748347_1815454_1402737050_18d90f07213b981e7e786e5f0a34e706_rle_crop_4092297218_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/5b4c490a290e2fe633babb8935c070a5_38107891.png imagette300020211767748384 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30001993 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30002027,30002028,30002029,30002030,30002031,30002032,30002033,30002034,30002035,30002036,30002037,30002038?tags=mal_croppe,Teint_Dans_La_Masse,flou,Carton_gris,cartonnette,metal,Carton_brun,autre_refus,environnement,plastique,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1402737432] : ('0.048700366412094215',) no score found for photo 1402737432 We are sending mail with results at report@fotonower.com args[1402737428] : ('0.048700366412094215',) no score found for photo 1402737428 We are sending mail with results at report@fotonower.com args[1402737426] : ('0.048700366412094215',) no score found for photo 1402737426 We are sending mail with results at report@fotonower.com args[1402737425] : ('0.048700366412094215',) no score found for photo 1402737425 We are sending mail with results at report@fotonower.com args[1402737424] : ('0.048700366412094215',) no score found for photo 1402737424 We are sending mail with results at report@fotonower.com args[1402737412] : ('0.048700366412094215',) no score found for photo 1402737412 We are sending mail with results at report@fotonower.com args[1402737411] : ('0.048700366412094215',) no score found for photo 1402737411 We are sending mail with results at report@fotonower.com args[1402737410] : ('0.048700366412094215',) no score found for photo 1402737410 We are sending mail with results at report@fotonower.com args[1402737409] : ('0.048700366412094215',) no score found for photo 1402737409 We are sending mail with results at report@fotonower.com args[1402737354] : ('0.048700366412094215',) no score found for photo 1402737354 We are sending mail with results at report@fotonower.com args[1402737311] : ('0.048700366412094215',) no score found for photo 1402737311 We are sending mail with results at report@fotonower.com args[1402737289] : ('0.048700366412094215',) no score found for photo 1402737289 We are sending mail with results at report@fotonower.com args[1402737287] : ('0.048700366412094215',) no score found for photo 1402737287 We are sending mail with results at report@fotonower.com args[1402737280] : ('0.048700366412094215',) no score found for photo 1402737280 We are sending mail with results at report@fotonower.com refus_total : 0.048700366412094215 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30001993 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_P30001993_07-01-2026_02_13_01.pdf results_Auto_P30001993_07-01-2026_02_13_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_13_01.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','30001993','results_Auto_P30001993_07-01-2026_02_13_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_13_01.pdf','pdf','','0.28','0.048700366412094215') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30001993]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] map_info['map_portfolio_photo'] : {30001993: [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280, 1402737058, 1402737055, 1402737050, 1402737048, 1402736652, 1402736615, 1402736366, 1402736363, 1402736348, 1402736314, 1402736304, 1402736290, 1402736049, 1402736023, 1402736022, 1402735987, 1402735951, 1402735677, 1402735676, 1402735648, 1402735613, 1402735242, 1402735161, 1402735095, 1402735029, 1402734967, 1402734885, 1402734573, 1402734465, 1402734359, 1402734241, 1402734111, 1402733994, 1402733569, 1402733531, 1402733499, 1402733147, 1402733143, 1402733142, 1402733141, 1402733140]} final : False mtd_id 4302 list_pids : [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] 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, '4319642') ('4302', '30001993', '1402737432', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '30001993', '1402737432', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642')] time used for this insertion : 0.01619434356689453 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.347252607345581 time spend to save output : 0.016438007354736328 total time spend for step 4 : 6.363690614700317 step5:split_time_score Wed Jan 7 02:13:07 2026 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 : ['30001993'] 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 : [('30001993',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30001993) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402737428: {'path': 'temp/1767748380_2023049_1402737428_180cdf11e37ad74a01bc1dbd45505450.jpg', 'extension': 'jpg'}, 1402737432: {'path': 'temp/1767748380_2023049_1402737432_7fefe8dc2591cf5c344f5393ae2973ca.jpg', 'extension': 'jpg'}, 1402737410: {'path': 'temp/1767748380_2023049_1402737410_91f106ef8a6b6499d12b2a16a19d1b43.jpg', 'extension': 'jpg'}, 1402737411: {'path': 'temp/1767748380_2023049_1402737411_5cdbaf9281ed8d01cb0fbf93cba1fb7f.jpg', 'extension': 'jpg'}, 1402737412: {'path': 'temp/1767748380_2023049_1402737412_3aa008f2522c8baa86172ada3ef674db.jpg', 'extension': 'jpg'}, 1402737311: {'path': 'temp/1767748380_2023049_1402737311_f4ffe43ad47d5a8d38fa9a39b72144dd.jpg', 'extension': 'jpg'}, 1402737354: {'path': 'temp/1767748380_2023049_1402737354_2777aadb4c1fdffe1d49d53039624a24.jpg', 'extension': 'jpg'}, 1402737409: {'path': 'temp/1767748380_2023049_1402737409_51623c742d1ea8b925b372b95df1b3af.jpg', 'extension': 'jpg'}, 1402737280: {'path': 'temp/1767748380_2023049_1402737280_32377298d871018fea29bfc55dacdcb2.jpg', 'extension': 'jpg'}, 1402737287: {'path': 'temp/1767748380_2023049_1402737287_bf1a55313df2fbf04311304bc8640d00.jpg', 'extension': 'jpg'}, 1402737289: {'path': 'temp/1767748380_2023049_1402737289_2061f0872fa22dc3687688cd1d8f2eb2.jpg', 'extension': 'jpg'}, 1402737424: {'path': 'temp/1767748380_2023049_1402737424_a87aa7d80b00483f614d6745a948ee61.jpg', 'extension': 'jpg'}, 1402737425: {'path': 'temp/1767748380_2023049_1402737425_6d324db25efc6ee5c1bdeac9b9fcc03b.jpg', 'extension': 'jpg'}, 1402737426: {'path': 'temp/1767748380_2023049_1402737426_0977d25a17306c328edfa8361891e865.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 = 30001993; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 30001993 group by h (('02', 55),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=30001993 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 (30001993) 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 (30001993) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07012026 30001993 Nombre de photos uploadées : 55 / 23040 (0%) 07012026 30001993 Nombre de photos taguées (types de déchets): 0 / 55 (0%) 07012026 30001993 Nombre de photos taguées (volume) : 0 / 55 (0%) [{'photo_id': 1402733147, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8c837a550ec7e453c5e7cd02fd36d4fc.jpg', 'username': None, 'uploaded_at': 1767747667, 'text': 'image_07012026_02_00_04_010148m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402733143, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a1d66eae48fc93d8005fc8f77b3a8b0a.jpg', 'username': None, 'uploaded_at': 1767747667, 'text': 'image_07012026_02_00_15_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402733142, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f43bbe669503f22b5e6d21879e272a85.jpg', 'username': None, 'uploaded_at': 1767747667, 'text': 'image_07012026_02_00_25_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402733141, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/4d9000d03cb590466aee2757da6b4a12.jpg', 'username': None, 'uploaded_at': 1767747667, 'text': 'image_07012026_02_00_34_009126m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ??????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023949146270751953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 30001993, '2026-01-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2026-01-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2854728,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24144482612609863 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= 2854728 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 29999365, 'dashboard_result_id': 19087003, '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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 29999670, 'dashboard_result_id': 19087004, '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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 30000240, 'dashboard_result_id': 19087005, '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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 30000381, 'dashboard_result_id': 19087006, '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_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 30001283, 'dashboard_result_id': 19087007, '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_P30001283_07-01-2026_01_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30001309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001320, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 30001385, 'dashboard_result_id': 19087008, '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_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 30001625, 'dashboard_result_id': 19087009, '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_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}"}, {'dashboat_entry_day': 2854728, 'dashboard_run_id': 2861364, 'mtr_portfolio_id': 30001993, 'dashboard_result_id': 19087010, '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_P30001993_07-01-2026_02_10_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, '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 = 29999365 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': 4319217, 'mtr_portfolio_id': 29999365, 'created_at': datetime.datetime(2026, 1, 7, 0, 16, 58), 'result': '0.03556487967171043', 'result_long': None, 'result_double': None}] Qualite : 0.03556487967171043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999365 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_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, 'pht': 3726}}" where mtr_portfolio_id = 29999365 and dashboard_run_id = 2861364 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`=29999365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087003, 0.03556487967171043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999365_07-01-2026_00_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999371, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999374, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999375, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999377, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999378, '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 = 29999670 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': 4319241, 'mtr_portfolio_id': 29999670, 'created_at': datetime.datetime(2026, 1, 7, 0, 35), 'result': '0.07220360950194565', 'result_long': None, 'result_double': None}] Qualite : 0.07220360950194565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29999670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29999670 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_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, 'pht': 3726}}" where mtr_portfolio_id = 29999670 and dashboard_run_id = 2861364 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`=29999670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087004, 0.07220360950194565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29999670_07-01-2026_00_35_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29999676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29999677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29999678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29999679, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29999680, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29999681, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29999682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29999683, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29999684, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29999685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29999686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29999687, '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 = 30000240 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': 4319321, 'mtr_portfolio_id': 30000240, 'created_at': datetime.datetime(2026, 1, 7, 0, 48, 59), 'result': '0.08740129110559802', 'result_long': None, 'result_double': None}] Qualite : 0.08740129110559802 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000240 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_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, 'pht': 3726}}" where mtr_portfolio_id = 30000240 and dashboard_run_id = 2861364 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`=30000240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087005, 0.08740129110559802, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000240_07-01-2026_00_48_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30000241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000242, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000243, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000244, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000245, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000246, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000247, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000248, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000251, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000252, '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 = 30000381 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': 4319352, 'mtr_portfolio_id': 30000381, 'created_at': datetime.datetime(2026, 1, 7, 1, 2, 31), 'result': '0.03941804582502747', 'result_long': None, 'result_double': None}] Qualite : 0.03941804582502747 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30000381 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30000381 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_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, 'pht': 3726}}" where mtr_portfolio_id = 30000381 and dashboard_run_id = 2861364 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`=30000381 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087006, 0.03941804582502747, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_02_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30000389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30000390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30000391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30000392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30000393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30000394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30000395, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30000396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30000397, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30000398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30000399, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30000400, '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 = 30001283 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 30001283 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 30001283 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 30001283 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 30001283 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001283 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001283_07-01-2026_01_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001283 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_P30001283_07-01-2026_01_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 30001309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001310, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001313, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001314, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001315, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001316, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001320, 'pht': 3726}}" where mtr_portfolio_id = 30001283 and dashboard_run_id = 2861366 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 = 30001385 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': 4319516, 'mtr_portfolio_id': 30001385, 'created_at': datetime.datetime(2026, 1, 7, 1, 47), 'result': '0.03810687232726498', 'result_long': None, 'result_double': None}] Qualite : 0.03810687232726498 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_01_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001385 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_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, 'pht': 3726}}" where mtr_portfolio_id = 30001385 and dashboard_run_id = 2861366 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`=30001385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087008, 0.03810687232726498, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001385_07-01-2026_01_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001389, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001392, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001395, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001399, '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 = 30001625 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': 4319549, 'mtr_portfolio_id': 30001625, 'created_at': datetime.datetime(2026, 1, 7, 2, 3), 'result': '0.07216863145607044', 'result_long': None, 'result_double': None}] Qualite : 0.07216863145607044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001625 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001625 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_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, 'pht': 3726}}" where mtr_portfolio_id = 30001625 and dashboard_run_id = 2861366 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`=30001625 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087009, 0.07216863145607044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001625_07-01-2026_02_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30001629, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30001630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30001631, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30001632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30001633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30001634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30001635, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30001636, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30001637, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30001638, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30001639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30001640, '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 = 30001993 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': 4319642, 'mtr_portfolio_id': 30001993, 'created_at': datetime.datetime(2026, 1, 7, 2, 13), 'result': '0.048700366412094215', 'result_long': None, 'result_double': None}] Qualite : 0.048700366412094215 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 30001993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 30001993 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_P30001993_07-01-2026_02_13_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, 'pht': 3726}}" where mtr_portfolio_id = 30001993 and dashboard_run_id = 2861366 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`=30001993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19087010, 0.048700366412094215, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30001993_07-01-2026_02_13_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 30002015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 30002016, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 30002017, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 30002018, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 30002019, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 30002020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 30002021, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 30002022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 30002023, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 30002024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 30002025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 30002026, '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 (29999365,29999670,30000240,30000381,30001283,30001385,30001625,30001993) result : ((1402725806,), (1402725885,), (1402725888,), (1402725954,), (1402725956,), (1402725957,), (1402725959,), (1402726002,), (1402726004,), (1402726006,), (1402726033,), (1402726034,), (1402726036,), (1402726038,), (1402726054,), (1402726055,), (1402726058,), (1402726060,), (1402726064,), (1402726067,), (1402726080,), (1402726081,), (1402726086,), (1402726091,), (1402726189,), (1402726205,), (1402726236,), (1402726249,), (1402726250,), (1402726251,), (1402726261,), (1402726451,), (1402726452,), (1402726482,), (1402726520,), (1402726557,), (1402726579,), (1402726590,), (1402726591,), (1402726592,), (1402726656,), (1402726658,), (1402726661,), (1402726663,), (1402726666,), (1402726670,), (1402726677,), (1402726679,), (1402726680,), (1402726682,), (1402726683,), (1402726684,), (1402726686,), (1402726688,), (1402726692,), (1402726695,), (1402726734,), (1402726726,), (1402726727,), (1402726728,), (1402726730,), (1402726746,), (1402726747,), (1402726748,), (1402726790,), (1402726791,), (1402726793,), (1402726794,), (1402726837,), (1402726838,), (1402726839,), (1402726841,), (1402726844,), (1402726927,), (1402726931,), (1402726933,), (1402726935,), (1402726948,), (1402726949,), (1402726950,), (1402727047,), (1402727048,), (1402727049,), (1402727052,), (1402727055,), (1402727058,), (1402727061,), (1402727062,), (1402727063,), (1402727084,), (1402727085,), (1402727087,), (1402727104,), (1402727105,), (1402727129,), (1402727140,), (1402727149,), (1402727152,), (1402727156,), (1402727227,), (1402727229,), (1402727363,), (1402727462,), (1402727384,), (1402727476,), (1402727537,), (1402727538,), (1402727555,), (1402727556,), (1402727558,), (1402727562,), (1402727565,), (1402727568,), (1402727571,), (1402727572,), (1402727574,), (1402727575,), (1402727583,), (1402727584,), (1402727585,), (1402727601,), (1402727602,), (1402727603,), (1402727604,), (1402727607,), (1402727620,), (1402727621,), (1402727623,), (1402727624,), (1402727625,), (1402727626,), (1402727639,), (1402727640,), (1402727641,), (1402727677,), (1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,), (1402728536,), (1402728539,), (1402728542,), (1402728546,), (1402728549,), (1402728557,), (1402731757,), (1402732009,), (1402732265,), (1402732292,), (1402732293,), (1402732328,), (1402732356,), (1402732359,), (1402732365,), (1402732369,), (1402732374,), (1402732548,), (1402732549,), (1402732550,), (1402732552,), (1402732556,), (1402732572,), (1402732582,), (1402732593,), (1402732594,), (1402732596,), (1402732597,), (1402732627,), (1402732628,), (1402732629,), (1402732653,), (1402732682,), (1402732711,), (1402732712,), (1402732713,), (1402732716,), (1402732719,), (1402732722,), (1402732731,), (1402732732,), (1402732733,), (1402732734,), (1402732751,), (1402732752,), (1402732754,), (1402732765,), (1402732766,), (1402732770,), (1402732771,), (1402732774,), (1402732776,), (1402732803,), (1402732793,), (1402732795,), (1402732798,), (1402732800,), (1402732809,), (1402732811,), (1402732814,), (1402732839,), (1402732845,), (1402732847,), (1402732850,), (1402732853,), (1402732865,), (1402732866,), (1402732867,), (1402732868,), (1402732872,), (1402732900,), (1402732901,), (1402732903,), (1402732916,), (1402732917,), (1402732919,), (1402732920,), (1402732923,), (1402732925,), (1402732957,), (1402732958,), (1402732959,), (1402732960,), (1402732963,), (1402732966,), (1402732976,), (1402732978,), (1402732997,), (1402732999,), (1402733001,), (1402733002,), (1402733005,), (1402733008,), (1402733019,), (1402733021,), (1402733023,), (1402733036,), (1402733038,), (1402733040,), (1402733044,), (1402733046,), (1402733079,), (1402733081,), (1402733101,), (1402733105,), (1402733110,), (1402733118,), (1402733119,), (1402733122,), (1402733123,), (1402733125,), (1402733126,), (1402733129,), (1402733131,), (1402733177,), (1402733140,), (1402733141,), (1402733142,), (1402733143,), (1402733147,), (1402733499,), (1402733531,), (1402733569,), (1402733994,), (1402734111,), (1402734241,), (1402734359,), (1402734465,), (1402734573,), (1402734885,), (1402734967,), (1402735029,), (1402735095,), (1402735161,), (1402735242,), (1402735613,), (1402735648,), (1402735676,), (1402735677,), (1402735951,), (1402735987,), (1402736022,), (1402736023,), (1402736049,), (1402736290,), (1402736304,), (1402736314,), (1402736348,), (1402736363,), (1402736366,), (1402736615,), (1402736652,), (1402737048,), (1402737050,), (1402737055,), (1402737058,), (1402737280,), (1402737287,), (1402737289,), (1402737311,), (1402737354,), (1402737409,), (1402737410,), (1402737411,), (1402737412,), (1402737424,), (1402737425,), (1402737426,), (1402737428,), (1402737432,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07012026': {'nb_upload': 55, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30001993]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] map_info['map_portfolio_photo'] : {30001993: [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280, 1402737058, 1402737055, 1402737050, 1402737048, 1402736652, 1402736615, 1402736366, 1402736363, 1402736348, 1402736314, 1402736304, 1402736290, 1402736049, 1402736023, 1402736022, 1402735987, 1402735951, 1402735677, 1402735676, 1402735648, 1402735613, 1402735242, 1402735161, 1402735095, 1402735029, 1402734967, 1402734885, 1402734573, 1402734465, 1402734359, 1402734241, 1402734111, 1402733994, 1402733569, 1402733531, 1402733499, 1402733147, 1402733143, 1402733142, 1402733141, 1402733140]} final : True mtd_id 4302 list_pids : [1402737432, 1402737428, 1402737426, 1402737425, 1402737424, 1402737412, 1402737411, 1402737410, 1402737409, 1402737354, 1402737311, 1402737289, 1402737287, 1402737280] Looping around the photos to save general results len do output : 1 /30001993Didn'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, '4319642') ('4302', '30001993', '1402737432', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642') ('4302', None, None, None, None, None, None, None, '4319642') ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '30001993', 'None', None, None, None, None, '4319642'), ('4302', '30001993', '1402737432', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737428', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737426', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737425', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737424', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737412', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737411', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737410', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737409', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737354', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737311', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737289', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737287', None, None, None, None, None, '4319642'), ('4302', '30001993', '1402737280', None, None, None, None, None, '4319642')] time used for this insertion : 0.016768932342529297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8496646881103516 time spend to save output : 0.01706671714782715 total time spend for step 5 : 0.8667314052581787 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 (4319642) 2.14user 1.95system 0:12.59elapsed 32%CPU (0avgtext+0avgdata 168620maxresident)k 24inputs+16720outputs (3major+94518minor)pagefaults 0swaps