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 : 3235555 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 (2660016) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2660016) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315548 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2660016'] with mtr_portfolio_ids : ['21315548'] and first list_photo_ids : [] new path : /proc/3235555/ Name: python3 Umask: 0002 State: R (running) Tgid: 3235555 Ngid: 0 Pid: 3235555 PPid: 3235554 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3235555 NSpid: 3235555 NSpgid: 3234386 NSsid: 3234386 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98056 kB VmRSS: 98056 kB RssAnon: 59792 kB RssFile: 38264 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 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: 51 nonvoluntary_ctxt_switches: 269 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3235555', 'Ngid': '0', 'Pid': '3235555', 'PPid': '3235554', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3235555', 'NSpid': '3235555', 'NSpgid': '3234386', 'NSsid': '3234386', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98056 kB', 'VmRSS': '98056 kB', 'RssAnon': '59792 kB', 'RssFile': '38264 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 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': '51', 'nonvoluntary_ctxt_switches': '269'} ('datou_batch_current', '3235555', '1106848', '0', '1106848', '865596', '98056', b'', 'marlene', '2660016') 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 (21315548) 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 (2660016 ) ) 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 (21315548) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343245995, 'portfolio_id': 21315548}, {'photo_id': 1343245913, 'portfolio_id': 21315548}, {'photo_id': 1343245838, 'portfolio_id': 21315548}, {'photo_id': 1343245681, 'portfolio_id': 21315548}, {'photo_id': 1343245672, 'portfolio_id': 21315548}, {'photo_id': 1343244201, 'portfolio_id': 21315548}, {'photo_id': 1343244138, 'portfolio_id': 21315548}, {'photo_id': 1343244069, 'portfolio_id': 21315548}, {'photo_id': 1343244020, 'portfolio_id': 21315548}, {'photo_id': 1343243606, 'portfolio_id': 21315548}, {'photo_id': 1343243541, 'portfolio_id': 21315548}, {'photo_id': 1343243450, 'portfolio_id': 21315548}, {'photo_id': 1343243424, 'portfolio_id': 21315548}, {'photo_id': 1343243381, 'portfolio_id': 21315548}, {'photo_id': 1343243323, 'portfolio_id': 21315548}, {'photo_id': 1343242312, 'portfolio_id': 21315548}, {'photo_id': 1343242208, 'portfolio_id': 21315548}, {'photo_id': 1343241909, 'portfolio_id': 21315548}, {'photo_id': 1343241901, 'portfolio_id': 21315548}, {'photo_id': 1343241894, 'portfolio_id': 21315548}, {'photo_id': 1343241869, 'portfolio_id': 21315548}, {'photo_id': 1343241836, 'portfolio_id': 21315548}, {'photo_id': 1343241789, 'portfolio_id': 21315548}, {'photo_id': 1343241339, 'portfolio_id': 21315548}, {'photo_id': 1343240138, 'portfolio_id': 21315548}, {'photo_id': 1343240085, 'portfolio_id': 21315548}, {'photo_id': 1343240063, 'portfolio_id': 21315548}, {'photo_id': 1343240027, 'portfolio_id': 21315548}, {'photo_id': 1343240002, 'portfolio_id': 21315548}, {'photo_id': 1343239974, 'portfolio_id': 21315548}, {'photo_id': 1343239950, 'portfolio_id': 21315548}, {'photo_id': 1343239769, 'portfolio_id': 21315548}, {'photo_id': 1343239749, 'portfolio_id': 21315548}, {'photo_id': 1343239732, 'portfolio_id': 21315548}, {'photo_id': 1343239620, 'portfolio_id': 21315548}, {'photo_id': 1343239328, 'portfolio_id': 21315548}, {'photo_id': 1343239284, 'portfolio_id': 21315548}, {'photo_id': 1343239243, 'portfolio_id': 21315548}, {'photo_id': 1343239178, 'portfolio_id': 21315548}, {'photo_id': 1343238782, 'portfolio_id': 21315548}, {'photo_id': 1343238754, 'portfolio_id': 21315548}, {'photo_id': 1343238730, 'portfolio_id': 21315548}, {'photo_id': 1343238726, 'portfolio_id': 21315548}, {'photo_id': 1343238718, 'portfolio_id': 21315548}, {'photo_id': 1343238219, 'portfolio_id': 21315548}, {'photo_id': 1343237566, 'portfolio_id': 21315548}] map_portfolio_id_photo_id: {21315548: [1343245995, 1343245913, 1343245838, 1343245681, 1343245672, 1343244201, 1343244138, 1343244069, 1343244020, 1343243606, 1343243541, 1343243450, 1343243424, 1343243381, 1343243323, 1343242312, 1343242208, 1343241909, 1343241901, 1343241894, 1343241869, 1343241836, 1343241789, 1343241339, 1343240138, 1343240085, 1343240063, 1343240027, 1343240002, 1343239974, 1343239950, 1343239769, 1343239749, 1343239732, 1343239620, 1343239328, 1343239284, 1343239243, 1343239178, 1343238782, 1343238754, 1343238730, 1343238726, 1343238718, 1343238219, 1343237566]} ##### 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.01805591583251953 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 23:01:28 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 (21315548) 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 : 21315548 get user id for portfolio 21315548 get sub ptf for main ptf 21315548, type 3726 and hashtags ['kraft', 'papier', 'cartonnette', 'flou', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'Teint_Dans_La_Masse', 'plastique', 'environnement', 'metal', 'autre_refus'] 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`=21315548 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','cartonnette','flou','mal_croppe','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','environnement','metal','autre_refus')) 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`=21315548 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','cartonnette','flou','mal_croppe','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','environnement','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21315548, 'sub_port_id': 21315564, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898700, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'Carton_brun': {'main_port_id': 21315548, 'sub_port_id': 21315565, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898701, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'mal_croppe': {'main_port_id': 21315548, 'sub_port_id': 21315566, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898702, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'environnement': {'main_port_id': 21315548, 'sub_port_id': 21315567, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898703, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'kraft': {'main_port_id': 21315548, 'sub_port_id': 21315568, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898704, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'Carton_gris': {'main_port_id': 21315548, 'sub_port_id': 21315569, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898705, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21315548, 'sub_port_id': 21315570, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898706, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'metal': {'main_port_id': 21315548, 'sub_port_id': 21315571, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898707, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'flou': {'main_port_id': 21315548, 'sub_port_id': 21315572, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898708, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'autre_refus': {'main_port_id': 21315548, 'sub_port_id': 21315573, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898709, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'plastique': {'main_port_id': 21315548, 'sub_port_id': 21315574, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898710, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}, 'papier': {'main_port_id': 21315548, 'sub_port_id': 21315575, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898711, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 51, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21315564 , 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=21315548 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 (21315564) result : ((1343241409,), (1343241721,), (1343241913,), (1343242632,), (1343242635,), (1343243006,), (1343243008,), (1343243940,), (1343243943,), (1343244142,), (1343244146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315565 , 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=21315548 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 (21315565) result : ((1343241729,), (1343241914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315566 , 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=21315548 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 (21315566) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315567 , 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=21315548 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 (21315567) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315568 , 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=21315548 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 (21315568) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315569 , 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=21315548 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 (21315569) result : ((1343241912,), (1343242998,), (1343242999,), (1343243927,), (1343243930,), (1343244086,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315570 , 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=21315548 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 (21315570) result : ((1343239776,), (1343242548,), (1343244042,), (1343244043,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315571 , 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=21315548 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 (21315571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315572 , 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=21315548 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 (21315572) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315573 , 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=21315548 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 (21315573) result : ((1343239781,), (1343239782,), (1343241402,), (1343241404,), (1343241715,), (1343241716,), (1343241717,), (1343241904,), (1343241905,), (1343241907,), (1343241908,), (1343241911,), (1343242599,), (1343242602,), (1343242604,), (1343242982,), (1343242986,), (1343242988,), (1343242990,), (1343243915,), (1343243916,), (1343243917,), (1343243918,), (1343244067,), (1343244070,), (1343244072,), (1343246264,), (1343246270,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315574 , 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=21315548 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 (21315574) result : ((1343243017,), (1343243018,), (1343243019,), (1343243021,), (1343243946,), (1343243947,), (1343243948,), (1343243949,), (1343244165,), (1343244166,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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 21315575 , 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=21315548 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 (21315575) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21315548) result : ((1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) 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`=21315548 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','cartonnette','flou','mal_croppe','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','environnement','metal','autre_refus')) 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`=21315548 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','cartonnette','flou','mal_croppe','Carton_gris','Carton_brun','Teint_Dans_La_Masse','plastique','environnement','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21315548, 'sub_port_id': 21315576, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898712, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'Carton_brun': {'main_port_id': 21315548, 'sub_port_id': 21315577, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898713, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'mal_croppe': {'main_port_id': 21315548, 'sub_port_id': 21315578, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898714, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'environnement': {'main_port_id': 21315548, 'sub_port_id': 21315579, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898715, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'kraft': {'main_port_id': 21315548, 'sub_port_id': 21315580, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898716, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'Carton_gris': {'main_port_id': 21315548, 'sub_port_id': 21315581, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898717, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'Teint_Dans_La_Masse': {'main_port_id': 21315548, 'sub_port_id': 21315582, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898718, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'metal': {'main_port_id': 21315548, 'sub_port_id': 21315583, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898719, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'flou': {'main_port_id': 21315548, 'sub_port_id': 21315584, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898720, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'autre_refus': {'main_port_id': 21315548, 'sub_port_id': 21315585, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898721, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'plastique': {'main_port_id': 21315548, 'sub_port_id': 21315586, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898722, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 52), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}, 'papier': {'main_port_id': 21315548, 'sub_port_id': 21315587, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13898723, 'last_updated_at': datetime.datetime(2025, 3, 11, 22, 59, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 22, 59, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 22, 52)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315564 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315565 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315566 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21315587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21315575 lien utilise dans velours : https://www.fotonower.com/velours/21315576,21315577,21315578,21315579,21315580,21315581,21315582,21315583,21315584,21315585,21315586,21315587?tags=cartonnette,Carton_brun,mal_croppe,environnement,kraft,Carton_gris,Teint_Dans_La_Masse,metal,flou,autre_refus,plastique,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21315548]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] map_info['map_portfolio_photo'] : {21315548: [1343245995, 1343245913, 1343245838, 1343245681, 1343245672, 1343244201, 1343244138, 1343244069, 1343244020, 1343243606, 1343243541, 1343243450, 1343243424, 1343243381, 1343243323, 1343242312, 1343242208, 1343241909, 1343241901, 1343241894, 1343241869, 1343241836, 1343241789, 1343241339, 1343240138, 1343240085, 1343240063, 1343240027, 1343240002, 1343239974, 1343239950, 1343239769, 1343239749, 1343239732, 1343239620, 1343239328, 1343239284, 1343239243, 1343239178, 1343238782, 1343238754, 1343238730, 1343238726, 1343238718, 1343238219, 1343237566]} final : False mtd_id 4302 list_pids : [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] Looping around the photos to save general results len do output : 1 /21315548. 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, '2660016') ('4302', '21315548', '1343245995', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '21315548', "{'cartonnette': 21315564, 'Carton_brun': 21315565, 'mal_croppe': 21315566, 'environnement': 21315567, 'kraft': 21315568, 'Carton_gris': 21315569, 'Teint_Dans_La_Masse': 21315570, 'metal': 21315571, 'flou': 21315572, 'autre_refus': 21315573, 'plastique': 21315574, 'papier': 21315575}", None, None, None, None, '2660016'), ('4302', '21315548', '1343245995', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016')] time used for this insertion : 0.016619443893432617 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8739967346191406 time spend to save output : 0.01700615882873535 total time spend for step 1 : 1.891002893447876 step2:final Tue Mar 11 23:01:30 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 (21315548) 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 21315548 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343237566,1343238219,1343238782,1343238754,1343238730,1343238726,1343238718,1343239328,1343239284,1343239243,1343239178,1343239769,1343239749,1343239732,1343240085,1343239620,1343240063,1343240027,1343240002,1343239974,1343239950,1343240138,1343241339,1343241909,1343241901,1343241894,1343241869,1343241836,1343241789,1343242312,1343242208,1343243606,1343243541,1343243450,1343243424,1343243381,1343243323,1343244201,1343244138,1343244069,1343244020,1343245681,1343245672,1343245995,1343245913,1343245838); 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([21315548]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} new output for save of step final : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] map_info['map_portfolio_photo'] : {21315548: [1343245995, 1343245913, 1343245838, 1343245681, 1343245672, 1343244201, 1343244138, 1343244069, 1343244020, 1343243606, 1343243541, 1343243450, 1343243424, 1343243381, 1343243323, 1343242312, 1343242208, 1343241909, 1343241901, 1343241894, 1343241869, 1343241836, 1343241789, 1343241339, 1343240138, 1343240085, 1343240063, 1343240027, 1343240002, 1343239974, 1343239950, 1343239769, 1343239749, 1343239732, 1343239620, 1343239328, 1343239284, 1343239243, 1343239178, 1343238782, 1343238754, 1343238730, 1343238726, 1343238718, 1343238219, 1343237566]} final : False mtd_id 4302 list_pids : [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] Looping around the photos to save general results len do output : 5 /1343245995.Didn't retrieve data . /1343245913.Didn't retrieve data . /1343245838.Didn't retrieve data . /1343245681.Didn't retrieve data . /1343245672.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, '2660016') ('4302', '21315548', '1343245995', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21315548', '1343245995', '0.06380389067529266', None, None, None, None, '2660016'), ('4302', '21315548', '1343245913', '0.06380389067529266', None, None, None, None, '2660016'), ('4302', '21315548', '1343245838', '0.06380389067529266', None, None, None, None, '2660016'), ('4302', '21315548', '1343245681', '0.06380389067529266', None, None, None, None, '2660016'), ('4302', '21315548', '1343245672', '0.06380389067529266', None, None, None, None, '2660016')] time used for this insertion : 0.015275239944458008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7348897457122803 time spend to save output : 0.015630722045898438 total time spend for step 2 : 0.7505204677581787 step3:velours_tree Tue Mar 11 23:01:31 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 : {21315548: [{'cartonnette': 21315564, 'Carton_brun': 21315565, 'mal_croppe': 21315566, 'environnement': 21315567, 'kraft': 21315568, 'Carton_gris': 21315569, 'Teint_Dans_La_Masse': 21315570, 'metal': 21315571, 'flou': 21315572, 'autre_refus': 21315573, 'plastique': 21315574, 'papier': 21315575}]} input_args_next_step : {21315548: ()} output_args : {21315548: [{'cartonnette': 21315564, 'Carton_brun': 21315565, 'mal_croppe': 21315566, 'environnement': 21315567, 'kraft': 21315568, 'Carton_gris': 21315569, 'Teint_Dans_La_Masse': 21315570, 'metal': 21315571, 'flou': 21315572, 'autre_refus': 21315573, 'plastique': 21315574, 'papier': 21315575}]} args : 21315548 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 21315564, 'Carton_brun': 21315565, 'mal_croppe': 21315566, 'environnement': 21315567, 'kraft': 21315568, 'Carton_gris': 21315569, 'Teint_Dans_La_Masse': 21315570, 'metal': 21315571, 'flou': 21315572, 'autre_refus': 21315573, 'plastique': 21315574, 'papier': 21315575},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21315548) 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([21315548]) 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.40998220443725586 time spend to save output : 0.00010323524475097656 total time spend for step 3 : 0.41008543968200684 step4:send_mail_cod Tue Mar 11 23:01:31 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 : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} input_args_next_step : {1343245995: ()} output_args : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} args : 1343245995 depend.output_id : 0 input_args_next_step : {1343245995: ('0.06380389067529266',), 1343245913: ()} output_args : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} args : 1343245913 depend.output_id : 0 input_args_next_step : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ()} output_args : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} args : 1343245838 depend.output_id : 0 input_args_next_step : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ()} output_args : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} args : 1343245681 depend.output_id : 0 input_args_next_step : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ()} output_args : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',)} args : 1343245672 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 : {21315548: [{'cartonnette': 21315564, 'Carton_brun': 21315565, 'mal_croppe': 21315566, 'environnement': 21315567, 'kraft': 21315568, 'Carton_gris': 21315569, 'Teint_Dans_La_Masse': 21315570, 'metal': 21315571, 'flou': 21315572, 'autre_refus': 21315573, 'plastique': 21315574, 'papier': 21315575}]} input_args_next_step : {1343245995: ('0.06380389067529266',), 1343245913: ('0.06380389067529266',), 1343245838: ('0.06380389067529266',), 1343245681: ('0.06380389067529266',), 1343245672: ('0.06380389067529266',), 21315548: ()} output_args : {21315548: [{'cartonnette': 21315564, 'Carton_brun': 21315565, 'mal_croppe': 21315566, 'environnement': 21315567, 'kraft': 21315568, 'Carton_gris': 21315569, 'Teint_Dans_La_Masse': 21315570, 'metal': 21315571, 'flou': 21315572, 'autre_refus': 21315573, 'plastique': 21315574, 'papier': 21315575}]} args : 21315548 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 :6, first value : ('0.06380389067529266',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21315548) 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 (1343245995,1343245913,1343245838,1343245681,1343245672) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343245672 begin to download photo : 1343245838 begin to download photo : 1343245995 download finish for photo 1343245838 begin to download photo : 1343245913 download finish for photo 1343245995 download finish for photo 1343245672 begin to download photo : 1343245681 download finish for photo 1343245913 download finish for photo 1343245681 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21315548_11-03-2025_23_01_32.pdf 21315564 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=21315564 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343241409: '1741729934_1891084_1343239749_ba1bda29a397346b3e2b71ec34f351f1_rle_crop_3706699492_0.png', 1343241721: '1741729987_1891290_1343239769_5618a9a13181f072175841af8d11ccc5_rle_crop_3706699766_0.png', 1343241913: '1741730066_2673693_1343238726_34f3127fdf445c4a48c017b7655f335b_rle_crop_3706704788_0.png', 1343242632: '1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_bib_crop_3706699492_0.jpg', 1343242635: '1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_rle_crop_3706713710_0.png', 1343243006: '1741730130_1899973_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719816_0.png', 1343243008: '1741730130_1899973_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719812_0.png', 1343243940: '1741730192_1900686_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719816_0.png', 1343243943: '1741730192_1900686_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719812_0.png', 1343244142: '1741730253_1901346_1343241894_3c0fbe285f03ff4f4fa3982307f9310d_rle_crop_3706727262_0.png', 1343244146: '1741730253_1901346_1343241894_3c0fbe285f03ff4f4fa3982307f9310d_rle_crop_3706727267_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5c8544cb8d03818bc8b27478167929ce_49624042.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e1f2bad3d8fbc8a7fb863748ff9302f0_85292104.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/73288df86df5edee372d3dedd1ea620f_57297108.png change filename to text .wget -O 4.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/17643d0a96601c9e6ef9d843166c77b3_17086740.jpg change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f09c65e18d053a10ea112ac5e497f4e0_39128356.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bb08b4bdd427624761abd5d4e3685dff_9594037.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8b6bb07daf2cc1b4bb040550a538947e_79238682.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bb08b4bdd427624761abd5d4e3685dff_10134262.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8b6bb07daf2cc1b4bb040550a538947e_65925816.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/635ad05be2168488f26979ecd71b06a9_92089095.png change filename to text .imagette213155641741730492/ imagette213155641741730492/1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_bib_crop_3706699492_0.jpg.jpg imagette213155641741730492/1741730192_1900686_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719812_0.png.png imagette213155641741730492/1741730192_1900686_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719816_0.png.png imagette213155641741730492/1741730130_1899973_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719812_0.png.png imagette213155641741730492/1741730253_1901346_1343241894_3c0fbe285f03ff4f4fa3982307f9310d_rle_crop_3706727262_0.png.png imagette213155641741730492/1741729987_1891290_1343239769_5618a9a13181f072175841af8d11ccc5_rle_crop_3706699766_0.png.png imagette213155641741730492/1741729934_1891084_1343239749_ba1bda29a397346b3e2b71ec34f351f1_rle_crop_3706699492_0.png.png imagette213155641741730492/1741730253_1901346_1343241894_3c0fbe285f03ff4f4fa3982307f9310d_rle_crop_3706727267_0.png.png imagette213155641741730492/1741730066_2673693_1343238726_34f3127fdf445c4a48c017b7655f335b_rle_crop_3706704788_0.png.png imagette213155641741730492/1741730130_1899973_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719816_0.png.png imagette213155641741730492/1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_rle_crop_3706713710_0.png.png imagette213155661741730492/ imagette213155681741730492/ imagette213155711741730492/ imagette213155721741730492/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7f0c7cbec7c245f6e4831484aec72cbb_2488147.png imagette213155641741730492 21315566 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=21315566 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213155661741730492 21315568 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=21315568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213155681741730492 21315571 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=21315571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213155711741730492 21315572 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=21315572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213155721741730492 21315573 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=21315573 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343242604: '1741730153_1900190_1343239732_a1d66e33f333dae784420048143f664d_rle_crop_3706699522_0.png', 1343246270: '1741730415_1902536_1343244020_a897cc6c10fd3e34232b11a94aecb47c_rle_crop_3706739589_0.png', 1343246264: '1741730415_1902536_1343244138_1e8c79305e37184107567dd78571490a_rle_crop_3706738444_0.png', 1343244072: '1741730253_1901346_1343241789_732bfda5af26654f35aae5f5f7f83e5b_rle_crop_3706727809_0.png', 1343244070: '1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727320_0.png', 1343244067: '1741730253_1901346_1343241869_ca0379c1a0208fbced35e2f77f8fb224_rle_crop_3706727292_0.png', 1343243918: '1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714677_0.png', 1343243917: '1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714676_0.png', 1343243916: '1741730192_1900686_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713702_0.png', 1343243915: '1741730192_1900686_1343240138_c0b8b2f0abec80a41724adea562b8735_rle_crop_3706713122_0.png', 1343242990: '1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714677_0.png', 1343242988: '1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714676_0.png', 1343242986: '1741730130_1899973_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713702_0.png', 1343242982: '1741730130_1899973_1343240138_c0b8b2f0abec80a41724adea562b8735_rle_crop_3706713122_0.png', 1343239781: '1741729791_1888616_1343237566_e1d6f4c7ee4a293cf5a4c16307556f8d_rle_crop_3706683519_0.png', 1343242602: '1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_rle_crop_3706713705_0.png', 1343242599: '1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_bib_crop_3706699490_0.jpg', 1343241911: '1741730066_2673693_1343238718_c82ea33e11a1257b7af1649568778abb_rle_crop_3706706745_0.png', 1343241908: '1741730066_2673693_1343238718_c82ea33e11a1257b7af1649568778abb_rle_crop_3706706736_0.png', 1343241907: '1741730066_2673693_1343238726_34f3127fdf445c4a48c017b7655f335b_rle_crop_3706704795_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f9bc00a1632d43dda074487c548a1640_88537718.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d85f849ec253eb299fca8da3c20c2620_45627284.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7ed1e8dd26681d476d191d439a40d26c_36445283.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6cd2d4d7b223b166fd788153fdb47f50_28382060.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1f1a2e2e6399cd1e6af2f3bc8578cbb0_16193860.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/dbc5ff3d13bd4ec06bac9a4b40a63816_54710223.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0b7ac6a50a46d859cab79360ce02e96b_36443345.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f31a44e35172c96e1d19f5d0643eb1f1_13017955.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1ae511c7ee4483705b6dab5ed9ae6f16_66748927.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5657c4b1fa6d63d86f727eac86095669_32420220.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0b7ac6a50a46d859cab79360ce02e96b_42951947.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f31a44e35172c96e1d19f5d0643eb1f1_9036784.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1ae511c7ee4483705b6dab5ed9ae6f16_4640886.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5657c4b1fa6d63d86f727eac86095669_72521464.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9dd440ff9dce889a3eabd3f1e3fd9f95_75933910.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cf524741159e346c96254184bcdf9b8f_13909293.png change filename to text .wget -O 17.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/865e945da16546df50bff94fe0f62eba_37932174.jpg change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9cfdc770fa278ccdf48fafb6c13a65ca_63559500.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1adb1aeac150871b51b3c6cba8101b5a_75637591.png change filename to text .imagette213155731741730492/ imagette213155731741730492/1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_bib_crop_3706699490_0.jpg.jpg imagette213155731741730492/1741730130_1899973_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713702_0.png.png imagette213155731741730492/1741730153_1900190_1343239749_ba1bda29a397346b3e2b71ec34f351f1_rle_crop_3706713705_0.png.png imagette213155731741730492/1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714676_0.png.png imagette213155731741730492/1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714677_0.png.png imagette213155731741730492/1741729791_1888616_1343237566_e1d6f4c7ee4a293cf5a4c16307556f8d_rle_crop_3706683519_0.png.png imagette213155731741730492/1741730066_2673693_1343238726_34f3127fdf445c4a48c017b7655f335b_rle_crop_3706704795_0.png.png imagette213155731741730492/1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714676_0.png.png imagette213155731741730492/1741730066_2673693_1343238718_c82ea33e11a1257b7af1649568778abb_rle_crop_3706706736_0.png.png imagette213155731741730492/1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714677_0.png.png imagette213155731741730492/1741730415_1902536_1343244138_1e8c79305e37184107567dd78571490a_rle_crop_3706738444_0.png.png imagette213155731741730492/1741730192_1900686_1343240138_c0b8b2f0abec80a41724adea562b8735_rle_crop_3706713122_0.png.png imagette213155731741730492/1741730130_1899973_1343240138_c0b8b2f0abec80a41724adea562b8735_rle_crop_3706713122_0.png.png imagette213155731741730492/1741730192_1900686_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713702_0.png.png imagette213155731741730492/1741730253_1901346_1343241789_732bfda5af26654f35aae5f5f7f83e5b_rle_crop_3706727809_0.png.png imagette213155731741730492/1741730253_1901346_1343241869_ca0379c1a0208fbced35e2f77f8fb224_rle_crop_3706727292_0.png.png imagette213155731741730492/1741730153_1900190_1343239732_a1d66e33f333dae784420048143f664d_rle_crop_3706699522_0.png.png imagette213155731741730492/1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727320_0.png.png imagette213155731741730492/1741730415_1902536_1343244020_a897cc6c10fd3e34232b11a94aecb47c_rle_crop_3706739589_0.png.png imagette213155731741730492/1741730066_2673693_1343238718_c82ea33e11a1257b7af1649568778abb_rle_crop_3706706745_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5e294d9fa8d54abf58b2314e911e5a7d_87158080.png imagette213155731741730492 21315574 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=21315574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343243017: '1741730130_1899973_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713701_0.png', 1343243018: '1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714674_0.png', 1343243019: '1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714679_0.png', 1343243021: '1741730130_1899973_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715694_0.png', 1343243946: '1741730192_1900686_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713701_0.png', 1343243947: '1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714674_0.png', 1343243948: '1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714679_0.png', 1343243949: '1741730192_1900686_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715694_0.png', 1343244165: '1741730253_1901346_1343241901_ef2e121ff07c28a0d17b3c16114d0213_rle_crop_3706726276_0.png', 1343244166: '1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727326_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f392a4edc45cdd29af65042acc9b23aa_6757159.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/556a0a36bfaf7ac3c1438a82c9743ac7_91371123.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/121f85fe9d575b1a9de062c2b7ac2854_13357267.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/73464648c1678280f7e427f7837d9621_83202966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f392a4edc45cdd29af65042acc9b23aa_95886458.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/556a0a36bfaf7ac3c1438a82c9743ac7_62039162.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/121f85fe9d575b1a9de062c2b7ac2854_91976713.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/73464648c1678280f7e427f7837d9621_49038550.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6abebd0a5ea74da62d06c354daa69eca_49088303.png change filename to text .imagette213155741741730493/ imagette213155741741730493/1741730253_1901346_1343241901_ef2e121ff07c28a0d17b3c16114d0213_rle_crop_3706726276_0.png.png imagette213155741741730493/1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714674_0.png.png imagette213155741741730493/1741730192_1900686_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714679_0.png.png imagette213155741741730493/1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714679_0.png.png imagette213155741741730493/1741730192_1900686_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713701_0.png.png imagette213155741741730493/1741730130_1899973_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715694_0.png.png imagette213155741741730493/1741730130_1899973_1343240027_eb6455d0227f0c4757cd5c830e521510_rle_crop_3706714674_0.png.png imagette213155741741730493/1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727326_0.png.png imagette213155741741730493/1741730192_1900686_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715694_0.png.png imagette213155741741730493/1741730130_1899973_1343240063_8bfc867f3d7ff9efa6a2e038ef4d153d_rle_crop_3706713701_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/85ceae1eddba2fa9778c9d7b7965088f_29576829.png imagette213155741741730493 21315565 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=21315565 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343241729: '1741729987_1891290_1343239243_0708997d5a1a59daefe509cf6683e351_rle_crop_3706700764_0.png', 1343241914: '1741730066_2673693_1343238730_2e8ae775183abb7422ebf8d154f6bcdb_rle_crop_3706702327_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/25375fe889aba34dc7af3c4bce895c3c_61866786.png change filename to text .imagette213155651741730494/ imagette213155651741730494/1741730066_2673693_1343238730_2e8ae775183abb7422ebf8d154f6bcdb_rle_crop_3706702327_0.png.png imagette213155651741730494/1741729987_1891290_1343239243_0708997d5a1a59daefe509cf6683e351_rle_crop_3706700764_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1462d2bf882e862b546425725e6e799d_55249878.png imagette213155651741730494 21315569 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=21315569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343241912: '1741730066_2673693_1343238718_c82ea33e11a1257b7af1649568778abb_rle_crop_3706706744_0.png', 1343242998: '1741730130_1899973_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715696_0.png', 1343242999: '1741730130_1899973_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719804_0.png', 1343243927: '1741730192_1900686_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715696_0.png', 1343243930: '1741730192_1900686_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719804_0.png', 1343244086: '1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727318_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/93c7daa5dfd81e24138a8a19d65677f2_24775455.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8f21fc5c2ae75a346cb722e487af1803_63105004.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0814396b4c7920cb734cc5a0e00ac9ec_2702898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8f21fc5c2ae75a346cb722e487af1803_26779925.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/0814396b4c7920cb734cc5a0e00ac9ec_64114474.png change filename to text .imagette213155691741730494/ imagette213155691741730494/1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727318_0.png.png imagette213155691741730494/1741730192_1900686_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715696_0.png.png imagette213155691741730494/1741730192_1900686_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719804_0.png.png imagette213155691741730494/1741730066_2673693_1343238718_c82ea33e11a1257b7af1649568778abb_rle_crop_3706706744_0.png.png imagette213155691741730494/1741730130_1899973_1343240002_7dd55b9128118f211fbbb008955c7acb_rle_crop_3706715696_0.png.png imagette213155691741730494/1741730130_1899973_1343239974_a00bbe52b8053fed9084fe9ceb91d2a9_rle_crop_3706719804_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/330ffd3e870581edb75d035817c55660_9873379.png imagette213155691741730494 21315570 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=21315570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343239776: '1741729791_1888616_1343237566_e1d6f4c7ee4a293cf5a4c16307556f8d_rle_crop_3706683517_0.png', 1343242548: '1741730153_1900190_1343239732_a1d66e33f333dae784420048143f664d_rle_crop_3706699519_0.png', 1343244042: '1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727316_0.png', 1343244043: '1741730253_1901346_1343241789_732bfda5af26654f35aae5f5f7f83e5b_rle_crop_3706727813_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a55e61aac56bf1be1ab12c9bf7694246_57842280.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/33e358b2b53558bcec0f0edd87c69bed_25903359.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9bf7860849d828b23fcd552942b6e85f_73085812.png change filename to text .imagette213155701741730494/ imagette213155701741730494/1741729791_1888616_1343237566_e1d6f4c7ee4a293cf5a4c16307556f8d_rle_crop_3706683517_0.png.png imagette213155701741730494/1741730253_1901346_1343241789_732bfda5af26654f35aae5f5f7f83e5b_rle_crop_3706727813_0.png.png imagette213155701741730494/1741730153_1900190_1343239732_a1d66e33f333dae784420048143f664d_rle_crop_3706699519_0.png.png imagette213155701741730494/1741730253_1901346_1343241836_f1c11850bc6937777ef9dfb00b65169f_rle_crop_3706727316_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f49babd711b1cb4c98d55a2d28093f5e_86977999.png imagette213155701741730494 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21315548 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21315576,21315577,21315578,21315579,21315580,21315581,21315582,21315583,21315584,21315585,21315586,21315587?tags=cartonnette,Carton_brun,mal_croppe,environnement,kraft,Carton_gris,Teint_Dans_La_Masse,metal,flou,autre_refus,plastique,papier your option no_mail is active, we will not send the real mail to your client args[1343245995] : ('0.06380389067529266',) no score found for photo 1343245995 We are sending mail with results at report@fotonower.com args[1343245913] : ('0.06380389067529266',) no score found for photo 1343245913 We are sending mail with results at report@fotonower.com args[1343245838] : ('0.06380389067529266',) no score found for photo 1343245838 We are sending mail with results at report@fotonower.com args[1343245681] : ('0.06380389067529266',) no score found for photo 1343245681 We are sending mail with results at report@fotonower.com args[1343245672] : ('0.06380389067529266',) no score found for photo 1343245672 We are sending mail with results at report@fotonower.com refus_total : 0.06380389067529266 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=21315548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21315548]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] map_info['map_portfolio_photo'] : {21315548: [1343245995, 1343245913, 1343245838, 1343245681, 1343245672, 1343244201, 1343244138, 1343244069, 1343244020, 1343243606, 1343243541, 1343243450, 1343243424, 1343243381, 1343243323, 1343242312, 1343242208, 1343241909, 1343241901, 1343241894, 1343241869, 1343241836, 1343241789, 1343241339, 1343240138, 1343240085, 1343240063, 1343240027, 1343240002, 1343239974, 1343239950, 1343239769, 1343239749, 1343239732, 1343239620, 1343239328, 1343239284, 1343239243, 1343239178, 1343238782, 1343238754, 1343238730, 1343238726, 1343238718, 1343238219, 1343237566]} final : False mtd_id 4302 list_pids : [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] 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, '2660016') ('4302', '21315548', '1343245995', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '21315548', '1343245995', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016')] time used for this insertion : 4.486559152603149 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3788368701934814 time spend to save output : 4.486864805221558 total time spend for step 4 : 7.865701675415039 step5:split_time_score Tue Mar 11 23:01:39 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 : ['21315548'] 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 : [('21315548',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21315548) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343245995: {'path': 'temp/1741730491_3235555_1343245995_26678bea8cb1856ddfa1254bebc1e93e.jpg', 'extension': 'jpg'}, 1343245838: {'path': 'temp/1741730491_3235555_1343245838_62289085d252cf0913fbb4a0f5308e03.jpg', 'extension': 'jpg'}, 1343245913: {'path': 'temp/1741730491_3235555_1343245913_94258fc5d518cf2327b464458528061d.jpg', 'extension': 'jpg'}, 1343245672: {'path': 'temp/1741730491_3235555_1343245672_0c6950c16d3ee779c1662cd64783948f.jpg', 'extension': 'jpg'}, 1343245681: {'path': 'temp/1741730491_3235555_1343245681_72f1d368f9b21aa27ef0fbdd871d09a9.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 = 21315548; (('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 = 21315548 group by h (('22', 46),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21315548 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 (21315548) 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 (21315548) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21315548 Nombre de photos uploadées : 46 / 23040 (0%) 11032025 21315548 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 11032025 21315548 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1343237566, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e1d6f4c7ee4a293cf5a4c16307556f8d.jpg', 'username': None, 'uploaded_at': 1741729599, 'text': 'image_11032025_22_45_04_010141m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1343238219, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2586b6f49837debbef1995bf75e9738f.jpg', 'username': None, 'uploaded_at': 1741729659, 'text': 'image_11032025_22_45_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343238782, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f2e1d30b767639d5076096bf4fc73db6.jpg', 'username': None, 'uploaded_at': 1741729719, 'text': 'image_11032025_22_46_54_10140.jpg'}, {'photo_id': 1343238754, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ea66508f6a361203f12f8567a99be04.jpg', 'username': None, 'uploaded_at': 1741729719, 'text': 'image_11032025_22_47_03_009147m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023298263549804688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21315548, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 6.220278024673462 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1668215, 'mtr_portfolio_id': 21313136, 'dashboard_result_id': 9367825, '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_P21313136_11-03-2025_22_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21313212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21313213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21313214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21313215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21313216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21313217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21313218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21313219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21313220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21313221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21313222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21313223, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1668215, 'mtr_portfolio_id': 21314183, 'dashboard_result_id': 9367826, '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_P21314183_11-03-2025_22_38_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21314189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21314190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21314191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21314192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21314193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21314194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21314195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21314196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21314197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21314198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21314199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21314200, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1668215, 'mtr_portfolio_id': 21315548, 'dashboard_result_id': 9367827, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21315564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21315565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21315566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21315567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21315568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21315569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21315570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21315571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21315572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21315573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21315574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21315575, '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 = 21313136 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': 2659891, 'mtr_portfolio_id': 21313136, 'created_at': datetime.datetime(2025, 3, 11, 22, 33), 'result': '0.07049984474891408', 'result_long': None, 'result_double': None}] Qualite : 0.07049984474891408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21313136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21313136_11-03-2025_22_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21313136 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_P21313136_11-03-2025_22_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21313212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21313213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21313214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21313215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21313216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21313217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21313218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21313219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21313220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21313221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21313222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21313223, 'pht': 3726}}" where mtr_portfolio_id = 21313136 and dashboard_run_id = 1668215 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`=21313136 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9367825, 0.07049984474891408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21313136_11-03-2025_22_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21313212, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21313213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21313214, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21313215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21313216, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21313217, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21313218, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21313219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21313220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21313221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21313222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21313223, '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 = 21314183 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': 2659955, 'mtr_portfolio_id': 21314183, 'created_at': datetime.datetime(2025, 3, 11, 22, 48, 28), 'result': '0.08477700190286842', 'result_long': None, 'result_double': None}] Qualite : 0.08477700190286842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21314183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21314183_11-03-2025_22_38_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21314183 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_P21314183_11-03-2025_22_38_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21314189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21314190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21314191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21314192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21314193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21314194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21314195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21314196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21314197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21314198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21314199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21314200, 'pht': 3726}}" where mtr_portfolio_id = 21314183 and dashboard_run_id = 1668215 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`=21314183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9367826, 0.08477700190286842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21314183_11-03-2025_22_38_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21314189, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21314190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21314191, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21314192, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21314193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21314194, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21314195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21314196, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21314197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21314198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21314199, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21314200, '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 = 21315548 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': 2660016, 'mtr_portfolio_id': 21315548, 'created_at': datetime.datetime(2025, 3, 11, 23, 1, 31), 'result': '0.06380389067529266', 'result_long': None, 'result_double': None}] Qualite : 0.06380389067529266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21315548 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21315548%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21315548 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21315564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21315565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21315566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21315567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21315568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21315569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21315570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21315571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21315572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21315573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21315574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21315575, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 21315548 and dashboard_run_id = 1668215 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`=21315548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9367827, 0.06380389067529266, "{'max_time_prod_two_photos': 0, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21315564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21315565, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21315566, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21315567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21315568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21315569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21315570, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21315571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21315572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21315573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21315574, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21315575, 'pht': 3726}, 'url_report': ''}") 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 (21313136,21314183,21315548) result : ((1343221037,), (1343221061,), (1343221087,), (1343221126,), (1343221291,), (1343221378,), (1343221397,), (1343221479,), (1343221531,), (1343221567,), (1343221714,), (1343221742,), (1343221758,), (1343221790,), (1343222097,), (1343222123,), (1343222155,), (1343222203,), (1343222269,), (1343222292,), (1343222403,), (1343222463,), (1343222493,), (1343222510,), (1343222536,), (1343222563,), (1343222939,), (1343223091,), (1343223172,), (1343223304,), (1343223583,), (1343223651,), (1343223772,), (1343223811,), (1343224379,), (1343224478,), (1343224516,), (1343224537,), (1343224580,), (1343225066,), (1343225115,), (1343225193,), (1343225225,), (1343225271,), (1343225754,), (1343225801,), (1343225844,), (1343226074,), (1343226105,), (1343226112,), (1343226199,), (1343226231,), (1343226525,), (1343226560,), (1343226610,), (1343226665,), (1343227058,), (1343227071,), (1343227097,), (1343227129,), (1343227175,), (1343227199,), (1343227455,), (1343227485,), (1343227506,), (1343227541,), (1343227584,), (1343227791,), (1343227813,), (1343227837,), (1343227859,), (1343227873,), (1343228388,), (1343228193,), (1343228225,), (1343228265,), (1343228303,), (1343228342,), (1343228744,), (1343228853,), (1343228946,), (1343229000,), (1343229875,), (1343229919,), (1343229982,), (1343230014,), (1343230680,), (1343230795,), (1343230868,), (1343230988,), (1343231047,), (1343231489,), (1343231512,), (1343231527,), (1343231618,), (1343231757,), (1343232273,), (1343232347,), (1343232376,), (1343232398,), (1343232465,), (1343232783,), (1343232836,), (1343232865,), (1343233000,), (1343233093,), (1343233265,), (1343233727,), (1343233791,), (1343233868,), (1343233924,), (1343233976,), (1343234103,), (1343234446,), (1343234500,), (1343234583,), (1343235066,), (1343235113,), (1343235143,), (1343235173,), (1343235187,), (1343235223,), (1343235446,), (1343235730,), (1343235793,), (1343235825,), (1343235865,), (1343235925,), (1343236253,), (1343236330,), (1343236387,), (1343236668,), (1343236684,), (1343236704,), (1343236731,), (1343236753,), (1343236907,), (1343236910,), (1343236926,), (1343236980,), (1343237012,), (1343237240,), (1343237258,), (1343237289,), (1343237311,), (1343237333,), (1343237360,), (1343237594,), (1343237566,), (1343238219,), (1343238718,), (1343238726,), (1343238730,), (1343238754,), (1343238782,), (1343239178,), (1343239243,), (1343239284,), (1343239328,), (1343239620,), (1343239732,), (1343239749,), (1343239769,), (1343239950,), (1343239974,), (1343240002,), (1343240027,), (1343240063,), (1343240085,), (1343240138,), (1343241339,), (1343241789,), (1343241836,), (1343241869,), (1343241894,), (1343241901,), (1343241909,), (1343242208,), (1343242312,), (1343243323,), (1343243381,), (1343243424,), (1343243450,), (1343243541,), (1343243606,), (1343244020,), (1343244069,), (1343244138,), (1343244201,), (1343245672,), (1343245681,), (1343245838,), (1343245913,), (1343245995,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21315548]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] map_info['map_portfolio_photo'] : {21315548: [1343245995, 1343245913, 1343245838, 1343245681, 1343245672, 1343244201, 1343244138, 1343244069, 1343244020, 1343243606, 1343243541, 1343243450, 1343243424, 1343243381, 1343243323, 1343242312, 1343242208, 1343241909, 1343241901, 1343241894, 1343241869, 1343241836, 1343241789, 1343241339, 1343240138, 1343240085, 1343240063, 1343240027, 1343240002, 1343239974, 1343239950, 1343239769, 1343239749, 1343239732, 1343239620, 1343239328, 1343239284, 1343239243, 1343239178, 1343238782, 1343238754, 1343238730, 1343238726, 1343238718, 1343238219, 1343237566]} final : True mtd_id 4302 list_pids : [1343245995, 1343245913, 1343245838, 1343245681, 1343245672] Looping around the photos to save general results len do output : 1 /21315548Didn'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, '2660016') ('4302', '21315548', '1343245995', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016') ('4302', None, None, None, None, None, None, None, '2660016') ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '21315548', 'None', None, None, None, None, '2660016'), ('4302', '21315548', '1343245995', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245913', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245838', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245681', None, None, None, None, None, '2660016'), ('4302', '21315548', '1343245672', None, None, None, None, None, '2660016')] time used for this insertion : 0.02218770980834961 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.278152942657471 time spend to save output : 0.022469520568847656 total time spend for step 5 : 7.300622463226318 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 (2660016) 2.15user 2.17system 0:25.23elapsed 17%CPU (0avgtext+0avgdata 149364maxresident)k 13688inputs+10136outputs (128major+69336minor)pagefaults 0swaps