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 : 440682 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 (2721523) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2721523) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031642 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2721523'] with mtr_portfolio_ids : ['22031642'] and first list_photo_ids : [] new path : /proc/440682/ Name: python3 Umask: 0002 State: R (running) Tgid: 440682 Ngid: 0 Pid: 440682 PPid: 440681 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 440682 NSpid: 440682 NSpgid: 437165 NSsid: 437165 VmPeak: 1106960 kB VmSize: 1106960 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98516 kB VmRSS: 98516 kB RssAnon: 59744 kB RssFile: 38772 kB RssShmem: 0 kB VmData: 865708 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 55 nonvoluntary_ctxt_switches: 98 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '440682', 'Ngid': '0', 'Pid': '440682', 'PPid': '440681', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '440682', 'NSpid': '440682', 'NSpgid': '437165', 'NSsid': '437165', 'VmPeak': '1106960 kB', 'VmSize': '1106960 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98516 kB', 'VmRSS': '98516 kB', 'RssAnon': '59744 kB', 'RssFile': '38772 kB', 'RssShmem': '0 kB', 'VmData': '865708 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '55', 'nonvoluntary_ctxt_switches': '98'} ('datou_batch_current', '440682', '1106960', '0', '1106960', '865708', '98516', b'', 'marlene', '2721523') 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 (22031642) 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 (2721523 ) ) 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 (22031642) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349853863, 'portfolio_id': 22031642}, {'photo_id': 1349853837, 'portfolio_id': 22031642}, {'photo_id': 1349853810, 'portfolio_id': 22031642}, {'photo_id': 1349853746, 'portfolio_id': 22031642}, {'photo_id': 1349853742, 'portfolio_id': 22031642}, {'photo_id': 1349853725, 'portfolio_id': 22031642}, {'photo_id': 1349853717, 'portfolio_id': 22031642}, {'photo_id': 1349853713, 'portfolio_id': 22031642}, {'photo_id': 1349853701, 'portfolio_id': 22031642}, {'photo_id': 1349853577, 'portfolio_id': 22031642}, {'photo_id': 1349853555, 'portfolio_id': 22031642}, {'photo_id': 1349853549, 'portfolio_id': 22031642}, {'photo_id': 1349853545, 'portfolio_id': 22031642}, {'photo_id': 1349853541, 'portfolio_id': 22031642}, {'photo_id': 1349853470, 'portfolio_id': 22031642}, {'photo_id': 1349853445, 'portfolio_id': 22031642}, {'photo_id': 1349853418, 'portfolio_id': 22031642}, {'photo_id': 1349853389, 'portfolio_id': 22031642}, {'photo_id': 1349853237, 'portfolio_id': 22031642}, {'photo_id': 1349853174, 'portfolio_id': 22031642}, {'photo_id': 1349853155, 'portfolio_id': 22031642}, {'photo_id': 1349853142, 'portfolio_id': 22031642}, {'photo_id': 1349853132, 'portfolio_id': 22031642}, {'photo_id': 1349853129, 'portfolio_id': 22031642}, {'photo_id': 1349852781, 'portfolio_id': 22031642}, {'photo_id': 1349852775, 'portfolio_id': 22031642}, {'photo_id': 1349852772, 'portfolio_id': 22031642}, {'photo_id': 1349852767, 'portfolio_id': 22031642}, {'photo_id': 1349852759, 'portfolio_id': 22031642}, {'photo_id': 1349852751, 'portfolio_id': 22031642}, {'photo_id': 1349852700, 'portfolio_id': 22031642}, {'photo_id': 1349852591, 'portfolio_id': 22031642}, {'photo_id': 1349852473, 'portfolio_id': 22031642}, {'photo_id': 1349851818, 'portfolio_id': 22031642}, {'photo_id': 1349851810, 'portfolio_id': 22031642}, {'photo_id': 1349851787, 'portfolio_id': 22031642}, {'photo_id': 1349851756, 'portfolio_id': 22031642}, {'photo_id': 1349851747, 'portfolio_id': 22031642}, {'photo_id': 1349851331, 'portfolio_id': 22031642}, {'photo_id': 1349851269, 'portfolio_id': 22031642}, {'photo_id': 1349851204, 'portfolio_id': 22031642}, {'photo_id': 1349851141, 'portfolio_id': 22031642}, {'photo_id': 1349850967, 'portfolio_id': 22031642}, {'photo_id': 1349850948, 'portfolio_id': 22031642}, {'photo_id': 1349850921, 'portfolio_id': 22031642}, {'photo_id': 1349850891, 'portfolio_id': 22031642}, {'photo_id': 1349850360, 'portfolio_id': 22031642}, {'photo_id': 1349850334, 'portfolio_id': 22031642}, {'photo_id': 1349850255, 'portfolio_id': 22031642}, {'photo_id': 1349849721, 'portfolio_id': 22031642}, {'photo_id': 1349849685, 'portfolio_id': 22031642}, {'photo_id': 1349849652, 'portfolio_id': 22031642}, {'photo_id': 1349849617, 'portfolio_id': 22031642}, {'photo_id': 1349849591, 'portfolio_id': 22031642}, {'photo_id': 1349849435, 'portfolio_id': 22031642}, {'photo_id': 1349849412, 'portfolio_id': 22031642}, {'photo_id': 1349849384, 'portfolio_id': 22031642}, {'photo_id': 1349849348, 'portfolio_id': 22031642}, {'photo_id': 1349849286, 'portfolio_id': 22031642}, {'photo_id': 1349849240, 'portfolio_id': 22031642}, {'photo_id': 1349848853, 'portfolio_id': 22031642}, {'photo_id': 1349848812, 'portfolio_id': 22031642}] map_portfolio_id_photo_id: {22031642: [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541, 1349853470, 1349853445, 1349853418, 1349853389, 1349853237, 1349853174, 1349853155, 1349853142, 1349853132, 1349853129, 1349852781, 1349852775, 1349852772, 1349852767, 1349852759, 1349852751, 1349852700, 1349852591, 1349852473, 1349851818, 1349851810, 1349851787, 1349851756, 1349851747, 1349851331, 1349851269, 1349851204, 1349851141, 1349850967, 1349850948, 1349850921, 1349850891, 1349850360, 1349850334, 1349850255, 1349849721, 1349849685, 1349849652, 1349849617, 1349849591, 1349849435, 1349849412, 1349849384, 1349849348, 1349849286, 1349849240, 1349848853, 1349848812]} ##### 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.9568142890930176 #### 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 Thu Apr 3 20:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22031642) 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 : 22031642 get user id for portfolio 22031642 get sub ptf for main ptf 22031642, type 3726 and hashtags ['kraft', 'cartonnette', 'papier', 'plastique', 'flou', 'environnement', 'Teint_Dans_La_Masse', 'Carton_gris', 'metal', 'autre_refus', 'Carton_brun', 'mal_croppe'] 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`=22031642 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','papier','plastique','flou','environnement','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus','Carton_brun','mal_croppe')) 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`=22031642 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','papier','plastique','flou','environnement','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22031642, 'sub_port_id': 22031651, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524402, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'flou': {'main_port_id': 22031642, 'sub_port_id': 22031652, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524403, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'Carton_gris': {'main_port_id': 22031642, 'sub_port_id': 22031653, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524404, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'environnement': {'main_port_id': 22031642, 'sub_port_id': 22031654, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524405, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'kraft': {'main_port_id': 22031642, 'sub_port_id': 22031655, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524406, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'autre_refus': {'main_port_id': 22031642, 'sub_port_id': 22031656, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524407, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'Carton_brun': {'main_port_id': 22031642, 'sub_port_id': 22031657, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524408, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'metal': {'main_port_id': 22031642, 'sub_port_id': 22031658, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524409, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'plastique': {'main_port_id': 22031642, 'sub_port_id': 22031659, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524410, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'papier': {'main_port_id': 22031642, 'sub_port_id': 22031660, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524411, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22031642, 'sub_port_id': 22031661, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524412, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}, 'cartonnette': {'main_port_id': 22031642, 'sub_port_id': 22031662, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524413, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031651 , 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=22031642 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 (22031651) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031652 , 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=22031642 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 (22031652) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031653 , 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=22031642 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 (22031653) result : ((1349851590,), (1349852207,), (1349852534,), (1349852536,), (1349852538,), (1349852540,), (1349852542,), (1349853036,), (1349853039,), (1349853041,), (1349853043,), (1349853045,), (1349853136,), (1349853137,), (1349853419,), (1349853733,), (1349853899,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031654 , 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=22031642 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 (22031654) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031655 , 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=22031642 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 (22031655) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031656 , 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=22031642 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 (22031656) result : ((1349852472,), (1349852911,), (1349853898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031657 , 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=22031642 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 (22031657) result : ((1349851623,), (1349851624,), (1349852251,), (1349852253,), (1349852687,), (1349852688,), (1349852689,), (1349852690,), (1349852691,), (1349852692,), (1349853108,), (1349853109,), (1349853111,), (1349853113,), (1349853115,), (1349853117,), (1349853138,), (1349853139,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031658 , 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=22031642 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 (22031658) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031659 , 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=22031642 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 (22031659) result : ((1349852269,), (1349852271,), (1349852761,), (1349853140,), (1349853141,), (1349853761,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031660 , 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=22031642 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 (22031660) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031661 , 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=22031642 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 (22031661) result : ((1349852179,), (1349852448,), (1349852753,), (1349852855,), (1349853134,), (1349853411,), (1349853412,), (1349853413,), (1349853723,), (1349853726,), (1349853727,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22031662 , 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=22031642 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 (22031662) result : ((1349851604,), (1349851605,), (1349852590,), (1349852757,), (1349853057,), (1349853900,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22031642) result : ((1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) 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 (1349852700) and cspi.crop_hashtag_id = chi.id; 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`=22031642 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','papier','plastique','flou','environnement','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus','Carton_brun','mal_croppe')) 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`=22031642 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','cartonnette','papier','plastique','flou','environnement','Teint_Dans_La_Masse','Carton_gris','metal','autre_refus','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22031642, 'sub_port_id': 22031665, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524414, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'flou': {'main_port_id': 22031642, 'sub_port_id': 22031666, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524415, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'Carton_gris': {'main_port_id': 22031642, 'sub_port_id': 22031667, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524416, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'environnement': {'main_port_id': 22031642, 'sub_port_id': 22031668, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524417, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'kraft': {'main_port_id': 22031642, 'sub_port_id': 22031669, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524418, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'autre_refus': {'main_port_id': 22031642, 'sub_port_id': 22031670, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524419, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'Carton_brun': {'main_port_id': 22031642, 'sub_port_id': 22031671, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524420, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'metal': {'main_port_id': 22031642, 'sub_port_id': 22031672, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524421, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'plastique': {'main_port_id': 22031642, 'sub_port_id': 22031673, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524422, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'papier': {'main_port_id': 22031642, 'sub_port_id': 22031675, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524423, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22031642, 'sub_port_id': 22031676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524424, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}, 'cartonnette': {'main_port_id': 22031642, 'sub_port_id': 22031677, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14524425, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031665,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031651 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031666,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031652 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031667,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031653 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031668,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031654 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031669,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031655 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031670,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031656 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031671,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031657 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031672,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031658 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031673,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031659 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031675,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031660 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031676,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031661 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22031677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22031662 lien utilise dans velours : https://www.fotonower.com/velours/22031665,22031666,22031667,22031668,22031669,22031670,22031671,22031672,22031673,22031675,22031676,22031677?tags=mal_croppe,flou,Carton_gris,environnement,kraft,autre_refus,Carton_brun,metal,plastique,papier,Teint_Dans_La_Masse,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22031642]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] map_info['map_portfolio_photo'] : {22031642: [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541, 1349853470, 1349853445, 1349853418, 1349853389, 1349853237, 1349853174, 1349853155, 1349853142, 1349853132, 1349853129, 1349852781, 1349852775, 1349852772, 1349852767, 1349852759, 1349852751, 1349852700, 1349852591, 1349852473, 1349851818, 1349851810, 1349851787, 1349851756, 1349851747, 1349851331, 1349851269, 1349851204, 1349851141, 1349850967, 1349850948, 1349850921, 1349850891, 1349850360, 1349850334, 1349850255, 1349849721, 1349849685, 1349849652, 1349849617, 1349849591, 1349849435, 1349849412, 1349849384, 1349849348, 1349849286, 1349849240, 1349848853, 1349848812]} final : False mtd_id 4302 list_pids : [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] Looping around the photos to save general results len do output : 1 /22031642. 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, '2721523') ('4302', '22031642', '1349853863', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22031642', "{'mal_croppe': 22031651, 'flou': 22031652, 'Carton_gris': 22031653, 'environnement': 22031654, 'kraft': 22031655, 'autre_refus': 22031656, 'Carton_brun': 22031657, 'metal': 22031658, 'plastique': 22031659, 'papier': 22031660, 'Teint_Dans_La_Masse': 22031661, 'cartonnette': 22031662}", None, None, None, None, '2721523'), ('4302', '22031642', '1349853863', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523')] time used for this insertion : 0.02331233024597168 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2004876136779785 time spend to save output : 0.023663043975830078 total time spend for step 1 : 1.2241506576538086 step2:final Thu Apr 3 20:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22031642) 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 22031642 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349848853,1349848812,1349849435,1349849412,1349849384,1349849348,1349849286,1349849240,1349849721,1349849685,1349849652,1349849617,1349849591,1349850360,1349850334,1349850255,1349850967,1349850948,1349850921,1349850891,1349851331,1349851269,1349851204,1349851141,1349851818,1349851810,1349851787,1349851756,1349851747,1349852700,1349852591,1349852473,1349852781,1349852775,1349852772,1349852767,1349852759,1349852751,1349853237,1349853174,1349853155,1349853142,1349853132,1349853129,1349853470,1349853445,1349853418,1349853389,1349853577,1349853555,1349853549,1349853545,1349853541,1349853746,1349853742,1349853725,1349853717,1349853713,1349853701,1349853863,1349853837,1349853810); 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([22031642]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} new output for save of step final : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] map_info['map_portfolio_photo'] : {22031642: [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541, 1349853470, 1349853445, 1349853418, 1349853389, 1349853237, 1349853174, 1349853155, 1349853142, 1349853132, 1349853129, 1349852781, 1349852775, 1349852772, 1349852767, 1349852759, 1349852751, 1349852700, 1349852591, 1349852473, 1349851818, 1349851810, 1349851787, 1349851756, 1349851747, 1349851331, 1349851269, 1349851204, 1349851141, 1349850967, 1349850948, 1349850921, 1349850891, 1349850360, 1349850334, 1349850255, 1349849721, 1349849685, 1349849652, 1349849617, 1349849591, 1349849435, 1349849412, 1349849384, 1349849348, 1349849286, 1349849240, 1349848853, 1349848812]} final : False mtd_id 4302 list_pids : [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] Looping around the photos to save general results len do output : 14 /1349853863.Didn't retrieve data . /1349853837.Didn't retrieve data . /1349853810.Didn't retrieve data . /1349853746.Didn't retrieve data . /1349853742.Didn't retrieve data . /1349853725.Didn't retrieve data . /1349853717.Didn't retrieve data . /1349853713.Didn't retrieve data . /1349853701.Didn't retrieve data . /1349853577.Didn't retrieve data . /1349853555.Didn't retrieve data . /1349853549.Didn't retrieve data . /1349853545.Didn't retrieve data . /1349853541.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, '2721523') ('4302', '22031642', '1349853863', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22031642', '1349853863', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853837', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853810', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853746', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853742', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853725', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853717', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853713', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853701', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853577', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853555', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853549', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853545', '0.03556226570384801', None, None, None, None, '2721523'), ('4302', '22031642', '1349853541', '0.03556226570384801', None, None, None, None, '2721523')] time used for this insertion : 0.023717403411865234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.14441633224487305 time spend to save output : 0.02440786361694336 total time spend for step 2 : 0.1688241958618164 step3:velours_tree Thu Apr 3 20:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22031642: [{'mal_croppe': 22031651, 'flou': 22031652, 'Carton_gris': 22031653, 'environnement': 22031654, 'kraft': 22031655, 'autre_refus': 22031656, 'Carton_brun': 22031657, 'metal': 22031658, 'plastique': 22031659, 'papier': 22031660, 'Teint_Dans_La_Masse': 22031661, 'cartonnette': 22031662}]} input_args_next_step : {22031642: ()} output_args : {22031642: [{'mal_croppe': 22031651, 'flou': 22031652, 'Carton_gris': 22031653, 'environnement': 22031654, 'kraft': 22031655, 'autre_refus': 22031656, 'Carton_brun': 22031657, 'metal': 22031658, 'plastique': 22031659, 'papier': 22031660, 'Teint_Dans_La_Masse': 22031661, 'cartonnette': 22031662}]} args : 22031642 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 22031651, 'flou': 22031652, 'Carton_gris': 22031653, 'environnement': 22031654, 'kraft': 22031655, 'autre_refus': 22031656, 'Carton_brun': 22031657, 'metal': 22031658, 'plastique': 22031659, 'papier': 22031660, 'Teint_Dans_La_Masse': 22031661, 'cartonnette': 22031662},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22031642) 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([22031642]) 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.3707468509674072 time spend to save output : 0.00011992454528808594 total time spend for step 3 : 0.3708667755126953 step4:send_mail_cod Thu Apr 3 20:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} input_args_next_step : {1349853863: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853863 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853837 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853810 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853746 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853742 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853725 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853717 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853713 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853701 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853577 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853555 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853549 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853545 depend.output_id : 0 input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ()} output_args : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',)} args : 1349853541 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 : {22031642: [{'mal_croppe': 22031651, 'flou': 22031652, 'Carton_gris': 22031653, 'environnement': 22031654, 'kraft': 22031655, 'autre_refus': 22031656, 'Carton_brun': 22031657, 'metal': 22031658, 'plastique': 22031659, 'papier': 22031660, 'Teint_Dans_La_Masse': 22031661, 'cartonnette': 22031662}]} input_args_next_step : {1349853863: ('0.03556226570384801',), 1349853837: ('0.03556226570384801',), 1349853810: ('0.03556226570384801',), 1349853746: ('0.03556226570384801',), 1349853742: ('0.03556226570384801',), 1349853725: ('0.03556226570384801',), 1349853717: ('0.03556226570384801',), 1349853713: ('0.03556226570384801',), 1349853701: ('0.03556226570384801',), 1349853577: ('0.03556226570384801',), 1349853555: ('0.03556226570384801',), 1349853549: ('0.03556226570384801',), 1349853545: ('0.03556226570384801',), 1349853541: ('0.03556226570384801',), 22031642: ()} output_args : {22031642: [{'mal_croppe': 22031651, 'flou': 22031652, 'Carton_gris': 22031653, 'environnement': 22031654, 'kraft': 22031655, 'autre_refus': 22031656, 'Carton_brun': 22031657, 'metal': 22031658, 'plastique': 22031659, 'papier': 22031660, 'Teint_Dans_La_Masse': 22031661, 'cartonnette': 22031662}]} args : 22031642 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.03556226570384801',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22031642) 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 (1349853863,1349853837,1349853810,1349853746,1349853742,1349853725,1349853717,1349853713,1349853701,1349853577,1349853555,1349853549,1349853545,1349853541) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349853541 begin to download photo : 1349853555 begin to download photo : 1349853713 begin to download photo : 1349853742 begin to download photo : 1349853837 download finish for photo 1349853742 begin to download photo : 1349853746 download finish for photo 1349853541 begin to download photo : 1349853545 download finish for photo 1349853713 begin to download photo : 1349853717 download finish for photo 1349853545 begin to download photo : 1349853549 download finish for photo 1349853746 begin to download photo : 1349853810 download finish for photo 1349853717 begin to download photo : 1349853725 download finish for photo 1349853549 download finish for photo 1349853810 download finish for photo 1349853725 download finish for photo 1349853837 begin to download photo : 1349853863 download finish for photo 1349853863 download finish for photo 1349853555 begin to download photo : 1349853577 download finish for photo 1349853577 begin to download photo : 1349853701 download finish for photo 1349853701 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220316511743704101/ imagette220316521743704101/ imagette220316551743704101/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22031642_03-04-2025_20_15_01.pdf 22031651 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=22031651 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220316511743704101 22031652 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=22031652 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220316521743704101 22031655 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=22031655 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220316551743704101 22031656 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=22031656 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349852472: '1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473285_0.png', 1349852911: '1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473285_0.png', 1349853898: '1743704011_2536186_1349853132_99321447d09d7eb88ed0974e46838786_rle_crop_3746482052_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6605e379a319ef418b4fc2e95cea8614_14537182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6605e379a319ef418b4fc2e95cea8614_82772171.png change filename to text .imagette220316561743704101/ imagette220316561743704101/1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473285_0.png.png imagette220316561743704101/1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473285_0.png.png imagette220316561743704101/1743704011_2536186_1349853132_99321447d09d7eb88ed0974e46838786_rle_crop_3746482052_0.png.png imagette220316581743704101/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2dc30b10871db6855c941b5e26c3c9ce_77949640.png imagette220316561743704101 22031658 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=22031658 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220316581743704101 22031659 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=22031659 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349852269: '1743703574_2529078_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471523_0.png', 1349852271: '1743703574_2529078_1349849617_ad88103ee3e0394a033f3c089eb226fd_rle_crop_3746471637_0.png', 1349852761: '1743703660_2530248_1349850948_1b3d079e2e8a9811c8924776402f4415_rle_crop_3746475821_0.png', 1349853140: '1743703711_2531482_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471523_0.png', 1349853141: '1743703711_2531482_1349849617_ad88103ee3e0394a033f3c089eb226fd_rle_crop_3746471637_0.png', 1349853761: '1743704006_960812_1349853389_48a694a5b8d256e3d319fa38af92aeb7_rle_crop_3746481338_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/61c18ce2751ca8269788a6dd8dc16b3a_35351080.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aa43ac459570889f96073dbaa5b14f85_21139162.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/37e1f383f3184f188cf742a1102bcd63_42785104.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/61c18ce2751ca8269788a6dd8dc16b3a_42255498.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/aa43ac459570889f96073dbaa5b14f85_63214393.png change filename to text .imagette220316591743704101/ imagette220316591743704101/1743703711_2531482_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471523_0.png.png imagette220316591743704101/1743703711_2531482_1349849617_ad88103ee3e0394a033f3c089eb226fd_rle_crop_3746471637_0.png.png imagette220316591743704101/1743704006_960812_1349853389_48a694a5b8d256e3d319fa38af92aeb7_rle_crop_3746481338_0.png.png imagette220316591743704101/1743703660_2530248_1349850948_1b3d079e2e8a9811c8924776402f4415_rle_crop_3746475821_0.png.png imagette220316591743704101/1743703574_2529078_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471523_0.png.png imagette220316591743704101/1743703574_2529078_1349849617_ad88103ee3e0394a033f3c089eb226fd_rle_crop_3746471637_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/79f7e25b59b4dbade339f4e569feae2c_89760467.png imagette220316591743704101 22031662 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=22031662 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349851604: '1743703553_2528752_1349850334_b670122c1dc828f137242ff9115538d8_rle_crop_3746468984_0.png', 1349851605: '1743703553_2528752_1349850255_340858d5b3a1928c99dbfd1329e63bbe_rle_crop_3746468996_0.png', 1349852590: '1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473288_0.png', 1349852757: '1743703660_2530248_1349850891_0460f9b6f1e778181849d8512fb291db_rle_crop_3746476012_0.png', 1349853057: '1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473288_0.png', 1349853900: '1743704011_2536186_1349853129_b7177cb8c176d7ada95c8af8afeb99e4_rle_crop_3746482061_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/badbb1cd6694d7fee7e5ece0ea17a954_18815907.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c534e9af45c8e02857127ad11bf84bd8_80995587.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/26e0878ebe16ee94da186bb6562750dd_80762239.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f5dfa007cdfd47deb24f6d13b0f955bc_39692276.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/26e0878ebe16ee94da186bb6562750dd_14280130.png change filename to text .imagette220316621743704101/ imagette220316621743704101/1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473288_0.png.png imagette220316621743704101/1743703553_2528752_1349850255_340858d5b3a1928c99dbfd1329e63bbe_rle_crop_3746468996_0.png.png imagette220316621743704101/1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473288_0.png.png imagette220316621743704101/1743704011_2536186_1349853129_b7177cb8c176d7ada95c8af8afeb99e4_rle_crop_3746482061_0.png.png imagette220316621743704101/1743703660_2530248_1349850891_0460f9b6f1e778181849d8512fb291db_rle_crop_3746476012_0.png.png imagette220316621743704101/1743703553_2528752_1349850334_b670122c1dc828f137242ff9115538d8_rle_crop_3746468984_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/135379b14bef90fce43408cfdddf7b23_87776070.png imagette220316621743704101 22031653 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=22031653 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349853039: '1743703692_2530786_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473242_0.png', 1349853899: '1743704011_2536186_1349853155_b223d9c86584bb02c8343a6171c05d8f_rle_crop_3746481981_0.png', 1349853733: '1743703934_2535122_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477682_0.png', 1349853419: '1743703793_2533137_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477682_0.png', 1349853137: '1743703711_2531482_1349850360_691cfe6fb021e53875ab402e229ae4ab_rle_crop_3746476239_0.png', 1349853136: '1743703711_2531482_1349850360_691cfe6fb021e53875ab402e229ae4ab_bib_crop_3746471406_0.jpg', 1349853045: '1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473286_0.png', 1349853043: '1743703692_2530786_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473257_0.png', 1349853041: '1743703692_2530786_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473252_0.png', 1349851590: '1743703553_2528752_1349850334_b670122c1dc828f137242ff9115538d8_rle_crop_3746468987_0.png', 1349853036: '1743703692_2530786_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472933_0.png', 1349852542: '1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473286_0.png', 1349852540: '1743703594_2529392_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473257_0.png', 1349852538: '1743703594_2529392_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473252_0.png', 1349852536: '1743703594_2529392_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473242_0.png', 1349852534: '1743703594_2529392_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472933_0.png', 1349852207: '1743703574_2529078_1349850360_691cfe6fb021e53875ab402e229ae4ab_rle_crop_3746471406_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ec23cecd912b79238a612a9f6d4c626e_33994875.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2b89a25e8bbe2b986933f3914dd60232_82500537.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2116f389aa40ec7befed576f4a79bc13_98438199.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2116f389aa40ec7befed576f4a79bc13_26654488.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e96fcfc58021376d5b780df15f64274a_8831562.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c3917852b67b8909192c5252d2effc88_39513743.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5ccbf0efe35c4f6944eccdafb1519614_35873551.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c845c1f52c1d20f89b696099e61e8117_29866799.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a53e6445146cf635687d13726dc1be0a_90716908.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8f9b419be0868ed8c7a4cde4314e059f_44245756.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f30f78d0478a4bb1d8e2f779c960dd95_62295833.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5ccbf0efe35c4f6944eccdafb1519614_69300605.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c845c1f52c1d20f89b696099e61e8117_2635521.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a53e6445146cf635687d13726dc1be0a_54105456.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ec23cecd912b79238a612a9f6d4c626e_84755341.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f30f78d0478a4bb1d8e2f779c960dd95_83730013.png change filename to text .imagette220316531743704102/ imagette220316531743704102/1743703594_2529392_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473252_0.png.png imagette220316531743704102/1743703692_2530786_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473252_0.png.png imagette220316531743704102/1743703692_2530786_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472933_0.png.png imagette220316531743704102/1743703594_2529392_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472933_0.png.png imagette220316531743704102/1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473286_0.png.png imagette220316531743704102/1743703574_2529078_1349850360_691cfe6fb021e53875ab402e229ae4ab_rle_crop_3746471406_0.png.png imagette220316531743704102/1743703692_2530786_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473242_0.png.png imagette220316531743704102/1743703692_2530786_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473257_0.png.png imagette220316531743704102/1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473286_0.png.png imagette220316531743704102/1743703594_2529392_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473257_0.png.png imagette220316531743704102/1743703793_2533137_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477682_0.png.png imagette220316531743704102/1743704011_2536186_1349853155_b223d9c86584bb02c8343a6171c05d8f_rle_crop_3746481981_0.png.png imagette220316531743704102/1743703934_2535122_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477682_0.png.png imagette220316531743704102/1743703553_2528752_1349850334_b670122c1dc828f137242ff9115538d8_rle_crop_3746468987_0.png.png imagette220316531743704102/1743703711_2531482_1349850360_691cfe6fb021e53875ab402e229ae4ab_rle_crop_3746476239_0.png.png imagette220316531743704102/1743703711_2531482_1349850360_691cfe6fb021e53875ab402e229ae4ab_bib_crop_3746471406_0.jpg.jpg imagette220316531743704102/1743703594_2529392_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473242_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/624d2879d4e7bc0e05a26a8a4c3d554d_93223445.png imagette220316531743704102 22031657 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=22031657 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349852692: '1743703594_2529392_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473310_0.png', 1349853139: '1743703711_2531482_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471514_0.png', 1349853138: '1743703711_2531482_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471508_0.png', 1349853117: '1743703692_2530786_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473310_0.png', 1349853115: '1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473287_0.png', 1349853113: '1743703692_2530786_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473262_0.png', 1349853111: '1743703692_2530786_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473248_0.png', 1349853109: '1743703692_2530786_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472936_0.png', 1349853108: '1743703692_2530786_1349849721_18189d02bf3bdb559cd41a0c7047a42f_rle_crop_3746471622_0.png', 1349851623: '1743703553_2528752_1349850334_b670122c1dc828f137242ff9115538d8_rle_crop_3746468992_0.png', 1349852691: '1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473287_0.png', 1349852690: '1743703594_2529392_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473262_0.png', 1349852689: '1743703594_2529392_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473248_0.png', 1349852688: '1743703594_2529392_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472936_0.png', 1349852687: '1743703594_2529392_1349849721_18189d02bf3bdb559cd41a0c7047a42f_rle_crop_3746471622_0.png', 1349852253: '1743703574_2529078_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471514_0.png', 1349852251: '1743703574_2529078_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471508_0.png', 1349851624: '1743703553_2528752_1349850255_340858d5b3a1928c99dbfd1329e63bbe_rle_crop_3746468997_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bc8e2685c89049c7b53429e929d3768b_41836037.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b1e4b17396ea768876a333c9273b86bd_59181293.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fb3122a5ff615080d351ab6cce2fc358_3521372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bc8e2685c89049c7b53429e929d3768b_29090045.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c7b235aebd11d47a9406e11038d16f9c_10942130.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/669ab73f0449da84faa412d0d0e6bcbb_84951412.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8c657a3df63e143c910c640ae2bfb5fb_75029359.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/43c80f477daa78e520acc59adb8d341b_77567818.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ccbac068be0fc9f5bacfa15345a55ec4_88384736.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9b94fe9bfaa2db6b8b2611e673e75a0e_50873615.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c7b235aebd11d47a9406e11038d16f9c_83161592.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/669ab73f0449da84faa412d0d0e6bcbb_67118369.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8c657a3df63e143c910c640ae2bfb5fb_98620329.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/43c80f477daa78e520acc59adb8d341b_67573020.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ccbac068be0fc9f5bacfa15345a55ec4_98552725.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b1e4b17396ea768876a333c9273b86bd_95778525.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fb3122a5ff615080d351ab6cce2fc358_21784822.png change filename to text .imagette220316571743704103/ imagette220316571743704103/1743703692_2530786_1349849721_18189d02bf3bdb559cd41a0c7047a42f_rle_crop_3746471622_0.png.png imagette220316571743704103/1743703553_2528752_1349850334_b670122c1dc828f137242ff9115538d8_rle_crop_3746468992_0.png.png imagette220316571743704103/1743703553_2528752_1349850255_340858d5b3a1928c99dbfd1329e63bbe_rle_crop_3746468997_0.png.png imagette220316571743704103/1743703692_2530786_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472936_0.png.png imagette220316571743704103/1743703594_2529392_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473287_0.png.png imagette220316571743704103/1743703594_2529392_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473248_0.png.png imagette220316571743704103/1743703594_2529392_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473310_0.png.png imagette220316571743704103/1743703594_2529392_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473262_0.png.png imagette220316571743704103/1743703692_2530786_1349849348_899505738f0520272e1b3d752d5cbeb3_rle_crop_3746473262_0.png.png imagette220316571743704103/1743703692_2530786_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473310_0.png.png imagette220316571743704103/1743703692_2530786_1349849286_a885583502036bccbe8999d6730682c0_rle_crop_3746473287_0.png.png imagette220316571743704103/1743703574_2529078_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471514_0.png.png imagette220316571743704103/1743703711_2531482_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471514_0.png.png imagette220316571743704103/1743703594_2529392_1349849721_18189d02bf3bdb559cd41a0c7047a42f_rle_crop_3746471622_0.png.png imagette220316571743704103/1743703711_2531482_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471508_0.png.png imagette220316571743704103/1743703574_2529078_1349849685_48f349e3c58281daf73b8dbc129f0d06_rle_crop_3746471508_0.png.png imagette220316571743704103/1743703692_2530786_1349849384_8ad861d65db9ebe085b81321b6f7e266_rle_crop_3746473248_0.png.png imagette220316571743704103/1743703594_2529392_1349849412_954dc1e736ba13a22d45b59f8ba87ed7_rle_crop_3746472936_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ea816ae57f74ca293fb50e7e2fb86cfa_90992690.png imagette220316571743704103 22031661 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=22031661 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349852179: '1743703574_2529078_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471526_0.png', 1349852448: '1743703594_2529392_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473313_0.png', 1349852753: '1743703660_2530248_1349850891_0460f9b6f1e778181849d8512fb291db_rle_crop_3746476017_0.png', 1349852855: '1743703692_2530786_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473313_0.png', 1349853134: '1743703711_2531482_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471526_0.png', 1349853411: '1743703793_2533137_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477693_0.png', 1349853412: '1743703793_2533137_1349851756_2e40abcd0e1544237f1d361b676fbeb3_rle_crop_3746477704_0.png', 1349853413: '1743703793_2533137_1349851747_174311370565df9714216127f037b16c_rle_crop_3746477727_0.png', 1349853723: '1743703934_2535122_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477693_0.png', 1349853726: '1743703934_2535122_1349851756_2e40abcd0e1544237f1d361b676fbeb3_rle_crop_3746477704_0.png', 1349853727: '1743703934_2535122_1349851747_174311370565df9714216127f037b16c_rle_crop_3746477727_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c33f788c6af1946d5740d445aa1f4e61_54322875.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/314c9c72378f1beb3327ae696b4ffc92_91238708.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/27d23659786f2bb5b7256b3f40bde260_6785243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/314c9c72378f1beb3327ae696b4ffc92_30626059.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c33f788c6af1946d5740d445aa1f4e61_53592967.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/af79b1c7887accf9fc9c2563c744ef1f_65060460.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cd251f67eab5e1120ee70d450745ed13_78797927.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/86db3f63d5e41c096295978ac609eaf1_49345273.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/af79b1c7887accf9fc9c2563c744ef1f_70763891.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cd251f67eab5e1120ee70d450745ed13_18930469.png change filename to text .imagette220316611743704104/ imagette220316611743704104/1743703793_2533137_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477693_0.png.png imagette220316611743704104/1743703574_2529078_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471526_0.png.png imagette220316611743704104/1743703934_2535122_1349851756_2e40abcd0e1544237f1d361b676fbeb3_rle_crop_3746477704_0.png.png imagette220316611743704104/1743703793_2533137_1349851747_174311370565df9714216127f037b16c_rle_crop_3746477727_0.png.png imagette220316611743704104/1743703793_2533137_1349851756_2e40abcd0e1544237f1d361b676fbeb3_rle_crop_3746477704_0.png.png imagette220316611743704104/1743703934_2535122_1349851747_174311370565df9714216127f037b16c_rle_crop_3746477727_0.png.png imagette220316611743704104/1743703660_2530248_1349850891_0460f9b6f1e778181849d8512fb291db_rle_crop_3746476017_0.png.png imagette220316611743704104/1743703711_2531482_1349849652_d854598d1c007d6ded312f6ab2fa459d_rle_crop_3746471526_0.png.png imagette220316611743704104/1743703692_2530786_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473313_0.png.png imagette220316611743704104/1743703594_2529392_1349849240_2be5ba4666a226a6f7f34379ce68fa55_rle_crop_3746473313_0.png.png imagette220316611743704104/1743703934_2535122_1349851787_1deb39c1c844bad25cb68724c570f42f_rle_crop_3746477693_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/86db3f63d5e41c096295978ac609eaf1_57753629.png imagette220316611743704104 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22031642 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22031665,22031666,22031667,22031668,22031669,22031670,22031671,22031672,22031673,22031675,22031676,22031677?tags=mal_croppe,flou,Carton_gris,environnement,kraft,autre_refus,Carton_brun,metal,plastique,papier,Teint_Dans_La_Masse,cartonnette your option no_mail is active, we will not send the real mail to your client args[1349853863] : ('0.03556226570384801',) no score found for photo 1349853863 We are sending mail with results at report@fotonower.com args[1349853837] : ('0.03556226570384801',) no score found for photo 1349853837 We are sending mail with results at report@fotonower.com args[1349853810] : ('0.03556226570384801',) no score found for photo 1349853810 We are sending mail with results at report@fotonower.com args[1349853746] : ('0.03556226570384801',) no score found for photo 1349853746 We are sending mail with results at report@fotonower.com args[1349853742] : ('0.03556226570384801',) no score found for photo 1349853742 We are sending mail with results at report@fotonower.com args[1349853725] : ('0.03556226570384801',) no score found for photo 1349853725 We are sending mail with results at report@fotonower.com args[1349853717] : ('0.03556226570384801',) no score found for photo 1349853717 We are sending mail with results at report@fotonower.com args[1349853713] : ('0.03556226570384801',) no score found for photo 1349853713 We are sending mail with results at report@fotonower.com args[1349853701] : ('0.03556226570384801',) no score found for photo 1349853701 We are sending mail with results at report@fotonower.com args[1349853577] : ('0.03556226570384801',) no score found for photo 1349853577 We are sending mail with results at report@fotonower.com args[1349853555] : ('0.03556226570384801',) no score found for photo 1349853555 We are sending mail with results at report@fotonower.com args[1349853549] : ('0.03556226570384801',) no score found for photo 1349853549 We are sending mail with results at report@fotonower.com args[1349853545] : ('0.03556226570384801',) no score found for photo 1349853545 We are sending mail with results at report@fotonower.com args[1349853541] : ('0.03556226570384801',) no score found for photo 1349853541 We are sending mail with results at report@fotonower.com refus_total : 0.03556226570384801 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=22031642 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_15_01.pdf results_Auto_P22031642_03-04-2025_20_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22031642','results_Auto_P22031642_03-04-2025_20_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_15_01.pdf','pdf','','0.21','0.03556226570384801') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22031642]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] map_info['map_portfolio_photo'] : {22031642: [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541, 1349853470, 1349853445, 1349853418, 1349853389, 1349853237, 1349853174, 1349853155, 1349853142, 1349853132, 1349853129, 1349852781, 1349852775, 1349852772, 1349852767, 1349852759, 1349852751, 1349852700, 1349852591, 1349852473, 1349851818, 1349851810, 1349851787, 1349851756, 1349851747, 1349851331, 1349851269, 1349851204, 1349851141, 1349850967, 1349850948, 1349850921, 1349850891, 1349850360, 1349850334, 1349850255, 1349849721, 1349849685, 1349849652, 1349849617, 1349849591, 1349849435, 1349849412, 1349849384, 1349849348, 1349849286, 1349849240, 1349848853, 1349848812]} final : False mtd_id 4302 list_pids : [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] 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, '2721523') ('4302', '22031642', '1349853863', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22031642', '1349853863', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523')] time used for this insertion : 0.03255295753479004 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.982553482055664 time spend to save output : 0.03287053108215332 total time spend for step 4 : 6.015424013137817 step5:split_time_score Thu Apr 3 20:15:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22031642'] 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 : [('22031642',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22031642) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349853541: {'path': 'temp/1743704100_440682_1349853541_ffff2d5f6782781a481429e459d9636a.jpg', 'extension': 'jpg'}, 1349853545: {'path': 'temp/1743704100_440682_1349853545_59c063e1a568b5e9eec1e9026c8295e4.jpg', 'extension': 'jpg'}, 1349853549: {'path': 'temp/1743704100_440682_1349853549_acb3e61a730b515dcb2b39ec15757004.jpg', 'extension': 'jpg'}, 1349853742: {'path': 'temp/1743704100_440682_1349853742_574f2b3236120063c4175e62c83ffa65.jpg', 'extension': 'jpg'}, 1349853746: {'path': 'temp/1743704100_440682_1349853746_3ae0512cda172ea7d738c8d5804dab1c.jpg', 'extension': 'jpg'}, 1349853810: {'path': 'temp/1743704100_440682_1349853810_bd6fca405bf74fbc763bc07605ce885e.jpg', 'extension': 'jpg'}, 1349853713: {'path': 'temp/1743704100_440682_1349853713_71c1fc5fa35476ffc0db3a75cdf3e351.jpg', 'extension': 'jpg'}, 1349853717: {'path': 'temp/1743704100_440682_1349853717_ad94a794a929381165628160be4cbb91.jpg', 'extension': 'jpg'}, 1349853725: {'path': 'temp/1743704100_440682_1349853725_9dc3f56002e38ee7893f1ee75b35fe7c.jpg', 'extension': 'jpg'}, 1349853837: {'path': 'temp/1743704100_440682_1349853837_76d683921eee0bb71869b5ae7695fd1c.jpg', 'extension': 'jpg'}, 1349853863: {'path': 'temp/1743704100_440682_1349853863_27c38b50b617a24a1c0e0e6310b25cfa.jpg', 'extension': 'jpg'}, 1349853555: {'path': 'temp/1743704100_440682_1349853555_dba052e1b5a30d31623dfa20d9a21c5f.jpg', 'extension': 'jpg'}, 1349853577: {'path': 'temp/1743704100_440682_1349853577_4df5637aeec105696c8981a0190ce2da.jpg', 'extension': 'jpg'}, 1349853701: {'path': 'temp/1743704100_440682_1349853701_d0da10338b515e6f2d4ccbdd01f98d91.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 = 22031642; (('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 = 22031642 group by h (('20', 62),) 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=22031642 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 (22031642) 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 (22031642) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22031642 Nombre de photos uploadées : 62 / 23040 (0%) 03042025 22031642 Nombre de photos taguées (types de déchets): 0 / 62 (0%) 03042025 22031642 Nombre de photos taguées (volume) : 0 / 62 (0%) [{'photo_id': 1349848853, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/501723f26543e647ab1009315f1ff461.jpg', 'username': None, 'uploaded_at': 1743703283, 'text': 'image_03042025_20_00_04_10148.jpg'}, {'photo_id': 1349848812, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/10f0e32c626d1a08b47590857b29cd30.jpg', 'username': None, 'uploaded_at': 1743703283, 'text': 'image_03042025_20_00_44_10135.jpg'}, {'photo_id': 1349849435, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7eab95c2fe644967036a359316ad5c69.jpg', 'username': None, 'uploaded_at': 1743703328, 'text': 'image_03042025_20_00_54_10134.jpg'}, {'photo_id': 1349849412, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/954dc1e736ba13a22d45b59f8ba87ed7.jpg', 'username': None, 'uploaded_at': 1743703328, 'text': 'image_03042025_20_01_04_10144.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ?????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002780437469482422 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22031642, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.06184816360473633 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= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722467, 'mtr_portfolio_id': 22029764, 'dashboard_result_id': 9855081, '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_P22029764_03-04-2025_19_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22029808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029819, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722467, 'mtr_portfolio_id': 22030357, 'dashboard_result_id': 9855082, '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_P22030357_03-04-2025_19_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030411, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722467, 'mtr_portfolio_id': 22031213, 'dashboard_result_id': 9855083, '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_P22031213_03-04-2025_20_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031228, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722467, 'mtr_portfolio_id': 22031642, 'dashboard_result_id': 9855084, '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_P22031642_03-04-2025_20_13_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031662, '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 = 22029764 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': 2721355, 'mtr_portfolio_id': 22029764, 'created_at': datetime.datetime(2025, 4, 3, 19, 33), 'result': '0.056289469170462667', 'result_long': None, 'result_double': None}] Qualite : 0.056289469170462667 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22029764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22029764_03-04-2025_19_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22029764 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_P22029764_03-04-2025_19_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22029808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029819, 'pht': 3726}}" where mtr_portfolio_id = 22029764 and dashboard_run_id = 1722467 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`=22029764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9855081, 0.056289469170462667, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22029764_03-04-2025_19_33_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22029808, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22029809, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22029810, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22029811, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22029812, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22029813, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22029814, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22029815, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22029816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22029817, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22029818, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22029819, '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 = 22030357 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': 2721413, 'mtr_portfolio_id': 22030357, 'created_at': datetime.datetime(2025, 4, 3, 19, 49), 'result': '0.061579304673681966', 'result_long': None, 'result_double': None}] Qualite : 0.061579304673681966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030357 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030357_03-04-2025_19_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030357 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_P22030357_03-04-2025_19_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030411, 'pht': 3726}}" where mtr_portfolio_id = 22030357 and dashboard_run_id = 1722467 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`=22030357 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9855082, 0.061579304673681966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030357_03-04-2025_19_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030400, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030408, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030409, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030410, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22030411, '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 = 22031213 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': 2721469, 'mtr_portfolio_id': 22031213, 'created_at': datetime.datetime(2025, 4, 3, 20, 3, 1), 'result': '0.04390211953327275', 'result_long': None, 'result_double': None}] Qualite : 0.04390211953327275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031213_03-04-2025_20_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031213 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_P22031213_03-04-2025_20_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031228, 'pht': 3726}}" where mtr_portfolio_id = 22031213 and dashboard_run_id = 1722467 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`=22031213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9855083, 0.04390211953327275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031213_03-04-2025_20_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031228, '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 = 22031642 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': 2721523, 'mtr_portfolio_id': 22031642, 'created_at': datetime.datetime(2025, 4, 3, 20, 14, 59), 'result': '0.03556226570384801', 'result_long': None, 'result_double': None}] Qualite : 0.03556226570384801 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031642 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_P22031642_03-04-2025_20_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031662, 'pht': 3726}}" where mtr_portfolio_id = 22031642 and dashboard_run_id = 1722467 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`=22031642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9855084, 0.03556226570384801, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_15_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031662, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22029764,22030357,22031213,22031642) result : ((1349843351,), (1349843356,), (1349843361,), (1349843364,), (1349843368,), (1349843413,), (1349843439,), (1349843468,), (1349843629,), (1349843630,), (1349843643,), (1349843644,), (1349843655,), (1349843658,), (1349843663,), (1349843664,), (1349843668,), (1349843669,), (1349843672,), (1349843673,), (1349843754,), (1349843767,), (1349843781,), (1349843790,), (1349844105,), (1349844112,), (1349844132,), (1349844141,), (1349844144,), (1349844154,), (1349844183,), (1349844196,), (1349844206,), (1349844213,), (1349844242,), (1349844285,), (1349844289,), (1349844293,), (1349844300,), (1349844483,), (1349844549,), (1349844555,), (1349844561,), (1349844567,), (1349844571,), (1349844572,), (1349844619,), (1349844623,), (1349844627,), (1349844662,), (1349844663,), (1349844668,), (1349844669,), (1349844675,), (1349844676,), (1349844680,), (1349844687,), (1349844703,), (1349844705,), (1349844725,), (1349844730,), (1349844735,), (1349844792,), (1349844796,), (1349844802,), (1349844807,), (1349844820,), (1349844828,), (1349844841,), (1349844844,), (1349844847,), (1349844852,), (1349844858,), (1349844863,), (1349844945,), (1349844958,), (1349845001,), (1349845187,), (1349845121,), (1349845125,), (1349845134,), (1349845158,), (1349845173,), (1349845283,), (1349845326,), (1349845391,), (1349845401,), (1349845405,), (1349845411,), (1349845486,), (1349845493,), (1349845510,), (1349845764,), (1349845769,), (1349845776,), (1349845789,), (1349845795,), (1349845836,), (1349845840,), (1349845846,), (1349845850,), (1349845856,), (1349845865,), (1349845926,), (1349845929,), (1349845969,), (1349845982,), (1349846159,), (1349846165,), (1349846173,), (1349846187,), (1349846214,), (1349846297,), (1349846321,), (1349846347,), (1349846382,), (1349846399,), (1349846439,), (1349846445,), (1349846453,), (1349846458,), (1349846474,), (1349846631,), (1349846656,), (1349846672,), (1349846696,), (1349846703,), (1349846738,), (1349846747,), (1349846754,), (1349846760,), (1349846787,), (1349846790,), (1349846793,), (1349846796,), (1349846800,), (1349846805,), (1349846886,), (1349846893,), (1349846900,), (1349846906,), (1349846917,), (1349846922,), (1349846933,), (1349846938,), (1349846947,), (1349847085,), (1349847125,), (1349847152,), (1349847164,), (1349847180,), (1349847187,), (1349847292,), (1349847248,), (1349847256,), (1349847273,), (1349847280,), (1349847289,), (1349847307,), (1349847315,), (1349847395,), (1349847400,), (1349847407,), (1349847416,), (1349847434,), (1349847438,), (1349847441,), (1349847445,), (1349847450,), (1349847454,), (1349847615,), (1349847632,), (1349847661,), (1349847665,), (1349847753,), (1349847757,), (1349847760,), (1349847765,), (1349847773,), (1349847840,), (1349847855,), (1349847864,), (1349847877,), (1349847881,), (1349847889,), (1349847915,), (1349847917,), (1349847920,), (1349847922,), (1349847966,), (1349847969,), (1349847971,), (1349847975,), (1349847983,), (1349848000,), (1349848021,), (1349848023,), (1349848026,), (1349848028,), (1349848077,), (1349848083,), (1349848088,), (1349848103,), (1349848107,), (1349848160,), (1349848166,), (1349848188,), (1349848191,), (1349848195,), (1349848255,), (1349848261,), (1349848268,), (1349848272,), (1349848329,), (1349848340,), (1349848355,), (1349848385,), (1349848410,), (1349848444,), (1349848519,), (1349848542,), (1349848590,), (1349848659,), (1349848895,), (1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 62, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22031642]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] map_info['map_portfolio_photo'] : {22031642: [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541, 1349853470, 1349853445, 1349853418, 1349853389, 1349853237, 1349853174, 1349853155, 1349853142, 1349853132, 1349853129, 1349852781, 1349852775, 1349852772, 1349852767, 1349852759, 1349852751, 1349852700, 1349852591, 1349852473, 1349851818, 1349851810, 1349851787, 1349851756, 1349851747, 1349851331, 1349851269, 1349851204, 1349851141, 1349850967, 1349850948, 1349850921, 1349850891, 1349850360, 1349850334, 1349850255, 1349849721, 1349849685, 1349849652, 1349849617, 1349849591, 1349849435, 1349849412, 1349849384, 1349849348, 1349849286, 1349849240, 1349848853, 1349848812]} final : True mtd_id 4302 list_pids : [1349853863, 1349853837, 1349853810, 1349853746, 1349853742, 1349853725, 1349853717, 1349853713, 1349853701, 1349853577, 1349853555, 1349853549, 1349853545, 1349853541] Looping around the photos to save general results len do output : 1 /22031642Didn'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, '2721523') ('4302', '22031642', '1349853863', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523') ('4302', None, None, None, None, None, None, None, '2721523') ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22031642', 'None', None, None, None, None, '2721523'), ('4302', '22031642', '1349853863', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853837', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853810', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853746', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853742', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853725', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853717', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853713', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853701', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853577', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853555', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853549', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853545', None, None, None, None, None, '2721523'), ('4302', '22031642', '1349853541', None, None, None, None, None, '2721523')] time used for this insertion : 0.03926849365234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.050947666168213 time spend to save output : 0.03954792022705078 total time spend for step 5 : 1.0904955863952637 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 (2721523) 2.38user 2.38system 0:12.33elapsed 38%CPU (0avgtext+0avgdata 161464maxresident)k 1520inputs+14928outputs (6major+75165minor)pagefaults 0swaps