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 : 571796 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 (2781852) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2781852) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591636 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2781852'] with mtr_portfolio_ids : ['22591636'] and first list_photo_ids : [] new path : /proc/571796/ Name: python3 Umask: 0002 State: R (running) Tgid: 571796 Ngid: 0 Pid: 571796 PPid: 571795 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 571796 NSpid: 571796 NSpgid: 569488 NSsid: 569488 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99252 kB VmRSS: 99252 kB RssAnon: 60200 kB RssFile: 39052 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '571796', 'Ngid': '0', 'Pid': '571796', 'PPid': '571795', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '571796', 'NSpid': '571796', 'NSpgid': '569488', 'NSsid': '569488', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99252 kB', 'VmRSS': '99252 kB', 'RssAnon': '60200 kB', 'RssFile': '39052 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '571796', '1107228', '0', '1107228', '865976', '99252', b'', 'marlene', '2781852') 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 (22591636) 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 (2781852 ) ) 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 (22591636) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355227615, 'portfolio_id': 22591636}, {'photo_id': 1355227613, 'portfolio_id': 22591636}, {'photo_id': 1355227589, 'portfolio_id': 22591636}, {'photo_id': 1355227434, 'portfolio_id': 22591636}, {'photo_id': 1355227431, 'portfolio_id': 22591636}, {'photo_id': 1355227428, 'portfolio_id': 22591636}, {'photo_id': 1355227370, 'portfolio_id': 22591636}, {'photo_id': 1355227363, 'portfolio_id': 22591636}, {'photo_id': 1355227360, 'portfolio_id': 22591636}, {'photo_id': 1355227358, 'portfolio_id': 22591636}, {'photo_id': 1355227268, 'portfolio_id': 22591636}, {'photo_id': 1355227237, 'portfolio_id': 22591636}, {'photo_id': 1355227224, 'portfolio_id': 22591636}, {'photo_id': 1355227220, 'portfolio_id': 22591636}, {'photo_id': 1355227086, 'portfolio_id': 22591636}, {'photo_id': 1355227056, 'portfolio_id': 22591636}, {'photo_id': 1355227027, 'portfolio_id': 22591636}, {'photo_id': 1355226999, 'portfolio_id': 22591636}, {'photo_id': 1355226973, 'portfolio_id': 22591636}, {'photo_id': 1355226762, 'portfolio_id': 22591636}, {'photo_id': 1355226744, 'portfolio_id': 22591636}, {'photo_id': 1355226557, 'portfolio_id': 22591636}, {'photo_id': 1355226531, 'portfolio_id': 22591636}, {'photo_id': 1355225948, 'portfolio_id': 22591636}, {'photo_id': 1355225923, 'portfolio_id': 22591636}, {'photo_id': 1355225897, 'portfolio_id': 22591636}, {'photo_id': 1355225870, 'portfolio_id': 22591636}, {'photo_id': 1355225485, 'portfolio_id': 22591636}, {'photo_id': 1355225369, 'portfolio_id': 22591636}, {'photo_id': 1355225296, 'portfolio_id': 22591636}, {'photo_id': 1355225245, 'portfolio_id': 22591636}, {'photo_id': 1355224403, 'portfolio_id': 22591636}, {'photo_id': 1355224379, 'portfolio_id': 22591636}] map_portfolio_id_photo_id: {22591636: [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358, 1355227268, 1355227237, 1355227224, 1355227220, 1355227086, 1355227056, 1355227027, 1355226999, 1355226973, 1355226762, 1355226744, 1355226557, 1355226531, 1355225948, 1355225923, 1355225897, 1355225870, 1355225485, 1355225369, 1355225296, 1355225245, 1355224403, 1355224379]} ##### 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.015470743179321289 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri May 2 07:10:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22591636) 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 : 22591636 get user id for portfolio 22591636 get sub ptf for main ptf 22591636, type 3726 and hashtags ['metal', 'Teint_Dans_La_Masse', 'environnement', 'plastique', 'flou', 'autre_refus', 'Carton_gris', 'mal_croppe', 'kraft', 'papier', 'cartonnette', 'Carton_brun'] 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`=22591636 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','environnement','plastique','flou','autre_refus','Carton_gris','mal_croppe','kraft','papier','cartonnette','Carton_brun')) 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`=22591636 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','environnement','plastique','flou','autre_refus','Carton_gris','mal_croppe','kraft','papier','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22591636, 'sub_port_id': 22591661, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022006, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'metal': {'main_port_id': 22591636, 'sub_port_id': 22591662, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022007, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'flou': {'main_port_id': 22591636, 'sub_port_id': 22591663, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022008, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'autre_refus': {'main_port_id': 22591636, 'sub_port_id': 22591664, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022009, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'environnement': {'main_port_id': 22591636, 'sub_port_id': 22591665, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022010, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'Carton_brun': {'main_port_id': 22591636, 'sub_port_id': 22591666, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022011, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'cartonnette': {'main_port_id': 22591636, 'sub_port_id': 22591667, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022012, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'plastique': {'main_port_id': 22591636, 'sub_port_id': 22591668, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022013, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'mal_croppe': {'main_port_id': 22591636, 'sub_port_id': 22591669, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022014, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'Carton_gris': {'main_port_id': 22591636, 'sub_port_id': 22591670, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022015, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'papier': {'main_port_id': 22591636, 'sub_port_id': 22591671, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022016, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}, 'kraft': {'main_port_id': 22591636, 'sub_port_id': 22591672, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022017, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22591661 , 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=22591636 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 (22591661) result : ((1355226788,), (1355227409,), (1355227411,), (1355227447,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591662 , 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=22591636 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 (22591662) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591663 , 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=22591636 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 (22591663) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591664 , 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=22591636 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 (22591664) result : ((1355226796,), (1355226797,), (1355227183,), (1355227461,), (1355227672,), (1355227673,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591665 , 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=22591636 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 (22591665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591666 , 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=22591636 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 (22591666) result : ((1355226805,), (1355226806,), (1355226808,), (1355226809,), (1355227209,), (1355227316,), (1355227451,), (1355227452,), (1355227453,), (1355227454,), (1355227687,), (1355227688,), (1355227689,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591667 , 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=22591636 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 (22591667) result : ((1355227201,), (1355227203,), (1355227204,), (1355227205,), (1355227415,), (1355227449,), (1355227462,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591668 , 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=22591636 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 (22591668) result : ((1355227212,), (1355227417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591669 , 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=22591636 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 (22591669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591670 , 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=22591636 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 (22591670) result : ((1355227191,), (1355227192,), (1355227412,), (1355227413,), (1355227414,), (1355227682,), (1355227683,), (1355227684,), (1355227685,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591671 , 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=22591636 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 (22591671) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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 22591672 , 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=22591636 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 (22591672) result : ((1355227213,), (1355227214,), (1355227215,), (1355227418,), (1355227419,), (1355227420,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22591636) result : ((1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) 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`=22591636 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','environnement','plastique','flou','autre_refus','Carton_gris','mal_croppe','kraft','papier','cartonnette','Carton_brun')) 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`=22591636 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Teint_Dans_La_Masse','environnement','plastique','flou','autre_refus','Carton_gris','mal_croppe','kraft','papier','cartonnette','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22591636, 'sub_port_id': 22591673, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022018, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'metal': {'main_port_id': 22591636, 'sub_port_id': 22591674, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022019, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'flou': {'main_port_id': 22591636, 'sub_port_id': 22591675, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022020, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'autre_refus': {'main_port_id': 22591636, 'sub_port_id': 22591676, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022021, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'environnement': {'main_port_id': 22591636, 'sub_port_id': 22591677, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022022, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'Carton_brun': {'main_port_id': 22591636, 'sub_port_id': 22591678, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022023, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'cartonnette': {'main_port_id': 22591636, 'sub_port_id': 22591679, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022024, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'plastique': {'main_port_id': 22591636, 'sub_port_id': 22591680, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022025, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'mal_croppe': {'main_port_id': 22591636, 'sub_port_id': 22591681, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022026, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'Carton_gris': {'main_port_id': 22591636, 'sub_port_id': 22591682, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022027, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'papier': {'main_port_id': 22591636, 'sub_port_id': 22591683, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022028, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}, 'kraft': {'main_port_id': 22591636, 'sub_port_id': 22591684, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15022029, 'last_updated_at': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 7, 8, 58), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 7, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591674,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591662 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591663 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22591684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22591672 lien utilise dans velours : https://www.fotonower.com/velours/22591673,22591674,22591675,22591676,22591677,22591678,22591679,22591680,22591681,22591682,22591683,22591684?tags=Teint_Dans_La_Masse,metal,flou,autre_refus,environnement,Carton_brun,cartonnette,plastique,mal_croppe,Carton_gris,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22591636]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] map_info['map_portfolio_photo'] : {22591636: [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358, 1355227268, 1355227237, 1355227224, 1355227220, 1355227086, 1355227056, 1355227027, 1355226999, 1355226973, 1355226762, 1355226744, 1355226557, 1355226531, 1355225948, 1355225923, 1355225897, 1355225870, 1355225485, 1355225369, 1355225296, 1355225245, 1355224403, 1355224379]} final : False mtd_id 4302 list_pids : [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] Looping around the photos to save general results len do output : 1 /22591636. 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, '2781852') ('4302', '22591636', '1355227615', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22591636', "{'Teint_Dans_La_Masse': 22591661, 'metal': 22591662, 'flou': 22591663, 'autre_refus': 22591664, 'environnement': 22591665, 'Carton_brun': 22591666, 'cartonnette': 22591667, 'plastique': 22591668, 'mal_croppe': 22591669, 'Carton_gris': 22591670, 'papier': 22591671, 'kraft': 22591672}", None, None, None, None, '2781852'), ('4302', '22591636', '1355227615', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852')] time used for this insertion : 0.013364315032958984 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4810361862182617 time spend to save output : 0.013641357421875 total time spend for step 1 : 1.4946775436401367 step2:final Fri May 2 07:11: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 (22591636) 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 22591636 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355224403,1355224379,1355225485,1355225369,1355225296,1355225245,1355225948,1355225923,1355225897,1355225870,1355226557,1355226531,1355226762,1355226744,1355227086,1355227056,1355227027,1355226999,1355226973,1355227268,1355227237,1355227224,1355227220,1355227370,1355227363,1355227360,1355227358,1355227434,1355227431,1355227428,1355227615,1355227613,1355227589); 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([22591636]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} new output for save of step final : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] map_info['map_portfolio_photo'] : {22591636: [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358, 1355227268, 1355227237, 1355227224, 1355227220, 1355227086, 1355227056, 1355227027, 1355226999, 1355226973, 1355226762, 1355226744, 1355226557, 1355226531, 1355225948, 1355225923, 1355225897, 1355225870, 1355225485, 1355225369, 1355225296, 1355225245, 1355224403, 1355224379]} final : False mtd_id 4302 list_pids : [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] Looping around the photos to save general results len do output : 10 /1355227615.Didn't retrieve data . /1355227613.Didn't retrieve data . /1355227589.Didn't retrieve data . /1355227434.Didn't retrieve data . /1355227431.Didn't retrieve data . /1355227428.Didn't retrieve data . /1355227370.Didn't retrieve data . /1355227363.Didn't retrieve data . /1355227360.Didn't retrieve data . /1355227358.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, '2781852') ('4302', '22591636', '1355227615', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22591636', '1355227615', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227613', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227589', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227434', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227431', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227428', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227370', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227363', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227360', '0.08863492371758287', None, None, None, None, '2781852'), ('4302', '22591636', '1355227358', '0.08863492371758287', None, None, None, None, '2781852')] time used for this insertion : 0.013036966323852539 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06752228736877441 time spend to save output : 0.013511180877685547 total time spend for step 2 : 0.08103346824645996 step3:velours_tree Fri May 2 07:11: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 : {22591636: [{'Teint_Dans_La_Masse': 22591661, 'metal': 22591662, 'flou': 22591663, 'autre_refus': 22591664, 'environnement': 22591665, 'Carton_brun': 22591666, 'cartonnette': 22591667, 'plastique': 22591668, 'mal_croppe': 22591669, 'Carton_gris': 22591670, 'papier': 22591671, 'kraft': 22591672}]} input_args_next_step : {22591636: ()} output_args : {22591636: [{'Teint_Dans_La_Masse': 22591661, 'metal': 22591662, 'flou': 22591663, 'autre_refus': 22591664, 'environnement': 22591665, 'Carton_brun': 22591666, 'cartonnette': 22591667, 'plastique': 22591668, 'mal_croppe': 22591669, 'Carton_gris': 22591670, 'papier': 22591671, 'kraft': 22591672}]} args : 22591636 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 : ({'Teint_Dans_La_Masse': 22591661, 'metal': 22591662, 'flou': 22591663, 'autre_refus': 22591664, 'environnement': 22591665, 'Carton_brun': 22591666, 'cartonnette': 22591667, 'plastique': 22591668, 'mal_croppe': 22591669, 'Carton_gris': 22591670, 'papier': 22591671, 'kraft': 22591672},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22591636) 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([22591636]) 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.2833380699157715 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.2833902835845947 step4:send_mail_cod Fri May 2 07:11: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 ! complete output_args for input 2 : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} input_args_next_step : {1355227615: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227615 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227613 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227589 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227434 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227431 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227428 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227370 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227363 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227360 depend.output_id : 0 input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ()} output_args : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',)} args : 1355227358 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 : {22591636: [{'Teint_Dans_La_Masse': 22591661, 'metal': 22591662, 'flou': 22591663, 'autre_refus': 22591664, 'environnement': 22591665, 'Carton_brun': 22591666, 'cartonnette': 22591667, 'plastique': 22591668, 'mal_croppe': 22591669, 'Carton_gris': 22591670, 'papier': 22591671, 'kraft': 22591672}]} input_args_next_step : {1355227615: ('0.08863492371758287',), 1355227613: ('0.08863492371758287',), 1355227589: ('0.08863492371758287',), 1355227434: ('0.08863492371758287',), 1355227431: ('0.08863492371758287',), 1355227428: ('0.08863492371758287',), 1355227370: ('0.08863492371758287',), 1355227363: ('0.08863492371758287',), 1355227360: ('0.08863492371758287',), 1355227358: ('0.08863492371758287',), 22591636: ()} output_args : {22591636: [{'Teint_Dans_La_Masse': 22591661, 'metal': 22591662, 'flou': 22591663, 'autre_refus': 22591664, 'environnement': 22591665, 'Carton_brun': 22591666, 'cartonnette': 22591667, 'plastique': 22591668, 'mal_croppe': 22591669, 'Carton_gris': 22591670, 'papier': 22591671, 'kraft': 22591672}]} args : 22591636 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 :11, first value : ('0.08863492371758287',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22591636) 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 (1355227615,1355227613,1355227589,1355227434,1355227431,1355227428,1355227370,1355227363,1355227360,1355227358) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355227358 begin to download photo : 1355227370 begin to download photo : 1355227434 begin to download photo : 1355227615 download finish for photo 1355227434 begin to download photo : 1355227589 download finish for photo 1355227370 begin to download photo : 1355227428 download finish for photo 1355227615 download finish for photo 1355227358 begin to download photo : 1355227360 download finish for photo 1355227589 begin to download photo : 1355227613 download finish for photo 1355227428 begin to download photo : 1355227431 download finish for photo 1355227360 begin to download photo : 1355227363 download finish for photo 1355227613 download finish for photo 1355227431 download finish for photo 1355227363 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette225916621746162660/ imagette225916631746162660/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22591636_02-05-2025_07_11_00.pdf 22591662 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=22591662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225916621746162660 22591663 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=22591663 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225916631746162660 22591664 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=22591664 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355226796: '1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319153_0.png', 1355226797: '1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319157_0.png', 1355227183: '1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319371_0.png', 1355227461: '1746162551_2366377_1355227220_0d6edf6c39c71938a193ba2f75a01d7a_rle_crop_3779320339_0.png', 1355227672: '1746162612_2367152_1355227268_73a987cf3dec97ed2446708bc18d12f5_rle_crop_3779320556_0.png', 1355227673: '1746162612_2367152_1355226973_800cbfd3055370b35b3743cf7caf83dd_rle_crop_3779320612_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d042270dfd9bb96589f225647d34f879_95520731.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/94b825f5a3e24c83ecc9aca85ce7ea5f_28683088.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f32d037a08afd28ae8c9cac689325d65_76811263.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/de8bec14c6e2f0299391c72e49d7aca5_82069077.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/cb614e7e099b99fdb685ccee59e005b2_14027987.png change filename to text .imagette225916641746162660/ imagette225916641746162660/1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319371_0.png.png imagette225916641746162660/1746162551_2366377_1355227220_0d6edf6c39c71938a193ba2f75a01d7a_rle_crop_3779320339_0.png.png imagette225916641746162660/1746162612_2367152_1355226973_800cbfd3055370b35b3743cf7caf83dd_rle_crop_3779320612_0.png.png imagette225916641746162660/1746162612_2367152_1355227268_73a987cf3dec97ed2446708bc18d12f5_rle_crop_3779320556_0.png.png imagette225916641746162660/1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319153_0.png.png imagette225916641746162660/1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319157_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/90ddb1c64aaa97d63eec1f1993d7c75c_60932219.png imagette225916641746162660 22591667 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=22591667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355227201: '1746162372_2364417_1355225369_fb9a9794e794145a44de5fa17ceb547b_rle_crop_3779319353_0.png', 1355227203: '1746162372_2364417_1355225369_fb9a9794e794145a44de5fa17ceb547b_rle_crop_3779319351_0.png', 1355227204: '1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319369_0.png', 1355227205: '1746162372_2364417_1355225245_d6ddee36f1ae38f7122984fed7073bd0_rle_crop_3779319392_0.png', 1355227415: '1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319579_0.png', 1355227449: '1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320286_0.png', 1355227462: '1746162551_2366377_1355227224_8526e0a4fcc7b712c9ef0fd607b438e1_rle_crop_3779320330_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f7561513991234205316bd0289d8c0ea_93006829.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7eca4c7259076ac02338a5b1923df186_19076229.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/6948f50d0956d65dde80bf0943d62880_79747666.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b8725ee85dfc5dd8ca674e52d9b1af4a_92474382.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/88c8e574e638d6384e191cbce5892aaf_99465910.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/8997369d2b205755004f809416ab56af_75395009.png change filename to text .imagette225916671746162661/ imagette225916671746162661/1746162551_2366377_1355227224_8526e0a4fcc7b712c9ef0fd607b438e1_rle_crop_3779320330_0.png.png imagette225916671746162661/1746162372_2364417_1355225245_d6ddee36f1ae38f7122984fed7073bd0_rle_crop_3779319392_0.png.png imagette225916671746162661/1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319369_0.png.png imagette225916671746162661/1746162372_2364417_1355225369_fb9a9794e794145a44de5fa17ceb547b_rle_crop_3779319351_0.png.png imagette225916671746162661/1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320286_0.png.png imagette225916671746162661/1746162372_2364417_1355225369_fb9a9794e794145a44de5fa17ceb547b_rle_crop_3779319353_0.png.png imagette225916671746162661/1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319579_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7fafca98cad82052cfbcd9000caa7cff_49977507.png imagette225916671746162661 22591668 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=22591668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355227212: '1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319368_0.png', 1355227417: '1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319577_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7574f0b18f8d443509b47f29233b06d2_17416319.png change filename to text .imagette225916681746162661/ imagette225916681746162661/1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319368_0.png.png imagette225916681746162661/1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319577_0.png.png imagette225916691746162661/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b7228d6225ce12bbfa0ad2751b16409e_50730775.png imagette225916681746162661 22591669 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=22591669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette225916691746162661 22591672 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=22591672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355227213: '1746162372_2364417_1355225369_fb9a9794e794145a44de5fa17ceb547b_rle_crop_3779319360_0.png', 1355227214: '1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319375_0.png', 1355227215: '1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319365_0.png', 1355227418: '1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319583_0.png', 1355227419: '1746162492_2365552_1355224403_2b0ed3031f4be45c35242614f7c09eff_rle_crop_3779319600_0.png', 1355227420: '1746162492_2365552_1355224379_42a67e51c1ef6893c7a4138185c53af0_rle_crop_3779319616_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b227f1c9366f47f01f3c4f087c54f029_35240992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/1056228d9f3a24c1128fd524f174a8ae_45440903.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/f65410a3c0d78eb87a7f75dcc735b517_45222521.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/04df9f8c40807894a0c2407ba9609872_63686914.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/8a173c6af221f9643056ac9dafb46f8d_79679983.png change filename to text .imagette225916721746162661/ imagette225916721746162661/1746162492_2365552_1355224379_42a67e51c1ef6893c7a4138185c53af0_rle_crop_3779319616_0.png.png imagette225916721746162661/1746162372_2364417_1355225369_fb9a9794e794145a44de5fa17ceb547b_rle_crop_3779319360_0.png.png imagette225916721746162661/1746162492_2365552_1355224403_2b0ed3031f4be45c35242614f7c09eff_rle_crop_3779319600_0.png.png imagette225916721746162661/1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319583_0.png.png imagette225916721746162661/1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319375_0.png.png imagette225916721746162661/1746162372_2364417_1355225296_36f78d3af5a1f8b4c406e4a9de2d3d57_rle_crop_3779319365_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/ceb983c8f781c07cc6b20f280728c172_50374169.png imagette225916721746162661 22591661 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=22591661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355226788: '1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319159_0.png', 1355227409: '1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319578_0.png', 1355227411: '1746162492_2365552_1355224379_42a67e51c1ef6893c7a4138185c53af0_rle_crop_3779319613_0.png', 1355227447: '1746162541_2366179_1355226744_d0c00ac83220d2553ce559eafed656ac_rle_crop_3779320305_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/2fe435558f2ab37cb2f8a8443849ecb4_58507544.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/fcdec819a2cc3422b3ef5300ccc56493_55818513.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/28fb82f83bbe39bd842c30a8ecb57125_27549539.png change filename to text .imagette225916611746162662/ imagette225916611746162662/1746162492_2365552_1355224379_42a67e51c1ef6893c7a4138185c53af0_rle_crop_3779319613_0.png.png imagette225916611746162662/1746162541_2366179_1355226744_d0c00ac83220d2553ce559eafed656ac_rle_crop_3779320305_0.png.png imagette225916611746162662/1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319578_0.png.png imagette225916611746162662/1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319159_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/313ac1a7ebe6e356a828ce1ba3d9afc4_37896635.png imagette225916611746162662 22591666 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=22591666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355226805: '1746162311_2363840_1355225897_bcedf92a56e914e1ff9172482f916cf7_rle_crop_3779319148_0.png', 1355226806: '1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319156_0.png', 1355226808: '1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319154_0.png', 1355226809: '1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319160_0.png', 1355227209: '1746162372_2364417_1355225948_917f2bce36734646d5b8edc626d4fd58_rle_crop_3779319335_0.png', 1355227316: '1746162430_2365043_1355226762_34c94442a8064ddeea00d07b5671ed70_rle_crop_3779319461_0.png', 1355227451: '1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320290_0.png', 1355227452: '1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320295_0.png', 1355227453: '1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320291_0.png', 1355227454: '1746162541_2366179_1355226744_d0c00ac83220d2553ce559eafed656ac_rle_crop_3779320304_0.png', 1355227687: '1746162612_2367152_1355227056_99fdf5a1050b3d571b667a0d469f8f3d_rle_crop_3779320570_0.png', 1355227688: '1746162612_2367152_1355227056_99fdf5a1050b3d571b667a0d469f8f3d_rle_crop_3779320566_0.png', 1355227689: '1746162612_2367152_1355227027_0ff033f468df4ce9ee00cb86ea1e234b_rle_crop_3779320581_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b0195a11b13182363dada345edbdf62b_30010409.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/609ad502ec1af91784633fac12f29971_67697634.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/ed8898586b6f9b96dfc301164c8fe4db_21595395.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3b36d149f667164ac60e23869c381eee_58441283.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/7c2fdd1ba36ad046a7a9f7622b2b32e4_14424469.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/dc15ac7eeec32aa1e8801c7806ea5428_73535148.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/62ede350001232ff601ca895791f5980_62622189.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/67bfdcf4e6d9d20c75102f7a5569b993_12263321.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/25e8c67ce84f5a0f9748699f13c1f890_30190982.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/48df2a85e5f1c9acb66fe7f85d719043_68618315.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/eb941fe48d9961c9bb37ec914c6360dd_90835136.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4b6edd805532d38d9346d7e646f79f77_98131026.png change filename to text .imagette225916661746162662/ imagette225916661746162662/1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320295_0.png.png imagette225916661746162662/1746162372_2364417_1355225948_917f2bce36734646d5b8edc626d4fd58_rle_crop_3779319335_0.png.png imagette225916661746162662/1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319154_0.png.png imagette225916661746162662/1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320291_0.png.png imagette225916661746162662/1746162612_2367152_1355227056_99fdf5a1050b3d571b667a0d469f8f3d_rle_crop_3779320566_0.png.png imagette225916661746162662/1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319156_0.png.png imagette225916661746162662/1746162541_2366179_1355227086_18640a83b0d60e3bf806fd4aa0e09f0c_rle_crop_3779320290_0.png.png imagette225916661746162662/1746162311_2363840_1355225870_360eb58440521cbca0b8ad2bfa051c26_rle_crop_3779319160_0.png.png imagette225916661746162662/1746162612_2367152_1355227027_0ff033f468df4ce9ee00cb86ea1e234b_rle_crop_3779320581_0.png.png imagette225916661746162662/1746162541_2366179_1355226744_d0c00ac83220d2553ce559eafed656ac_rle_crop_3779320304_0.png.png imagette225916661746162662/1746162311_2363840_1355225897_bcedf92a56e914e1ff9172482f916cf7_rle_crop_3779319148_0.png.png imagette225916661746162662/1746162612_2367152_1355227056_99fdf5a1050b3d571b667a0d469f8f3d_rle_crop_3779320570_0.png.png imagette225916661746162662/1746162430_2365043_1355226762_34c94442a8064ddeea00d07b5671ed70_rle_crop_3779319461_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0bf3cb0f689d831886b23450802d1088_46341062.png imagette225916661746162662 22591670 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=22591670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355227191: '1746162372_2364417_1355225948_917f2bce36734646d5b8edc626d4fd58_rle_crop_3779319332_0.png', 1355227192: '1746162372_2364417_1355225245_d6ddee36f1ae38f7122984fed7073bd0_rle_crop_3779319387_0.png', 1355227412: '1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319573_0.png', 1355227413: '1746162492_2365552_1355224403_2b0ed3031f4be45c35242614f7c09eff_rle_crop_3779319592_0.png', 1355227414: '1746162492_2365552_1355224403_2b0ed3031f4be45c35242614f7c09eff_rle_crop_3779319589_0.png', 1355227682: '1746162612_2367152_1355226999_b9269b73837fdc2d6a92ef1d9ed3a097_rle_crop_3779320590_0.png', 1355227683: '1746162612_2367152_1355226999_b9269b73837fdc2d6a92ef1d9ed3a097_rle_crop_3779320595_0.png', 1355227684: '1746162612_2367152_1355226973_800cbfd3055370b35b3743cf7caf83dd_rle_crop_3779320606_0.png', 1355227685: '1746162612_2367152_1355226973_800cbfd3055370b35b3743cf7caf83dd_rle_crop_3779320604_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/9de52f988d83f52666599d7dbc32f2f7_40277345.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4388fc853a9ce5b72b92d4360156a78c_59097536.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/a48b79d3bcf9ce4068bf570b9c86d87c_45322720.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/3837a18868feafa26a9b6cfdcc3e2674_15578433.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4ee02076ca68f9c00690b950fbc734d3_39091371.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/1fc946048488d270da985dedb92fdef6_49443095.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/887da27705b85ffb3114beaa8bc6357a_21402066.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0f7430eb7083e6efb5ba39e6d7fee346_20542515.png change filename to text .imagette225916701746162663/ imagette225916701746162663/1746162612_2367152_1355226999_b9269b73837fdc2d6a92ef1d9ed3a097_rle_crop_3779320590_0.png.png imagette225916701746162663/1746162612_2367152_1355226973_800cbfd3055370b35b3743cf7caf83dd_rle_crop_3779320604_0.png.png imagette225916701746162663/1746162492_2365552_1355224403_2b0ed3031f4be45c35242614f7c09eff_rle_crop_3779319592_0.png.png imagette225916701746162663/1746162492_2365552_1355224403_2b0ed3031f4be45c35242614f7c09eff_rle_crop_3779319589_0.png.png imagette225916701746162663/1746162612_2367152_1355226973_800cbfd3055370b35b3743cf7caf83dd_rle_crop_3779320606_0.png.png imagette225916701746162663/1746162612_2367152_1355226999_b9269b73837fdc2d6a92ef1d9ed3a097_rle_crop_3779320595_0.png.png imagette225916701746162663/1746162372_2364417_1355225245_d6ddee36f1ae38f7122984fed7073bd0_rle_crop_3779319387_0.png.png imagette225916701746162663/1746162372_2364417_1355225948_917f2bce36734646d5b8edc626d4fd58_rle_crop_3779319332_0.png.png imagette225916701746162663/1746162492_2365552_1355225485_0386d6a13209c5ee91f289d6605af8b0_rle_crop_3779319573_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4709c8c2bd7c4f65625ebe0040ffd69d_52848515.png imagette225916701746162663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22591636 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22591673,22591674,22591675,22591676,22591677,22591678,22591679,22591680,22591681,22591682,22591683,22591684?tags=Teint_Dans_La_Masse,metal,flou,autre_refus,environnement,Carton_brun,cartonnette,plastique,mal_croppe,Carton_gris,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1355227615] : ('0.08863492371758287',) no score found for photo 1355227615 We are sending mail with results at report@fotonower.com args[1355227613] : ('0.08863492371758287',) no score found for photo 1355227613 We are sending mail with results at report@fotonower.com args[1355227589] : ('0.08863492371758287',) no score found for photo 1355227589 We are sending mail with results at report@fotonower.com args[1355227434] : ('0.08863492371758287',) no score found for photo 1355227434 We are sending mail with results at report@fotonower.com args[1355227431] : ('0.08863492371758287',) no score found for photo 1355227431 We are sending mail with results at report@fotonower.com args[1355227428] : ('0.08863492371758287',) no score found for photo 1355227428 We are sending mail with results at report@fotonower.com args[1355227370] : ('0.08863492371758287',) no score found for photo 1355227370 We are sending mail with results at report@fotonower.com args[1355227363] : ('0.08863492371758287',) no score found for photo 1355227363 We are sending mail with results at report@fotonower.com args[1355227360] : ('0.08863492371758287',) no score found for photo 1355227360 We are sending mail with results at report@fotonower.com args[1355227358] : ('0.08863492371758287',) no score found for photo 1355227358 We are sending mail with results at report@fotonower.com refus_total : 0.08863492371758287 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=22591636 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_P22591636_02-05-2025_07_11_00.pdf results_Auto_P22591636_02-05-2025_07_11_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22591636_02-05-2025_07_11_00.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','22591636','results_Auto_P22591636_02-05-2025_07_11_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22591636_02-05-2025_07_11_00.pdf','pdf','','0.25','0.08863492371758287') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22591636]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] map_info['map_portfolio_photo'] : {22591636: [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358, 1355227268, 1355227237, 1355227224, 1355227220, 1355227086, 1355227056, 1355227027, 1355226999, 1355226973, 1355226762, 1355226744, 1355226557, 1355226531, 1355225948, 1355225923, 1355225897, 1355225870, 1355225485, 1355225369, 1355225296, 1355225245, 1355224403, 1355224379]} final : False mtd_id 4302 list_pids : [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] 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, '2781852') ('4302', '22591636', '1355227615', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22591636', '1355227615', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852')] time used for this insertion : 0.013842582702636719 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.516607284545898 time spend to save output : 0.014058589935302734 total time spend for step 4 : 4.530665874481201 step5:split_time_score Fri May 2 07:11:05 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 : ['22591636'] 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 : [('22591636',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22591636) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355227615: {'path': 'temp/1746162660_571796_1355227615_9bee15fda7f89e2d44bf7af190492b94.jpg', 'extension': 'jpg'}, 1355227434: {'path': 'temp/1746162660_571796_1355227434_d6da958ba08736417d952fdcba841281.jpg', 'extension': 'jpg'}, 1355227589: {'path': 'temp/1746162660_571796_1355227589_824c1468e18929e7fb38d01f63995e9b.jpg', 'extension': 'jpg'}, 1355227613: {'path': 'temp/1746162660_571796_1355227613_acbba7815201df88f33280b449b8ef21.jpg', 'extension': 'jpg'}, 1355227370: {'path': 'temp/1746162660_571796_1355227370_7eaba5fe50caa438daca332801c9727f.jpg', 'extension': 'jpg'}, 1355227428: {'path': 'temp/1746162660_571796_1355227428_177a5bca50a0dad36cd5daf25312cada.jpg', 'extension': 'jpg'}, 1355227431: {'path': 'temp/1746162660_571796_1355227431_5ff5ea085e0255cb1028ac1815d4169c.jpg', 'extension': 'jpg'}, 1355227358: {'path': 'temp/1746162660_571796_1355227358_6b3ff9b1fc3dcd8d1085c8d0d095dd8b.jpg', 'extension': 'jpg'}, 1355227360: {'path': 'temp/1746162660_571796_1355227360_e6f47d6956b622372399f3ce84ecaa38.jpg', 'extension': 'jpg'}, 1355227363: {'path': 'temp/1746162660_571796_1355227363_cde667b7ef4ceddf49cb2cb2486e9883.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 = 22591636; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22591636 group by h (('07', 33),) 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=22591636 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 (22591636) 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 (22591636) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02052025 22591636 Nombre de photos uploadées : 33 / 23040 (0%) 02052025 22591636 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 02052025 22591636 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1355224403, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/2b0ed3031f4be45c35242614f7c09eff.jpg', 'username': None, 'uploaded_at': 1746162067, 'text': 'image_02052025_07_00_14_010196m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355224379, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/42a67e51c1ef6893c7a4138185c53af0.jpg', 'username': None, 'uploaded_at': 1746162067, 'text': 'image_02052025_07_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355225485, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/0386d6a13209c5ee91f289d6605af8b0.jpg', 'username': None, 'uploaded_at': 1746162128, 'text': 'image_02052025_07_00_54_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355225369, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/fb9a9794e794145a44de5fa17ceb547b.jpg', 'username': None, 'uploaded_at': 1746162128, 'text': 'image_02052025_07_01_05_010159m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015230178833007812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22591636, '2025-05-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1765550,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022330045700073242 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= 1765550 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1765550, 'dashboard_run_id': 1773641, 'mtr_portfolio_id': 22590734, 'dashboard_result_id': 10234095, '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_P22590734_02-05-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22590737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22590738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22590739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22590740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22590741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22590742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22590743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22590744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22590745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22590746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22590747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22590748, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1773641, 'mtr_portfolio_id': 22590863, 'dashboard_result_id': 10234096, '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_P22590863_02-05-2025_06_54_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22590864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22590865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22590866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22590867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22590868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22590869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22590870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22590871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22590872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22590873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22590874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22590875, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1773641, 'mtr_portfolio_id': 22591348, 'dashboard_result_id': 10234097, '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_P22591348_02-05-2025_07_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22591356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22591357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22591358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22591359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22591360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22591361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22591362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22591363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22591364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22591365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22591366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22591367, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1773641, 'mtr_portfolio_id': 22591636, 'dashboard_result_id': 10234098, '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_P22591636_02-05-2025_07_08_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22591661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22591662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22591663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22591664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22591665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22591666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22591667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22591668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22591669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22591670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22591671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22591672, '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 = 22590734 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': 2781738, 'mtr_portfolio_id': 22590734, 'created_at': datetime.datetime(2025, 5, 2, 6, 32, 58), 'result': '0.040207810464876', 'result_long': None, 'result_double': None}] Qualite : 0.040207810464876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22590734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22590734_02-05-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22590734 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_P22590734_02-05-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22590737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22590738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22590739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22590740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22590741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22590742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22590743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22590744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22590745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22590746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22590747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22590748, 'pht': 3726}}" where mtr_portfolio_id = 22590734 and dashboard_run_id = 1773643 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`=22590734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10234095, 0.040207810464876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22590734_02-05-2025_06_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22590737, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22590738, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22590739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22590740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22590741, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22590742, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22590743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22590744, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22590745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22590746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22590747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22590748, '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 = 22590863 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': 2781752, 'mtr_portfolio_id': 22590863, 'created_at': datetime.datetime(2025, 5, 2, 6, 54, 57), 'result': '0.0644989178083683', 'result_long': None, 'result_double': None}] Qualite : 0.0644989178083683 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22590863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22590863_02-05-2025_06_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22590863 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_P22590863_02-05-2025_06_54_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22590864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22590865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22590866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22590867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22590868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22590869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22590870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22590871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22590872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22590873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22590874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22590875, 'pht': 3726}}" where mtr_portfolio_id = 22590863 and dashboard_run_id = 1773643 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`=22590863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10234096, 0.0644989178083683, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22590863_02-05-2025_06_54_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22590864, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22590865, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22590866, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22590867, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22590868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22590869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22590870, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22590871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22590872, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22590873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22590874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22590875, '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 = 22591348 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': 2781802, 'mtr_portfolio_id': 22591348, 'created_at': datetime.datetime(2025, 5, 2, 7, 3), 'result': '0.052708975164180924', 'result_long': None, 'result_double': None}] Qualite : 0.052708975164180924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22591348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22591348_02-05-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22591348 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_P22591348_02-05-2025_07_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22591356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22591357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22591358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22591359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22591360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22591361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22591362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22591363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22591364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22591365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22591366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22591367, 'pht': 3726}}" where mtr_portfolio_id = 22591348 and dashboard_run_id = 1773643 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`=22591348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10234097, 0.052708975164180924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22591348_02-05-2025_07_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22591356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22591357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22591358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22591359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22591360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22591361, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22591362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22591363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22591364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22591365, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22591366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22591367, '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 = 22591636 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': 2781852, 'mtr_portfolio_id': 22591636, 'created_at': datetime.datetime(2025, 5, 2, 7, 11), 'result': '0.08863492371758287', 'result_long': None, 'result_double': None}] Qualite : 0.08863492371758287 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22591636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22591636_02-05-2025_07_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22591636 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_P22591636_02-05-2025_07_11_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22591661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22591662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22591663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22591664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22591665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22591666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22591667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22591668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22591669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22591670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22591671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22591672, 'pht': 3726}}" where mtr_portfolio_id = 22591636 and dashboard_run_id = 1773643 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`=22591636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10234098, 0.08863492371758287, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22591636_02-05-2025_07_11_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22591661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22591662, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22591663, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22591664, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22591665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22591666, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22591667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22591668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22591669, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22591670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22591671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22591672, '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 (22590734,22590863,22591348,22591636) result : ((1355221162,), (1355221163,), (1355221192,), (1355221194,), (1355221241,), (1355221264,), (1355221267,), (1355221292,), (1355221321,), (1355221322,), (1355221324,), (1355221348,), (1355221352,), (1355221353,), (1355221355,), (1355221358,), (1355221361,), (1355221386,), (1355221387,), (1355221388,), (1355221390,), (1355221416,), (1355221417,), (1355221418,), (1355221450,), (1355221451,), (1355221514,), (1355221512,), (1355221544,), (1355221546,), (1355221548,), (1355221565,), (1355221567,), (1355221571,), (1355221576,), (1355221580,), (1355221596,), (1355221597,), (1355221598,), (1355221600,), (1355221726,), (1355221728,), (1355221769,), (1355221798,), (1355221802,), (1355221830,), (1355221864,), (1355221867,), (1355221869,), (1355221871,), (1355221905,), (1355221909,), (1355221910,), (1355221945,), (1355221948,), (1355221950,), (1355221952,), (1355221993,), (1355221989,), (1355221992,), (1355222016,), (1355222017,), (1355222018,), (1355222021,), (1355222053,), (1355222055,), (1355222099,), (1355222101,), (1355222150,), (1355222153,), (1355222155,), (1355222158,), (1355222183,), (1355222184,), (1355222210,), (1355222211,), (1355222214,), (1355222218,), (1355222221,), (1355222240,), (1355222243,), (1355222245,), (1355222247,), (1355222271,), (1355222275,), (1355222301,), (1355222302,), (1355222304,), (1355222306,), (1355222310,), (1355222335,), (1355222336,), (1355222337,), (1355222339,), (1355222341,), (1355222343,), (1355222418,), (1355222445,), (1355222470,), (1355222637,), (1355222640,), (1355222643,), (1355222645,), (1355223454,), (1355223516,), (1355223594,), (1355224428,), (1355224379,), (1355224403,), (1355225245,), (1355225296,), (1355225369,), (1355225485,), (1355225870,), (1355225897,), (1355225923,), (1355225948,), (1355226531,), (1355226557,), (1355226744,), (1355226762,), (1355226973,), (1355226999,), (1355227027,), (1355227056,), (1355227086,), (1355227220,), (1355227224,), (1355227237,), (1355227268,), (1355227358,), (1355227360,), (1355227363,), (1355227370,), (1355227428,), (1355227431,), (1355227434,), (1355227589,), (1355227613,), (1355227615,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02052025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22591636]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] map_info['map_portfolio_photo'] : {22591636: [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358, 1355227268, 1355227237, 1355227224, 1355227220, 1355227086, 1355227056, 1355227027, 1355226999, 1355226973, 1355226762, 1355226744, 1355226557, 1355226531, 1355225948, 1355225923, 1355225897, 1355225870, 1355225485, 1355225369, 1355225296, 1355225245, 1355224403, 1355224379]} final : True mtd_id 4302 list_pids : [1355227615, 1355227613, 1355227589, 1355227434, 1355227431, 1355227428, 1355227370, 1355227363, 1355227360, 1355227358] Looping around the photos to save general results len do output : 1 /22591636Didn'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, '2781852') ('4302', '22591636', '1355227615', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852') ('4302', None, None, None, None, None, None, None, '2781852') ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22591636', 'None', None, None, None, None, '2781852'), ('4302', '22591636', '1355227615', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227613', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227589', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227434', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227431', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227428', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227370', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227363', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227360', None, None, None, None, None, '2781852'), ('4302', '22591636', '1355227358', None, None, None, None, None, '2781852')] time used for this insertion : 0.013462305068969727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3222005367279053 time spend to save output : 0.013670206069946289 total time spend for step 5 : 0.33587074279785156 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 (2781852) 2.09user 2.44system 0:09.92elapsed 45%CPU (0avgtext+0avgdata 160384maxresident)k 144inputs+13672outputs (9major+64559minor)pagefaults 0swaps