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 : 3243190 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 (2656851) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2656851) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260558 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2656851'] with mtr_portfolio_ids : ['21260558'] and first list_photo_ids : [] new path : /proc/3243190/ Name: python3 Umask: 0002 State: R (running) Tgid: 3243190 Ngid: 0 Pid: 3243190 PPid: 3243189 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3243190 NSpid: 3243190 NSpgid: 3240584 NSsid: 3240584 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98584 kB VmRSS: 98584 kB RssAnon: 59756 kB RssFile: 38828 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 53 nonvoluntary_ctxt_switches: 100 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3243190', 'Ngid': '0', 'Pid': '3243190', 'PPid': '3243189', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3243190', 'NSpid': '3243190', 'NSpgid': '3240584', 'NSsid': '3240584', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98584 kB', 'VmRSS': '98584 kB', 'RssAnon': '59756 kB', 'RssFile': '38828 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '53', 'nonvoluntary_ctxt_switches': '100'} ('datou_batch_current', '3243190', '1106844', '0', '1106844', '865592', '98584', b'', 'marlene', '2656851') 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 (21260558) 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 (2656851 ) ) 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 (21260558) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1342841913, 'portfolio_id': 21260558}, {'photo_id': 1342841887, 'portfolio_id': 21260558}, {'photo_id': 1342841840, 'portfolio_id': 21260558}, {'photo_id': 1342841803, 'portfolio_id': 21260558}, {'photo_id': 1342841753, 'portfolio_id': 21260558}, {'photo_id': 1342841479, 'portfolio_id': 21260558}, {'photo_id': 1342841443, 'portfolio_id': 21260558}, {'photo_id': 1342841411, 'portfolio_id': 21260558}, {'photo_id': 1342841378, 'portfolio_id': 21260558}, {'photo_id': 1342841372, 'portfolio_id': 21260558}, {'photo_id': 1342841335, 'portfolio_id': 21260558}, {'photo_id': 1342841331, 'portfolio_id': 21260558}, {'photo_id': 1342841328, 'portfolio_id': 21260558}, {'photo_id': 1342841324, 'portfolio_id': 21260558}, {'photo_id': 1342841316, 'portfolio_id': 21260558}, {'photo_id': 1342841161, 'portfolio_id': 21260558}, {'photo_id': 1342841129, 'portfolio_id': 21260558}, {'photo_id': 1342841121, 'portfolio_id': 21260558}, {'photo_id': 1342841093, 'portfolio_id': 21260558}, {'photo_id': 1342840820, 'portfolio_id': 21260558}, {'photo_id': 1342840808, 'portfolio_id': 21260558}, {'photo_id': 1342840781, 'portfolio_id': 21260558}, {'photo_id': 1342840713, 'portfolio_id': 21260558}, {'photo_id': 1342840697, 'portfolio_id': 21260558}, {'photo_id': 1342840693, 'portfolio_id': 21260558}, {'photo_id': 1342840658, 'portfolio_id': 21260558}, {'photo_id': 1342840654, 'portfolio_id': 21260558}, {'photo_id': 1342840646, 'portfolio_id': 21260558}, {'photo_id': 1342840423, 'portfolio_id': 21260558}, {'photo_id': 1342840420, 'portfolio_id': 21260558}, {'photo_id': 1342840240, 'portfolio_id': 21260558}, {'photo_id': 1342839776, 'portfolio_id': 21260558}, {'photo_id': 1342839739, 'portfolio_id': 21260558}, {'photo_id': 1342839718, 'portfolio_id': 21260558}, {'photo_id': 1342839687, 'portfolio_id': 21260558}, {'photo_id': 1342839643, 'portfolio_id': 21260558}, {'photo_id': 1342839609, 'portfolio_id': 21260558}, {'photo_id': 1342839444, 'portfolio_id': 21260558}, {'photo_id': 1342839421, 'portfolio_id': 21260558}, {'photo_id': 1342839383, 'portfolio_id': 21260558}, {'photo_id': 1342839353, 'portfolio_id': 21260558}, {'photo_id': 1342838647, 'portfolio_id': 21260558}, {'photo_id': 1342838523, 'portfolio_id': 21260558}, {'photo_id': 1342838508, 'portfolio_id': 21260558}] map_portfolio_id_photo_id: {21260558: [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316, 1342841161, 1342841129, 1342841121, 1342841093, 1342840820, 1342840808, 1342840781, 1342840713, 1342840697, 1342840693, 1342840658, 1342840654, 1342840646, 1342840423, 1342840420, 1342840240, 1342839776, 1342839739, 1342839718, 1342839687, 1342839643, 1342839609, 1342839444, 1342839421, 1342839383, 1342839353, 1342838647, 1342838523, 1342838508]} ##### 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.01681208610534668 #### 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 Tue Mar 11 06:12:59 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 (21260558) 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 : 21260558 get user id for portfolio 21260558 get sub ptf for main ptf 21260558, type 3726 and hashtags ['cartonnette', 'autre_refus', 'plastique', 'kraft', 'Teint_Dans_La_Masse', 'Carton_brun', 'Carton_gris', 'papier', 'environnement', 'mal_croppe', 'metal', 'flou'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21260558 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','plastique','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','papier','environnement','mal_croppe','metal','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21260558 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','plastique','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','papier','environnement','mal_croppe','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21260558, 'sub_port_id': 21260569, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848284, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'flou': {'main_port_id': 21260558, 'sub_port_id': 21260570, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848285, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21260558, 'sub_port_id': 21260571, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848286, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'Carton_gris': {'main_port_id': 21260558, 'sub_port_id': 21260572, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848287, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'autre_refus': {'main_port_id': 21260558, 'sub_port_id': 21260573, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848288, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'cartonnette': {'main_port_id': 21260558, 'sub_port_id': 21260574, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848289, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'Carton_brun': {'main_port_id': 21260558, 'sub_port_id': 21260575, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848290, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'mal_croppe': {'main_port_id': 21260558, 'sub_port_id': 21260576, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848291, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'metal': {'main_port_id': 21260558, 'sub_port_id': 21260577, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848292, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'plastique': {'main_port_id': 21260558, 'sub_port_id': 21260578, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848293, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'papier': {'main_port_id': 21260558, 'sub_port_id': 21260579, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848294, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}, 'environnement': {'main_port_id': 21260558, 'sub_port_id': 21260580, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848295, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21260569 , 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=21260558 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 (21260569) result : ((1342841386,), (1342841387,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260570 , 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=21260558 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 (21260570) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260571 , 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=21260558 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 (21260571) result : ((1342841164,), (1342841220,), (1342841313,), (1342841377,), (1342841421,), (1342841495,), (1342841497,), (1342841499,), (1342841501,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260572 , 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=21260558 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 (21260572) result : ((1342840463,), (1342840634,), (1342840635,), (1342841170,), (1342841171,), (1342841173,), (1342841236,), (1342841319,), (1342841449,), (1342841451,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260573 , 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=21260558 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 (21260573) result : ((1342840449,), (1342840450,), (1342840451,), (1342840625,), (1342840627,), (1342840629,), (1342840631,), (1342841165,), (1342841166,), (1342841167,), (1342841168,), (1342841169,), (1342841233,), (1342841234,), (1342841235,), (1342841317,), (1342841318,), (1342841358,), (1342841359,), (1342841360,), (1342841380,), (1342841381,), (1342841382,), (1342841435,), (1342841438,), (1342841516,), (1342841519,), (1342841521,), (1342841523,), (1342841525,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260574 , 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=21260558 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 (21260574) result : ((1342841175,), (1342841237,), (1342841362,), (1342841533,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260575 , 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=21260558 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 (21260575) result : ((1342840482,), (1342840483,), (1342841191,), (1342841196,), (1342841201,), (1342841206,), (1342841238,), (1342841239,), (1342841323,), (1342841383,), (1342841459,), (1342841553,), (1342841556,), (1342841559,), (1342841563,), (1342841566,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260576 , 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=21260558 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 (21260576) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260577 , 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=21260558 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 (21260577) result : ((1342841214,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260578 , 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=21260558 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 (21260578) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260579 , 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=21260558 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 (21260579) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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 21260580 , 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=21260558 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 (21260580) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21260558) result : ((1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) 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`=21260558 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','plastique','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','papier','environnement','mal_croppe','metal','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21260558 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','plastique','kraft','Teint_Dans_La_Masse','Carton_brun','Carton_gris','papier','environnement','mal_croppe','metal','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21260558, 'sub_port_id': 21260582, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848296, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'flou': {'main_port_id': 21260558, 'sub_port_id': 21260583, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848297, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21260558, 'sub_port_id': 21260584, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848298, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'Carton_gris': {'main_port_id': 21260558, 'sub_port_id': 21260585, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848299, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'autre_refus': {'main_port_id': 21260558, 'sub_port_id': 21260586, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848300, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'cartonnette': {'main_port_id': 21260558, 'sub_port_id': 21260587, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848301, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'Carton_brun': {'main_port_id': 21260558, 'sub_port_id': 21260588, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848302, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'mal_croppe': {'main_port_id': 21260558, 'sub_port_id': 21260589, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848303, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'metal': {'main_port_id': 21260558, 'sub_port_id': 21260590, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848304, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'plastique': {'main_port_id': 21260558, 'sub_port_id': 21260591, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848305, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'papier': {'main_port_id': 21260558, 'sub_port_id': 21260592, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848306, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}, 'environnement': {'main_port_id': 21260558, 'sub_port_id': 21260593, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13848307, 'last_updated_at': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 6, 9, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 6, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21260593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21260580 lien utilise dans velours : https://www.fotonower.com/velours/21260582,21260583,21260584,21260585,21260586,21260587,21260588,21260589,21260590,21260591,21260592,21260593?tags=kraft,flou,Teint_Dans_La_Masse,Carton_gris,autre_refus,cartonnette,Carton_brun,mal_croppe,metal,plastique,papier,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21260558]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] map_info['map_portfolio_photo'] : {21260558: [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316, 1342841161, 1342841129, 1342841121, 1342841093, 1342840820, 1342840808, 1342840781, 1342840713, 1342840697, 1342840693, 1342840658, 1342840654, 1342840646, 1342840423, 1342840420, 1342840240, 1342839776, 1342839739, 1342839718, 1342839687, 1342839643, 1342839609, 1342839444, 1342839421, 1342839383, 1342839353, 1342838647, 1342838523, 1342838508]} final : False mtd_id 4302 list_pids : [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] Looping around the photos to save general results len do output : 1 /21260558. 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, '2656851') ('4302', '21260558', '1342841913', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21260558', "{'kraft': 21260569, 'flou': 21260570, 'Teint_Dans_La_Masse': 21260571, 'Carton_gris': 21260572, 'autre_refus': 21260573, 'cartonnette': 21260574, 'Carton_brun': 21260575, 'mal_croppe': 21260576, 'metal': 21260577, 'plastique': 21260578, 'papier': 21260579, 'environnement': 21260580}", None, None, None, None, '2656851'), ('4302', '21260558', '1342841913', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851')] time used for this insertion : 0.015421867370605469 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5147106647491455 time spend to save output : 0.015744686126708984 total time spend for step 1 : 1.5304553508758545 step2:final Tue Mar 11 06:13:00 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 (21260558) 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 21260558 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1342838647,1342838523,1342838508,1342839444,1342839421,1342839383,1342839353,1342839776,1342839739,1342839718,1342839687,1342839643,1342839609,1342840423,1342840420,1342840240,1342840658,1342840654,1342840646,1342840713,1342840697,1342840693,1342840820,1342840808,1342840781,1342841161,1342841129,1342841121,1342841093,1342841335,1342841331,1342841328,1342841324,1342841316,1342841479,1342841443,1342841411,1342841378,1342841372,1342841913,1342841887,1342841840,1342841803,1342841753); 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([21260558]) Inside saveOutput : final : False verbose : True original output for save of step final : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} new output for save of step final : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] map_info['map_portfolio_photo'] : {21260558: [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316, 1342841161, 1342841129, 1342841121, 1342841093, 1342840820, 1342840808, 1342840781, 1342840713, 1342840697, 1342840693, 1342840658, 1342840654, 1342840646, 1342840423, 1342840420, 1342840240, 1342839776, 1342839739, 1342839718, 1342839687, 1342839643, 1342839609, 1342839444, 1342839421, 1342839383, 1342839353, 1342838647, 1342838523, 1342838508]} final : False mtd_id 4302 list_pids : [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] Looping around the photos to save general results len do output : 15 /1342841913.Didn't retrieve data . /1342841887.Didn't retrieve data . /1342841840.Didn't retrieve data . /1342841803.Didn't retrieve data . /1342841753.Didn't retrieve data . /1342841479.Didn't retrieve data . /1342841443.Didn't retrieve data . /1342841411.Didn't retrieve data . /1342841378.Didn't retrieve data . /1342841372.Didn't retrieve data . /1342841335.Didn't retrieve data . /1342841331.Didn't retrieve data . /1342841328.Didn't retrieve data . /1342841324.Didn't retrieve data . /1342841316.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, '2656851') ('4302', '21260558', '1342841913', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21260558', '1342841913', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841887', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841840', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841803', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841753', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841479', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841443', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841411', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841378', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841372', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841335', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841331', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841328', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841324', '0.0774299249404618', None, None, None, None, '2656851'), ('4302', '21260558', '1342841316', '0.0774299249404618', None, None, None, None, '2656851')] time used for this insertion : 0.01887798309326172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06805777549743652 time spend to save output : 0.019663095474243164 total time spend for step 2 : 0.08772087097167969 step3:velours_tree Tue Mar 11 06:13:00 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 : {21260558: [{'kraft': 21260569, 'flou': 21260570, 'Teint_Dans_La_Masse': 21260571, 'Carton_gris': 21260572, 'autre_refus': 21260573, 'cartonnette': 21260574, 'Carton_brun': 21260575, 'mal_croppe': 21260576, 'metal': 21260577, 'plastique': 21260578, 'papier': 21260579, 'environnement': 21260580}]} input_args_next_step : {21260558: ()} output_args : {21260558: [{'kraft': 21260569, 'flou': 21260570, 'Teint_Dans_La_Masse': 21260571, 'Carton_gris': 21260572, 'autre_refus': 21260573, 'cartonnette': 21260574, 'Carton_brun': 21260575, 'mal_croppe': 21260576, 'metal': 21260577, 'plastique': 21260578, 'papier': 21260579, 'environnement': 21260580}]} args : 21260558 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 : ({'kraft': 21260569, 'flou': 21260570, 'Teint_Dans_La_Masse': 21260571, 'Carton_gris': 21260572, 'autre_refus': 21260573, 'cartonnette': 21260574, 'Carton_brun': 21260575, 'mal_croppe': 21260576, 'metal': 21260577, 'plastique': 21260578, 'papier': 21260579, 'environnement': 21260580},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21260558) 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([21260558]) 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.33462023735046387 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.3346683979034424 step4:send_mail_cod Tue Mar 11 06:13:01 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 : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} input_args_next_step : {1342841913: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841913 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841887 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841840 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841803 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841753 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841479 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841443 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841411 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841378 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841372 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841335 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841331 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841328 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841324 depend.output_id : 0 input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ()} output_args : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',)} args : 1342841316 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 : {21260558: [{'kraft': 21260569, 'flou': 21260570, 'Teint_Dans_La_Masse': 21260571, 'Carton_gris': 21260572, 'autre_refus': 21260573, 'cartonnette': 21260574, 'Carton_brun': 21260575, 'mal_croppe': 21260576, 'metal': 21260577, 'plastique': 21260578, 'papier': 21260579, 'environnement': 21260580}]} input_args_next_step : {1342841913: ('0.0774299249404618',), 1342841887: ('0.0774299249404618',), 1342841840: ('0.0774299249404618',), 1342841803: ('0.0774299249404618',), 1342841753: ('0.0774299249404618',), 1342841479: ('0.0774299249404618',), 1342841443: ('0.0774299249404618',), 1342841411: ('0.0774299249404618',), 1342841378: ('0.0774299249404618',), 1342841372: ('0.0774299249404618',), 1342841335: ('0.0774299249404618',), 1342841331: ('0.0774299249404618',), 1342841328: ('0.0774299249404618',), 1342841324: ('0.0774299249404618',), 1342841316: ('0.0774299249404618',), 21260558: ()} output_args : {21260558: [{'kraft': 21260569, 'flou': 21260570, 'Teint_Dans_La_Masse': 21260571, 'Carton_gris': 21260572, 'autre_refus': 21260573, 'cartonnette': 21260574, 'Carton_brun': 21260575, 'mal_croppe': 21260576, 'metal': 21260577, 'plastique': 21260578, 'papier': 21260579, 'environnement': 21260580}]} args : 21260558 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 :16, first value : ('0.0774299249404618',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21260558) 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 (1342841913,1342841887,1342841840,1342841803,1342841753,1342841479,1342841443,1342841411,1342841378,1342841372,1342841335,1342841331,1342841328,1342841324,1342841316) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1342841316 begin to download photo : 1342841335 begin to download photo : 1342841443 begin to download photo : 1342841840 download finish for photo 1342841316 begin to download photo : 1342841324 download finish for photo 1342841443 begin to download photo : 1342841479 download finish for photo 1342841840 begin to download photo : 1342841887 download finish for photo 1342841335 begin to download photo : 1342841372 download finish for photo 1342841479 begin to download photo : 1342841753 download finish for photo 1342841324 begin to download photo : 1342841328 download finish for photo 1342841887 begin to download photo : 1342841913 download finish for photo 1342841372 begin to download photo : 1342841378 download finish for photo 1342841753 begin to download photo : 1342841803 download finish for photo 1342841328 begin to download photo : 1342841331 download finish for photo 1342841913 download finish for photo 1342841378 begin to download photo : 1342841411 download finish for photo 1342841803 download finish for photo 1342841331 download finish for photo 1342841411 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 : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21260558_11-03-2025_06_13_01.pdf 21260569 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=21260569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342841386: '1741669810_627717_1342840808_32776af824fe4e68b34c4396f4ec5ae8_rle_crop_3704373819_0.png', 1342841387: '1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373835_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7fa1ee94ded8274e908035f1b8119d98_83466699.png change filename to text .imagette212605691741669981/ imagette212605691741669981/1741669810_627717_1342840808_32776af824fe4e68b34c4396f4ec5ae8_rle_crop_3704373819_0.png.png imagette212605691741669981/1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373835_0.png.png imagette212605701741669982/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/01473e254e9a3f8d827faeb516a9fa26_96201448.png imagette212605691741669981 21260570 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=21260570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212605701741669982 21260573 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=21260573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342841317: '1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371920_0.png', 1342841525: '1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373449_0.png', 1342841523: '1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_bib_crop_3704373402_0.jpg', 1342841521: '1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_rle_crop_3704373916_0.png', 1342841519: '1741669825_266776_1342839718_64d31107382e8f688483450da30a9ccc_rle_crop_3704373393_0.png', 1342841516: '1741669825_266776_1342839739_2500dac20ec8ea0e63e28588d0efdca2_rle_crop_3704373361_0.png', 1342841438: '1741669827_1084231_1342840240_f3eb6a2e4cc1c7bd90396f521a11ffcb_rle_crop_3704371933_0.png', 1342841435: '1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371920_0.png', 1342841382: '1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373833_0.png', 1342841381: '1741669810_627717_1342840808_32776af824fe4e68b34c4396f4ec5ae8_rle_crop_3704373818_0.png', 1342841380: '1741669810_627717_1342841161_331f9fbed14aa9c411b7410f7ecdec49_rle_crop_3704373814_0.png', 1342841360: '1741669791_627201_1342841093_4e5da5e235398cf728f6819e40d4c918_rle_crop_3704373553_0.png', 1342841359: '1741669791_627201_1342841121_0bda50a261101e7cbb8286076c56c803_rle_crop_3704373483_0.png', 1342841358: '1741669791_627201_1342841129_556f7e90e0bf0c08f42cd417f117133b_rle_crop_3704373473_0.png', 1342841318: '1741669733_625945_1342840240_f3eb6a2e4cc1c7bd90396f521a11ffcb_rle_crop_3704371933_0.png', 1342840449: '1741669472_621950_1342839421_adf9c52501691e7a0511857ee2f786c3_rle_crop_3704368875_0.png', 1342841235: '1741669712_625622_1342840693_50dce2391d9f9d03c257edc7deb346f1_rle_crop_3704371818_0.png', 1342841234: '1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371807_0.png', 1342841233: '1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371797_0.png', 1342841169: '1741669706_1081215_1342840646_b04314a96bc70bd1cf7633ee33fa3d96_rle_crop_3704371764_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ed5a40aee7febf9ebbdf1e0714718877_26529354.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/16ca0d26004b6c3e5dec61a9ed554313_16891866.png change filename to text .wget -O 3.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c79f8472c3bb9270ab829f4b64c8d8af_65826672.jpg change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/080f57b43f5d917024e7b7892378e021_18494873.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f54193883e6c16a06ab98bcf78e3ba09_78594779.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d000ffdf2073e2a0ec67843f48b0b19b_14501483.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f43a6170f9c233423a75f4e61380eb12_25703533.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ed5a40aee7febf9ebbdf1e0714718877_85202138.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/529ce9c65a4341798b470b3c5c3fe54e_96094640.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ec79f60102eb8fbf6ed339eb24416310_73815379.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1303a463b4276cd6fc1ed438056c6b6e_97342456.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bd497ee6dfe7c65b1691b09d0472292f_21215303.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b4e915cc657a9684a96e033787563cf6_69732965.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/80f5ffd9028dcccc3398cc51eb71b05c_36575992.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f43a6170f9c233423a75f4e61380eb12_18222810.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7924c902b4029674cadd83d4da6f468e_76934154.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/79cf7060b7d24cb42239fb6d621a85e0_51600507.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/659a49e9f138374fc5f284663c14ed56_89043802.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1d80c25aec6cf442bb843809e35156af_3471202.png change filename to text .imagette212605731741669982/ imagette212605731741669982/1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373833_0.png.png imagette212605731741669982/1741669472_621950_1342839421_adf9c52501691e7a0511857ee2f786c3_rle_crop_3704368875_0.png.png imagette212605731741669982/1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371797_0.png.png imagette212605731741669982/1741669810_627717_1342841161_331f9fbed14aa9c411b7410f7ecdec49_rle_crop_3704373814_0.png.png imagette212605731741669982/1741669791_627201_1342841129_556f7e90e0bf0c08f42cd417f117133b_rle_crop_3704373473_0.png.png imagette212605731741669982/1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373449_0.png.png imagette212605731741669982/1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371807_0.png.png imagette212605731741669982/1741669827_1084231_1342840240_f3eb6a2e4cc1c7bd90396f521a11ffcb_rle_crop_3704371933_0.png.png imagette212605731741669982/1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_rle_crop_3704373916_0.png.png imagette212605731741669982/1741669791_627201_1342841093_4e5da5e235398cf728f6819e40d4c918_rle_crop_3704373553_0.png.png imagette212605731741669982/1741669825_266776_1342839739_2500dac20ec8ea0e63e28588d0efdca2_rle_crop_3704373361_0.png.png imagette212605731741669982/1741669810_627717_1342840808_32776af824fe4e68b34c4396f4ec5ae8_rle_crop_3704373818_0.png.png imagette212605731741669982/1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_bib_crop_3704373402_0.jpg.jpg imagette212605731741669982/1741669733_625945_1342840240_f3eb6a2e4cc1c7bd90396f521a11ffcb_rle_crop_3704371933_0.png.png imagette212605731741669982/1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371920_0.png.png imagette212605731741669982/1741669712_625622_1342840693_50dce2391d9f9d03c257edc7deb346f1_rle_crop_3704371818_0.png.png imagette212605731741669982/1741669791_627201_1342841121_0bda50a261101e7cbb8286076c56c803_rle_crop_3704373483_0.png.png imagette212605731741669982/1741669825_266776_1342839718_64d31107382e8f688483450da30a9ccc_rle_crop_3704373393_0.png.png imagette212605731741669982/1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371920_0.png.png imagette212605731741669982/1741669706_1081215_1342840646_b04314a96bc70bd1cf7633ee33fa3d96_rle_crop_3704371764_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7b0be857d752608683fa635adc187007_54630566.png imagette212605731741669982 21260574 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=21260574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342841175: '1741669706_1081215_1342840713_8d6cdcbfb17d21a507574222ea1aabbe_rle_crop_3704371670_0.png', 1342841237: '1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371795_0.png', 1342841362: '1741669791_627201_1342841129_556f7e90e0bf0c08f42cd417f117133b_rle_crop_3704373465_0.png', 1342841533: '1741669825_266776_1342839643_590a896a5811b3e400fdb371fdd27ae5_rle_crop_3704373440_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c5640794f37ab6c6b91476ec64a0ee6a_80439314.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/91965d471312cba844f23ac217cd8579_89304573.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f4e0c1e987488a1f0fd6947950ca6bae_34847600.png change filename to text .imagette212605741741669983/ imagette212605741741669983/1741669706_1081215_1342840713_8d6cdcbfb17d21a507574222ea1aabbe_rle_crop_3704371670_0.png.png imagette212605741741669983/1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371795_0.png.png imagette212605741741669983/1741669825_266776_1342839643_590a896a5811b3e400fdb371fdd27ae5_rle_crop_3704373440_0.png.png imagette212605741741669983/1741669791_627201_1342841129_556f7e90e0bf0c08f42cd417f117133b_rle_crop_3704373465_0.png.png imagette212605761741669983/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/901c5ee9ab4806bb916eee5b79a32be9_52643460.png imagette212605741741669983 21260576 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=21260576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212605761741669983 21260577 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=21260577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342841214: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371742_0.png'} change filename to text .imagette212605771741669983/ imagette212605771741669983/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371742_0.png.png imagette212605781741669983/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fc5c33029cf7a8b13d9edb577d638a94_29166071.png imagette212605771741669983 21260578 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=21260578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212605781741669983 21260571 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=21260571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342841164: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371747_0.png', 1342841220: '1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371803_0.png', 1342841313: '1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371913_0.png', 1342841377: '1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373832_0.png', 1342841421: '1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371913_0.png', 1342841495: '1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_rle_crop_3704373399_0.png', 1342841497: '1741669825_266776_1342839643_590a896a5811b3e400fdb371fdd27ae5_rle_crop_3704373439_0.png', 1342841499: '1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373455_0.png', 1342841501: '1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373458_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/db1a9e8a437c0914eb9456617f974a6e_16756226.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/15d361c92ec6ee4fa01611f6b91bd413_31262075.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/77ce02c10d652d8d6567f9b0f97f131e_17346524.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f53643845e914ab65d47f6a8dc966b18_20715846.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/77ce02c10d652d8d6567f9b0f97f131e_87392201.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c451cac5f173069df323874bb63b2878_55560234.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5a641414c8bf981031bdedbff05c61dc_59677379.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/393e0d3db88369cd0305b76ea7f8276f_78956428.png change filename to text .imagette212605711741669983/ imagette212605711741669983/1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371913_0.png.png imagette212605711741669983/1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373455_0.png.png imagette212605711741669983/1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373458_0.png.png imagette212605711741669983/1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373832_0.png.png imagette212605711741669983/1741669825_266776_1342839643_590a896a5811b3e400fdb371fdd27ae5_rle_crop_3704373439_0.png.png imagette212605711741669983/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371747_0.png.png imagette212605711741669983/1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_rle_crop_3704373399_0.png.png imagette212605711741669983/1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371913_0.png.png imagette212605711741669983/1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371803_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0ab2ce11962ee692aef02086afa43694_22037324.png imagette212605711741669983 21260572 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=21260572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342840463: '1741669472_621950_1342839383_39f2853848d67acdb60f4de00c763234_rle_crop_3704368890_0.png', 1342840634: '1741669493_622266_1342839444_72cc23a7dd3f310b53eadd993c539fbc_rle_crop_3704369096_0.png', 1342840635: '1741669493_622266_1342839444_72cc23a7dd3f310b53eadd993c539fbc_rle_crop_3704369100_0.png', 1342841170: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371744_0.png', 1342841171: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371743_0.png', 1342841173: '1741669706_1081215_1342840646_b04314a96bc70bd1cf7633ee33fa3d96_rle_crop_3704371763_0.png', 1342841236: '1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371804_0.png', 1342841319: '1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371914_0.png', 1342841449: '1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704373854_0.png', 1342841451: '1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_bib_crop_3704371914_0.jpg'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3fbf81752236f0c1eec60318b8f3f83b_14667966.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/54c5c5ff5f1c90842353e3e2fab6bd73_68448682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cc4d2570c08e10c22c7a5fa4c53a637d_61467435.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce879d755c4188bddf3d6112f052c943_44458634.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/64687cffad378d2fe12b2209b42efcc5_17509856.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/fb8dbb832ec18fa89137a25d06c49e7f_79139513.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1401012dcc25958d99f811287977d12f_72856457.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7ff47bbc1034ddde9bc9397e04d1d88c_90155005.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6d38bb0c1bc9fc45a7ee9f8be949906d_48987235.png change filename to text .imagette212605721741669983/ imagette212605721741669983/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371743_0.png.png imagette212605721741669983/1741669493_622266_1342839444_72cc23a7dd3f310b53eadd993c539fbc_rle_crop_3704369100_0.png.png imagette212605721741669983/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371744_0.png.png imagette212605721741669983/1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704373854_0.png.png imagette212605721741669983/1741669472_621950_1342839383_39f2853848d67acdb60f4de00c763234_rle_crop_3704368890_0.png.png imagette212605721741669983/1741669712_625622_1342840697_f4c91ff8cb3af80343b6ecf547232da4_rle_crop_3704371804_0.png.png imagette212605721741669983/1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371914_0.png.png imagette212605721741669983/1741669493_622266_1342839444_72cc23a7dd3f310b53eadd993c539fbc_rle_crop_3704369096_0.png.png imagette212605721741669983/1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_bib_crop_3704371914_0.jpg.jpg imagette212605721741669983/1741669706_1081215_1342840646_b04314a96bc70bd1cf7633ee33fa3d96_rle_crop_3704371763_0.png.png wget -O 10.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c7628098d7f26f67abb0e52cfd878970_20905245.jpg imagette212605721741669983 21260575 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=21260575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1342840482: '1741669472_621950_1342839383_39f2853848d67acdb60f4de00c763234_rle_crop_3704368895_0.png', 1342840483: '1741669472_621950_1342839353_dd04080a40e4c2368cc994bf5d8354f6_rle_crop_3704368909_0.png', 1342841191: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371749_0.png', 1342841196: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371756_0.png', 1342841201: '1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371753_0.png', 1342841206: '1741669706_1081215_1342840646_b04314a96bc70bd1cf7633ee33fa3d96_rle_crop_3704371770_0.png', 1342841238: '1741669712_625622_1342840693_50dce2391d9f9d03c257edc7deb346f1_rle_crop_3704371811_0.png', 1342841239: '1741669712_625622_1342840693_50dce2391d9f9d03c257edc7deb346f1_rle_crop_3704371813_0.png', 1342841323: '1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371917_0.png', 1342841383: '1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373830_0.png', 1342841459: '1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371917_0.png', 1342841553: '1741669825_266776_1342839739_2500dac20ec8ea0e63e28588d0efdca2_rle_crop_3704373365_0.png', 1342841556: '1741669825_266776_1342839718_64d31107382e8f688483450da30a9ccc_rle_crop_3704373389_0.png', 1342841559: '1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_rle_crop_3704373401_0.png', 1342841563: '1741669825_266776_1342839643_590a896a5811b3e400fdb371fdd27ae5_rle_crop_3704373441_0.png', 1342841566: '1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373456_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7219e522be26136b61ec5e39dfed1bfe_29139469.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/074062a90d0705be765e2a39435e402f_79761845.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cc2a9b6ab61a42f66d8ac3e46b72ad82_14338324.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ee6cf5a6691ed01b8f4e61d2df7ff44d_21743018.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a25b59b5c498c2f875bb6e6ecec70b2d_73161460.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/deeec481d5ec790d0e799298f24313a8_80291730.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/33f80b6ce32405a47690312b25875768_8323032.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ed9dca032b7763e72b9d69bc4f6dae99_77155798.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/77cdb96b4fcdcca5889e3d9b3dc44b6c_77278816.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f2d078b1b99855c77e75a0a2306e5e3e_80902812.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/77cdb96b4fcdcca5889e3d9b3dc44b6c_25968867.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cda1362646d429dc721ab6b87b937009_3069902.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f8e716e8a8219e60e13403a5ce9b9385_29286129.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/39f793897e1c565f16d2f6e7179d4f38_40997799.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ea5e23f398eaabb3b898faa8c1bc0812_79816117.png change filename to text .imagette212605751741669984/ imagette212605751741669984/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371756_0.png.png imagette212605751741669984/1741669733_625945_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371917_0.png.png imagette212605751741669984/1741669825_266776_1342839687_fbd0d5add6ea7ca35ec2d8a3576f8554_rle_crop_3704373401_0.png.png imagette212605751741669984/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371753_0.png.png imagette212605751741669984/1741669825_266776_1342839643_590a896a5811b3e400fdb371fdd27ae5_rle_crop_3704373441_0.png.png imagette212605751741669984/1741669810_627717_1342840781_2eafe82b34f6b9e2c7c474c537f8bbec_rle_crop_3704373830_0.png.png imagette212605751741669984/1741669712_625622_1342840693_50dce2391d9f9d03c257edc7deb346f1_rle_crop_3704371813_0.png.png imagette212605751741669984/1741669472_621950_1342839353_dd04080a40e4c2368cc994bf5d8354f6_rle_crop_3704368909_0.png.png imagette212605751741669984/1741669825_266776_1342839609_6f0260f85034913d48e2ab7f25ba716e_rle_crop_3704373456_0.png.png imagette212605751741669984/1741669472_621950_1342839383_39f2853848d67acdb60f4de00c763234_rle_crop_3704368895_0.png.png imagette212605751741669984/1741669706_1081215_1342840646_b04314a96bc70bd1cf7633ee33fa3d96_rle_crop_3704371770_0.png.png imagette212605751741669984/1741669825_266776_1342839718_64d31107382e8f688483450da30a9ccc_rle_crop_3704373389_0.png.png imagette212605751741669984/1741669712_625622_1342840693_50dce2391d9f9d03c257edc7deb346f1_rle_crop_3704371811_0.png.png imagette212605751741669984/1741669825_266776_1342839739_2500dac20ec8ea0e63e28588d0efdca2_rle_crop_3704373365_0.png.png imagette212605751741669984/1741669827_1084231_1342840658_d924740cc31f111704ecf8da8eba9c0a_rle_crop_3704371917_0.png.png imagette212605751741669984/1741669706_1081215_1342840654_12d65527f3ba5599138282774917248d_rle_crop_3704371749_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e36fb6a5e3d59abd9bbdcd002ed5cb69_74061454.png imagette212605751741669984 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21260558 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21260582,21260583,21260584,21260585,21260586,21260587,21260588,21260589,21260590,21260591,21260592,21260593?tags=kraft,flou,Teint_Dans_La_Masse,Carton_gris,autre_refus,cartonnette,Carton_brun,mal_croppe,metal,plastique,papier,environnement your option no_mail is active, we will not send the real mail to your client args[1342841913] : ('0.0774299249404618',) no score found for photo 1342841913 We are sending mail with results at report@fotonower.com args[1342841887] : ('0.0774299249404618',) no score found for photo 1342841887 We are sending mail with results at report@fotonower.com args[1342841840] : ('0.0774299249404618',) no score found for photo 1342841840 We are sending mail with results at report@fotonower.com args[1342841803] : ('0.0774299249404618',) no score found for photo 1342841803 We are sending mail with results at report@fotonower.com args[1342841753] : ('0.0774299249404618',) no score found for photo 1342841753 We are sending mail with results at report@fotonower.com args[1342841479] : ('0.0774299249404618',) no score found for photo 1342841479 We are sending mail with results at report@fotonower.com args[1342841443] : ('0.0774299249404618',) no score found for photo 1342841443 We are sending mail with results at report@fotonower.com args[1342841411] : ('0.0774299249404618',) no score found for photo 1342841411 We are sending mail with results at report@fotonower.com args[1342841378] : ('0.0774299249404618',) no score found for photo 1342841378 We are sending mail with results at report@fotonower.com args[1342841372] : ('0.0774299249404618',) no score found for photo 1342841372 We are sending mail with results at report@fotonower.com args[1342841335] : ('0.0774299249404618',) no score found for photo 1342841335 We are sending mail with results at report@fotonower.com args[1342841331] : ('0.0774299249404618',) no score found for photo 1342841331 We are sending mail with results at report@fotonower.com args[1342841328] : ('0.0774299249404618',) no score found for photo 1342841328 We are sending mail with results at report@fotonower.com args[1342841324] : ('0.0774299249404618',) no score found for photo 1342841324 We are sending mail with results at report@fotonower.com args[1342841316] : ('0.0774299249404618',) no score found for photo 1342841316 We are sending mail with results at report@fotonower.com refus_total : 0.0774299249404618 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=21260558 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_P21260558_11-03-2025_06_13_01.pdf results_Auto_P21260558_11-03-2025_06_13_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21260558_11-03-2025_06_13_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21260558','results_Auto_P21260558_11-03-2025_06_13_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21260558_11-03-2025_06_13_01.pdf','pdf','','0.29','0.0774299249404618') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21260558]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] map_info['map_portfolio_photo'] : {21260558: [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316, 1342841161, 1342841129, 1342841121, 1342841093, 1342840820, 1342840808, 1342840781, 1342840713, 1342840697, 1342840693, 1342840658, 1342840654, 1342840646, 1342840423, 1342840420, 1342840240, 1342839776, 1342839739, 1342839718, 1342839687, 1342839643, 1342839609, 1342839444, 1342839421, 1342839383, 1342839353, 1342838647, 1342838523, 1342838508]} final : False mtd_id 4302 list_pids : [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] 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, '2656851') ('4302', '21260558', '1342841913', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851') 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', '21260558', '1342841913', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851')] time used for this insertion : 0.07744288444519043 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.268606424331665 time spend to save output : 0.07768774032592773 total time spend for step 4 : 5.346294164657593 step5:split_time_score Tue Mar 11 06:13:06 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 : ['21260558'] 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 : [('21260558',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21260558) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1342841840: {'path': 'temp/1741669981_3243190_1342841840_1cb1f690710ae60fbba354285328ec7b.jpg', 'extension': 'jpg'}, 1342841887: {'path': 'temp/1741669981_3243190_1342841887_82edb08af8be1897ed9f696cd6ce174b.jpg', 'extension': 'jpg'}, 1342841913: {'path': 'temp/1741669981_3243190_1342841913_ada3340a57c74a65639471a694ed7cbb.jpg', 'extension': 'jpg'}, 1342841443: {'path': 'temp/1741669981_3243190_1342841443_5b92f6500bc260973185100354bc1e74.jpg', 'extension': 'jpg'}, 1342841479: {'path': 'temp/1741669981_3243190_1342841479_df4531d7fc7d6e81a6e00d0632b48c4f.jpg', 'extension': 'jpg'}, 1342841753: {'path': 'temp/1741669981_3243190_1342841753_d62c0337bb9aef1a0f9387fce8c6a862.jpg', 'extension': 'jpg'}, 1342841803: {'path': 'temp/1741669981_3243190_1342841803_bd116078d26914e25f75529e4cc4e506.jpg', 'extension': 'jpg'}, 1342841316: {'path': 'temp/1741669981_3243190_1342841316_7bce876b87d700044609046d26f65087.jpg', 'extension': 'jpg'}, 1342841324: {'path': 'temp/1741669981_3243190_1342841324_c28a629dd9708fbefc455eb9ae64fa78.jpg', 'extension': 'jpg'}, 1342841328: {'path': 'temp/1741669981_3243190_1342841328_f610e4620e77aa0f6ac1d734b0c507d0.jpg', 'extension': 'jpg'}, 1342841331: {'path': 'temp/1741669981_3243190_1342841331_b19be9d6f1fca39b6e60f11ff442fa1b.jpg', 'extension': 'jpg'}, 1342841335: {'path': 'temp/1741669981_3243190_1342841335_679b4bcc61c44b3cb9952af77a6241b5.jpg', 'extension': 'jpg'}, 1342841372: {'path': 'temp/1741669981_3243190_1342841372_031a2b9ff60ddf099780936855cb9bcc.jpg', 'extension': 'jpg'}, 1342841378: {'path': 'temp/1741669981_3243190_1342841378_cae3cc656a44b036bf7a54ade74c15a0.jpg', 'extension': 'jpg'}, 1342841411: {'path': 'temp/1741669981_3243190_1342841411_003a31a28d6dd9bea2f93469e07c6769.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 = 21260558; (('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 = 21260558 group by h (('06', 44),) 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=21260558 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 (21260558) 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 (21260558) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21260558 Nombre de photos uploadées : 44 / 23040 (0%) 11032025 21260558 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 11032025 21260558 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1342838647, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/45109a0cc5f6f90a193ee55851816b02.jpg', 'username': None, 'uploaded_at': 1741669298, 'text': 'image_11032025_06_00_14_010218m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342838523, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9b9217da9a8c8881aeea35d67a6336a4.jpg', 'username': None, 'uploaded_at': 1741669298, 'text': 'image_11032025_06_00_24_010151m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342838508, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8388ba4d5dc83e0bcec8f9f62ec5dc5b.jpg', 'username': None, 'uploaded_at': 1741669298, 'text': 'image_11032025_06_00_34_010143m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1342839444, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/72cc23a7dd3f310b53eadd993c539fbc.jpg', 'username': None, 'uploaded_at': 1741669358, 'text': 'image_11032025_06_00_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018732547760009766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21260558, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028537750244140625 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665077, 'mtr_portfolio_id': 21258639, 'dashboard_result_id': 9334552, '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_P21258639_11-03-2025_05_52_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21258642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21258643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21258644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21258645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21258646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21258647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21258648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21258649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21258650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21258651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21258652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21258653, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665077, 'mtr_portfolio_id': 21259275, 'dashboard_result_id': 9334553, '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_P21259275_11-03-2025_05_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21259278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21259279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21259280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21259281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21259282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21259283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21259284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21259285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21259286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21259287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21259288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21259289, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665077, 'mtr_portfolio_id': 21259792, 'dashboard_result_id': 9334554, '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_P21259792_11-03-2025_06_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21259805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21259806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21259807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21259808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21259809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21259810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21259811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21259812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21259813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21259814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21259815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21259816, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1665077, 'mtr_portfolio_id': 21260558, 'dashboard_result_id': 9334555, '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_P21260558_11-03-2025_06_10_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21260569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21260570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21260571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21260572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21260573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21260574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21260575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21260576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21260577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21260578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21260579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21260580, '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 = 21258639 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': 2656772, 'mtr_portfolio_id': 21258639, 'created_at': datetime.datetime(2025, 3, 11, 5, 52, 35), 'result': '0.06102000110689618', 'result_long': None, 'result_double': None}] Qualite : 0.06102000110689618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21258639 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21258639_11-03-2025_05_52_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21258639 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_P21258639_11-03-2025_05_52_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21258642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21258643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21258644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21258645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21258646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21258647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21258648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21258649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21258650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21258651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21258652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21258653, 'pht': 3726}}" where mtr_portfolio_id = 21258639 and dashboard_run_id = 1665077 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`=21258639 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9334552, 0.06102000110689618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21258639_11-03-2025_05_52_37.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21258642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21258643, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21258644, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21258645, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21258646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21258647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21258648, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21258649, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21258650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21258651, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21258652, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21258653, '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 = 21259275 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': 2656775, 'mtr_portfolio_id': 21259275, 'created_at': datetime.datetime(2025, 3, 11, 5, 49, 31), 'result': '0.06366760695809574', 'result_long': None, 'result_double': None}] Qualite : 0.06366760695809574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21259275 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21259275_11-03-2025_05_49_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21259275 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_P21259275_11-03-2025_05_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21259278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21259279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21259280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21259281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21259282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21259283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21259284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21259285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21259286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21259287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21259288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21259289, 'pht': 3726}}" where mtr_portfolio_id = 21259275 and dashboard_run_id = 1665077 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`=21259275 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9334553, 0.06366760695809574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21259275_11-03-2025_05_49_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21259278, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21259279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21259280, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21259281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21259282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21259283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21259284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21259285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21259286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21259287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21259288, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21259289, '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 = 21259792 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': 2656805, 'mtr_portfolio_id': 21259792, 'created_at': datetime.datetime(2025, 3, 11, 6, 1, 2), 'result': '0.06982437013958794', 'result_long': None, 'result_double': None}] Qualite : 0.06982437013958794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21259792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21259792_11-03-2025_06_01_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21259792 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_P21259792_11-03-2025_06_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21259805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21259806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21259807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21259808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21259809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21259810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21259811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21259812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21259813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21259814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21259815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21259816, 'pht': 3726}}" where mtr_portfolio_id = 21259792 and dashboard_run_id = 1665077 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`=21259792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9334554, 0.06982437013958794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21259792_11-03-2025_06_01_03.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21259805, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21259806, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21259807, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21259808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21259809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21259810, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21259811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21259812, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21259813, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21259814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21259815, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21259816, '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 = 21260558 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': 2656851, 'mtr_portfolio_id': 21260558, 'created_at': datetime.datetime(2025, 3, 11, 6, 13), 'result': '0.0774299249404618', 'result_long': None, 'result_double': None}] Qualite : 0.0774299249404618 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21260558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21260558_11-03-2025_06_13_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21260558 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_P21260558_11-03-2025_06_13_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21260569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21260570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21260571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21260572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21260573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21260574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21260575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21260576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21260577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21260578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21260579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21260580, 'pht': 3726}}" where mtr_portfolio_id = 21260558 and dashboard_run_id = 1665077 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`=21260558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9334555, 0.0774299249404618, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21260558_11-03-2025_06_13_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21260569, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21260570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21260571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21260572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21260573, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21260574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21260575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21260576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21260577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21260578, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21260579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21260580, '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 (21258639,21259275,21259792,21260558) result : ((1342829267,), (1342829277,), (1342829279,), (1342829424,), (1342829427,), (1342829429,), (1342829431,), (1342829904,), (1342830030,), (1342830034,), (1342830036,), (1342830093,), (1342830094,), (1342830174,), (1342830178,), (1342830181,), (1342830184,), (1342830410,), (1342830432,), (1342830441,), (1342830444,), (1342830516,), (1342830563,), (1342830602,), (1342830612,), (1342830766,), (1342830812,), (1342830815,), (1342830819,), (1342830842,), (1342830845,), (1342831021,), (1342831026,), (1342831029,), (1342831042,), (1342831063,), (1342831070,), (1342831224,), (1342831229,), (1342831232,), (1342831236,), (1342831239,), (1342831375,), (1342831389,), (1342831396,), (1342831473,), (1342831493,), (1342831498,), (1342831501,), (1342831519,), (1342831543,), (1342831609,), (1342831624,), (1342831651,), (1342831680,), (1342831705,), (1342831817,), (1342831835,), (1342831837,), (1342831840,), (1342831866,), (1342832005,), (1342832025,), (1342832049,), (1342832065,), (1342832085,), (1342832122,), (1342832124,), (1342832144,), (1342832148,), (1342832521,), (1342832293,), (1342832444,), (1342832516,), (1342832518,), (1342832622,), (1342832625,), (1342832628,), (1342832685,), (1342832689,), (1342832714,), (1342832881,), (1342832902,), (1342832909,), (1342832914,), (1342832967,), (1342832977,), (1342832985,), (1342832989,), (1342833013,), (1342833358,), (1342833457,), (1342833554,), (1342833736,), (1342833740,), (1342833748,), (1342833752,), (1342833845,), (1342833866,), (1342833891,), (1342834108,), (1342834112,), (1342834117,), (1342834124,), (1342834178,), (1342834186,), (1342834189,), (1342834192,), (1342834199,), (1342834275,), (1342834354,), (1342834358,), (1342834433,), (1342834526,), (1342834763,), (1342834771,), (1342834774,), (1342834777,), (1342834779,), (1342834781,), (1342834818,), (1342834822,), (1342834826,), (1342834829,), (1342834832,), (1342835115,), (1342835134,), (1342835169,), (1342835211,), (1342835420,), (1342835422,), (1342835428,), (1342835433,), (1342835437,), (1342835442,), (1342835800,), (1342835491,), (1342835597,), (1342835663,), (1342835781,), (1342835791,), (1342836039,), (1342836042,), (1342836048,), (1342836074,), (1342836077,), (1342836082,), (1342836089,), (1342836099,), (1342836103,), (1342836193,), (1342836198,), (1342836206,), (1342836220,), (1342836228,), (1342836230,), (1342836288,), (1342836330,), (1342836348,), (1342836372,), (1342836387,), (1342836424,), (1342836436,), (1342836441,), (1342836688,), (1342836703,), (1342836708,), (1342836713,), (1342836718,), (1342836748,), (1342836752,), (1342836758,), (1342836763,), (1342836765,), (1342836808,), (1342836811,), (1342836815,), (1342836851,), (1342836877,), (1342836903,), (1342836927,), (1342836951,), (1342836976,), (1342837167,), (1342837212,), (1342837241,), (1342837266,), (1342837504,), (1342837514,), (1342837518,), (1342837524,), (1342837546,), (1342837725,), (1342837749,), (1342837752,), (1342837754,), (1342838062,), (1342838094,), (1342838124,), (1342838154,), (1342838177,), (1342838847,), (1342838508,), (1342838523,), (1342838647,), (1342839353,), (1342839383,), (1342839421,), (1342839444,), (1342839609,), (1342839643,), (1342839687,), (1342839718,), (1342839739,), (1342839776,), (1342840240,), (1342840420,), (1342840423,), (1342840646,), (1342840654,), (1342840658,), (1342840693,), (1342840697,), (1342840713,), (1342840781,), (1342840808,), (1342840820,), (1342841093,), (1342841121,), (1342841129,), (1342841161,), (1342841316,), (1342841324,), (1342841328,), (1342841331,), (1342841335,), (1342841372,), (1342841378,), (1342841411,), (1342841443,), (1342841479,), (1342841753,), (1342841803,), (1342841840,), (1342841887,), (1342841913,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21260558]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] map_info['map_portfolio_photo'] : {21260558: [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316, 1342841161, 1342841129, 1342841121, 1342841093, 1342840820, 1342840808, 1342840781, 1342840713, 1342840697, 1342840693, 1342840658, 1342840654, 1342840646, 1342840423, 1342840420, 1342840240, 1342839776, 1342839739, 1342839718, 1342839687, 1342839643, 1342839609, 1342839444, 1342839421, 1342839383, 1342839353, 1342838647, 1342838523, 1342838508]} final : True mtd_id 4302 list_pids : [1342841913, 1342841887, 1342841840, 1342841803, 1342841753, 1342841479, 1342841443, 1342841411, 1342841378, 1342841372, 1342841335, 1342841331, 1342841328, 1342841324, 1342841316] Looping around the photos to save general results len do output : 1 /21260558Didn'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, '2656851') ('4302', '21260558', '1342841913', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851') ('4302', None, None, None, None, None, None, None, '2656851') ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21260558', 'None', None, None, None, None, '2656851'), ('4302', '21260558', '1342841913', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841887', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841840', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841803', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841753', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841479', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841443', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841411', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841378', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841372', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841335', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841331', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841328', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841324', None, None, None, None, None, '2656851'), ('4302', '21260558', '1342841316', None, None, None, None, None, '2656851')] time used for this insertion : 0.01510477066040039 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35169482231140137 time spend to save output : 0.015416860580444336 total time spend for step 5 : 0.3671116828918457 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 (2656851) 2.34user 2.06system 0:10.97elapsed 40%CPU (0avgtext+0avgdata 161184maxresident)k 6592inputs+16744outputs (63major+77197minor)pagefaults 0swaps