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 : 1077987 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 (2726932) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2726932) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079538 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2726932'] with mtr_portfolio_ids : ['22079538'] and first list_photo_ids : [] new path : /proc/1077987/ Name: python3 Umask: 0002 State: R (running) Tgid: 1077987 Ngid: 0 Pid: 1077987 PPid: 1077986 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1077987 NSpid: 1077987 NSpgid: 1074408 NSsid: 1074408 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99764 kB VmRSS: 99764 kB RssAnon: 59764 kB RssFile: 40000 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 56 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1077987', 'Ngid': '0', 'Pid': '1077987', 'PPid': '1077986', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1077987', 'NSpid': '1077987', 'NSpgid': '1074408', 'NSsid': '1074408', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99764 kB', 'VmRSS': '99764 kB', 'RssAnon': '59764 kB', 'RssFile': '40000 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '56'} ('datou_batch_current', '1077987', '1106928', '0', '1106928', '865676', '99764', b'', 'marlene', '2726932') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22079538) 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 (2726932 ) ) 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 (22079538) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350115496, 'portfolio_id': 22079538}, {'photo_id': 1350115493, 'portfolio_id': 22079538}, {'photo_id': 1350115487, 'portfolio_id': 22079538}, {'photo_id': 1350115402, 'portfolio_id': 22079538}, {'photo_id': 1350115379, 'portfolio_id': 22079538}, {'photo_id': 1350115303, 'portfolio_id': 22079538}, {'photo_id': 1350115278, 'portfolio_id': 22079538}, {'photo_id': 1350115269, 'portfolio_id': 22079538}, {'photo_id': 1350115224, 'portfolio_id': 22079538}, {'photo_id': 1350115130, 'portfolio_id': 22079538}, {'photo_id': 1350115089, 'portfolio_id': 22079538}, {'photo_id': 1350115085, 'portfolio_id': 22079538}, {'photo_id': 1350115066, 'portfolio_id': 22079538}, {'photo_id': 1350115049, 'portfolio_id': 22079538}, {'photo_id': 1350114894, 'portfolio_id': 22079538}, {'photo_id': 1350114888, 'portfolio_id': 22079538}, {'photo_id': 1350114871, 'portfolio_id': 22079538}, {'photo_id': 1350114854, 'portfolio_id': 22079538}, {'photo_id': 1350114809, 'portfolio_id': 22079538}, {'photo_id': 1350114802, 'portfolio_id': 22079538}, {'photo_id': 1350114789, 'portfolio_id': 22079538}, {'photo_id': 1350114773, 'portfolio_id': 22079538}, {'photo_id': 1350114752, 'portfolio_id': 22079538}, {'photo_id': 1350114693, 'portfolio_id': 22079538}, {'photo_id': 1350114680, 'portfolio_id': 22079538}, {'photo_id': 1350114675, 'portfolio_id': 22079538}, {'photo_id': 1350114665, 'portfolio_id': 22079538}, {'photo_id': 1350114613, 'portfolio_id': 22079538}, {'photo_id': 1350114604, 'portfolio_id': 22079538}, {'photo_id': 1350114601, 'portfolio_id': 22079538}, {'photo_id': 1350114599, 'portfolio_id': 22079538}, {'photo_id': 1350114597, 'portfolio_id': 22079538}, {'photo_id': 1350114560, 'portfolio_id': 22079538}, {'photo_id': 1350114548, 'portfolio_id': 22079538}, {'photo_id': 1350114497, 'portfolio_id': 22079538}, {'photo_id': 1350114492, 'portfolio_id': 22079538}, {'photo_id': 1350114477, 'portfolio_id': 22079538}, {'photo_id': 1350114449, 'portfolio_id': 22079538}, {'photo_id': 1350114329, 'portfolio_id': 22079538}, {'photo_id': 1350114325, 'portfolio_id': 22079538}, {'photo_id': 1350114322, 'portfolio_id': 22079538}, {'photo_id': 1350114161, 'portfolio_id': 22079538}, {'photo_id': 1350114131, 'portfolio_id': 22079538}, {'photo_id': 1350114075, 'portfolio_id': 22079538}, {'photo_id': 1350114070, 'portfolio_id': 22079538}, {'photo_id': 1350114065, 'portfolio_id': 22079538}] map_portfolio_id_photo_id: {22079538: [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049, 1350114894, 1350114888, 1350114871, 1350114854, 1350114809, 1350114802, 1350114789, 1350114773, 1350114752, 1350114693, 1350114680, 1350114675, 1350114665, 1350114613, 1350114604, 1350114601, 1350114599, 1350114597, 1350114560, 1350114548, 1350114497, 1350114492, 1350114477, 1350114449, 1350114329, 1350114325, 1350114322, 1350114161, 1350114131, 1350114075, 1350114070, 1350114065]} ##### 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.015358686447143555 #### 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 Fri Apr 4 15:40:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22079538) 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 : 22079538 get user id for portfolio 22079538 get sub ptf for main ptf 22079538, type 3726 and hashtags ['Teint_Dans_La_Masse', 'metal', 'environnement', 'autre_refus', 'Carton_gris', 'mal_croppe', 'kraft', 'Carton_brun', 'flou', 'cartonnette', 'plastique', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22079538 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','environnement','autre_refus','Carton_gris','mal_croppe','kraft','Carton_brun','flou','cartonnette','plastique','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22079538 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','environnement','autre_refus','Carton_gris','mal_croppe','kraft','Carton_brun','flou','cartonnette','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22079538, 'sub_port_id': 22079568, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565973, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'Carton_gris': {'main_port_id': 22079538, 'sub_port_id': 22079569, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565974, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'mal_croppe': {'main_port_id': 22079538, 'sub_port_id': 22079570, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565975, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'autre_refus': {'main_port_id': 22079538, 'sub_port_id': 22079571, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565976, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'papier': {'main_port_id': 22079538, 'sub_port_id': 22079572, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565977, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'metal': {'main_port_id': 22079538, 'sub_port_id': 22079573, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565978, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'environnement': {'main_port_id': 22079538, 'sub_port_id': 22079574, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565979, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22079538, 'sub_port_id': 22079575, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565980, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'kraft': {'main_port_id': 22079538, 'sub_port_id': 22079576, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565981, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'flou': {'main_port_id': 22079538, 'sub_port_id': 22079577, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565982, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'Carton_brun': {'main_port_id': 22079538, 'sub_port_id': 22079578, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565983, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}, 'plastique': {'main_port_id': 22079538, 'sub_port_id': 22079579, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565984, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 3), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22079568 , 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=22079538 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 (22079568) result : ((1350114960,), (1350114961,), (1350115399,), (1350115400,), (1350115448,), (1350115449,), (1350115581,), (1350115582,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079569 , 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=22079538 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 (22079569) result : ((1350114946,), (1350114947,), (1350114948,), (1350115121,), (1350115385,), (1350115386,), (1350115387,), (1350115388,), (1350115446,), (1350115460,), (1350115571,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079570 , 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=22079538 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 (22079570) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079571 , 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=22079538 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 (22079571) result : ((1350115442,), (1350115444,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079572 , 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=22079538 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 (22079572) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079573 , 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=22079538 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 (22079573) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079574 , 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=22079538 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 (22079574) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079575 , 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=22079538 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 (22079575) result : ((1350114828,), (1350114832,), (1350114833,), (1350114942,), (1350114943,), (1350114944,), (1350114945,), (1350115374,), (1350115375,), (1350115377,), (1350115378,), (1350115440,), (1350115441,), (1350115452,), (1350115454,), (1350115562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079576 , 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=22079538 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 (22079576) result : ((1350114728,), (1350114839,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079577 , 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=22079538 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 (22079577) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079578 , 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=22079538 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 (22079578) result : ((1350114835,), (1350114963,), (1350115127,), (1350115401,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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 22079579 , 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=22079538 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 (22079579) result : ((1350114838,), (1350114966,), (1350114967,), (1350114968,), (1350115403,), (1350115404,), (1350115405,), (1350115458,), (1350115461,), (1350115471,), (1350115472,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22079538) result : ((1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) 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`=22079538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','environnement','autre_refus','Carton_gris','mal_croppe','kraft','Carton_brun','flou','cartonnette','plastique','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22079538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','environnement','autre_refus','Carton_gris','mal_croppe','kraft','Carton_brun','flou','cartonnette','plastique','papier')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22079538, 'sub_port_id': 22079581, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565985, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'Carton_gris': {'main_port_id': 22079538, 'sub_port_id': 22079582, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565986, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'mal_croppe': {'main_port_id': 22079538, 'sub_port_id': 22079583, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565987, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'autre_refus': {'main_port_id': 22079538, 'sub_port_id': 22079584, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565988, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'papier': {'main_port_id': 22079538, 'sub_port_id': 22079585, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565989, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'metal': {'main_port_id': 22079538, 'sub_port_id': 22079586, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565990, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'environnement': {'main_port_id': 22079538, 'sub_port_id': 22079587, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565991, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22079538, 'sub_port_id': 22079588, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565992, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'kraft': {'main_port_id': 22079538, 'sub_port_id': 22079589, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565993, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'flou': {'main_port_id': 22079538, 'sub_port_id': 22079590, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565994, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'Carton_brun': {'main_port_id': 22079538, 'sub_port_id': 22079591, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565995, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 32, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}, 'plastique': {'main_port_id': 22079538, 'sub_port_id': 22079592, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14565996, 'last_updated_at': datetime.datetime(2025, 4, 4, 15, 39, 4), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 15, 39, 4), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 15, 32, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22079592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22079579 lien utilise dans velours : https://www.fotonower.com/velours/22079581,22079582,22079583,22079584,22079585,22079586,22079587,22079588,22079589,22079590,22079591,22079592?tags=cartonnette,Carton_gris,mal_croppe,autre_refus,papier,metal,environnement,Teint_Dans_La_Masse,kraft,flou,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22079538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] map_info['map_portfolio_photo'] : {22079538: [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049, 1350114894, 1350114888, 1350114871, 1350114854, 1350114809, 1350114802, 1350114789, 1350114773, 1350114752, 1350114693, 1350114680, 1350114675, 1350114665, 1350114613, 1350114604, 1350114601, 1350114599, 1350114597, 1350114560, 1350114548, 1350114497, 1350114492, 1350114477, 1350114449, 1350114329, 1350114325, 1350114322, 1350114161, 1350114131, 1350114075, 1350114070, 1350114065]} final : False mtd_id 4302 list_pids : [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] Looping around the photos to save general results len do output : 1 /22079538. 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, '2726932') ('4302', '22079538', '1350115496', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932') 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, '22079538', "{'cartonnette': 22079568, 'Carton_gris': 22079569, 'mal_croppe': 22079570, 'autre_refus': 22079571, 'papier': 22079572, 'metal': 22079573, 'environnement': 22079574, 'Teint_Dans_La_Masse': 22079575, 'kraft': 22079576, 'flou': 22079577, 'Carton_brun': 22079578, 'plastique': 22079579}", None, None, None, None, '2726932'), ('4302', '22079538', '1350115496', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932')] time used for this insertion : 0.017384052276611328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4810845851898193 time spend to save output : 0.0176849365234375 total time spend for step 1 : 1.4987695217132568 step2:final Fri Apr 4 15:40:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22079538) 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 22079538 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350114161,1350114131,1350114075,1350114070,1350114065,1350114329,1350114325,1350114322,1350114560,1350114548,1350114497,1350114492,1350114477,1350114449,1350114613,1350114604,1350114601,1350114599,1350114597,1350114693,1350114680,1350114675,1350114665,1350114809,1350114802,1350114789,1350114773,1350114752,1350114894,1350114888,1350114871,1350114854,1350115130,1350115089,1350115085,1350115066,1350115049,1350115402,1350115379,1350115303,1350115278,1350115269,1350115224,1350115496,1350115493,1350115487); 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([22079538]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} new output for save of step final : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] map_info['map_portfolio_photo'] : {22079538: [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049, 1350114894, 1350114888, 1350114871, 1350114854, 1350114809, 1350114802, 1350114789, 1350114773, 1350114752, 1350114693, 1350114680, 1350114675, 1350114665, 1350114613, 1350114604, 1350114601, 1350114599, 1350114597, 1350114560, 1350114548, 1350114497, 1350114492, 1350114477, 1350114449, 1350114329, 1350114325, 1350114322, 1350114161, 1350114131, 1350114075, 1350114070, 1350114065]} final : False mtd_id 4302 list_pids : [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] Looping around the photos to save general results len do output : 14 /1350115496.Didn't retrieve data . /1350115493.Didn't retrieve data . /1350115487.Didn't retrieve data . /1350115402.Didn't retrieve data . /1350115379.Didn't retrieve data . /1350115303.Didn't retrieve data . /1350115278.Didn't retrieve data . /1350115269.Didn't retrieve data . /1350115224.Didn't retrieve data . /1350115130.Didn't retrieve data . /1350115089.Didn't retrieve data . /1350115085.Didn't retrieve data . /1350115066.Didn't retrieve data . /1350115049.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, '2726932') ('4302', '22079538', '1350115496', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932') 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', '22079538', '1350115496', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115493', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115487', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115402', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115379', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115303', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115278', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115269', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115224', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115130', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115089', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115085', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115066', '0.03817499610266429', None, None, None, None, '2726932'), ('4302', '22079538', '1350115049', '0.03817499610266429', None, None, None, None, '2726932')] time used for this insertion : 0.01372218132019043 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06740212440490723 time spend to save output : 0.014527320861816406 total time spend for step 2 : 0.08192944526672363 step3:velours_tree Fri Apr 4 15:40:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22079538: [{'cartonnette': 22079568, 'Carton_gris': 22079569, 'mal_croppe': 22079570, 'autre_refus': 22079571, 'papier': 22079572, 'metal': 22079573, 'environnement': 22079574, 'Teint_Dans_La_Masse': 22079575, 'kraft': 22079576, 'flou': 22079577, 'Carton_brun': 22079578, 'plastique': 22079579}]} input_args_next_step : {22079538: ()} output_args : {22079538: [{'cartonnette': 22079568, 'Carton_gris': 22079569, 'mal_croppe': 22079570, 'autre_refus': 22079571, 'papier': 22079572, 'metal': 22079573, 'environnement': 22079574, 'Teint_Dans_La_Masse': 22079575, 'kraft': 22079576, 'flou': 22079577, 'Carton_brun': 22079578, 'plastique': 22079579}]} args : 22079538 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 : ({'cartonnette': 22079568, 'Carton_gris': 22079569, 'mal_croppe': 22079570, 'autre_refus': 22079571, 'papier': 22079572, 'metal': 22079573, 'environnement': 22079574, 'Teint_Dans_La_Masse': 22079575, 'kraft': 22079576, 'flou': 22079577, 'Carton_brun': 22079578, 'plastique': 22079579},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22079538) 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([22079538]) 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.3373911380767822 time spend to save output : 7.62939453125e-05 total time spend for step 3 : 0.3374674320220947 step4:send_mail_cod Fri Apr 4 15:40:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} input_args_next_step : {1350115496: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115496 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115493 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115487 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115402 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115379 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115303 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115278 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115269 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115224 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115130 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115089 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115085 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115066 depend.output_id : 0 input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ()} output_args : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',)} args : 1350115049 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 : {22079538: [{'cartonnette': 22079568, 'Carton_gris': 22079569, 'mal_croppe': 22079570, 'autre_refus': 22079571, 'papier': 22079572, 'metal': 22079573, 'environnement': 22079574, 'Teint_Dans_La_Masse': 22079575, 'kraft': 22079576, 'flou': 22079577, 'Carton_brun': 22079578, 'plastique': 22079579}]} input_args_next_step : {1350115496: ('0.03817499610266429',), 1350115493: ('0.03817499610266429',), 1350115487: ('0.03817499610266429',), 1350115402: ('0.03817499610266429',), 1350115379: ('0.03817499610266429',), 1350115303: ('0.03817499610266429',), 1350115278: ('0.03817499610266429',), 1350115269: ('0.03817499610266429',), 1350115224: ('0.03817499610266429',), 1350115130: ('0.03817499610266429',), 1350115089: ('0.03817499610266429',), 1350115085: ('0.03817499610266429',), 1350115066: ('0.03817499610266429',), 1350115049: ('0.03817499610266429',), 22079538: ()} output_args : {22079538: [{'cartonnette': 22079568, 'Carton_gris': 22079569, 'mal_croppe': 22079570, 'autre_refus': 22079571, 'papier': 22079572, 'metal': 22079573, 'environnement': 22079574, 'Teint_Dans_La_Masse': 22079575, 'kraft': 22079576, 'flou': 22079577, 'Carton_brun': 22079578, 'plastique': 22079579}]} args : 22079538 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.03817499610266429',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22079538) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1350115496,1350115493,1350115487,1350115402,1350115379,1350115303,1350115278,1350115269,1350115224,1350115130,1350115089,1350115085,1350115066,1350115049) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350115049 begin to download photo : 1350115089 begin to download photo : 1350115269 begin to download photo : 1350115379 begin to download photo : 1350115493 download finish for photo 1350115049 begin to download photo : 1350115066 download finish for photo 1350115269 begin to download photo : 1350115278 download finish for photo 1350115379 begin to download photo : 1350115402 download finish for photo 1350115089 begin to download photo : 1350115130 download finish for photo 1350115493 begin to download photo : 1350115496 download finish for photo 1350115278 begin to download photo : 1350115303 download finish for photo 1350115066 begin to download photo : 1350115085 download finish for photo 1350115496 download finish for photo 1350115130 begin to download photo : 1350115224 download finish for photo 1350115402 begin to download photo : 1350115487 download finish for photo 1350115303 download finish for photo 1350115085 download finish for photo 1350115224 download finish for photo 1350115487 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22079538_04-04-2025_15_40_59.pdf 22079568 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350114960: '1743773772_3631378_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165065_0.png', 1350114961: '1743773772_3631378_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165063_0.png', 1350115399: '1743773892_3633019_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165065_0.png', 1350115400: '1743773892_3633019_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165063_0.png', 1350115448: '1743773965_2348955_1350114773_af91294f1d7b0bc4233ecfdd0adc9605_rle_crop_3748167325_0.png', 1350115449: '1743773965_2348955_1350114773_af91294f1d7b0bc4233ecfdd0adc9605_rle_crop_3748167326_0.png', 1350115581: '1743773973_3634505_1350114599_690b8ca6fc9daaab20993024c63d5d76_rle_crop_3748166993_0.png', 1350115582: '1743773973_3634505_1350114599_690b8ca6fc9daaab20993024c63d5d76_rle_crop_3748166995_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/25228453333432b3fc44055fed8ee543_1902662.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ef9160df892f59613c92edfdef70d71e_56629033.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/25228453333432b3fc44055fed8ee543_4191502.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ef9160df892f59613c92edfdef70d71e_83099387.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0dad590fccb8d102f9187dd37d7a6470_49122480.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/585ae4559243bf8cee1584d25052aabb_24507908.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/400948a1f7854bbf9a63c47f71af8914_38308670.png change filename to text .imagette220795681743774059/ imagette220795681743774059/1743773892_3633019_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165065_0.png.png imagette220795681743774059/1743773973_3634505_1350114599_690b8ca6fc9daaab20993024c63d5d76_rle_crop_3748166993_0.png.png imagette220795681743774059/1743773772_3631378_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165065_0.png.png imagette220795681743774059/1743773772_3631378_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165063_0.png.png imagette220795681743774059/1743773892_3633019_1350114131_3ccef032309ec383ec4283c2f04c9af1_rle_crop_3748165063_0.png.png imagette220795681743774059/1743773965_2348955_1350114773_af91294f1d7b0bc4233ecfdd0adc9605_rle_crop_3748167326_0.png.png imagette220795681743774059/1743773965_2348955_1350114773_af91294f1d7b0bc4233ecfdd0adc9605_rle_crop_3748167325_0.png.png imagette220795681743774059/1743773973_3634505_1350114599_690b8ca6fc9daaab20993024c63d5d76_rle_crop_3748166995_0.png.png imagette220795701743774059/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/363a2e736ec9d4b1dfe93d4969289c44_94829516.png imagette220795681743774059 22079570 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220795701743774059 22079571 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350115442: '1743773965_2348955_1350114802_64eae72fcbd6d9fdb71f2ec9bd7dddde_rle_crop_3748167302_0.png', 1350115444: '1743773965_2348955_1350114789_6bce85890e8368e8dc21d5a529f45257_rle_crop_3748167319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/04837ad905255d4c9cbae9fa15ef699c_95626291.png change filename to text .imagette220795711743774059/ imagette220795711743774059/1743773965_2348955_1350114789_6bce85890e8368e8dc21d5a529f45257_rle_crop_3748167319_0.png.png imagette220795711743774059/1743773965_2348955_1350114802_64eae72fcbd6d9fdb71f2ec9bd7dddde_rle_crop_3748167302_0.png.png imagette220795731743774059/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a1144ad6f1d57ebef212c0aed749aacd_81182556.png imagette220795711743774059 22079573 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220795731743774059 22079576 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350114728: '1743773725_2345189_1350114560_f57195ed1814943f0badc7ecf015bf78_rle_crop_3748161943_0.png', 1350114839: '1743773732_3630970_1350114497_1682a9d80ff811fd36e866442beae68e_rle_crop_3748163505_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7fce05906dedf9e1d5832919aaab4ce4_11413440.png change filename to text .imagette220795761743774059/ imagette220795761743774059/1743773732_3630970_1350114497_1682a9d80ff811fd36e866442beae68e_rle_crop_3748163505_0.png.png imagette220795761743774059/1743773725_2345189_1350114560_f57195ed1814943f0badc7ecf015bf78_rle_crop_3748161943_0.png.png imagette220795771743774059/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f258366527fa9d627b58a027884d050f_66429975.png imagette220795761743774059 22079577 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220795771743774059 22079579 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350114838: '1743773732_3630970_1350114492_66ebc8e15586fca40be5b280c493ac04_rle_crop_3748163626_0.png', 1350114966: '1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164941_0.png', 1350114967: '1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164932_0.png', 1350114968: '1743773772_3631378_1350114161_3f79ffeea42e80ddc3859b7e58dc9ed7_rle_crop_3748165044_0.png', 1350115403: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164941_0.png', 1350115404: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164932_0.png', 1350115405: '1743773892_3633019_1350114161_3f79ffeea42e80ddc3859b7e58dc9ed7_rle_crop_3748165044_0.png', 1350115458: '1743773965_2348955_1350114894_cbab4f0131b8af7b690ceb2ce1c09fd8_rle_crop_3748167294_0.png', 1350115461: '1743773965_2348955_1350114773_af91294f1d7b0bc4233ecfdd0adc9605_rle_crop_3748167330_0.png', 1350115471: '1743773952_3634222_1350114888_a950d6acf0f7e24a106b850a1ac35bd0_rle_crop_3748167368_0.png', 1350115472: '1743773952_3634222_1350114888_a950d6acf0f7e24a106b850a1ac35bd0_rle_crop_3748167369_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/df2d3a998391000b7d15d15fa92cee1b_92120891.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d82869f9a12e873bddd94f00e91a1a5b_1027167.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c93c12ba67128ec0a0b1ffa348a4e270_30764313.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/2593f94b9ca45e00650a15a81f8207f4_97072033.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d82869f9a12e873bddd94f00e91a1a5b_90307189.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c93c12ba67128ec0a0b1ffa348a4e270_40546164.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/2593f94b9ca45e00650a15a81f8207f4_16188273.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0e9bafaaffc176799c290f2621d1c896_62974454.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/77df754f3561c4d8fa1b2b8f980a7edd_15832608.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7b9416afdc7b0332d0a735467519f328_28753694.png change filename to text .imagette220795791743774059/ imagette220795791743774059/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164932_0.png.png imagette220795791743774059/1743773965_2348955_1350114773_af91294f1d7b0bc4233ecfdd0adc9605_rle_crop_3748167330_0.png.png imagette220795791743774059/1743773772_3631378_1350114161_3f79ffeea42e80ddc3859b7e58dc9ed7_rle_crop_3748165044_0.png.png imagette220795791743774059/1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164932_0.png.png imagette220795791743774059/1743773732_3630970_1350114492_66ebc8e15586fca40be5b280c493ac04_rle_crop_3748163626_0.png.png imagette220795791743774059/1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164941_0.png.png imagette220795791743774059/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164941_0.png.png imagette220795791743774059/1743773965_2348955_1350114894_cbab4f0131b8af7b690ceb2ce1c09fd8_rle_crop_3748167294_0.png.png imagette220795791743774059/1743773952_3634222_1350114888_a950d6acf0f7e24a106b850a1ac35bd0_rle_crop_3748167369_0.png.png imagette220795791743774059/1743773952_3634222_1350114888_a950d6acf0f7e24a106b850a1ac35bd0_rle_crop_3748167368_0.png.png imagette220795791743774059/1743773892_3633019_1350114161_3f79ffeea42e80ddc3859b7e58dc9ed7_rle_crop_3748165044_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4978e5a9794525512e25a1500a6aa2ae_36058650.png imagette220795791743774059 22079569 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350114946: '1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164934_0.png', 1350114947: '1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164935_0.png', 1350114948: '1743773772_3631378_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165128_0.png', 1350115121: '1743773854_3632410_1350114665_0967c3c6a7f32885520867abcdb4fc16_rle_crop_3748165832_0.png', 1350115385: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164934_0.png', 1350115386: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748167028_0.png', 1350115387: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_bib_crop_3748164935_0.jpg', 1350115388: '1743773892_3633019_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165128_0.png', 1350115446: '1743773965_2348955_1350114789_6bce85890e8368e8dc21d5a529f45257_rle_crop_3748167317_0.png', 1350115460: '1743773952_3634222_1350114871_e73e1e633f4157a70a8f4968890414f6_rle_crop_3748167376_0.png', 1350115571: '1743773973_3634505_1350114601_ba5898f492b234a3cec586865ad0125c_rle_crop_3748166983_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3f6c1a68aab02418c999d54c204cf049_30104156.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4dda4c8e901422e08eba379aed88809b_40830259.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cd048a0c9e765ae685497d8224b60705_48761830.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/902a6c36f86cf74e197a2325992c6a8f_16640353.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3f6c1a68aab02418c999d54c204cf049_95885276.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a9fcac6ce671ad892a2006387da9a9e3_13406612.png change filename to text .wget -O 7.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/69e0d1436ae643be658911dacb3eadad_97103350.jpg change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cd048a0c9e765ae685497d8224b60705_27164786.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7bfcfce2d9164003506dfc89338af66f_18722825.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/37597cd34b5f8a13791c64b4f1e3c93f_75858147.png change filename to text .imagette220795691743774060/ imagette220795691743774060/1743773772_3631378_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165128_0.png.png imagette220795691743774060/1743773952_3634222_1350114871_e73e1e633f4157a70a8f4968890414f6_rle_crop_3748167376_0.png.png imagette220795691743774060/1743773892_3633019_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165128_0.png.png imagette220795691743774060/1743773854_3632410_1350114665_0967c3c6a7f32885520867abcdb4fc16_rle_crop_3748165832_0.png.png imagette220795691743774060/1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164934_0.png.png imagette220795691743774060/1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164935_0.png.png imagette220795691743774060/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_bib_crop_3748164935_0.jpg.jpg imagette220795691743774060/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748167028_0.png.png imagette220795691743774060/1743773965_2348955_1350114789_6bce85890e8368e8dc21d5a529f45257_rle_crop_3748167317_0.png.png imagette220795691743774060/1743773973_3634505_1350114601_ba5898f492b234a3cec586865ad0125c_rle_crop_3748166983_0.png.png imagette220795691743774060/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164934_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f55822993a1feac0ac51860dc7633495_32560749.png imagette220795691743774060 22079575 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350114828: '1743773732_3630970_1350114492_66ebc8e15586fca40be5b280c493ac04_rle_crop_3748163632_0.png', 1350114832: '1743773732_3630970_1350114477_ad0f91b564ae5db6e79fc16c06b6daf3_rle_crop_3748163709_0.png', 1350114833: '1743773732_3630970_1350114477_ad0f91b564ae5db6e79fc16c06b6daf3_rle_crop_3748163712_0.png', 1350114942: '1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164943_0.png', 1350114943: '1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164940_0.png', 1350114944: '1743773772_3631378_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165171_0.png', 1350114945: '1743773772_3631378_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165174_0.png', 1350115374: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164943_0.png', 1350115375: '1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164940_0.png', 1350115377: '1743773892_3633019_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165171_0.png', 1350115378: '1743773892_3633019_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165174_0.png', 1350115440: '1743773965_2348955_1350114802_64eae72fcbd6d9fdb71f2ec9bd7dddde_rle_crop_3748167303_0.png', 1350115441: '1743773965_2348955_1350114789_6bce85890e8368e8dc21d5a529f45257_rle_crop_3748167315_0.png', 1350115452: '1743773952_3634222_1350114854_bdba92130963ca9ad840504e2a4adf0e_rle_crop_3748167411_0.png', 1350115454: '1743773952_3634222_1350114854_bdba92130963ca9ad840504e2a4adf0e_rle_crop_3748167410_0.png', 1350115562: '1743773973_3634505_1350114601_ba5898f492b234a3cec586865ad0125c_rle_crop_3748166987_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c2df110f4aee6f85b3965b737733394a_32266070.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a9b879bc769ae7a4e86850323ec7f421_17749236.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6ddeb8f150a1b367b22302db723cb2fa_47430958.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0d53f6b150f50587c831d86052e0c175_4747374.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/480ef5ea0b46a84d550b3cece341a811_5316896.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/43cae2721a6493faa462833fbf6d547a_7377326.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0155a8415593d23d8e7bc8df48e0f277_87932600.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0d53f6b150f50587c831d86052e0c175_3576604.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/480ef5ea0b46a84d550b3cece341a811_7364099.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/43cae2721a6493faa462833fbf6d547a_48443399.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0155a8415593d23d8e7bc8df48e0f277_83128979.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d68e5ca3932331d47fc1514f45f5c8be_40413243.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6142b76814608929f71f1008e5d2562b_94267134.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a484888441caba843326dec57a97bec5_68471336.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f6569954a6d6df1a7e9ef92f00f443a0_91111503.png change filename to text .imagette220795751743774061/ imagette220795751743774061/1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164943_0.png.png imagette220795751743774061/1743773772_3631378_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164940_0.png.png imagette220795751743774061/1743773892_3633019_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165171_0.png.png imagette220795751743774061/1743773952_3634222_1350114854_bdba92130963ca9ad840504e2a4adf0e_rle_crop_3748167410_0.png.png imagette220795751743774061/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164943_0.png.png imagette220795751743774061/1743773772_3631378_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165171_0.png.png imagette220795751743774061/1743773952_3634222_1350114854_bdba92130963ca9ad840504e2a4adf0e_rle_crop_3748167411_0.png.png imagette220795751743774061/1743773772_3631378_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165174_0.png.png imagette220795751743774061/1743773732_3630970_1350114477_ad0f91b564ae5db6e79fc16c06b6daf3_rle_crop_3748163712_0.png.png imagette220795751743774061/1743773965_2348955_1350114789_6bce85890e8368e8dc21d5a529f45257_rle_crop_3748167315_0.png.png imagette220795751743774061/1743773732_3630970_1350114492_66ebc8e15586fca40be5b280c493ac04_rle_crop_3748163632_0.png.png imagette220795751743774061/1743773965_2348955_1350114802_64eae72fcbd6d9fdb71f2ec9bd7dddde_rle_crop_3748167303_0.png.png imagette220795751743774061/1743773892_3633019_1350114329_a3e4804cb9921c23030d5cc39e5f3ced_rle_crop_3748164940_0.png.png imagette220795751743774061/1743773732_3630970_1350114477_ad0f91b564ae5db6e79fc16c06b6daf3_rle_crop_3748163709_0.png.png imagette220795751743774061/1743773973_3634505_1350114601_ba5898f492b234a3cec586865ad0125c_rle_crop_3748166987_0.png.png imagette220795751743774061/1743773892_3633019_1350114065_1dd6c95b2b108514534f205015263e22_rle_crop_3748165174_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5d23d29d49328d60136ed3390c9ad034_57586321.png imagette220795751743774061 22079578 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350114835: '1743773732_3630970_1350114492_66ebc8e15586fca40be5b280c493ac04_rle_crop_3748163630_0.png', 1350114963: '1743773772_3631378_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165131_0.png', 1350115127: '1743773854_3632410_1350114665_0967c3c6a7f32885520867abcdb4fc16_rle_crop_3748165837_0.png', 1350115401: '1743773892_3633019_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1149561502a2affa2154168e3c982c1f_604741.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1bfc6c65a9f2bdac11ea70c46479c7e8_15236951.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4e191369b69a995f35e958464ef11bf0_65150454.png change filename to text .imagette220795781743774061/ imagette220795781743774061/1743773892_3633019_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165131_0.png.png imagette220795781743774061/1743773854_3632410_1350114665_0967c3c6a7f32885520867abcdb4fc16_rle_crop_3748165837_0.png.png imagette220795781743774061/1743773732_3630970_1350114492_66ebc8e15586fca40be5b280c493ac04_rle_crop_3748163630_0.png.png imagette220795781743774061/1743773772_3631378_1350114075_dc7fdff32e822b4535d266f7b3b9fc1d_rle_crop_3748165131_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1bfc6c65a9f2bdac11ea70c46479c7e8_49305462.png imagette220795781743774061 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22079538 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22079581,22079582,22079583,22079584,22079585,22079586,22079587,22079588,22079589,22079590,22079591,22079592?tags=cartonnette,Carton_gris,mal_croppe,autre_refus,papier,metal,environnement,Teint_Dans_La_Masse,kraft,flou,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1350115496] : ('0.03817499610266429',) no score found for photo 1350115496 We are sending mail with results at report@fotonower.com args[1350115493] : ('0.03817499610266429',) no score found for photo 1350115493 We are sending mail with results at report@fotonower.com args[1350115487] : ('0.03817499610266429',) no score found for photo 1350115487 We are sending mail with results at report@fotonower.com args[1350115402] : ('0.03817499610266429',) no score found for photo 1350115402 We are sending mail with results at report@fotonower.com args[1350115379] : ('0.03817499610266429',) no score found for photo 1350115379 We are sending mail with results at report@fotonower.com args[1350115303] : ('0.03817499610266429',) no score found for photo 1350115303 We are sending mail with results at report@fotonower.com args[1350115278] : ('0.03817499610266429',) no score found for photo 1350115278 We are sending mail with results at report@fotonower.com args[1350115269] : ('0.03817499610266429',) no score found for photo 1350115269 We are sending mail with results at report@fotonower.com args[1350115224] : ('0.03817499610266429',) no score found for photo 1350115224 We are sending mail with results at report@fotonower.com args[1350115130] : ('0.03817499610266429',) no score found for photo 1350115130 We are sending mail with results at report@fotonower.com args[1350115089] : ('0.03817499610266429',) no score found for photo 1350115089 We are sending mail with results at report@fotonower.com args[1350115085] : ('0.03817499610266429',) no score found for photo 1350115085 We are sending mail with results at report@fotonower.com args[1350115066] : ('0.03817499610266429',) no score found for photo 1350115066 We are sending mail with results at report@fotonower.com args[1350115049] : ('0.03817499610266429',) no score found for photo 1350115049 We are sending mail with results at report@fotonower.com refus_total : 0.03817499610266429 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079538 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_P22079538_04-04-2025_15_40_59.pdf results_Auto_P22079538_04-04-2025_15_40_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079538_04-04-2025_15_40_59.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','22079538','results_Auto_P22079538_04-04-2025_15_40_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079538_04-04-2025_15_40_59.pdf','pdf','','0.24','0.03817499610266429') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22079538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] map_info['map_portfolio_photo'] : {22079538: [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049, 1350114894, 1350114888, 1350114871, 1350114854, 1350114809, 1350114802, 1350114789, 1350114773, 1350114752, 1350114693, 1350114680, 1350114675, 1350114665, 1350114613, 1350114604, 1350114601, 1350114599, 1350114597, 1350114560, 1350114548, 1350114497, 1350114492, 1350114477, 1350114449, 1350114329, 1350114325, 1350114322, 1350114161, 1350114131, 1350114075, 1350114070, 1350114065]} final : False mtd_id 4302 list_pids : [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] 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, '2726932') ('4302', '22079538', '1350115496', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932') 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', '22079538', '1350115496', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932')] time used for this insertion : 0.013448476791381836 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.96854305267334 time spend to save output : 0.013768911361694336 total time spend for step 4 : 4.982311964035034 step5:split_time_score Fri Apr 4 15:41:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22079538'] 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 : [('22079538',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22079538) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350115493: {'path': 'temp/1743774058_1077987_1350115493_c22aa16d6d3374f4cfd3c9e268362f01.jpg', 'extension': 'jpg'}, 1350115496: {'path': 'temp/1743774058_1077987_1350115496_8c68de7ec39e64c54bee0b59dfedb232.jpg', 'extension': 'jpg'}, 1350115269: {'path': 'temp/1743774058_1077987_1350115269_01eac598aefa184eaee03d761733b3f3.jpg', 'extension': 'jpg'}, 1350115278: {'path': 'temp/1743774058_1077987_1350115278_bbb7ec9dae68a4e44e9b8850a5877808.jpg', 'extension': 'jpg'}, 1350115303: {'path': 'temp/1743774058_1077987_1350115303_a9ea0dadc191eb920f2ef322bbf83653.jpg', 'extension': 'jpg'}, 1350115049: {'path': 'temp/1743774058_1077987_1350115049_4fa7f0f3568c34b1b8b0d461669c1c23.jpg', 'extension': 'jpg'}, 1350115066: {'path': 'temp/1743774058_1077987_1350115066_16c78cb37639c6b31bc1e877190da7c9.jpg', 'extension': 'jpg'}, 1350115085: {'path': 'temp/1743774058_1077987_1350115085_4de0e30b21be10bc1e5b71b4233b71e0.jpg', 'extension': 'jpg'}, 1350115089: {'path': 'temp/1743774058_1077987_1350115089_0079c847d4f2ea05f6bc1287d1dbd66a.jpg', 'extension': 'jpg'}, 1350115130: {'path': 'temp/1743774058_1077987_1350115130_9e4f9c8b73bf6f22a1985705941ed065.jpg', 'extension': 'jpg'}, 1350115224: {'path': 'temp/1743774058_1077987_1350115224_9cdfa868216ed7e360afd1b83807e0ce.jpg', 'extension': 'jpg'}, 1350115379: {'path': 'temp/1743774058_1077987_1350115379_88c9e8b12e3c458bfd050981bb83836d.jpg', 'extension': 'jpg'}, 1350115402: {'path': 'temp/1743774058_1077987_1350115402_f34c5b5bff2eac67bdde5d185a72a58c.jpg', 'extension': 'jpg'}, 1350115487: {'path': 'temp/1743774058_1077987_1350115487_4756d02daf2a6bdc603f54023054e8df.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 = 22079538; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22079538 group by h (('15', 46),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22079538 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 (22079538) 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 (22079538) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22079538 Nombre de photos uploadées : 46 / 23040 (0%) 04042025 22079538 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 04042025 22079538 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1350114161, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3f79ffeea42e80ddc3859b7e58dc9ed7.jpg', 'username': None, 'uploaded_at': 1743773467, 'text': 'image_04042025_15_30_04_10169.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350114131, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3ccef032309ec383ec4283c2f04c9af1.jpg', 'username': None, 'uploaded_at': 1743773467, 'text': 'image_04042025_15_30_14_9128.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350114075, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/dc7fdff32e822b4535d266f7b3b9fc1d.jpg', 'username': None, 'uploaded_at': 1743773467, 'text': 'image_04042025_15_30_24_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350114070, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9262578a10b1dd4c7e7e6dae489514ab.jpg', 'username': None, 'uploaded_at': 1743773467, 'text': 'image_04042025_15_30_34_10134.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016417503356933594 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22079538, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025647878646850586 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725898, 'mtr_portfolio_id': 22077778, 'dashboard_result_id': 9892329, '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_P22077778_04-04-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077825, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725898, 'mtr_portfolio_id': 22078313, 'dashboard_result_id': 9892330, '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_P22078313_04-04-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078363, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725898, 'mtr_portfolio_id': 22079087, 'dashboard_result_id': 9892331, '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_P22079087_04-04-2025_15_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22079090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079101, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725898, 'mtr_portfolio_id': 22079538, 'dashboard_result_id': 9892332, '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_P22079538_04-04-2025_15_39_04.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079579, '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 = 22077778 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': 2726787, 'mtr_portfolio_id': 22077778, 'created_at': datetime.datetime(2025, 4, 4, 15, 3), 'result': '0.043468227871308565', 'result_long': None, 'result_double': None}] Qualite : 0.043468227871308565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22077778 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077778_04-04-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22077778 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_P22077778_04-04-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077825, 'pht': 3726}}" where mtr_portfolio_id = 22077778 and dashboard_run_id = 1725898 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`=22077778 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892329, 0.043468227871308565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077778_04-04-2025_15_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077815, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077816, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077817, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077818, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077819, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077820, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077821, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077822, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077824, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077825, '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 = 22078313 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': 2726846, 'mtr_portfolio_id': 22078313, 'created_at': datetime.datetime(2025, 4, 4, 15, 18, 59), 'result': '0.05257600847855405', 'result_long': None, 'result_double': None}] Qualite : 0.05257600847855405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22078313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078313_04-04-2025_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22078313 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_P22078313_04-04-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078363, 'pht': 3726}}" where mtr_portfolio_id = 22078313 and dashboard_run_id = 1725898 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`=22078313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892330, 0.05257600847855405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078313_04-04-2025_15_19_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078355, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078356, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078359, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078360, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078361, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078362, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078363, '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 = 22079087 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': 2726892, 'mtr_portfolio_id': 22079087, 'created_at': datetime.datetime(2025, 4, 4, 15, 33, 29), 'result': '0.06713754908659744', 'result_long': None, 'result_double': None}] Qualite : 0.06713754908659744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22079087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079087_04-04-2025_15_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22079087 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_P22079087_04-04-2025_15_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22079090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079101, 'pht': 3726}}" where mtr_portfolio_id = 22079087 and dashboard_run_id = 1725898 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`=22079087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892331, 0.06713754908659744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079087_04-04-2025_15_33_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22079090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079092, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079093, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079096, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079099, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079100, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079101, '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 = 22079538 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': 2726932, 'mtr_portfolio_id': 22079538, 'created_at': datetime.datetime(2025, 4, 4, 15, 40, 58), 'result': '0.03817499610266429', 'result_long': None, 'result_double': None}] Qualite : 0.03817499610266429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22079538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079538_04-04-2025_15_40_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22079538 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_P22079538_04-04-2025_15_40_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079579, 'pht': 3726}}" where mtr_portfolio_id = 22079538 and dashboard_run_id = 1725898 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`=22079538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9892332, 0.03817499610266429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22079538_04-04-2025_15_40_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22079568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22079569, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22079570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22079571, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22079572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22079573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22079574, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22079575, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22079576, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22079577, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22079578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22079579, '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 (22077778,22078313,22079087,22079538) result : ((1350103356,), (1350103366,), (1350103407,), (1350103438,), (1350103570,), (1350103582,), (1350103585,), (1350103589,), (1350103700,), (1350103705,), (1350103715,), (1350103722,), (1350103726,), (1350103729,), (1350103873,), (1350103877,), (1350103917,), (1350103942,), (1350104053,), (1350104057,), (1350104059,), (1350104062,), (1350104065,), (1350104116,), (1350104126,), (1350104137,), (1350104141,), (1350104145,), (1350104243,), (1350104250,), (1350104262,), (1350104538,), (1350104662,), (1350104705,), (1350104924,), (1350104928,), (1350104945,), (1350104952,), (1350104956,), (1350105112,), (1350105124,), (1350105126,), (1350105127,), (1350105137,), (1350105150,), (1350105191,), (1350105198,), (1350105202,), (1350105206,), (1350105265,), (1350105272,), (1350105276,), (1350105278,), (1350105282,), (1350105289,), (1350105361,), (1350105391,), (1350105409,), (1350105433,), (1350105472,), (1350105488,), (1350106197,), (1350106204,), (1350106245,), (1350106282,), (1350107193,), (1350107077,), (1350107153,), (1350107829,), (1350107910,), (1350107958,), (1350108007,), (1350108047,), (1350108314,), (1350108325,), (1350108335,), (1350108345,), (1350108816,), (1350108981,), (1350109061,), (1350109099,), (1350109146,), (1350109173,), (1350109478,), (1350109506,), (1350109514,), (1350109518,), (1350109537,), (1350109630,), (1350109638,), (1350109646,), (1350109651,), (1350109659,), (1350109712,), (1350109745,), (1350109768,), (1350109785,), (1350109823,), (1350109930,), (1350109937,), (1350109950,), (1350109969,), (1350110004,), (1350110016,), (1350110158,), (1350110192,), (1350110207,), (1350110211,), (1350110214,), (1350110219,), (1350110285,), (1350110290,), (1350110292,), (1350110302,), (1350110310,), (1350110484,), (1350110490,), (1350110579,), (1350110607,), (1350110626,), (1350110642,), (1350110741,), (1350110745,), (1350110752,), (1350110762,), (1350110766,), (1350110903,), (1350110931,), (1350110943,), (1350110957,), (1350111012,), (1350111020,), (1350111050,), (1350111054,), (1350111324,), (1350111257,), (1350111293,), (1350111317,), (1350111322,), (1350111391,), (1350111398,), (1350111404,), (1350111573,), (1350111580,), (1350111586,), (1350111608,), (1350111632,), (1350111705,), (1350111714,), (1350111791,), (1350111804,), (1350112040,), (1350112052,), (1350112055,), (1350112062,), (1350112069,), (1350112095,), (1350112100,), (1350112105,), (1350112111,), (1350112121,), (1350112187,), (1350112221,), (1350112250,), (1350112278,), (1350112308,), (1350112331,), (1350112722,), (1350112736,), (1350112746,), (1350112749,), (1350112771,), (1350112947,), (1350112975,), (1350112981,), (1350112995,), (1350113000,), (1350113032,), (1350113091,), (1350113096,), (1350113101,), (1350113115,), (1350113288,), (1350113294,), (1350113299,), (1350113303,), (1350113311,), (1350113316,), (1350113450,), (1350113457,), (1350113464,), (1350113469,), (1350113476,), (1350113572,), (1350113581,), (1350113599,), (1350113619,), (1350113623,), (1350113759,), (1350113793,), (1350113819,), (1350113924,), (1350113931,), (1350113966,), (1350113970,), (1350113984,), (1350113987,), (1350114189,), (1350114065,), (1350114070,), (1350114075,), (1350114131,), (1350114161,), (1350114322,), (1350114325,), (1350114329,), (1350114449,), (1350114477,), (1350114492,), (1350114497,), (1350114548,), (1350114560,), (1350114597,), (1350114599,), (1350114601,), (1350114604,), (1350114613,), (1350114665,), (1350114675,), (1350114680,), (1350114693,), (1350114752,), (1350114773,), (1350114789,), (1350114802,), (1350114809,), (1350114854,), (1350114871,), (1350114888,), (1350114894,), (1350115049,), (1350115066,), (1350115085,), (1350115089,), (1350115130,), (1350115224,), (1350115269,), (1350115278,), (1350115303,), (1350115379,), (1350115402,), (1350115487,), (1350115493,), (1350115496,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22079538]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] map_info['map_portfolio_photo'] : {22079538: [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049, 1350114894, 1350114888, 1350114871, 1350114854, 1350114809, 1350114802, 1350114789, 1350114773, 1350114752, 1350114693, 1350114680, 1350114675, 1350114665, 1350114613, 1350114604, 1350114601, 1350114599, 1350114597, 1350114560, 1350114548, 1350114497, 1350114492, 1350114477, 1350114449, 1350114329, 1350114325, 1350114322, 1350114161, 1350114131, 1350114075, 1350114070, 1350114065]} final : True mtd_id 4302 list_pids : [1350115496, 1350115493, 1350115487, 1350115402, 1350115379, 1350115303, 1350115278, 1350115269, 1350115224, 1350115130, 1350115089, 1350115085, 1350115066, 1350115049] Looping around the photos to save general results len do output : 1 /22079538Didn'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, '2726932') ('4302', '22079538', '1350115496', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932') ('4302', None, None, None, None, None, None, None, '2726932') ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932') 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, '22079538', 'None', None, None, None, None, '2726932'), ('4302', '22079538', '1350115496', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115493', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115487', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115402', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115379', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115303', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115278', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115269', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115224', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115130', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115089', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115085', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115066', None, None, None, None, None, '2726932'), ('4302', '22079538', '1350115049', None, None, None, None, None, '2726932')] time used for this insertion : 0.014739274978637695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36112403869628906 time spend to save output : 0.014952421188354492 total time spend for step 5 : 0.37607645988464355 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 (2726932) 2.44user 2.48system 0:09.41elapsed 52%CPU (0avgtext+0avgdata 162268maxresident)k 152inputs+16904outputs (13major+76296minor)pagefaults 0swaps