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 : 528972 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 (2721660) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2721660) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033502 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2721660'] with mtr_portfolio_ids : ['22033502'] and first list_photo_ids : [] new path : /proc/528972/ Name: python3 Umask: 0002 State: R (running) Tgid: 528972 Ngid: 0 Pid: 528972 PPid: 528971 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 528972 NSpid: 528972 NSpgid: 525850 NSsid: 525850 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98464 kB VmRSS: 98464 kB RssAnon: 59764 kB RssFile: 38700 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 50 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '528972', 'Ngid': '0', 'Pid': '528972', 'PPid': '528971', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '528972', 'NSpid': '528972', 'NSpgid': '525850', 'NSsid': '525850', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98464 kB', 'VmRSS': '98464 kB', 'RssAnon': '59764 kB', 'RssFile': '38700 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '50', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '528972', '1106928', '0', '1106928', '865676', '98464', b'', 'marlene', '2721660') 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 (22033502) 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 (2721660 ) ) 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 (22033502) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349857461, 'portfolio_id': 22033502}, {'photo_id': 1349857454, 'portfolio_id': 22033502}, {'photo_id': 1349857440, 'portfolio_id': 22033502}, {'photo_id': 1349857326, 'portfolio_id': 22033502}, {'photo_id': 1349857314, 'portfolio_id': 22033502}, {'photo_id': 1349857275, 'portfolio_id': 22033502}, {'photo_id': 1349857239, 'portfolio_id': 22033502}, {'photo_id': 1349857235, 'portfolio_id': 22033502}, {'photo_id': 1349857230, 'portfolio_id': 22033502}, {'photo_id': 1349857204, 'portfolio_id': 22033502}, {'photo_id': 1349857202, 'portfolio_id': 22033502}, {'photo_id': 1349857199, 'portfolio_id': 22033502}, {'photo_id': 1349857195, 'portfolio_id': 22033502}, {'photo_id': 1349857187, 'portfolio_id': 22033502}, {'photo_id': 1349857181, 'portfolio_id': 22033502}, {'photo_id': 1349857153, 'portfolio_id': 22033502}, {'photo_id': 1349857150, 'portfolio_id': 22033502}, {'photo_id': 1349857140, 'portfolio_id': 22033502}, {'photo_id': 1349857127, 'portfolio_id': 22033502}, {'photo_id': 1349857077, 'portfolio_id': 22033502}, {'photo_id': 1349857070, 'portfolio_id': 22033502}, {'photo_id': 1349857066, 'portfolio_id': 22033502}, {'photo_id': 1349857053, 'portfolio_id': 22033502}, {'photo_id': 1349857008, 'portfolio_id': 22033502}, {'photo_id': 1349856859, 'portfolio_id': 22033502}, {'photo_id': 1349856855, 'portfolio_id': 22033502}, {'photo_id': 1349856849, 'portfolio_id': 22033502}, {'photo_id': 1349856843, 'portfolio_id': 22033502}, {'photo_id': 1349856765, 'portfolio_id': 22033502}, {'photo_id': 1349856760, 'portfolio_id': 22033502}, {'photo_id': 1349856754, 'portfolio_id': 22033502}] map_portfolio_id_photo_id: {22033502: [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181, 1349857153, 1349857150, 1349857140, 1349857127, 1349857077, 1349857070, 1349857066, 1349857053, 1349857008, 1349856859, 1349856855, 1349856849, 1349856843, 1349856765, 1349856760, 1349856754]} ##### 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.04294776916503906 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 3 20:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22033502) 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 : 22033502 get user id for portfolio 22033502 get sub ptf for main ptf 22033502, type 3726 and hashtags ['Carton_gris', 'Carton_brun', 'flou', 'kraft', 'metal', 'autre_refus', 'environnement', 'papier', 'plastique', 'mal_croppe', 'Teint_Dans_La_Masse', 'cartonnette'] 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`=22033502 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','kraft','metal','autre_refus','environnement','papier','plastique','mal_croppe','Teint_Dans_La_Masse','cartonnette')) 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`=22033502 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','kraft','metal','autre_refus','environnement','papier','plastique','mal_croppe','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22033502, 'sub_port_id': 22033506, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526092, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'plastique': {'main_port_id': 22033502, 'sub_port_id': 22033507, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526093, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'flou': {'main_port_id': 22033502, 'sub_port_id': 22033508, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526094, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'papier': {'main_port_id': 22033502, 'sub_port_id': 22033509, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526095, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'metal': {'main_port_id': 22033502, 'sub_port_id': 22033510, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526096, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'Carton_brun': {'main_port_id': 22033502, 'sub_port_id': 22033511, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526097, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'Carton_gris': {'main_port_id': 22033502, 'sub_port_id': 22033512, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526098, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22033502, 'sub_port_id': 22033513, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526099, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'mal_croppe': {'main_port_id': 22033502, 'sub_port_id': 22033514, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526100, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'autre_refus': {'main_port_id': 22033502, 'sub_port_id': 22033515, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526101, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'cartonnette': {'main_port_id': 22033502, 'sub_port_id': 22033516, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526102, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}, 'environnement': {'main_port_id': 22033502, 'sub_port_id': 22033517, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526103, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 36, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22033506 , 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=22033502 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 (22033506) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033507 , 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=22033502 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 (22033507) result : ((1349857436,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033508 , 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=22033502 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 (22033508) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033509 , 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=22033502 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 (22033509) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033510 , 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=22033502 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 (22033510) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033511 , 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=22033502 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 (22033511) result : ((1349856988,), (1349856990,), (1349857366,), (1349857428,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033512 , 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=22033502 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 (22033512) result : ((1349856984,), (1349856985,), (1349857193,), (1349857389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033513 , 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=22033502 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 (22033513) result : ((1349856980,), (1349857188,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033514 , 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=22033502 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 (22033514) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033515 , 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=22033502 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 (22033515) result : ((1349857190,), (1349857377,), (1349857380,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033516 , 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=22033502 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 (22033516) result : ((1349856986,), (1349857409,), (1349857413,), (1349857415,), (1349857418,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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 22033517 , 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=22033502 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 (22033517) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22033502) result : ((1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) 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`=22033502 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','kraft','metal','autre_refus','environnement','papier','plastique','mal_croppe','Teint_Dans_La_Masse','cartonnette')) 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`=22033502 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','Carton_brun','flou','kraft','metal','autre_refus','environnement','papier','plastique','mal_croppe','Teint_Dans_La_Masse','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22033502, 'sub_port_id': 22033518, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526104, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'plastique': {'main_port_id': 22033502, 'sub_port_id': 22033519, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526105, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'flou': {'main_port_id': 22033502, 'sub_port_id': 22033520, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526106, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'papier': {'main_port_id': 22033502, 'sub_port_id': 22033521, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526107, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'metal': {'main_port_id': 22033502, 'sub_port_id': 22033522, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526108, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'Carton_brun': {'main_port_id': 22033502, 'sub_port_id': 22033523, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526109, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'Carton_gris': {'main_port_id': 22033502, 'sub_port_id': 22033524, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526110, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22033502, 'sub_port_id': 22033525, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526111, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'mal_croppe': {'main_port_id': 22033502, 'sub_port_id': 22033526, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526112, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'autre_refus': {'main_port_id': 22033502, 'sub_port_id': 22033527, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526113, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'cartonnette': {'main_port_id': 22033502, 'sub_port_id': 22033528, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526114, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}, 'environnement': {'main_port_id': 22033502, 'sub_port_id': 22033529, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14526115, 'last_updated_at': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 20, 37, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 20, 37, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033506 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033519,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033508 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033521,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033509 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033522,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033510 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033523,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033511 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033524,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033512 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033525,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033513 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033526,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033514 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033527,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033515 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033528,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033516 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22033529,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22033517 lien utilise dans velours : https://www.fotonower.com/velours/22033518,22033519,22033520,22033521,22033522,22033523,22033524,22033525,22033526,22033527,22033528,22033529?tags=kraft,plastique,flou,papier,metal,Carton_brun,Carton_gris,Teint_Dans_La_Masse,mal_croppe,autre_refus,cartonnette,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22033502]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] map_info['map_portfolio_photo'] : {22033502: [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181, 1349857153, 1349857150, 1349857140, 1349857127, 1349857077, 1349857070, 1349857066, 1349857053, 1349857008, 1349856859, 1349856855, 1349856849, 1349856843, 1349856765, 1349856760, 1349856754]} final : False mtd_id 4302 list_pids : [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] Looping around the photos to save general results len do output : 1 /22033502. 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, '2721660') ('4302', '22033502', '1349857461', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660') 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', None, '22033502', "{'kraft': 22033506, 'plastique': 22033507, 'flou': 22033508, 'papier': 22033509, 'metal': 22033510, 'Carton_brun': 22033511, 'Carton_gris': 22033512, 'Teint_Dans_La_Masse': 22033513, 'mal_croppe': 22033514, 'autre_refus': 22033515, 'cartonnette': 22033516, 'environnement': 22033517}", None, None, None, None, '2721660'), ('4302', '22033502', '1349857461', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660')] time used for this insertion : 0.025083541870117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.7604498863220215 time spend to save output : 0.025468826293945312 total time spend for step 1 : 4.785918712615967 step2:final Thu Apr 3 20:39:02 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 (22033502) 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 22033502 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349856765,1349856760,1349856754,1349856859,1349856855,1349856849,1349856843,1349857077,1349857070,1349857066,1349857053,1349857008,1349857153,1349857150,1349857140,1349857127,1349857204,1349857202,1349857199,1349857195,1349857187,1349857181,1349857326,1349857314,1349857275,1349857239,1349857235,1349857230,1349857461,1349857454,1349857440); 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([22033502]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} new output for save of step final : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] map_info['map_portfolio_photo'] : {22033502: [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181, 1349857153, 1349857150, 1349857140, 1349857127, 1349857077, 1349857070, 1349857066, 1349857053, 1349857008, 1349856859, 1349856855, 1349856849, 1349856843, 1349856765, 1349856760, 1349856754]} final : False mtd_id 4302 list_pids : [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] Looping around the photos to save general results len do output : 15 /1349857461.Didn't retrieve data . /1349857454.Didn't retrieve data . /1349857440.Didn't retrieve data . /1349857326.Didn't retrieve data . /1349857314.Didn't retrieve data . /1349857275.Didn't retrieve data . /1349857239.Didn't retrieve data . /1349857235.Didn't retrieve data . /1349857230.Didn't retrieve data . /1349857204.Didn't retrieve data . /1349857202.Didn't retrieve data . /1349857199.Didn't retrieve data . /1349857195.Didn't retrieve data . /1349857187.Didn't retrieve data . /1349857181.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, '2721660') ('4302', '22033502', '1349857461', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22033502', '1349857461', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857454', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857440', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857326', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857314', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857275', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857239', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857235', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857230', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857204', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857202', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857199', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857195', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857187', '0.05733173428414196', None, None, None, None, '2721660'), ('4302', '22033502', '1349857181', '0.05733173428414196', None, None, None, None, '2721660')] time used for this insertion : 0.014794588088989258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.106536865234375 time spend to save output : 0.015816450119018555 total time spend for step 2 : 0.12235331535339355 step3:velours_tree Thu Apr 3 20:39:03 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 : {22033502: [{'kraft': 22033506, 'plastique': 22033507, 'flou': 22033508, 'papier': 22033509, 'metal': 22033510, 'Carton_brun': 22033511, 'Carton_gris': 22033512, 'Teint_Dans_La_Masse': 22033513, 'mal_croppe': 22033514, 'autre_refus': 22033515, 'cartonnette': 22033516, 'environnement': 22033517}]} input_args_next_step : {22033502: ()} output_args : {22033502: [{'kraft': 22033506, 'plastique': 22033507, 'flou': 22033508, 'papier': 22033509, 'metal': 22033510, 'Carton_brun': 22033511, 'Carton_gris': 22033512, 'Teint_Dans_La_Masse': 22033513, 'mal_croppe': 22033514, 'autre_refus': 22033515, 'cartonnette': 22033516, 'environnement': 22033517}]} args : 22033502 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 22033506, 'plastique': 22033507, 'flou': 22033508, 'papier': 22033509, 'metal': 22033510, 'Carton_brun': 22033511, 'Carton_gris': 22033512, 'Teint_Dans_La_Masse': 22033513, 'mal_croppe': 22033514, 'autre_refus': 22033515, 'cartonnette': 22033516, 'environnement': 22033517},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22033502) 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([22033502]) 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.29882240295410156 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.2988753318786621 step4:send_mail_cod Thu Apr 3 20:39:03 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 : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} input_args_next_step : {1349857461: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857461 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857454 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857440 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857326 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857314 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857275 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857239 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857235 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857230 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857204 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857202 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857199 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857195 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857187 depend.output_id : 0 input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ()} output_args : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',)} args : 1349857181 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 : {22033502: [{'kraft': 22033506, 'plastique': 22033507, 'flou': 22033508, 'papier': 22033509, 'metal': 22033510, 'Carton_brun': 22033511, 'Carton_gris': 22033512, 'Teint_Dans_La_Masse': 22033513, 'mal_croppe': 22033514, 'autre_refus': 22033515, 'cartonnette': 22033516, 'environnement': 22033517}]} input_args_next_step : {1349857461: ('0.05733173428414196',), 1349857454: ('0.05733173428414196',), 1349857440: ('0.05733173428414196',), 1349857326: ('0.05733173428414196',), 1349857314: ('0.05733173428414196',), 1349857275: ('0.05733173428414196',), 1349857239: ('0.05733173428414196',), 1349857235: ('0.05733173428414196',), 1349857230: ('0.05733173428414196',), 1349857204: ('0.05733173428414196',), 1349857202: ('0.05733173428414196',), 1349857199: ('0.05733173428414196',), 1349857195: ('0.05733173428414196',), 1349857187: ('0.05733173428414196',), 1349857181: ('0.05733173428414196',), 22033502: ()} output_args : {22033502: [{'kraft': 22033506, 'plastique': 22033507, 'flou': 22033508, 'papier': 22033509, 'metal': 22033510, 'Carton_brun': 22033511, 'Carton_gris': 22033512, 'Teint_Dans_La_Masse': 22033513, 'mal_croppe': 22033514, 'autre_refus': 22033515, 'cartonnette': 22033516, 'environnement': 22033517}]} args : 22033502 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 :16, first value : ('0.05733173428414196',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22033502) 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 (1349857461,1349857454,1349857440,1349857326,1349857314,1349857275,1349857239,1349857235,1349857230,1349857204,1349857202,1349857199,1349857195,1349857187,1349857181) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349857181 begin to download photo : 1349857202 begin to download photo : 1349857239 begin to download photo : 1349857440 download finish for photo 1349857181 begin to download photo : 1349857187 download finish for photo 1349857440 begin to download photo : 1349857454 download finish for photo 1349857239 begin to download photo : 1349857275 download finish for photo 1349857202 begin to download photo : 1349857204 download finish for photo 1349857454 begin to download photo : 1349857461 download finish for photo 1349857187 begin to download photo : 1349857195 download finish for photo 1349857275 begin to download photo : 1349857314 download finish for photo 1349857204 begin to download photo : 1349857230 download finish for photo 1349857461 download finish for photo 1349857195 begin to download photo : 1349857199 download finish for photo 1349857314 begin to download photo : 1349857326 download finish for photo 1349857230 begin to download photo : 1349857235 download finish for photo 1349857199 download finish for photo 1349857235 download finish for photo 1349857326 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220335061743705543/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22033502_03-04-2025_20_39_03.pdf 22033506 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=22033506 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220335061743705543 22033507 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=22033507 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349857436: '1743705446_980323_1349857053_19f093fb8c55050cb821c7b98e84fc50_rle_crop_3746507590_0.png'} change filename to text .imagette220335071743705543/ imagette220335071743705543/1743705446_980323_1349857053_19f093fb8c55050cb821c7b98e84fc50_rle_crop_3746507590_0.png.png imagette220335081743705543/ imagette220335101743705543/ imagette220335141743705543/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/77038bfd3a90cf159f50f053893652cf_22887273.png imagette220335071743705543 22033508 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=22033508 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220335081743705543 22033510 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=22033510 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220335101743705543 22033514 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=22033514 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220335141743705543 22033515 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=22033515 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349857190: '1743705314_2559393_1349856849_102e066244e0368bd7389831c90df50d_rle_crop_3746503319_0.png', 1349857377: '1743705446_980323_1349857066_7a1b3f28b05348125f0ba8bb2e72f25b_rle_crop_3746507558_0.png', 1349857380: '1743705446_980323_1349857053_19f093fb8c55050cb821c7b98e84fc50_rle_crop_3746507585_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5d0015dfd9121cef4a09f396ac772bb8_98996708.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/dd521a8dbda8ff3c6f5556c9cd66453d_53625826.png change filename to text .imagette220335151743705543/ imagette220335151743705543/1743705446_980323_1349857053_19f093fb8c55050cb821c7b98e84fc50_rle_crop_3746507585_0.png.png imagette220335151743705543/1743705314_2559393_1349856849_102e066244e0368bd7389831c90df50d_rle_crop_3746503319_0.png.png imagette220335151743705543/1743705446_980323_1349857066_7a1b3f28b05348125f0ba8bb2e72f25b_rle_crop_3746507558_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/522f0652a4bcc9ff21a20dd57c165f5a_10909178.png imagette220335151743705543 22033516 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=22033516 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349856986: '1743705209_976485_1349856754_3ae4537c76c615a3fb696f1b3d70a210_rle_crop_3746501498_0.png', 1349857409: '1743705446_980323_1349857153_fa27dfbe28f7fbff8e43e4f5cb554b2c_rle_crop_3746507537_0.png', 1349857413: '1743705446_980323_1349857070_2aaf1cf11f66f754df2b9e34db198f29_rle_crop_3746507550_0.png', 1349857415: '1743705446_980323_1349857053_19f093fb8c55050cb821c7b98e84fc50_rle_crop_3746507584_0.png', 1349857418: '1743705446_980323_1349857008_991272ce250630907162a3b81dba2603_rle_crop_3746507600_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3b9662f40233e03ff53d839cc61752a9_4963605.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bba4cf52f8899e49c9afe05909efec9c_52858817.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c7d26e308933db8cec73f6b77cced796_86615372.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/319347eb557c4e9c7720803aa8d4902f_49598814.png change filename to text .imagette220335161743705544/ imagette220335161743705544/1743705446_980323_1349857053_19f093fb8c55050cb821c7b98e84fc50_rle_crop_3746507584_0.png.png imagette220335161743705544/1743705446_980323_1349857153_fa27dfbe28f7fbff8e43e4f5cb554b2c_rle_crop_3746507537_0.png.png imagette220335161743705544/1743705446_980323_1349857070_2aaf1cf11f66f754df2b9e34db198f29_rle_crop_3746507550_0.png.png imagette220335161743705544/1743705209_976485_1349856754_3ae4537c76c615a3fb696f1b3d70a210_rle_crop_3746501498_0.png.png imagette220335161743705544/1743705446_980323_1349857008_991272ce250630907162a3b81dba2603_rle_crop_3746507600_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bb9d250a876a3fb0a5de47ae5cd9425e_95530213.png imagette220335161743705544 22033511 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=22033511 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349856988: '1743705209_976485_1349856765_f7e45308f6cc72451a6aea238e03ca06_rle_crop_3746501397_0.png', 1349856990: '1743705209_976485_1349856765_f7e45308f6cc72451a6aea238e03ca06_rle_crop_3746501396_0.png', 1349857366: '1743705433_2560548_1349857127_9ea68b8b59e85bca06ff2378bbe34d3e_rle_crop_3746507618_0.png', 1349857428: '1743705446_980323_1349857008_991272ce250630907162a3b81dba2603_rle_crop_3746507602_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/957827dfec9d58efbb825cda76cfa589_93339383.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/043d30046cda89ffde5a726dd36af6e1_36910848.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/27b3d33395967955be98cc5bfa85c616_49058441.png change filename to text .imagette220335111743705544/ imagette220335111743705544/1743705209_976485_1349856765_f7e45308f6cc72451a6aea238e03ca06_rle_crop_3746501396_0.png.png imagette220335111743705544/1743705446_980323_1349857008_991272ce250630907162a3b81dba2603_rle_crop_3746507602_0.png.png imagette220335111743705544/1743705433_2560548_1349857127_9ea68b8b59e85bca06ff2378bbe34d3e_rle_crop_3746507618_0.png.png imagette220335111743705544/1743705209_976485_1349856765_f7e45308f6cc72451a6aea238e03ca06_rle_crop_3746501397_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/76171c5d28510385c0a832bdeec6b8c8_60487602.png imagette220335111743705544 22033512 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=22033512 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349856984: '1743705209_976485_1349856765_f7e45308f6cc72451a6aea238e03ca06_rle_crop_3746501393_0.png', 1349856985: '1743705209_976485_1349856754_3ae4537c76c615a3fb696f1b3d70a210_rle_crop_3746501495_0.png', 1349857193: '1743705314_2559393_1349856855_fda33df2332ef70a846599a103feb6c1_rle_crop_3746503274_0.png', 1349857389: '1743705446_980323_1349857070_2aaf1cf11f66f754df2b9e34db198f29_rle_crop_3746507551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/eb1ae1c5f2fac4260788159c4a88c1f5_4921056.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4215fab4e13f082203e2608734c74155_15596961.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8aa6ed407b78ed8aae567461abcc7f45_59066458.png change filename to text .imagette220335121743705544/ imagette220335121743705544/1743705314_2559393_1349856855_fda33df2332ef70a846599a103feb6c1_rle_crop_3746503274_0.png.png imagette220335121743705544/1743705209_976485_1349856754_3ae4537c76c615a3fb696f1b3d70a210_rle_crop_3746501495_0.png.png imagette220335121743705544/1743705446_980323_1349857070_2aaf1cf11f66f754df2b9e34db198f29_rle_crop_3746507551_0.png.png imagette220335121743705544/1743705209_976485_1349856765_f7e45308f6cc72451a6aea238e03ca06_rle_crop_3746501393_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c147cff62a29b774c5bde045b2f02b02_96064964.png imagette220335121743705544 22033513 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=22033513 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349856980: '1743705209_976485_1349856754_3ae4537c76c615a3fb696f1b3d70a210_rle_crop_3746501500_0.png', 1349857188: '1743705314_2559393_1349856843_d2deb68f728b3aba01546ecc9ceeb9fe_rle_crop_3746503348_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/bc4f98cde01452e31adc00b2eb679513_33135836.png change filename to text .imagette220335131743705544/ imagette220335131743705544/1743705314_2559393_1349856843_d2deb68f728b3aba01546ecc9ceeb9fe_rle_crop_3746503348_0.png.png imagette220335131743705544/1743705209_976485_1349856754_3ae4537c76c615a3fb696f1b3d70a210_rle_crop_3746501500_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d41944b3823ee62d90cb18b345bd3a90_70417983.png imagette220335131743705544 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22033502 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22033518,22033519,22033520,22033521,22033522,22033523,22033524,22033525,22033526,22033527,22033528,22033529?tags=kraft,plastique,flou,papier,metal,Carton_brun,Carton_gris,Teint_Dans_La_Masse,mal_croppe,autre_refus,cartonnette,environnement your option no_mail is active, we will not send the real mail to your client args[1349857461] : ('0.05733173428414196',) no score found for photo 1349857461 We are sending mail with results at report@fotonower.com args[1349857454] : ('0.05733173428414196',) no score found for photo 1349857454 We are sending mail with results at report@fotonower.com args[1349857440] : ('0.05733173428414196',) no score found for photo 1349857440 We are sending mail with results at report@fotonower.com args[1349857326] : ('0.05733173428414196',) no score found for photo 1349857326 We are sending mail with results at report@fotonower.com args[1349857314] : ('0.05733173428414196',) no score found for photo 1349857314 We are sending mail with results at report@fotonower.com args[1349857275] : ('0.05733173428414196',) no score found for photo 1349857275 We are sending mail with results at report@fotonower.com args[1349857239] : ('0.05733173428414196',) no score found for photo 1349857239 We are sending mail with results at report@fotonower.com args[1349857235] : ('0.05733173428414196',) no score found for photo 1349857235 We are sending mail with results at report@fotonower.com args[1349857230] : ('0.05733173428414196',) no score found for photo 1349857230 We are sending mail with results at report@fotonower.com args[1349857204] : ('0.05733173428414196',) no score found for photo 1349857204 We are sending mail with results at report@fotonower.com args[1349857202] : ('0.05733173428414196',) no score found for photo 1349857202 We are sending mail with results at report@fotonower.com args[1349857199] : ('0.05733173428414196',) no score found for photo 1349857199 We are sending mail with results at report@fotonower.com args[1349857195] : ('0.05733173428414196',) no score found for photo 1349857195 We are sending mail with results at report@fotonower.com args[1349857187] : ('0.05733173428414196',) no score found for photo 1349857187 We are sending mail with results at report@fotonower.com args[1349857181] : ('0.05733173428414196',) no score found for photo 1349857181 We are sending mail with results at report@fotonower.com refus_total : 0.05733173428414196 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=22033502 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_P22033502_03-04-2025_20_39_03.pdf results_Auto_P22033502_03-04-2025_20_39_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033502_03-04-2025_20_39_03.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','22033502','results_Auto_P22033502_03-04-2025_20_39_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033502_03-04-2025_20_39_03.pdf','pdf','','0.2','0.05733173428414196') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22033502]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] map_info['map_portfolio_photo'] : {22033502: [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181, 1349857153, 1349857150, 1349857140, 1349857127, 1349857077, 1349857070, 1349857066, 1349857053, 1349857008, 1349856859, 1349856855, 1349856849, 1349856843, 1349856765, 1349856760, 1349856754]} final : False mtd_id 4302 list_pids : [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] 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, '2721660') ('4302', '22033502', '1349857461', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22033502', '1349857461', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660')] time used for this insertion : 0.018421173095703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.9400475025177 time spend to save output : 0.018616676330566406 total time spend for step 4 : 2.9586641788482666 step5:split_time_score Thu Apr 3 20:39:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22033502'] 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 : [('22033502',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22033502) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349857440: {'path': 'temp/1743705543_528972_1349857440_5e3996eb572cbd9173a2583053551427.jpg', 'extension': 'jpg'}, 1349857454: {'path': 'temp/1743705543_528972_1349857454_aa939f98a129c55c983282a40c0b1b47.jpg', 'extension': 'jpg'}, 1349857461: {'path': 'temp/1743705543_528972_1349857461_9c34d6ccee1568d923963e5a3bb840d1.jpg', 'extension': 'jpg'}, 1349857181: {'path': 'temp/1743705543_528972_1349857181_c8255225c3cef16d0c56c13e847e507f.jpg', 'extension': 'jpg'}, 1349857187: {'path': 'temp/1743705543_528972_1349857187_f05b0fb6f2af948419d8f7490413db30.jpg', 'extension': 'jpg'}, 1349857195: {'path': 'temp/1743705543_528972_1349857195_5833f7a4d7e887813e37953b247370bb.jpg', 'extension': 'jpg'}, 1349857199: {'path': 'temp/1743705543_528972_1349857199_73bced4538ab097a4fd40829130e7615.jpg', 'extension': 'jpg'}, 1349857202: {'path': 'temp/1743705543_528972_1349857202_6988b068ae34552ced782b534fe7cd21.jpg', 'extension': 'jpg'}, 1349857204: {'path': 'temp/1743705543_528972_1349857204_0a584e9574874652317bd6b7cf76cf12.jpg', 'extension': 'jpg'}, 1349857230: {'path': 'temp/1743705543_528972_1349857230_c8337883c27daa71bdac53b8c198c65a.jpg', 'extension': 'jpg'}, 1349857235: {'path': 'temp/1743705543_528972_1349857235_f399d9b3d76e67039a660805d65f8e06.jpg', 'extension': 'jpg'}, 1349857239: {'path': 'temp/1743705543_528972_1349857239_f4c618d382ba06dc560bd9bd684c7f53.jpg', 'extension': 'jpg'}, 1349857275: {'path': 'temp/1743705543_528972_1349857275_8f06463ddb9517a0cc143aced9e9aa27.jpg', 'extension': 'jpg'}, 1349857314: {'path': 'temp/1743705543_528972_1349857314_4fb4193d0b013f1ee3a458e8546ac9d6.jpg', 'extension': 'jpg'}, 1349857326: {'path': 'temp/1743705543_528972_1349857326_b2375f7a4f7a43532e8f6e04d0c01535.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 = 22033502; (('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 = 22033502 group by h (('20', 31),) 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=22033502 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 (22033502) 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 (22033502) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22033502 Nombre de photos uploadées : 31 / 23040 (0%) 03042025 22033502 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 03042025 22033502 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1349856765, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f7e45308f6cc72451a6aea238e03ca06.jpg', 'username': None, 'uploaded_at': 1743705127, 'text': 'image_03042025_20_31_14_10137.jpg'}, {'photo_id': 1349856760, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f5758bf4ed3d9b54d6a837e9f0685ae8.jpg', 'username': None, 'uploaded_at': 1743705127, 'text': 'image_03042025_20_31_24_10137.jpg'}, {'photo_id': 1349856754, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3ae4537c76c615a3fb696f1b3d70a210.jpg', 'username': None, 'uploaded_at': 1743705127, 'text': 'image_03042025_20_31_44_10142.jpg'}, {'photo_id': 1349856859, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c49a67b6da4a620e3f2dd40734ba1331.jpg', 'username': None, 'uploaded_at': 1743705187, 'text': 'image_03042025_20_31_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0021712779998779297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22033502, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022586345672607422 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722537, 'mtr_portfolio_id': 22031213, 'dashboard_result_id': 9856184, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031213_03-04-2025_20_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031228, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722537, 'mtr_portfolio_id': 22031642, 'dashboard_result_id': 9856185, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031662, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722537, 'mtr_portfolio_id': 22032545, 'dashboard_result_id': 9856186, '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_P22032545_03-04-2025_20_33_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22032600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032611, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1722537, 'mtr_portfolio_id': 22033502, 'dashboard_result_id': 9856187, '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_P22033502_03-04-2025_20_37_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033517, '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 = 22031213 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2721469, 'mtr_portfolio_id': 22031213, 'created_at': datetime.datetime(2025, 4, 3, 20, 3, 1), 'result': '0.04390211953327275', 'result_long': None, 'result_double': None}] Qualite : 0.04390211953327275 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031213_03-04-2025_20_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031213 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031213_03-04-2025_20_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031228, 'pht': 3726}}" where mtr_portfolio_id = 22031213 and dashboard_run_id = 1722537 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22031213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856184, 0.04390211953327275, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031213_03-04-2025_20_03_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031218, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031222, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031223, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031225, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031228, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22031642 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2721523, 'mtr_portfolio_id': 22031642, 'created_at': datetime.datetime(2025, 4, 3, 20, 19, 1), 'result': '0.03839194622967204', 'result_long': None, 'result_double': None}] Qualite : 0.03839194622967204 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031642 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031662, 'pht': 3726}}" where mtr_portfolio_id = 22031642 and dashboard_run_id = 1722537 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22031642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856185, 0.03839194622967204, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031642_03-04-2025_20_19_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031651, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031653, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031654, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031655, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031656, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031658, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031659, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031660, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031661, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031662, 'pht': 3726}}") 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 = 22032545 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': 2721587, 'mtr_portfolio_id': 22032545, 'created_at': datetime.datetime(2025, 4, 3, 20, 33, 2), 'result': '0.05903342321677448', 'result_long': None, 'result_double': None}] Qualite : 0.05903342321677448 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032545 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032545_03-04-2025_20_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032545 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_P22032545_03-04-2025_20_33_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22032600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032611, 'pht': 3726}}" where mtr_portfolio_id = 22032545 and dashboard_run_id = 1722537 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`=22032545 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856186, 0.05903342321677448, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032545_03-04-2025_20_33_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22032600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032605, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032606, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032607, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032608, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032609, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032611, '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 = 22033502 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': 2721660, 'mtr_portfolio_id': 22033502, 'created_at': datetime.datetime(2025, 4, 3, 20, 39, 3), 'result': '0.05733173428414196', 'result_long': None, 'result_double': None}] Qualite : 0.05733173428414196 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22033502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033502_03-04-2025_20_39_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22033502 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_P22033502_03-04-2025_20_39_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033517, 'pht': 3726}}" where mtr_portfolio_id = 22033502 and dashboard_run_id = 1722537 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`=22033502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856187, 0.05733173428414196, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22033502_03-04-2025_20_39_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22033506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22033507, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22033508, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22033509, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22033510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22033511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22033512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22033513, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22033514, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22033515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22033516, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22033517, '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 (22031213,22031642,22032545,22033502) result : ((1349847248,), (1349847256,), (1349847273,), (1349847280,), (1349847289,), (1349847307,), (1349847315,), (1349847395,), (1349847400,), (1349847407,), (1349847416,), (1349847434,), (1349847438,), (1349847441,), (1349847445,), (1349847450,), (1349847454,), (1349847615,), (1349847632,), (1349847661,), (1349847665,), (1349847753,), (1349847757,), (1349847760,), (1349847765,), (1349847773,), (1349847840,), (1349847855,), (1349847864,), (1349847877,), (1349847881,), (1349847889,), (1349847915,), (1349847917,), (1349847920,), (1349847922,), (1349847966,), (1349847969,), (1349847971,), (1349847975,), (1349847983,), (1349848000,), (1349848021,), (1349848023,), (1349848026,), (1349848028,), (1349848077,), (1349848083,), (1349848088,), (1349848103,), (1349848107,), (1349848160,), (1349848166,), (1349848188,), (1349848191,), (1349848195,), (1349848255,), (1349848261,), (1349848268,), (1349848272,), (1349848329,), (1349848340,), (1349848355,), (1349848385,), (1349848410,), (1349848444,), (1349848519,), (1349848542,), (1349848590,), (1349848659,), (1349848895,), (1349848812,), (1349848853,), (1349849240,), (1349849286,), (1349849348,), (1349849384,), (1349849412,), (1349849435,), (1349849591,), (1349849617,), (1349849652,), (1349849685,), (1349849721,), (1349850255,), (1349850334,), (1349850360,), (1349850891,), (1349850921,), (1349850948,), (1349850967,), (1349851141,), (1349851204,), (1349851269,), (1349851331,), (1349851747,), (1349851756,), (1349851787,), (1349851810,), (1349851818,), (1349852473,), (1349852591,), (1349852700,), (1349852751,), (1349852759,), (1349852767,), (1349852772,), (1349852775,), (1349852781,), (1349853129,), (1349853132,), (1349853142,), (1349853155,), (1349853174,), (1349853237,), (1349853389,), (1349853418,), (1349853445,), (1349853470,), (1349853541,), (1349853545,), (1349853549,), (1349853555,), (1349853577,), (1349853701,), (1349853713,), (1349853717,), (1349853725,), (1349853742,), (1349853746,), (1349853810,), (1349853837,), (1349853863,), (1349853913,), (1349853928,), (1349853933,), (1349853937,), (1349853940,), (1349853943,), (1349853997,), (1349853977,), (1349853981,), (1349853987,), (1349853991,), (1349853993,), (1349854014,), (1349854022,), (1349854029,), (1349854037,), (1349854211,), (1349854237,), (1349854274,), (1349854325,), (1349854343,), (1349854379,), (1349854655,), (1349854695,), (1349854725,), (1349854751,), (1349855072,), (1349855114,), (1349855136,), (1349855151,), (1349855159,), (1349855323,), (1349855331,), (1349855335,), (1349855373,), (1349855377,), (1349855383,), (1349855406,), (1349855415,), (1349855424,), (1349855430,), (1349855485,), (1349855489,), (1349855500,), (1349855523,), (1349855538,), (1349855545,), (1349855616,), (1349855621,), (1349855630,), (1349855648,), (1349855931,), (1349856001,), (1349856041,), (1349856078,), (1349856086,), (1349856101,), (1349856195,), (1349856221,), (1349856423,), (1349856771,), (1349856754,), (1349856760,), (1349856765,), (1349856843,), (1349856849,), (1349856855,), (1349856859,), (1349857008,), (1349857053,), (1349857066,), (1349857070,), (1349857077,), (1349857127,), (1349857140,), (1349857150,), (1349857153,), (1349857181,), (1349857187,), (1349857195,), (1349857199,), (1349857202,), (1349857204,), (1349857230,), (1349857235,), (1349857239,), (1349857275,), (1349857314,), (1349857326,), (1349857440,), (1349857454,), (1349857461,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22033502]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] map_info['map_portfolio_photo'] : {22033502: [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181, 1349857153, 1349857150, 1349857140, 1349857127, 1349857077, 1349857070, 1349857066, 1349857053, 1349857008, 1349856859, 1349856855, 1349856849, 1349856843, 1349856765, 1349856760, 1349856754]} final : True mtd_id 4302 list_pids : [1349857461, 1349857454, 1349857440, 1349857326, 1349857314, 1349857275, 1349857239, 1349857235, 1349857230, 1349857204, 1349857202, 1349857199, 1349857195, 1349857187, 1349857181] Looping around the photos to save general results len do output : 1 /22033502Didn'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, '2721660') ('4302', '22033502', '1349857461', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660') ('4302', None, None, None, None, None, None, None, '2721660') ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660') 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', None, '22033502', 'None', None, None, None, None, '2721660'), ('4302', '22033502', '1349857461', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857454', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857440', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857326', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857314', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857275', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857239', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857235', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857230', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857204', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857202', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857199', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857195', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857187', None, None, None, None, None, '2721660'), ('4302', '22033502', '1349857181', None, None, None, None, None, '2721660')] time used for this insertion : 0.016621112823486328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9917480945587158 time spend to save output : 0.01693129539489746 total time spend for step 5 : 1.0086793899536133 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 (2721660) 2.45user 2.51system 0:11.97elapsed 41%CPU (0avgtext+0avgdata 160580maxresident)k 984inputs+12728outputs (13major+74900minor)pagefaults 0swaps