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 : 2452620 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 (2659407) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2659407) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21305972 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2659407'] with mtr_portfolio_ids : ['21305972'] and first list_photo_ids : [] new path : /proc/2452620/ Name: python3 Umask: 0002 State: R (running) Tgid: 2452620 Ngid: 0 Pid: 2452620 PPid: 2452619 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2452620 NSpid: 2452620 NSpgid: 2449914 NSsid: 2449914 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97764 kB VmRSS: 97764 kB RssAnon: 59760 kB RssFile: 38004 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 58 nonvoluntary_ctxt_switches: 121 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2452620', 'Ngid': '0', 'Pid': '2452620', 'PPid': '2452619', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2452620', 'NSpid': '2452620', 'NSpgid': '2449914', 'NSsid': '2449914', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97764 kB', 'VmRSS': '97764 kB', 'RssAnon': '59760 kB', 'RssFile': '38004 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '58', 'nonvoluntary_ctxt_switches': '121'} ('datou_batch_current', '2452620', '1106848', '0', '1106848', '865596', '97764', b'', 'marlene', '2659407') 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 (21305972) 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 (2659407 ) ) 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 (21305972) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343170156, 'portfolio_id': 21305972}, {'photo_id': 1343170147, 'portfolio_id': 21305972}, {'photo_id': 1343170143, 'portfolio_id': 21305972}, {'photo_id': 1343170134, 'portfolio_id': 21305972}, {'photo_id': 1343170123, 'portfolio_id': 21305972}, {'photo_id': 1343170113, 'portfolio_id': 21305972}, {'photo_id': 1343169931, 'portfolio_id': 21305972}, {'photo_id': 1343169917, 'portfolio_id': 21305972}, {'photo_id': 1343169884, 'portfolio_id': 21305972}, {'photo_id': 1343169841, 'portfolio_id': 21305972}, {'photo_id': 1343169791, 'portfolio_id': 21305972}, {'photo_id': 1343169758, 'portfolio_id': 21305972}, {'photo_id': 1343169741, 'portfolio_id': 21305972}, {'photo_id': 1343169730, 'portfolio_id': 21305972}, {'photo_id': 1343169725, 'portfolio_id': 21305972}, {'photo_id': 1343169719, 'portfolio_id': 21305972}, {'photo_id': 1343169657, 'portfolio_id': 21305972}, {'photo_id': 1343169636, 'portfolio_id': 21305972}, {'photo_id': 1343169611, 'portfolio_id': 21305972}, {'photo_id': 1343169593, 'portfolio_id': 21305972}, {'photo_id': 1343169581, 'portfolio_id': 21305972}, {'photo_id': 1343169508, 'portfolio_id': 21305972}, {'photo_id': 1343169505, 'portfolio_id': 21305972}, {'photo_id': 1343169499, 'portfolio_id': 21305972}, {'photo_id': 1343169488, 'portfolio_id': 21305972}, {'photo_id': 1343169481, 'portfolio_id': 21305972}, {'photo_id': 1343169474, 'portfolio_id': 21305972}, {'photo_id': 1343169396, 'portfolio_id': 21305972}, {'photo_id': 1343169387, 'portfolio_id': 21305972}, {'photo_id': 1343169368, 'portfolio_id': 21305972}, {'photo_id': 1343169296, 'portfolio_id': 21305972}, {'photo_id': 1343169204, 'portfolio_id': 21305972}, {'photo_id': 1343169199, 'portfolio_id': 21305972}, {'photo_id': 1343169181, 'portfolio_id': 21305972}, {'photo_id': 1343169127, 'portfolio_id': 21305972}, {'photo_id': 1343169074, 'portfolio_id': 21305972}, {'photo_id': 1343169036, 'portfolio_id': 21305972}, {'photo_id': 1343168809, 'portfolio_id': 21305972}, {'photo_id': 1343168800, 'portfolio_id': 21305972}, {'photo_id': 1343168744, 'portfolio_id': 21305972}] map_portfolio_id_photo_id: {21305972: [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719, 1343169657, 1343169636, 1343169611, 1343169593, 1343169581, 1343169508, 1343169505, 1343169499, 1343169488, 1343169481, 1343169474, 1343169396, 1343169387, 1343169368, 1343169296, 1343169204, 1343169199, 1343169181, 1343169127, 1343169074, 1343169036, 1343168809, 1343168800, 1343168744]} ##### 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.014384746551513672 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 19:54:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21305972) 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 : 21305972 get user id for portfolio 21305972 get sub ptf for main ptf 21305972, type 3726 and hashtags ['metal', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse', 'flou', 'Carton_gris', 'mal_croppe', 'plastique', 'kraft', 'cartonnette', 'environnement', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21305972 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','plastique','kraft','cartonnette','environnement','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21305972 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','plastique','kraft','cartonnette','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21305972, 'sub_port_id': 21306013, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890003, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'cartonnette': {'main_port_id': 21305972, 'sub_port_id': 21306014, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890004, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'Carton_brun': {'main_port_id': 21305972, 'sub_port_id': 21306015, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890005, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'metal': {'main_port_id': 21305972, 'sub_port_id': 21306017, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890006, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'environnement': {'main_port_id': 21305972, 'sub_port_id': 21306019, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890007, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'mal_croppe': {'main_port_id': 21305972, 'sub_port_id': 21306021, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890008, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'papier': {'main_port_id': 21305972, 'sub_port_id': 21306023, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890009, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'autre_refus': {'main_port_id': 21305972, 'sub_port_id': 21306026, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890010, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'Carton_gris': {'main_port_id': 21305972, 'sub_port_id': 21306028, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890011, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 21305972, 'sub_port_id': 21306030, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890012, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'flou': {'main_port_id': 21305972, 'sub_port_id': 21306032, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890013, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}, 'plastique': {'main_port_id': 21305972, 'sub_port_id': 21306034, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890014, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21306013 , 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=21305972 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 (21306013) result : ((1343169598,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306014 , 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=21305972 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 (21306014) result : ((1343170154,), (1343170158,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306015 , 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=21305972 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 (21306015) result : ((1343170130,), (1343170155,), (1343170160,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306017 , 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=21305972 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 (21306017) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306019 , 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=21305972 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 (21306019) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306021 , 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=21305972 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 (21306021) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306023 , 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=21305972 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 (21306023) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306026 , 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=21305972 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 (21306026) result : ((1343169594,), (1343170118,), (1343170119,), (1343170144,), (1343170148,), (1343170149,), (1343170150,), (1343170157,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306028 , 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=21305972 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 (21306028) result : ((1343169597,), (1343170122,), (1343170152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306030 , 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=21305972 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 (21306030) result : ((1343170111,), (1343170115,), (1343170127,), (1343170137,), (1343170139,), (1343170140,), (1343170141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306032 , 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=21305972 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 (21306032) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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 21306034 , 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=21305972 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 (21306034) result : ((1343170131,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21305972) result : ((1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) 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 (1343168800) 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`=21305972 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','plastique','kraft','cartonnette','environnement','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21305972 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','papier','Teint_Dans_La_Masse','flou','Carton_gris','mal_croppe','plastique','kraft','cartonnette','environnement','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21305972, 'sub_port_id': 21306037, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890027, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'cartonnette': {'main_port_id': 21305972, 'sub_port_id': 21306038, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890028, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'Carton_brun': {'main_port_id': 21305972, 'sub_port_id': 21306039, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890029, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'metal': {'main_port_id': 21305972, 'sub_port_id': 21306040, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890030, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'environnement': {'main_port_id': 21305972, 'sub_port_id': 21306041, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890031, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'mal_croppe': {'main_port_id': 21305972, 'sub_port_id': 21306042, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890032, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'papier': {'main_port_id': 21305972, 'sub_port_id': 21306043, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890033, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'autre_refus': {'main_port_id': 21305972, 'sub_port_id': 21306044, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890034, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'Carton_gris': {'main_port_id': 21305972, 'sub_port_id': 21306045, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890035, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21305972, 'sub_port_id': 21306046, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890036, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'flou': {'main_port_id': 21305972, 'sub_port_id': 21306047, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890037, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}, 'plastique': {'main_port_id': 21305972, 'sub_port_id': 21306048, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13890038, 'last_updated_at': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 19, 51, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 19, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306037,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306013 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306038,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306014 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306039,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306040,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306041,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306019 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306042,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306021 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306043,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306023 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306044,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306026 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306045,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306028 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306046,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306030 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306047,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306032 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21306048,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21306034 lien utilise dans velours : https://www.fotonower.com/velours/21306037,21306038,21306039,21306040,21306041,21306042,21306043,21306044,21306045,21306046,21306047,21306048?tags=kraft,cartonnette,Carton_brun,metal,environnement,mal_croppe,papier,autre_refus,Carton_gris,Teint_Dans_La_Masse,flou,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21305972]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] map_info['map_portfolio_photo'] : {21305972: [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719, 1343169657, 1343169636, 1343169611, 1343169593, 1343169581, 1343169508, 1343169505, 1343169499, 1343169488, 1343169481, 1343169474, 1343169396, 1343169387, 1343169368, 1343169296, 1343169204, 1343169199, 1343169181, 1343169127, 1343169074, 1343169036, 1343168809, 1343168800, 1343168744]} final : False mtd_id 4302 list_pids : [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] Looping around the photos to save general results len do output : 1 /21305972. 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, '2659407') ('4302', '21305972', '1343170156', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21305972', "{'kraft': 21306013, 'cartonnette': 21306014, 'Carton_brun': 21306015, 'metal': 21306017, 'environnement': 21306019, 'mal_croppe': 21306021, 'papier': 21306023, 'autre_refus': 21306026, 'Carton_gris': 21306028, 'Teint_Dans_La_Masse': 21306030, 'flou': 21306032, 'plastique': 21306034}", None, None, None, None, '2659407'), ('4302', '21305972', '1343170156', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407')] time used for this insertion : 0.015770912170410156 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7445895671844482 time spend to save output : 0.01611638069152832 total time spend for step 1 : 0.7607059478759766 step2:final Tue Mar 11 19:54:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21305972) 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 21305972 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343168809,1343168800,1343168744,1343169204,1343169199,1343169181,1343169127,1343169074,1343169036,1343169396,1343169387,1343169368,1343169296,1343169508,1343169505,1343169499,1343169488,1343169481,1343169474,1343169657,1343169636,1343169611,1343169593,1343169581,1343169791,1343169758,1343169741,1343169730,1343169725,1343169719,1343169931,1343169917,1343169884,1343169841,1343170156,1343170147,1343170143,1343170134,1343170123,1343170113); 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([21305972]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} new output for save of step final : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] map_info['map_portfolio_photo'] : {21305972: [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719, 1343169657, 1343169636, 1343169611, 1343169593, 1343169581, 1343169508, 1343169505, 1343169499, 1343169488, 1343169481, 1343169474, 1343169396, 1343169387, 1343169368, 1343169296, 1343169204, 1343169199, 1343169181, 1343169127, 1343169074, 1343169036, 1343168809, 1343168800, 1343168744]} final : False mtd_id 4302 list_pids : [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] Looping around the photos to save general results len do output : 16 /1343170156.Didn't retrieve data . /1343170147.Didn't retrieve data . /1343170143.Didn't retrieve data . /1343170134.Didn't retrieve data . /1343170123.Didn't retrieve data . /1343170113.Didn't retrieve data . /1343169931.Didn't retrieve data . /1343169917.Didn't retrieve data . /1343169884.Didn't retrieve data . /1343169841.Didn't retrieve data . /1343169791.Didn't retrieve data . /1343169758.Didn't retrieve data . /1343169741.Didn't retrieve data . /1343169730.Didn't retrieve data . /1343169725.Didn't retrieve data . /1343169719.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, '2659407') ('4302', '21305972', '1343170156', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '21305972', '1343170156', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343170147', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343170143', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343170134', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343170123', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343170113', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169931', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169917', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169884', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169841', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169791', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169758', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169741', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169730', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169725', '0.06710232074217966', None, None, None, None, '2659407'), ('4302', '21305972', '1343169719', '0.06710232074217966', None, None, None, None, '2659407')] time used for this insertion : 0.013252973556518555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06764459609985352 time spend to save output : 0.01396489143371582 total time spend for step 2 : 0.08160948753356934 step3:velours_tree Tue Mar 11 19:54:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21305972: [{'kraft': 21306013, 'cartonnette': 21306014, 'Carton_brun': 21306015, 'metal': 21306017, 'environnement': 21306019, 'mal_croppe': 21306021, 'papier': 21306023, 'autre_refus': 21306026, 'Carton_gris': 21306028, 'Teint_Dans_La_Masse': 21306030, 'flou': 21306032, 'plastique': 21306034}]} input_args_next_step : {21305972: ()} output_args : {21305972: [{'kraft': 21306013, 'cartonnette': 21306014, 'Carton_brun': 21306015, 'metal': 21306017, 'environnement': 21306019, 'mal_croppe': 21306021, 'papier': 21306023, 'autre_refus': 21306026, 'Carton_gris': 21306028, 'Teint_Dans_La_Masse': 21306030, 'flou': 21306032, 'plastique': 21306034}]} args : 21305972 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 21306013, 'cartonnette': 21306014, 'Carton_brun': 21306015, 'metal': 21306017, 'environnement': 21306019, 'mal_croppe': 21306021, 'papier': 21306023, 'autre_refus': 21306026, 'Carton_gris': 21306028, 'Teint_Dans_La_Masse': 21306030, 'flou': 21306032, 'plastique': 21306034},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21305972) 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([21305972]) 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.6938939094543457 time spend to save output : 8.678436279296875e-05 total time spend for step 3 : 0.6939806938171387 step4:send_mail_cod Tue Mar 11 19:54:57 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 : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} input_args_next_step : {1343170156: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343170156 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343170147 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343170143 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343170134 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343170123 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343170113 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169931 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169917 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169884 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169841 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169791 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169758 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169741 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169730 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169725 depend.output_id : 0 input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ()} output_args : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',)} args : 1343169719 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 : {21305972: [{'kraft': 21306013, 'cartonnette': 21306014, 'Carton_brun': 21306015, 'metal': 21306017, 'environnement': 21306019, 'mal_croppe': 21306021, 'papier': 21306023, 'autre_refus': 21306026, 'Carton_gris': 21306028, 'Teint_Dans_La_Masse': 21306030, 'flou': 21306032, 'plastique': 21306034}]} input_args_next_step : {1343170156: ('0.06710232074217966',), 1343170147: ('0.06710232074217966',), 1343170143: ('0.06710232074217966',), 1343170134: ('0.06710232074217966',), 1343170123: ('0.06710232074217966',), 1343170113: ('0.06710232074217966',), 1343169931: ('0.06710232074217966',), 1343169917: ('0.06710232074217966',), 1343169884: ('0.06710232074217966',), 1343169841: ('0.06710232074217966',), 1343169791: ('0.06710232074217966',), 1343169758: ('0.06710232074217966',), 1343169741: ('0.06710232074217966',), 1343169730: ('0.06710232074217966',), 1343169725: ('0.06710232074217966',), 1343169719: ('0.06710232074217966',), 21305972: ()} output_args : {21305972: [{'kraft': 21306013, 'cartonnette': 21306014, 'Carton_brun': 21306015, 'metal': 21306017, 'environnement': 21306019, 'mal_croppe': 21306021, 'papier': 21306023, 'autre_refus': 21306026, 'Carton_gris': 21306028, 'Teint_Dans_La_Masse': 21306030, 'flou': 21306032, 'plastique': 21306034}]} args : 21305972 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 :17, first value : ('0.06710232074217966',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21305972) 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 (1343170156,1343170147,1343170143,1343170134,1343170123,1343170113,1343169931,1343169917,1343169884,1343169841,1343169791,1343169758,1343169741,1343169730,1343169725,1343169719) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343169719 begin to download photo : 1343169758 begin to download photo : 1343169917 begin to download photo : 1343170134 download finish for photo 1343169917 begin to download photo : 1343169931 download finish for photo 1343170134 begin to download photo : 1343170143 download finish for photo 1343169719 begin to download photo : 1343169725 download finish for photo 1343169758 begin to download photo : 1343169791 download finish for photo 1343169931 begin to download photo : 1343170113 download finish for photo 1343170143 begin to download photo : 1343170147 download finish for photo 1343169791 begin to download photo : 1343169841 download finish for photo 1343169725 begin to download photo : 1343169730 download finish for photo 1343170113 begin to download photo : 1343170123 download finish for photo 1343170147 begin to download photo : 1343170156 download finish for photo 1343169730 begin to download photo : 1343169741 download finish for photo 1343169841 begin to download photo : 1343169884 download finish for photo 1343170123 download finish for photo 1343170156 download finish for photo 1343169741 download finish for photo 1343169884 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21305972_11-03-2025_19_54_58.pdf 21306013 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=21306013 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343169598: '1741718952_1653930_1343168809_823e006de312d677ae5f6814f9767275_rle_crop_3706194809_0.png'} change filename to text .imagette213060131741719298/ imagette213060131741719298/1741718952_1653930_1343168809_823e006de312d677ae5f6814f9767275_rle_crop_3706194809_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6028515e50576a9d4c528ef5aa66735e_31503500.png imagette213060131741719298 21306014 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=21306014 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343170154: '1741719151_1656960_1343169481_ec5a1db9d5dccc105e65e912d93700b9_rle_crop_3706206302_0.png', 1343170158: '1741719171_1657159_1343169296_7a59453244f65d7c9332b123f6aa40d5_rle_crop_3706207257_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d5c221f9cc6fc53107d16e0f6060bb1a_48806330.png change filename to text .imagette213060141741719298/ imagette213060141741719298/1741719171_1657159_1343169296_7a59453244f65d7c9332b123f6aa40d5_rle_crop_3706207257_0.png.png imagette213060141741719298/1741719151_1656960_1343169481_ec5a1db9d5dccc105e65e912d93700b9_rle_crop_3706206302_0.png.png imagette213060171741719298/ imagette213060211741719298/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/cb12d0033237237bdcafecf0200d2548_8705226.png imagette213060141741719298 21306017 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=21306017 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213060171741719298 21306021 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=21306021 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213060211741719298 21306026 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=21306026 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343169594: '1741718952_1653930_1343168809_823e006de312d677ae5f6814f9767275_rle_crop_3706194812_0.png', 1343170118: '1741719146_2367870_1343169636_d769b0e005535f87864e1c151dcb70f7_rle_crop_3706204532_0.png', 1343170119: '1741719146_2367870_1343169581_503ffa2d1a6a6a0d05367435f02bce1e_rle_crop_3706205749_0.png', 1343170144: '1741719151_1656960_1343169657_9ae2b84dd39984337b191a8cddd20208_rle_crop_3706205476_0.png', 1343170148: '1741719151_1656960_1343169499_9cc22f40678142774c8d0a85a73f9923_rle_crop_3706206010_0.png', 1343170149: '1741719151_1656960_1343169481_ec5a1db9d5dccc105e65e912d93700b9_rle_crop_3706206304_0.png', 1343170150: '1741719151_1656960_1343169474_2003e2c7d66e68111219be2441ee8c0b_rle_crop_3706206632_0.png', 1343170157: '1741719171_1657159_1343169296_7a59453244f65d7c9332b123f6aa40d5_rle_crop_3706207261_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/318563d246495ee806824532b9ea7d31_84304336.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a72f6af63bea4b768c1d9860d5c21a33_2696736.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5ecaf217a0ddb4f923391fceab33c6ea_34850451.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8f707b1205433ea41d46696f01f0b3b3_63543732.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1bd95e1de70c4a232365ed5882076d5e_4392269.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8bc94d0c14204dbc80acbf15b2963a63_71960597.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/39d37e44a469ecb4413fa766df30f51e_70895383.png change filename to text .imagette213060261741719298/ imagette213060261741719298/1741719151_1656960_1343169481_ec5a1db9d5dccc105e65e912d93700b9_rle_crop_3706206304_0.png.png imagette213060261741719298/1741719151_1656960_1343169657_9ae2b84dd39984337b191a8cddd20208_rle_crop_3706205476_0.png.png imagette213060261741719298/1741718952_1653930_1343168809_823e006de312d677ae5f6814f9767275_rle_crop_3706194812_0.png.png imagette213060261741719298/1741719146_2367870_1343169636_d769b0e005535f87864e1c151dcb70f7_rle_crop_3706204532_0.png.png imagette213060261741719298/1741719146_2367870_1343169581_503ffa2d1a6a6a0d05367435f02bce1e_rle_crop_3706205749_0.png.png imagette213060261741719298/1741719151_1656960_1343169499_9cc22f40678142774c8d0a85a73f9923_rle_crop_3706206010_0.png.png imagette213060261741719298/1741719171_1657159_1343169296_7a59453244f65d7c9332b123f6aa40d5_rle_crop_3706207261_0.png.png imagette213060261741719298/1741719151_1656960_1343169474_2003e2c7d66e68111219be2441ee8c0b_rle_crop_3706206632_0.png.png imagette213060321741719298/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/83c30488ffed6a0292baeab1da5976bf_37340950.png imagette213060261741719298 21306032 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=21306032 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213060321741719298 21306034 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=21306034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343170131: '1741719193_1657367_1343169204_ad6c5d042c30e6db4141e3fab93d2a5e_rle_crop_3706206260_0.png'} change filename to text .imagette213060341741719298/ imagette213060341741719298/1741719193_1657367_1343169204_ad6c5d042c30e6db4141e3fab93d2a5e_rle_crop_3706206260_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/20a1acceec9a7b8d1f03abdbd7a32034_6578858.png imagette213060341741719298 21306015 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=21306015 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343170130: '1741719193_1657367_1343169204_ad6c5d042c30e6db4141e3fab93d2a5e_rle_crop_3706206267_0.png', 1343170155: '1741719151_1656960_1343169474_2003e2c7d66e68111219be2441ee8c0b_rle_crop_3706206630_0.png', 1343170160: '1741719171_1657159_1343169296_7a59453244f65d7c9332b123f6aa40d5_rle_crop_3706207260_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/68025bd6e5a6e48be8339111d18a4147_69203512.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1c8b645cf1de84f4a26a089b46b136a5_38565739.png change filename to text .imagette213060151741719299/ imagette213060151741719299/1741719151_1656960_1343169474_2003e2c7d66e68111219be2441ee8c0b_rle_crop_3706206630_0.png.png imagette213060151741719299/1741719171_1657159_1343169296_7a59453244f65d7c9332b123f6aa40d5_rle_crop_3706207260_0.png.png imagette213060151741719299/1741719193_1657367_1343169204_ad6c5d042c30e6db4141e3fab93d2a5e_rle_crop_3706206267_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/27d6da12cde5ed88e7cea6a8d643c0dc_10749017.png imagette213060151741719299 21306028 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=21306028 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343169597: '1741718952_1653930_1343168809_823e006de312d677ae5f6814f9767275_rle_crop_3706194805_0.png', 1343170122: '1741719146_2367870_1343169636_d769b0e005535f87864e1c151dcb70f7_rle_crop_3706204533_0.png', 1343170152: '1741719151_1656960_1343169499_9cc22f40678142774c8d0a85a73f9923_rle_crop_3706206011_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e5236d9e890dfff6e7317625c30f9b5e_55212415.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7a0ee6364eaeebaf2e0bc8820113de0e_67743358.png change filename to text .imagette213060281741719299/ imagette213060281741719299/1741718952_1653930_1343168809_823e006de312d677ae5f6814f9767275_rle_crop_3706194805_0.png.png imagette213060281741719299/1741719146_2367870_1343169636_d769b0e005535f87864e1c151dcb70f7_rle_crop_3706204533_0.png.png imagette213060281741719299/1741719151_1656960_1343169499_9cc22f40678142774c8d0a85a73f9923_rle_crop_3706206011_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a6da3db8bed149432a13a265046329ae_14894675.png imagette213060281741719299 21306030 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=21306030 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343170111: '1741719146_2367870_1343169636_d769b0e005535f87864e1c151dcb70f7_rle_crop_3706204538_0.png', 1343170115: '1741719146_2367870_1343169581_503ffa2d1a6a6a0d05367435f02bce1e_rle_crop_3706205751_0.png', 1343170127: '1741719193_1657367_1343169204_ad6c5d042c30e6db4141e3fab93d2a5e_rle_crop_3706206265_0.png', 1343170137: '1741719151_1656960_1343169505_df3fe1bd0832347095d7432258ad282a_rle_crop_3706205736_0.png', 1343170139: '1741719151_1656960_1343169505_df3fe1bd0832347095d7432258ad282a_rle_crop_3706205738_0.png', 1343170140: '1741719151_1656960_1343169499_9cc22f40678142774c8d0a85a73f9923_rle_crop_3706206014_0.png', 1343170141: '1741719151_1656960_1343169474_2003e2c7d66e68111219be2441ee8c0b_rle_crop_3706206635_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8e07f4ef0ed138eecd6106ec285c6763_61507960.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c628dc6f38efa7efcdf73331e6b4f0b9_9491659.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d7bcac10e79a79fbeaea07456306e4fb_6932952.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/631f1d7d1ec6c7b92aad563e50f84f30_91337894.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7c93f3bcbe15b0f80441b2825a5cde24_18578349.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b2f2f7e92ed6f7083768651b7623d060_41132183.png change filename to text .imagette213060301741719299/ imagette213060301741719299/1741719151_1656960_1343169499_9cc22f40678142774c8d0a85a73f9923_rle_crop_3706206014_0.png.png imagette213060301741719299/1741719151_1656960_1343169505_df3fe1bd0832347095d7432258ad282a_rle_crop_3706205736_0.png.png imagette213060301741719299/1741719151_1656960_1343169474_2003e2c7d66e68111219be2441ee8c0b_rle_crop_3706206635_0.png.png imagette213060301741719299/1741719146_2367870_1343169581_503ffa2d1a6a6a0d05367435f02bce1e_rle_crop_3706205751_0.png.png imagette213060301741719299/1741719193_1657367_1343169204_ad6c5d042c30e6db4141e3fab93d2a5e_rle_crop_3706206265_0.png.png imagette213060301741719299/1741719151_1656960_1343169505_df3fe1bd0832347095d7432258ad282a_rle_crop_3706205738_0.png.png imagette213060301741719299/1741719146_2367870_1343169636_d769b0e005535f87864e1c151dcb70f7_rle_crop_3706204538_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8b7a01a4cbe9f0e36f6befbfc6521813_47687266.png imagette213060301741719299 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21305972 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21306037,21306038,21306039,21306040,21306041,21306042,21306043,21306044,21306045,21306046,21306047,21306048?tags=kraft,cartonnette,Carton_brun,metal,environnement,mal_croppe,papier,autre_refus,Carton_gris,Teint_Dans_La_Masse,flou,plastique your option no_mail is active, we will not send the real mail to your client args[1343170156] : ('0.06710232074217966',) no score found for photo 1343170156 We are sending mail with results at report@fotonower.com args[1343170147] : ('0.06710232074217966',) no score found for photo 1343170147 We are sending mail with results at report@fotonower.com args[1343170143] : ('0.06710232074217966',) no score found for photo 1343170143 We are sending mail with results at report@fotonower.com args[1343170134] : ('0.06710232074217966',) no score found for photo 1343170134 We are sending mail with results at report@fotonower.com args[1343170123] : ('0.06710232074217966',) no score found for photo 1343170123 We are sending mail with results at report@fotonower.com args[1343170113] : ('0.06710232074217966',) no score found for photo 1343170113 We are sending mail with results at report@fotonower.com args[1343169931] : ('0.06710232074217966',) no score found for photo 1343169931 We are sending mail with results at report@fotonower.com args[1343169917] : ('0.06710232074217966',) no score found for photo 1343169917 We are sending mail with results at report@fotonower.com args[1343169884] : ('0.06710232074217966',) no score found for photo 1343169884 We are sending mail with results at report@fotonower.com args[1343169841] : ('0.06710232074217966',) no score found for photo 1343169841 We are sending mail with results at report@fotonower.com args[1343169791] : ('0.06710232074217966',) no score found for photo 1343169791 We are sending mail with results at report@fotonower.com args[1343169758] : ('0.06710232074217966',) no score found for photo 1343169758 We are sending mail with results at report@fotonower.com args[1343169741] : ('0.06710232074217966',) no score found for photo 1343169741 We are sending mail with results at report@fotonower.com args[1343169730] : ('0.06710232074217966',) no score found for photo 1343169730 We are sending mail with results at report@fotonower.com args[1343169725] : ('0.06710232074217966',) no score found for photo 1343169725 We are sending mail with results at report@fotonower.com args[1343169719] : ('0.06710232074217966',) no score found for photo 1343169719 We are sending mail with results at report@fotonower.com refus_total : 0.06710232074217966 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=21305972 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21305972]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] map_info['map_portfolio_photo'] : {21305972: [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719, 1343169657, 1343169636, 1343169611, 1343169593, 1343169581, 1343169508, 1343169505, 1343169499, 1343169488, 1343169481, 1343169474, 1343169396, 1343169387, 1343169368, 1343169296, 1343169204, 1343169199, 1343169181, 1343169127, 1343169074, 1343169036, 1343168809, 1343168800, 1343168744]} final : False mtd_id 4302 list_pids : [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] 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, '2659407') ('4302', '21305972', '1343170156', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21305972', '1343170156', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407')] time used for this insertion : 0.5604617595672607 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3394546508789062 time spend to save output : 0.5607471466064453 total time spend for step 4 : 2.9002017974853516 step5:split_time_score Tue Mar 11 19:55:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21305972'] 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 : [('21305972',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21305972) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343169917: {'path': 'temp/1741719297_2452620_1343169917_f934f5fec2a27e8eb78cd3ee3cd05769.jpg', 'extension': 'jpg'}, 1343169931: {'path': 'temp/1741719297_2452620_1343169931_6ffd21137bfe120d8b495ba43e692807.jpg', 'extension': 'jpg'}, 1343170113: {'path': 'temp/1741719297_2452620_1343170113_998c6268e7fda73acb7927badbeff0b5.jpg', 'extension': 'jpg'}, 1343170123: {'path': 'temp/1741719297_2452620_1343170123_2596f0abbf49edef0f70c91c5e0352e2.jpg', 'extension': 'jpg'}, 1343170134: {'path': 'temp/1741719297_2452620_1343170134_07b8f8c97b3264bc2e2b0a79c279101f.jpg', 'extension': 'jpg'}, 1343170143: {'path': 'temp/1741719297_2452620_1343170143_8692904c494820a81ebfd4adb5f492c1.jpg', 'extension': 'jpg'}, 1343170147: {'path': 'temp/1741719297_2452620_1343170147_96cb5bb067830428c2f8f1d1471dfbc7.jpg', 'extension': 'jpg'}, 1343170156: {'path': 'temp/1741719297_2452620_1343170156_c7cc4945e8310cc7c6734263ec640321.jpg', 'extension': 'jpg'}, 1343169719: {'path': 'temp/1741719297_2452620_1343169719_8186517aa77639574ee4105bc8c73d15.jpg', 'extension': 'jpg'}, 1343169725: {'path': 'temp/1741719297_2452620_1343169725_a101adc6a079b6528a244a2eaff118a0.jpg', 'extension': 'jpg'}, 1343169730: {'path': 'temp/1741719297_2452620_1343169730_9a3524b1b6bcf4c5f124640187c67180.jpg', 'extension': 'jpg'}, 1343169741: {'path': 'temp/1741719297_2452620_1343169741_9eeeb5fbd99d55f98b7b05611e644113.jpg', 'extension': 'jpg'}, 1343169758: {'path': 'temp/1741719297_2452620_1343169758_065af42ed28a8ba5f9c8d1509a3e5f5f.jpg', 'extension': 'jpg'}, 1343169791: {'path': 'temp/1741719297_2452620_1343169791_96f5ff581dc34d73284cb725004d1e1e.jpg', 'extension': 'jpg'}, 1343169841: {'path': 'temp/1741719297_2452620_1343169841_2e6f9301235dcc18fdf668a99a0dc27f.jpg', 'extension': 'jpg'}, 1343169884: {'path': 'temp/1741719297_2452620_1343169884_227ae518e7746f1b26d1ba40dfc08524.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 = 21305972; (('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 = 21305972 group by h (('19', 40),) 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=21305972 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 (21305972) 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 (21305972) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21305972 Nombre de photos uploadées : 40 / 23040 (0%) 11032025 21305972 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 11032025 21305972 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1343168809, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/823e006de312d677ae5f6814f9767275.jpg', 'username': None, 'uploaded_at': 1741718799, 'text': 'image_11032025_19_45_04_010146m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1343168800, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2804d74c6b4949569df62f8286f0dd62.jpg', 'username': None, 'uploaded_at': 1741718799, 'text': 'image_11032025_19_45_13_009125m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343168744, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/657e276f9979a077688b2c108bd252fb.jpg', 'username': None, 'uploaded_at': 1741718799, 'text': 'image_11032025_19_45_33_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343169204, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ad6c5d042c30e6db4141e3fab93d2a5e.jpg', 'username': None, 'uploaded_at': 1741718859, 'text': 'image_11032025_19_45_53_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002049684524536133 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21305972, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024976730346679688 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667644, 'mtr_portfolio_id': 21303075, 'dashboard_result_id': 9359924, '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_P21303075_11-03-2025_19_06_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21303190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21303194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21303195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21303196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21303197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21303198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21303199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21303200, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21303201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21303202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21303204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21303209, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667644, 'mtr_portfolio_id': 21304387, 'dashboard_result_id': 9359925, '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_P21304387_11-03-2025_19_35_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21304457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21304458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21304459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21304460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21304461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21304462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21304463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21304464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21304465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21304466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21304467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21304468, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667644, 'mtr_portfolio_id': 21305160, 'dashboard_result_id': 9359926, '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_P21305160_11-03-2025_19_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21305185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21305186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21305187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21305188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21305189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21305190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21305191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21305192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21305193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21305194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21305195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21305196, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667644, 'mtr_portfolio_id': 21305972, 'dashboard_result_id': 9359928, '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_P21305972_11-03-2025_19_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306034, '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 = 21303075 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': 2659244, 'mtr_portfolio_id': 21303075, 'created_at': datetime.datetime(2025, 3, 11, 19, 17, 30), 'result': '0.07165204742663832', 'result_long': None, 'result_double': None}] Qualite : 0.07165204742663832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21303075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21303075_11-03-2025_19_06_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21303075 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_P21303075_11-03-2025_19_06_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21303190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21303194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21303195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21303196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21303197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21303198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21303199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21303200, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21303201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21303202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21303204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21303209, 'pht': 3726}}" where mtr_portfolio_id = 21303075 and dashboard_run_id = 1667644 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`=21303075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9359924, 0.07165204742663832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21303075_11-03-2025_19_06_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21303190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21303194, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21303195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21303196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21303197, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21303198, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21303199, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21303200, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21303201, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21303202, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21303204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21303209, '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 = 21304387 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': 2659294, 'mtr_portfolio_id': 21304387, 'created_at': datetime.datetime(2025, 3, 11, 19, 35, 30), 'result': '0.05295210931662141', 'result_long': None, 'result_double': None}] Qualite : 0.05295210931662141 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21304387 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21304387_11-03-2025_19_35_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21304387 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_P21304387_11-03-2025_19_35_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21304457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21304458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21304459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21304460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21304461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21304462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21304463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21304464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21304465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21304466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21304467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21304468, 'pht': 3726}}" where mtr_portfolio_id = 21304387 and dashboard_run_id = 1667644 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`=21304387 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9359925, 0.05295210931662141, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21304387_11-03-2025_19_35_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21304457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21304458, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21304459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21304460, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21304461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21304462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21304463, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21304464, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21304465, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21304466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21304467, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21304468, '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 = 21305160 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': 2659353, 'mtr_portfolio_id': 21305160, 'created_at': datetime.datetime(2025, 3, 11, 19, 49, 1), 'result': '0.07315978438042056', 'result_long': None, 'result_double': None}] Qualite : 0.07315978438042056 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21305160 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21305160_11-03-2025_19_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21305160 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_P21305160_11-03-2025_19_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21305185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21305186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21305187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21305188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21305189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21305190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21305191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21305192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21305193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21305194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21305195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21305196, 'pht': 3726}}" where mtr_portfolio_id = 21305160 and dashboard_run_id = 1667644 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`=21305160 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9359926, 0.07315978438042056, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21305160_11-03-2025_19_49_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21305185, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21305186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21305187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21305188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21305189, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21305190, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21305191, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21305192, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21305193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21305194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21305195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21305196, '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 = 21305972 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': 2659407, 'mtr_portfolio_id': 21305972, 'created_at': datetime.datetime(2025, 3, 11, 19, 54, 56), 'result': '0.06710232074217966', 'result_long': None, 'result_double': None}] Qualite : 0.06710232074217966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21305972 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21305972_11-03-2025_19_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21305972 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_P21305972_11-03-2025_19_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306034, 'pht': 3726}}" where mtr_portfolio_id = 21305972 and dashboard_run_id = 1667644 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`=21305972 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9359928, 0.06710232074217966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21305972_11-03-2025_19_49_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21306013, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21306014, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21306015, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21306017, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21306019, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21306021, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21306023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21306026, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21306028, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21306030, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21306032, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21306034, '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 (21303075,21304387,21305160,21305972) result : ((1343152970,), (1343153012,), (1343153026,), (1343153126,), (1343153161,), (1343153453,), (1343153516,), (1343153584,), (1343153645,), (1343153711,), (1343154149,), (1343154220,), (1343154299,), (1343154443,), (1343154479,), (1343154535,), (1343154852,), (1343155053,), (1343155112,), (1343155143,), (1343155171,), (1343155630,), (1343155707,), (1343155796,), (1343155827,), (1343155900,), (1343155937,), (1343156292,), (1343156322,), (1343156356,), (1343156905,), (1343156927,), (1343156975,), (1343156998,), (1343157016,), (1343157041,), (1343157243,), (1343157259,), (1343157295,), (1343157323,), (1343157783,), (1343157828,), (1343157879,), (1343157942,), (1343158005,), (1343158051,), (1343158490,), (1343158537,), (1343158583,), (1343158643,), (1343158700,), (1343158998,), (1343159046,), (1343159110,), (1343159160,), (1343159189,), (1343159218,), (1343159483,), (1343159536,), (1343159576,), (1343159601,), (1343159654,), (1343160061,), (1343160121,), (1343160170,), (1343160239,), (1343160444,), (1343160463,), (1343160487,), (1343160515,), (1343160558,), (1343160591,), (1343160796,), (1343160839,), (1343160893,), (1343160932,), (1343160959,), (1343161133,), (1343161109,), (1343161113,), (1343161118,), (1343161123,), (1343161127,), (1343161504,), (1343161577,), (1343161590,), (1343161599,), (1343161976,), (1343161986,), (1343162015,), (1343162025,), (1343162029,), (1343162105,), (1343162113,), (1343162126,), (1343162144,), (1343162149,), (1343162153,), (1343162274,), (1343162306,), (1343162322,), (1343162386,), (1343162404,), (1343162433,), (1343163147,), (1343163151,), (1343163636,), (1343163640,), (1343163645,), (1343163647,), (1343163650,), (1343163903,), (1343163909,), (1343163993,), (1343163996,), (1343164001,), (1343164006,), (1343164008,), (1343164012,), (1343164044,), (1343164049,), (1343164054,), (1343164057,), (1343164059,), (1343164090,), (1343164093,), (1343164095,), (1343164099,), (1343164103,), (1343164233,), (1343164237,), (1343164241,), (1343164245,), (1343164261,), (1343164281,), (1343164396,), (1343164400,), (1343164405,), (1343164410,), (1343164465,), (1343164476,), (1343164481,), (1343164485,), (1343164497,), (1343164506,), (1343164555,), (1343164558,), (1343164577,), (1343164878,), (1343164771,), (1343164778,), (1343164824,), (1343164857,), (1343165136,), (1343165167,), (1343165188,), (1343165195,), (1343165198,), (1343165338,), (1343165345,), (1343165349,), (1343165360,), (1343165366,), (1343165603,), (1343165612,), (1343165620,), (1343165631,), (1343165640,), (1343165687,), (1343165718,), (1343165746,), (1343165760,), (1343165765,), (1343165770,), (1343165804,), (1343165812,), (1343165820,), (1343165844,), (1343165850,), (1343166210,), (1343166232,), (1343166257,), (1343166289,), (1343166311,), (1343166340,), (1343166513,), (1343166514,), (1343166527,), (1343166532,), (1343166539,), (1343166594,), (1343166606,), (1343166618,), (1343166622,), (1343166630,), (1343166711,), (1343166732,), (1343166747,), (1343166767,), (1343166775,), (1343166786,), (1343166908,), (1343166937,), (1343166974,), (1343167013,), (1343167061,), (1343167358,), (1343167388,), (1343167443,), (1343167455,), (1343167510,), (1343167517,), (1343167525,), (1343167538,), (1343167545,), (1343167546,), (1343167620,), (1343167686,), (1343167784,), (1343167803,), (1343168065,), (1343168143,), (1343168218,), (1343168274,), (1343168328,), (1343168367,), (1343168830,), (1343168744,), (1343168800,), (1343168809,), (1343169036,), (1343169074,), (1343169127,), (1343169181,), (1343169199,), (1343169204,), (1343169296,), (1343169368,), (1343169387,), (1343169396,), (1343169474,), (1343169481,), (1343169488,), (1343169499,), (1343169505,), (1343169508,), (1343169581,), (1343169593,), (1343169611,), (1343169636,), (1343169657,), (1343169719,), (1343169725,), (1343169730,), (1343169741,), (1343169758,), (1343169791,), (1343169841,), (1343169884,), (1343169917,), (1343169931,), (1343170113,), (1343170123,), (1343170134,), (1343170143,), (1343170147,), (1343170156,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21305972]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] map_info['map_portfolio_photo'] : {21305972: [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719, 1343169657, 1343169636, 1343169611, 1343169593, 1343169581, 1343169508, 1343169505, 1343169499, 1343169488, 1343169481, 1343169474, 1343169396, 1343169387, 1343169368, 1343169296, 1343169204, 1343169199, 1343169181, 1343169127, 1343169074, 1343169036, 1343168809, 1343168800, 1343168744]} final : True mtd_id 4302 list_pids : [1343170156, 1343170147, 1343170143, 1343170134, 1343170123, 1343170113, 1343169931, 1343169917, 1343169884, 1343169841, 1343169791, 1343169758, 1343169741, 1343169730, 1343169725, 1343169719] Looping around the photos to save general results len do output : 1 /21305972Didn'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, '2659407') ('4302', '21305972', '1343170156', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407') ('4302', None, None, None, None, None, None, None, '2659407') ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21305972', 'None', None, None, None, None, '2659407'), ('4302', '21305972', '1343170156', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170147', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170143', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170134', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170123', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343170113', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169931', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169917', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169884', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169841', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169791', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169758', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169741', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169730', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169725', None, None, None, None, None, '2659407'), ('4302', '21305972', '1343169719', None, None, None, None, None, '2659407')] time used for this insertion : 0.01499319076538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8962275981903076 time spend to save output : 0.01527094841003418 total time spend for step 5 : 2.911498546600342 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 (2659407) 1.99user 2.02system 0:09.13elapsed 43%CPU (0avgtext+0avgdata 150148maxresident)k 31296inputs+12400outputs (116major+60330minor)pagefaults 0swaps