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 : 3378033 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 (2678782) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2678782) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571177 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2678782'] with mtr_portfolio_ids : ['21571177'] and first list_photo_ids : [] new path : /proc/3378033/ Name: python3 Umask: 0002 State: R (running) Tgid: 3378033 Ngid: 0 Pid: 3378033 PPid: 3378032 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3378033 NSpid: 3378033 NSpgid: 3374102 NSsid: 3374102 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98424 kB VmRSS: 98424 kB RssAnon: 59764 kB RssFile: 38660 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3378033', 'Ngid': '0', 'Pid': '3378033', 'PPid': '3378032', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3378033', 'NSpid': '3378033', 'NSpgid': '3374102', 'NSsid': '3374102', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98424 kB', 'VmRSS': '98424 kB', 'RssAnon': '59764 kB', 'RssFile': '38660 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '3378033', '1106932', '0', '1106932', '865680', '98424', b'', 'marlene', '2678782') 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 (21571177) 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 (2678782 ) ) 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 (21571177) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1345972988, 'portfolio_id': 21571177}, {'photo_id': 1345972986, 'portfolio_id': 21571177}, {'photo_id': 1345972984, 'portfolio_id': 21571177}, {'photo_id': 1345972982, 'portfolio_id': 21571177}, {'photo_id': 1345972978, 'portfolio_id': 21571177}, {'photo_id': 1345972977, 'portfolio_id': 21571177}, {'photo_id': 1345972973, 'portfolio_id': 21571177}, {'photo_id': 1345972969, 'portfolio_id': 21571177}, {'photo_id': 1345972955, 'portfolio_id': 21571177}, {'photo_id': 1345972954, 'portfolio_id': 21571177}, {'photo_id': 1345972874, 'portfolio_id': 21571177}, {'photo_id': 1345972859, 'portfolio_id': 21571177}, {'photo_id': 1345972845, 'portfolio_id': 21571177}, {'photo_id': 1345972821, 'portfolio_id': 21571177}, {'photo_id': 1345972782, 'portfolio_id': 21571177}, {'photo_id': 1345972754, 'portfolio_id': 21571177}, {'photo_id': 1345972632, 'portfolio_id': 21571177}, {'photo_id': 1345972608, 'portfolio_id': 21571177}, {'photo_id': 1345972564, 'portfolio_id': 21571177}, {'photo_id': 1345972560, 'portfolio_id': 21571177}, {'photo_id': 1345972289, 'portfolio_id': 21571177}, {'photo_id': 1345972236, 'portfolio_id': 21571177}, {'photo_id': 1345972178, 'portfolio_id': 21571177}, {'photo_id': 1345972139, 'portfolio_id': 21571177}, {'photo_id': 1345972115, 'portfolio_id': 21571177}, {'photo_id': 1345971577, 'portfolio_id': 21571177}, {'photo_id': 1345971522, 'portfolio_id': 21571177}, {'photo_id': 1345971485, 'portfolio_id': 21571177}, {'photo_id': 1345971423, 'portfolio_id': 21571177}, {'photo_id': 1345971173, 'portfolio_id': 21571177}, {'photo_id': 1345971137, 'portfolio_id': 21571177}, {'photo_id': 1345971104, 'portfolio_id': 21571177}, {'photo_id': 1345971061, 'portfolio_id': 21571177}] map_portfolio_id_photo_id: {21571177: [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754, 1345972632, 1345972608, 1345972564, 1345972560, 1345972289, 1345972236, 1345972178, 1345972139, 1345972115, 1345971577, 1345971522, 1345971485, 1345971423, 1345971173, 1345971137, 1345971104, 1345971061]} ##### 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.015123367309570312 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 21 12:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21571177) 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 : 21571177 get user id for portfolio 21571177 get sub ptf for main ptf 21571177, type 3726 and hashtags ['metal', 'autre_refus', 'environnement', 'Carton_brun', 'mal_croppe', 'kraft', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_gris', 'papier', 'plastique'] 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`=21571177 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_brun','mal_croppe','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique')) 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`=21571177 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_brun','mal_croppe','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21571177, 'sub_port_id': 21571238, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117027, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'kraft': {'main_port_id': 21571177, 'sub_port_id': 21571239, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117028, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'metal': {'main_port_id': 21571177, 'sub_port_id': 21571240, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117029, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'autre_refus': {'main_port_id': 21571177, 'sub_port_id': 21571241, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117030, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'mal_croppe': {'main_port_id': 21571177, 'sub_port_id': 21571242, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117031, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'environnement': {'main_port_id': 21571177, 'sub_port_id': 21571243, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117032, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'papier': {'main_port_id': 21571177, 'sub_port_id': 21571244, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117033, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'Carton_brun': {'main_port_id': 21571177, 'sub_port_id': 21571245, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117034, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'Carton_gris': {'main_port_id': 21571177, 'sub_port_id': 21571246, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117035, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21571177, 'sub_port_id': 21571247, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117036, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'plastique': {'main_port_id': 21571177, 'sub_port_id': 21571248, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117037, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}, 'cartonnette': {'main_port_id': 21571177, 'sub_port_id': 21571249, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117038, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571238 , 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=21571177 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 (21571238) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571239 , 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=21571177 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 (21571239) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571240 , 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=21571177 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 (21571240) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571241 , 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=21571177 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 (21571241) result : ((1345972518,), (1345972519,), (1345972915,), (1345972916,), (1345972917,), (1345972958,), (1345972959,), (1345972960,), (1345972961,), (1345972962,), (1345972963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571242 , 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=21571177 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 (21571242) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571243 , 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=21571177 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 (21571243) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571244 , 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=21571177 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 (21571244) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571245 , 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=21571177 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 (21571245) result : ((1345972548,), (1345972923,), (1345972966,), (1345972967,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571246 , 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=21571177 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 (21571246) result : ((1345972526,), (1345972527,), (1345972919,), (1345972920,), (1345972921,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571247 , 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=21571177 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 (21571247) result : ((1345972500,), (1345972502,), (1345972503,), (1345972912,), (1345972913,), (1345972950,), (1345972951,), (1345972952,), (1345972953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571248 , 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=21571177 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 (21571248) result : ((1345972551,), (1345972970,), (1345972971,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21571249 , 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=21571177 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 (21571249) result : ((1345972544,), (1345972545,), (1345972964,), (1345972965,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21571177) result : ((1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21571177 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_brun','mal_croppe','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique')) 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`=21571177 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_brun','mal_croppe','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21571177, 'sub_port_id': 21571250, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117039, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'kraft': {'main_port_id': 21571177, 'sub_port_id': 21571251, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117040, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'metal': {'main_port_id': 21571177, 'sub_port_id': 21571252, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117041, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'autre_refus': {'main_port_id': 21571177, 'sub_port_id': 21571253, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117042, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'mal_croppe': {'main_port_id': 21571177, 'sub_port_id': 21571254, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117043, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'environnement': {'main_port_id': 21571177, 'sub_port_id': 21571255, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117044, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'papier': {'main_port_id': 21571177, 'sub_port_id': 21571256, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117045, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'Carton_brun': {'main_port_id': 21571177, 'sub_port_id': 21571257, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117046, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'Carton_gris': {'main_port_id': 21571177, 'sub_port_id': 21571258, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117047, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21571177, 'sub_port_id': 21571259, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117048, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'plastique': {'main_port_id': 21571177, 'sub_port_id': 21571260, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117049, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}, 'cartonnette': {'main_port_id': 21571177, 'sub_port_id': 21571261, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14117050, 'last_updated_at': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 21, 12, 7, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 21, 12, 7, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571247 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571248 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21571261,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21571249 lien utilise dans velours : https://www.fotonower.com/velours/21571250,21571251,21571252,21571253,21571254,21571255,21571256,21571257,21571258,21571259,21571260,21571261?tags=flou,kraft,metal,autre_refus,mal_croppe,environnement,papier,Carton_brun,Carton_gris,Teint_Dans_La_Masse,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21571177]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] map_info['map_portfolio_photo'] : {21571177: [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754, 1345972632, 1345972608, 1345972564, 1345972560, 1345972289, 1345972236, 1345972178, 1345972139, 1345972115, 1345971577, 1345971522, 1345971485, 1345971423, 1345971173, 1345971137, 1345971104, 1345971061]} final : False mtd_id 4302 list_pids : [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] Looping around the photos to save general results len do output : 1 /21571177. 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, '2678782') ('4302', '21571177', '1345972988', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782') 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, '21571177', "{'flou': 21571238, 'kraft': 21571239, 'metal': 21571240, 'autre_refus': 21571241, 'mal_croppe': 21571242, 'environnement': 21571243, 'papier': 21571244, 'Carton_brun': 21571245, 'Carton_gris': 21571246, 'Teint_Dans_La_Masse': 21571247, 'plastique': 21571248, 'cartonnette': 21571249}", None, None, None, None, '2678782'), ('4302', '21571177', '1345972988', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782')] time used for this insertion : 0.015812158584594727 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4871342182159424 time spend to save output : 0.016133785247802734 total time spend for step 1 : 1.5032680034637451 step2:final Fri Mar 21 12:09:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21571177) 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 21571177 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1345971173,1345971137,1345971104,1345971577,1345971061,1345971522,1345971485,1345971423,1345972289,1345972236,1345972178,1345972139,1345972115,1345972632,1345972608,1345972564,1345972560,1345972874,1345972859,1345972845,1345972821,1345972782,1345972754,1345972988,1345972986,1345972982,1345972984,1345972977,1345972978,1345972969,1345972973,1345972955,1345972954); 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([21571177]) Inside saveOutput : final : False verbose : True original output for save of step final : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} new output for save of step final : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] map_info['map_portfolio_photo'] : {21571177: [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754, 1345972632, 1345972608, 1345972564, 1345972560, 1345972289, 1345972236, 1345972178, 1345972139, 1345972115, 1345971577, 1345971522, 1345971485, 1345971423, 1345971173, 1345971137, 1345971104, 1345971061]} final : False mtd_id 4302 list_pids : [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] Looping around the photos to save general results len do output : 16 /1345972988.Didn't retrieve data . /1345972986.Didn't retrieve data . /1345972984.Didn't retrieve data . /1345972982.Didn't retrieve data . /1345972978.Didn't retrieve data . /1345972977.Didn't retrieve data . /1345972973.Didn't retrieve data . /1345972969.Didn't retrieve data . /1345972955.Didn't retrieve data . /1345972954.Didn't retrieve data . /1345972874.Didn't retrieve data . /1345972859.Didn't retrieve data . /1345972845.Didn't retrieve data . /1345972821.Didn't retrieve data . /1345972782.Didn't retrieve data . /1345972754.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, '2678782') ('4302', '21571177', '1345972988', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782') 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', '21571177', '1345972988', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972986', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972984', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972982', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972978', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972977', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972973', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972969', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972955', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972954', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972874', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972859', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972845', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972821', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972782', '0.10297045973211331', None, None, None, None, '2678782'), ('4302', '21571177', '1345972754', '0.10297045973211331', None, None, None, None, '2678782')] time used for this insertion : 0.014409542083740234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06114339828491211 time spend to save output : 0.015187263488769531 total time spend for step 2 : 0.07633066177368164 step3:velours_tree Fri Mar 21 12:09: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 : {21571177: [{'flou': 21571238, 'kraft': 21571239, 'metal': 21571240, 'autre_refus': 21571241, 'mal_croppe': 21571242, 'environnement': 21571243, 'papier': 21571244, 'Carton_brun': 21571245, 'Carton_gris': 21571246, 'Teint_Dans_La_Masse': 21571247, 'plastique': 21571248, 'cartonnette': 21571249}]} input_args_next_step : {21571177: ()} output_args : {21571177: [{'flou': 21571238, 'kraft': 21571239, 'metal': 21571240, 'autre_refus': 21571241, 'mal_croppe': 21571242, 'environnement': 21571243, 'papier': 21571244, 'Carton_brun': 21571245, 'Carton_gris': 21571246, 'Teint_Dans_La_Masse': 21571247, 'plastique': 21571248, 'cartonnette': 21571249}]} args : 21571177 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 : ({'flou': 21571238, 'kraft': 21571239, 'metal': 21571240, 'autre_refus': 21571241, 'mal_croppe': 21571242, 'environnement': 21571243, 'papier': 21571244, 'Carton_brun': 21571245, 'Carton_gris': 21571246, 'Teint_Dans_La_Masse': 21571247, 'plastique': 21571248, 'cartonnette': 21571249},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21571177) 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([21571177]) 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.28379249572753906 time spend to save output : 3.910064697265625e-05 total time spend for step 3 : 0.2838315963745117 step4:send_mail_cod Fri Mar 21 12:09:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} input_args_next_step : {1345972988: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972988 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972986 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972984 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972982 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972978 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972977 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972973 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972969 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972955 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972954 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972874 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972859 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972845 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972821 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972782 depend.output_id : 0 input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ()} output_args : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',)} args : 1345972754 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 : {21571177: [{'flou': 21571238, 'kraft': 21571239, 'metal': 21571240, 'autre_refus': 21571241, 'mal_croppe': 21571242, 'environnement': 21571243, 'papier': 21571244, 'Carton_brun': 21571245, 'Carton_gris': 21571246, 'Teint_Dans_La_Masse': 21571247, 'plastique': 21571248, 'cartonnette': 21571249}]} input_args_next_step : {1345972988: ('0.10297045973211331',), 1345972986: ('0.10297045973211331',), 1345972984: ('0.10297045973211331',), 1345972982: ('0.10297045973211331',), 1345972978: ('0.10297045973211331',), 1345972977: ('0.10297045973211331',), 1345972973: ('0.10297045973211331',), 1345972969: ('0.10297045973211331',), 1345972955: ('0.10297045973211331',), 1345972954: ('0.10297045973211331',), 1345972874: ('0.10297045973211331',), 1345972859: ('0.10297045973211331',), 1345972845: ('0.10297045973211331',), 1345972821: ('0.10297045973211331',), 1345972782: ('0.10297045973211331',), 1345972754: ('0.10297045973211331',), 21571177: ()} output_args : {21571177: [{'flou': 21571238, 'kraft': 21571239, 'metal': 21571240, 'autre_refus': 21571241, 'mal_croppe': 21571242, 'environnement': 21571243, 'papier': 21571244, 'Carton_brun': 21571245, 'Carton_gris': 21571246, 'Teint_Dans_La_Masse': 21571247, 'plastique': 21571248, 'cartonnette': 21571249}]} args : 21571177 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.10297045973211331',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21571177) 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 (1345972988,1345972986,1345972984,1345972982,1345972978,1345972977,1345972973,1345972969,1345972955,1345972954,1345972874,1345972859,1345972845,1345972821,1345972782,1345972754) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1345972754 begin to download photo : 1345972859 begin to download photo : 1345972969 begin to download photo : 1345972982 download finish for photo 1345972969 begin to download photo : 1345972973 download finish for photo 1345972859 begin to download photo : 1345972874 download finish for photo 1345972982 begin to download photo : 1345972984 download finish for photo 1345972754 begin to download photo : 1345972782 download finish for photo 1345972973 begin to download photo : 1345972977 download finish for photo 1345972984 begin to download photo : 1345972986 download finish for photo 1345972874 begin to download photo : 1345972954 download finish for photo 1345972782 begin to download photo : 1345972821 download finish for photo 1345972986 begin to download photo : 1345972988 download finish for photo 1345972977 begin to download photo : 1345972978 download finish for photo 1345972954 begin to download photo : 1345972955 download finish for photo 1345972821 begin to download photo : 1345972845 download finish for photo 1345972978 download finish for photo 1345972988 download finish for photo 1345972955 download finish for photo 1345972845 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette215712381742555341/ imagette215712391742555341/ imagette215712401742555341/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21571177_21-03-2025_12_09_01.pdf 21571238 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=21571238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215712381742555341 21571239 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=21571239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215712391742555341 21571240 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=21571240 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215712401742555341 21571241 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=21571241 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972518: '1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842707_0.png', 1345972519: '1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842982_0.png', 1345972915: '1742555186_1124787_1345971522_f07a4900140d6b9e2987f8db8e37af23_rle_crop_3721844203_0.png', 1345972916: '1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844223_0.png', 1345972917: '1742555186_1124787_1345971423_9a7792e0f6b6bd330c1a2ae39dbf35b2_rle_crop_3721844239_0.png', 1345972958: '1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844526_0.png', 1345972959: '1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844531_0.png', 1345972960: '1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844564_0.png', 1345972961: '1742555173_743169_1345972139_cd6e847a80ecf59e3267682fcaabd092_rle_crop_3721844581_0.png', 1345972962: '1742555173_743169_1345972139_cd6e847a80ecf59e3267682fcaabd092_rle_crop_3721844586_0.png', 1345972963: '1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844610_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/ca26dcb28d388ed274e1cb225e74fddb_615985.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/571f95ec7bdd8b8da2c28e7f8222dc67_53392428.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/02fbaf93aaef346915cbb036abc566c1_44668101.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e764ab37cecc24cc7d2d131738e3f2c9_39097588.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/0b0f10d64e5391ec6dbb70f45b7ed7d8_83960019.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bab9005291001b26810f214bf67c50c8_96254056.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/1f62be55f2af339670a4435ebb8c43bf_39094159.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/36db2b01eb5f9fcacbe9765df72832d5_48735359.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c89379c7221f4d3fa8a798f20b96c28e_68627230.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/08860a12b210ddd8cb21fcdf7b818682_91744851.png change filename to text .imagette215712411742555341/ imagette215712411742555341/1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844223_0.png.png imagette215712411742555341/1742555173_743169_1345972139_cd6e847a80ecf59e3267682fcaabd092_rle_crop_3721844586_0.png.png imagette215712411742555341/1742555186_1124787_1345971423_9a7792e0f6b6bd330c1a2ae39dbf35b2_rle_crop_3721844239_0.png.png imagette215712411742555341/1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842707_0.png.png imagette215712411742555341/1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844531_0.png.png imagette215712411742555341/1742555186_1124787_1345971522_f07a4900140d6b9e2987f8db8e37af23_rle_crop_3721844203_0.png.png imagette215712411742555341/1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844564_0.png.png imagette215712411742555341/1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844526_0.png.png imagette215712411742555341/1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844610_0.png.png imagette215712411742555341/1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842982_0.png.png imagette215712411742555341/1742555173_743169_1345972139_cd6e847a80ecf59e3267682fcaabd092_rle_crop_3721844581_0.png.png imagette215712421742555341/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/965eee4702101534648607c057e54fab_16062124.png imagette215712411742555341 21571242 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=21571242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette215712421742555341 21571248 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=21571248 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972551: '1742555052_741446_1345971173_c6dfc1fc4a000381580ce61bc32da7c3_rle_crop_3721842666_0.png', 1345972970: '1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844572_0.png', 1345972971: '1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844604_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/3fc41f249eff88041571078b40d2ee6e_41405010.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/315e7aa75f24fe58b46395d558fcb83b_64564896.png change filename to text .imagette215712481742555341/ imagette215712481742555341/1742555052_741446_1345971173_c6dfc1fc4a000381580ce61bc32da7c3_rle_crop_3721842666_0.png.png imagette215712481742555341/1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844604_0.png.png imagette215712481742555341/1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844572_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/15ba5e116b43cdfc8d49098253ef7cf7_30523587.png imagette215712481742555341 21571249 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=21571249 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972544: '1742555052_741446_1345971137_af71d3a5821f1a1a0db498ba46aaea38_rle_crop_3721842670_0.png', 1345972545: '1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842703_0.png', 1345972964: '1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844563_0.png', 1345972965: '1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844595_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/648d736bcbc308bf40ad677c09b38b91_18451135.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a0090a98c6093c0822eff9216135aa11_13874727.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/4b3b0582f2c6fbd24f7c6f5a1ab377c5_38139528.png change filename to text .imagette215712491742555342/ imagette215712491742555342/1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844563_0.png.png imagette215712491742555342/1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844595_0.png.png imagette215712491742555342/1742555052_741446_1345971137_af71d3a5821f1a1a0db498ba46aaea38_rle_crop_3721842670_0.png.png imagette215712491742555342/1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842703_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/68847fe2b226823b0bf0a0f05087f0d7_78299341.png imagette215712491742555342 21571245 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=21571245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972548: '1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842706_0.png', 1345972923: '1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844215_0.png', 1345972966: '1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844565_0.png', 1345972967: '1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844569_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/bf59116a57fb0b5f4e3a5a42a0e052e9_50005929.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/747ed068ac7fe304a44228a3dc45037f_5962034.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/2cc5eb3c92488b6b26376a136f12af73_51959590.png change filename to text .imagette215712451742555342/ imagette215712451742555342/1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844569_0.png.png imagette215712451742555342/1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842706_0.png.png imagette215712451742555342/1742555173_743169_1345972178_99f8d7132fa96c36e3c207b385d14e1d_rle_crop_3721844565_0.png.png imagette215712451742555342/1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844215_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/216fee4d5ab2fb0732742243949ff266_72521967.png imagette215712451742555342 21571246 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=21571246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972526: '1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842702_0.png', 1345972527: '1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842974_0.png', 1345972919: '1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844217_0.png', 1345972920: '1742555186_1124787_1345971423_9a7792e0f6b6bd330c1a2ae39dbf35b2_rle_crop_3721844234_0.png', 1345972921: '1742555186_1124787_1345971423_9a7792e0f6b6bd330c1a2ae39dbf35b2_rle_crop_3721844233_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/5994f5ebb70a93b625c0202904e1af05_93456046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e82c357d95f76055d5fffaae831292c4_70368793.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c33cf1558763f3ad15fde16538c16c01_3713064.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/aa3af41d37cb5d7eee2d81b8539ab80b_3222711.png change filename to text .imagette215712461742555342/ imagette215712461742555342/1742555186_1124787_1345971423_9a7792e0f6b6bd330c1a2ae39dbf35b2_rle_crop_3721844233_0.png.png imagette215712461742555342/1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844217_0.png.png imagette215712461742555342/1742555186_1124787_1345971423_9a7792e0f6b6bd330c1a2ae39dbf35b2_rle_crop_3721844234_0.png.png imagette215712461742555342/1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842974_0.png.png imagette215712461742555342/1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842702_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/8cd4f64825c3730f68a808d8528ba280_38286064.png imagette215712461742555342 21571247 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=21571247 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1345972500: '1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842705_0.png', 1345972502: '1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842981_0.png', 1345972503: '1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842979_0.png', 1345972912: '1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844216_0.png', 1345972913: '1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844214_0.png', 1345972950: '1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844528_0.png', 1345972951: '1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844524_0.png', 1345972952: '1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844525_0.png', 1345972953: '1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844607_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/7395cc3621bc1a8935c689d150d95773_39930176.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/dc7d37cc87c8d2073d364434e5090ce9_54370520.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/cff463775eeb3de161c936a4b6ddbbde_121924.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d566bac9e9b83b6ca21536bfbc25d514_94416715.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/e658838a89d6cfc00daaede94100ee69_28670260.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/f45a6eb540f8a189400362498725d75a_56619957.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/d106951ac94614e2691f102d060c7fee_38443344.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/39501218f2b56719da0c8c1298765775_44518118.png change filename to text .imagette215712471742555342/ imagette215712471742555342/1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844525_0.png.png imagette215712471742555342/1742555052_741446_1345971104_a8fc3daf93b6cb5a85720675930058c4_rle_crop_3721842705_0.png.png imagette215712471742555342/1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842981_0.png.png imagette215712471742555342/1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844214_0.png.png imagette215712471742555342/1742555052_741446_1345971061_5c5692f9dea16ad14ec3998055eb025a_rle_crop_3721842979_0.png.png imagette215712471742555342/1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844528_0.png.png imagette215712471742555342/1742555173_743169_1345972115_620a6c9b43cffbf007091686f94c5079_rle_crop_3721844607_0.png.png imagette215712471742555342/1742555186_1124787_1345971485_7de80d0d4caf0a7b455a3a2f288fad3f_rle_crop_3721844216_0.png.png imagette215712471742555342/1742555173_743169_1345972236_9611a6bfeca190daa37a1a6704dcb37b_rle_crop_3721844524_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/52bd514ab582b9f9863672b085ed876e_82228226.png imagette215712471742555342 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21571177 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21571250,21571251,21571252,21571253,21571254,21571255,21571256,21571257,21571258,21571259,21571260,21571261?tags=flou,kraft,metal,autre_refus,mal_croppe,environnement,papier,Carton_brun,Carton_gris,Teint_Dans_La_Masse,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1345972988] : ('0.10297045973211331',) no score found for photo 1345972988 We are sending mail with results at report@fotonower.com args[1345972986] : ('0.10297045973211331',) no score found for photo 1345972986 We are sending mail with results at report@fotonower.com args[1345972984] : ('0.10297045973211331',) no score found for photo 1345972984 We are sending mail with results at report@fotonower.com args[1345972982] : ('0.10297045973211331',) no score found for photo 1345972982 We are sending mail with results at report@fotonower.com args[1345972978] : ('0.10297045973211331',) no score found for photo 1345972978 We are sending mail with results at report@fotonower.com args[1345972977] : ('0.10297045973211331',) no score found for photo 1345972977 We are sending mail with results at report@fotonower.com args[1345972973] : ('0.10297045973211331',) no score found for photo 1345972973 We are sending mail with results at report@fotonower.com args[1345972969] : ('0.10297045973211331',) no score found for photo 1345972969 We are sending mail with results at report@fotonower.com args[1345972955] : ('0.10297045973211331',) no score found for photo 1345972955 We are sending mail with results at report@fotonower.com args[1345972954] : ('0.10297045973211331',) no score found for photo 1345972954 We are sending mail with results at report@fotonower.com args[1345972874] : ('0.10297045973211331',) no score found for photo 1345972874 We are sending mail with results at report@fotonower.com args[1345972859] : ('0.10297045973211331',) no score found for photo 1345972859 We are sending mail with results at report@fotonower.com args[1345972845] : ('0.10297045973211331',) no score found for photo 1345972845 We are sending mail with results at report@fotonower.com args[1345972821] : ('0.10297045973211331',) no score found for photo 1345972821 We are sending mail with results at report@fotonower.com args[1345972782] : ('0.10297045973211331',) no score found for photo 1345972782 We are sending mail with results at report@fotonower.com args[1345972754] : ('0.10297045973211331',) no score found for photo 1345972754 We are sending mail with results at report@fotonower.com refus_total : 0.10297045973211331 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=21571177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21571177_21-03-2025_12_09_01.pdf results_Auto_P21571177_21-03-2025_12_09_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21571177_21-03-2025_12_09_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21571177','results_Auto_P21571177_21-03-2025_12_09_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21571177_21-03-2025_12_09_01.pdf','pdf','','0.25','0.10297045973211331') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21571177]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] map_info['map_portfolio_photo'] : {21571177: [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754, 1345972632, 1345972608, 1345972564, 1345972560, 1345972289, 1345972236, 1345972178, 1345972139, 1345972115, 1345971577, 1345971522, 1345971485, 1345971423, 1345971173, 1345971137, 1345971104, 1345971061]} final : False mtd_id 4302 list_pids : [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] 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, '2678782') ('4302', '21571177', '1345972988', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782') 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', '21571177', '1345972988', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782')] time used for this insertion : 0.013904809951782227 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5722997188568115 time spend to save output : 0.014164447784423828 total time spend for step 4 : 3.5864641666412354 step5:split_time_score Fri Mar 21 12:09:04 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 : ['21571177'] 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 : [('21571177',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21571177) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1345972969: {'path': 'temp/1742555340_3378033_1345972969_edab5df714c344873b4094809f3224b1.jpg', 'extension': 'jpg'}, 1345972973: {'path': 'temp/1742555340_3378033_1345972973_399cb6f2538e616a8f09e04482dafa34.jpg', 'extension': 'jpg'}, 1345972977: {'path': 'temp/1742555340_3378033_1345972977_dbb2d1cffd6a59fc615b0d084252e66c.jpg', 'extension': 'jpg'}, 1345972978: {'path': 'temp/1742555340_3378033_1345972978_2930de7a5dc5a7805e390a6bf7f602d8.jpg', 'extension': 'jpg'}, 1345972982: {'path': 'temp/1742555340_3378033_1345972982_57f55ac8371c6dfd7f7e2d2164d29b10.jpg', 'extension': 'jpg'}, 1345972984: {'path': 'temp/1742555340_3378033_1345972984_86522710efcb77eced68fe9a7f481da8.jpg', 'extension': 'jpg'}, 1345972986: {'path': 'temp/1742555340_3378033_1345972986_92ef7a95384b8147477e49d6a08b6f5a.jpg', 'extension': 'jpg'}, 1345972988: {'path': 'temp/1742555340_3378033_1345972988_21b2f77a2eea7cc90565248924c407fb.jpg', 'extension': 'jpg'}, 1345972859: {'path': 'temp/1742555340_3378033_1345972859_d1f12d2340169c2fba2edc318b176ecf.jpg', 'extension': 'jpg'}, 1345972874: {'path': 'temp/1742555340_3378033_1345972874_5180b142f53fa55c188d8f1deabc4989.jpg', 'extension': 'jpg'}, 1345972954: {'path': 'temp/1742555340_3378033_1345972954_90597f2718dbbc5b344800129101e5ec.jpg', 'extension': 'jpg'}, 1345972955: {'path': 'temp/1742555340_3378033_1345972955_7bd639dcfaf17cb7c2e9fe2414a1e5dd.jpg', 'extension': 'jpg'}, 1345972754: {'path': 'temp/1742555340_3378033_1345972754_b982bb9dc91b7a40e741ef2081dcb0f2.jpg', 'extension': 'jpg'}, 1345972782: {'path': 'temp/1742555340_3378033_1345972782_19e62c1632f2c5b1147228176ae0b5b5.jpg', 'extension': 'jpg'}, 1345972821: {'path': 'temp/1742555340_3378033_1345972821_d9e6026e36f26266356cb517ae17819b.jpg', 'extension': 'jpg'}, 1345972845: {'path': 'temp/1742555340_3378033_1345972845_53511959e70cdae55239e93de4310b40.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 = 21571177; (('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 = 21571177 group by h (('12', 33),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21571177 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 (21571177) 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 (21571177) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21032025 21571177 Nombre de photos uploadées : 33 / 23040 (0%) 21032025 21571177 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 21032025 21571177 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1345971173, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/c6dfc1fc4a000381580ce61bc32da7c3.jpg', 'username': None, 'uploaded_at': 1742554937, 'text': 'image_21032025_12_00_14_10206.jpg'}, {'photo_id': 1345971137, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/af71d3a5821f1a1a0db498ba46aaea38.jpg', 'username': None, 'uploaded_at': 1742554937, 'text': 'image_21032025_12_00_24_10138.jpg'}, {'photo_id': 1345971104, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/a8fc3daf93b6cb5a85720675930058c4.jpg', 'username': None, 'uploaded_at': 1742554937, 'text': 'image_21032025_12_00_34_10134.jpg'}, {'photo_id': 1345971577, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/21/50434700885a5bb0e29cb73ee564eae6.jpg', 'username': None, 'uploaded_at': 1742554982, 'text': 'image_21032025_12_00_44_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015141963958740234 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21571177, '2025-03-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1678259,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02570509910583496 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= 1678259 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685737, 'mtr_portfolio_id': 21571350, 'dashboard_result_id': 9529207, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685737, 'mtr_portfolio_id': 21570421, 'dashboard_result_id': 9529208, '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_P21570421_21-03-2025_12_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685737, 'mtr_portfolio_id': 21570422, 'dashboard_result_id': 9529209, '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_P21570422_21-03-2025_12_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, 'pht': 3726}}"}, {'dashboat_entry_day': 1678259, 'dashboard_run_id': 1685737, 'mtr_portfolio_id': 21571177, 'dashboard_result_id': 9529210, '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_P21571177_21-03-2025_12_07_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21571238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21571239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21571240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21571241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21571242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21571243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21571244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21571245, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21571246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21571247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21571248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21571249, '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 = 21571350 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21571350 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21571350 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%21571350%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21571350 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': ''}" where mtr_portfolio_id = 21571350 and dashboard_run_id = 1685737 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 = 21570421 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': 2678727, 'mtr_portfolio_id': 21570421, 'created_at': datetime.datetime(2025, 3, 21, 12, 6, 59), 'result': '0.075329715260755', 'result_long': None, 'result_double': None}] Qualite : 0.075329715260755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21570421 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21570421 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_P21570421_21-03-2025_12_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, 'pht': 3726}}" where mtr_portfolio_id = 21570421 and dashboard_run_id = 1685737 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`=21570421 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529208, 0.075329715260755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570421_21-03-2025_12_07_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570435, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570437, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570442, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570443, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570445, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570447, '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 = 21570422 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': 2678728, 'mtr_portfolio_id': 21570422, 'created_at': datetime.datetime(2025, 3, 21, 12, 3, 29), 'result': '0.09206318773132281', 'result_long': None, 'result_double': None}] Qualite : 0.09206318773132281 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21570422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570422_21-03-2025_12_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21570422 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_P21570422_21-03-2025_12_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, 'pht': 3726}}" where mtr_portfolio_id = 21570422 and dashboard_run_id = 1685737 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`=21570422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529209, 0.09206318773132281, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21570422_21-03-2025_12_03_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21570424, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21570425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21570426, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21570427, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21570428, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21570429, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21570430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21570431, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21570432, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21570433, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21570436, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21570441, '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 = 21571177 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': 2678782, 'mtr_portfolio_id': 21571177, 'created_at': datetime.datetime(2025, 3, 21, 12, 9), 'result': '0.10297045973211331', 'result_long': None, 'result_double': None}] Qualite : 0.10297045973211331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21571177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21571177_21-03-2025_12_09_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21571177 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_P21571177_21-03-2025_12_09_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21571238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21571239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21571240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21571241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21571242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21571243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21571244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21571245, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21571246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21571247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21571248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21571249, 'pht': 3726}}" where mtr_portfolio_id = 21571177 and dashboard_run_id = 1685737 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`=21571177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9529210, 0.10297045973211331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21571177_21-03-2025_12_09_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21571238, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21571239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21571240, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21571241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21571242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21571243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21571244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21571245, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21571246, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21571247, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21571248, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21571249, '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 (21571350,21570421,21570422,21571177) result : ((1345969101,), (1345969104,), (1345969107,), (1345969111,), (1345969115,), (1345969116,), (1345969159,), (1345969167,), (1345969170,), (1345969173,), (1345969176,), (1345969191,), (1345969230,), (1345969231,), (1345969243,), (1345969247,), (1345969287,), (1345969290,), (1345969293,), (1345969297,), (1345969300,), (1345969302,), (1345969327,), (1345969330,), (1345969352,), (1345969356,), (1345969358,), (1345969359,), (1345969363,), (1345969366,), (1345969495,), (1345969518,), (1345969638,), (1345969666,), (1345969693,), (1345969718,), (1345969748,), (1345969780,), (1345970505,), (1345970611,), (1345970650,), (1345970694,), (1345970765,), (1345970834,), (1345970906,), (1345971337,), (1345971620,), (1345971651,), (1345971824,), (1345971899,), (1345971938,), (1345971968,), (1345971991,), (1345972015,), (1345972302,), (1345972341,), (1345972369,), (1345972394,), (1345972435,), (1345972470,), (1345968918,), (1345968922,), (1345968928,), (1345968933,), (1345968935,), (1345968938,), (1345968943,), (1345968946,), (1345968949,), (1345968953,), (1345968961,), (1345968975,), (1345969003,), (1345969007,), (1345969010,), (1345969012,), (1345969015,), (1345969017,), (1345969027,), (1345969028,), (1345969031,), (1345969032,), (1345969036,), (1345969037,), (1345969039,), (1345969042,), (1345969043,), (1345969047,), (1345969049,), (1345969053,), (1345969068,), (1345969072,), (1345969077,), (1345969081,), (1345969086,), (1345969089,), (1345969127,), (1345969132,), (1345969137,), (1345969140,), (1345969144,), (1345969148,), (1345969201,), (1345969202,), (1345969204,), (1345969205,), (1345969211,), (1345969212,), (1345969218,), (1345969219,), (1345969256,), (1345969259,), (1345969263,), (1345969267,), (1345969271,), (1345969275,), (1345969312,), (1345969315,), (1345969319,), (1345969322,), (1345969375,), (1345969376,), (1345969379,), (1345969381,), (1345969390,), (1345969392,), (1345969402,), (1345969408,), (1345969412,), (1345969414,), (1345969416,), (1345969427,), (1345969443,), (1345969448,), (1345969460,), (1345969479,), (1345969890,), (1345969893,), (1345969908,), (1345969911,), (1345969918,), (1345969925,), (1345969939,), (1345969946,), (1345969961,), (1345969973,), (1345969986,), (1345969999,), (1345970276,), (1345970339,), (1345970368,), (1345970418,), (1345970464,), (1345971250,), (1345971061,), (1345971104,), (1345971137,), (1345971173,), (1345971423,), (1345971485,), (1345971522,), (1345971577,), (1345972115,), (1345972139,), (1345972178,), (1345972236,), (1345972289,), (1345972560,), (1345972564,), (1345972608,), (1345972632,), (1345972754,), (1345972782,), (1345972821,), (1345972845,), (1345972859,), (1345972874,), (1345972954,), (1345972955,), (1345972969,), (1345972973,), (1345972977,), (1345972978,), (1345972982,), (1345972984,), (1345972986,), (1345972988,), (1345972498,), (1345972674,), (1345972705,), (1345972893,), (1345972908,), (1345972914,), (1345972924,), (1345972928,), (1345972930,), (1345972990,), (1345972992,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21032025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21571177]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] map_info['map_portfolio_photo'] : {21571177: [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754, 1345972632, 1345972608, 1345972564, 1345972560, 1345972289, 1345972236, 1345972178, 1345972139, 1345972115, 1345971577, 1345971522, 1345971485, 1345971423, 1345971173, 1345971137, 1345971104, 1345971061]} final : True mtd_id 4302 list_pids : [1345972988, 1345972986, 1345972984, 1345972982, 1345972978, 1345972977, 1345972973, 1345972969, 1345972955, 1345972954, 1345972874, 1345972859, 1345972845, 1345972821, 1345972782, 1345972754] Looping around the photos to save general results len do output : 1 /21571177Didn'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, '2678782') ('4302', '21571177', '1345972988', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782') ('4302', None, None, None, None, None, None, None, '2678782') ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782') 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, '21571177', 'None', None, None, None, None, '2678782'), ('4302', '21571177', '1345972988', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972986', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972984', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972982', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972978', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972977', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972973', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972969', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972955', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972954', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972874', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972859', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972845', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972821', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972782', None, None, None, None, None, '2678782'), ('4302', '21571177', '1345972754', None, None, None, None, None, '2678782')] time used for this insertion : 0.014620542526245117 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.212812900543213 time spend to save output : 0.014895200729370117 total time spend for step 5 : 1.227708101272583 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 (2678782) 2.35user 2.55system 0:09.93elapsed 49%CPU (0avgtext+0avgdata 160492maxresident)k 840inputs+14040outputs (16major+75003minor)pagefaults 0swaps