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 : 2520444 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 (2558503) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2558503) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290772 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2558503'] with mtr_portfolio_ids : ['20290772'] and first list_photo_ids : [] new path : /proc/2520444/ Name: python3 Umask: 0002 State: R (running) Tgid: 2520444 Ngid: 0 Pid: 2520444 PPid: 2520443 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2520444 NSpid: 2520444 NSpgid: 2518430 NSsid: 2518430 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98264 kB VmRSS: 98264 kB RssAnon: 59760 kB RssFile: 38504 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 600 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: 52 nonvoluntary_ctxt_switches: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2520444', 'Ngid': '0', 'Pid': '2520444', 'PPid': '2520443', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2520444', 'NSpid': '2520444', 'NSpgid': '2518430', 'NSsid': '2518430', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98264 kB', 'VmRSS': '98264 kB', 'RssAnon': '59760 kB', 'RssFile': '38504 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '600 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': '52', 'nonvoluntary_ctxt_switches': '89'} ('datou_batch_current', '2520444', '1106932', '0', '1106932', '865684', '98264', b'', 'marlene', '2558503') 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 (20290772) 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 (2558503 ) ) 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 (20290772) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1335145072, 'portfolio_id': 20290772}, {'photo_id': 1335145069, 'portfolio_id': 20290772}, {'photo_id': 1335145066, 'portfolio_id': 20290772}, {'photo_id': 1335145064, 'portfolio_id': 20290772}, {'photo_id': 1335145025, 'portfolio_id': 20290772}, {'photo_id': 1335145020, 'portfolio_id': 20290772}, {'photo_id': 1335145011, 'portfolio_id': 20290772}, {'photo_id': 1335145007, 'portfolio_id': 20290772}, {'photo_id': 1335145004, 'portfolio_id': 20290772}, {'photo_id': 1335145001, 'portfolio_id': 20290772}, {'photo_id': 1335144959, 'portfolio_id': 20290772}, {'photo_id': 1335144956, 'portfolio_id': 20290772}, {'photo_id': 1335144954, 'portfolio_id': 20290772}, {'photo_id': 1335144919, 'portfolio_id': 20290772}, {'photo_id': 1335144917, 'portfolio_id': 20290772}, {'photo_id': 1335144916, 'portfolio_id': 20290772}, {'photo_id': 1335144913, 'portfolio_id': 20290772}, {'photo_id': 1335144911, 'portfolio_id': 20290772}, {'photo_id': 1335144868, 'portfolio_id': 20290772}, {'photo_id': 1335144862, 'portfolio_id': 20290772}, {'photo_id': 1335144850, 'portfolio_id': 20290772}, {'photo_id': 1335144840, 'portfolio_id': 20290772}, {'photo_id': 1335144832, 'portfolio_id': 20290772}, {'photo_id': 1335144783, 'portfolio_id': 20290772}, {'photo_id': 1335144781, 'portfolio_id': 20290772}, {'photo_id': 1335144780, 'portfolio_id': 20290772}, {'photo_id': 1335144718, 'portfolio_id': 20290772}, {'photo_id': 1335144715, 'portfolio_id': 20290772}, {'photo_id': 1335144713, 'portfolio_id': 20290772}, {'photo_id': 1335144709, 'portfolio_id': 20290772}] map_portfolio_id_photo_id: {20290772: [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911, 1335144868, 1335144862, 1335144850, 1335144840, 1335144832, 1335144783, 1335144781, 1335144780, 1335144718, 1335144715, 1335144713, 1335144709]} ##### 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.015205621719360352 #### 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 Feb 6 07:24: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 (20290772) 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 : 20290772 get user id for portfolio 20290772 get sub ptf for main ptf 20290772, type 3726 and hashtags ['kraft', 'environnement', 'metal', 'mal_croppe', 'autre_refus', 'cartonnette', 'Carton_brun', 'plastique', 'flou', 'papier', 'Carton_gris', 'Teint_Dans_La_Masse'] 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`=20290772 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','mal_croppe','autre_refus','cartonnette','Carton_brun','plastique','flou','papier','Carton_gris','Teint_Dans_La_Masse')) 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`=20290772 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','mal_croppe','autre_refus','cartonnette','Carton_brun','plastique','flou','papier','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20290772, 'sub_port_id': 20290823, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981793, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'autre_refus': {'main_port_id': 20290772, 'sub_port_id': 20290824, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981794, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'plastique': {'main_port_id': 20290772, 'sub_port_id': 20290825, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981795, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'flou': {'main_port_id': 20290772, 'sub_port_id': 20290826, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981796, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'mal_croppe': {'main_port_id': 20290772, 'sub_port_id': 20290827, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981797, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'cartonnette': {'main_port_id': 20290772, 'sub_port_id': 20290828, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981798, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'environnement': {'main_port_id': 20290772, 'sub_port_id': 20290829, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981799, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'papier': {'main_port_id': 20290772, 'sub_port_id': 20290830, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981800, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20290772, 'sub_port_id': 20290831, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981801, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'Carton_gris': {'main_port_id': 20290772, 'sub_port_id': 20290832, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981802, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'kraft': {'main_port_id': 20290772, 'sub_port_id': 20290833, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981803, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}, 'metal': {'main_port_id': 20290772, 'sub_port_id': 20290834, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981804, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 58), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20290823 , 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=20290772 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 (20290823) result : ((1335144903,), (1335144940,), (1335145015,), (1335145016,), (1335145019,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290824 , 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=20290772 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 (20290824) result : ((1335145009,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290825 , 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=20290772 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 (20290825) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290826 , 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=20290772 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 (20290826) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290827 , 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=20290772 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 (20290827) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290828 , 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=20290772 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 (20290828) result : ((1335145013,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290829 , 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=20290772 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 (20290829) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290830 , 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=20290772 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 (20290830) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290831 , 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=20290772 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 (20290831) result : ((1335144934,), (1335144935,), (1335144936,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290832 , 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=20290772 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 (20290832) result : ((1335144937,), (1335144938,), (1335145010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290833 , 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=20290772 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 (20290833) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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 20290834 , 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=20290772 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 (20290834) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20290772) result : ((1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) 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`=20290772 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','mal_croppe','autre_refus','cartonnette','Carton_brun','plastique','flou','papier','Carton_gris','Teint_Dans_La_Masse')) 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`=20290772 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','metal','mal_croppe','autre_refus','cartonnette','Carton_brun','plastique','flou','papier','Carton_gris','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20290772, 'sub_port_id': 20290835, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981805, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'autre_refus': {'main_port_id': 20290772, 'sub_port_id': 20290836, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981806, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'plastique': {'main_port_id': 20290772, 'sub_port_id': 20290837, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981807, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'flou': {'main_port_id': 20290772, 'sub_port_id': 20290838, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981808, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'mal_croppe': {'main_port_id': 20290772, 'sub_port_id': 20290839, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981809, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'cartonnette': {'main_port_id': 20290772, 'sub_port_id': 20290840, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981810, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'environnement': {'main_port_id': 20290772, 'sub_port_id': 20290841, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981811, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'papier': {'main_port_id': 20290772, 'sub_port_id': 20290842, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981812, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20290772, 'sub_port_id': 20290843, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981813, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'Carton_gris': {'main_port_id': 20290772, 'sub_port_id': 20290844, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981814, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'kraft': {'main_port_id': 20290772, 'sub_port_id': 20290845, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981815, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}, 'metal': {'main_port_id': 20290772, 'sub_port_id': 20290846, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 12981816, 'last_updated_at': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 6, 7, 20, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 6, 7, 20, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290835,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290823 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290836,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290824 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290837,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290825 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290838,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290826 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290839,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290827 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290840,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290828 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290841,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290829 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290842,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290830 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290843,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290831 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20290846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20290834 lien utilise dans velours : https://www.fotonower.com/velours/20290835,20290836,20290837,20290838,20290839,20290840,20290841,20290842,20290843,20290844,20290845,20290846?tags=Carton_brun,autre_refus,plastique,flou,mal_croppe,cartonnette,environnement,papier,Teint_Dans_La_Masse,Carton_gris,kraft,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20290772]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] map_info['map_portfolio_photo'] : {20290772: [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911, 1335144868, 1335144862, 1335144850, 1335144840, 1335144832, 1335144783, 1335144781, 1335144780, 1335144718, 1335144715, 1335144713, 1335144709]} final : False mtd_id 4302 list_pids : [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] Looping around the photos to save general results len do output : 1 /20290772. 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, '2558503') ('4302', '20290772', '1335145072', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '20290772', "{'Carton_brun': 20290823, 'autre_refus': 20290824, 'plastique': 20290825, 'flou': 20290826, 'mal_croppe': 20290827, 'cartonnette': 20290828, 'environnement': 20290829, 'papier': 20290830, 'Teint_Dans_La_Masse': 20290831, 'Carton_gris': 20290832, 'kraft': 20290833, 'metal': 20290834}", None, None, None, None, '2558503'), ('4302', '20290772', '1335145072', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503')] time used for this insertion : 0.014612436294555664 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4156074523925781 time spend to save output : 0.014925956726074219 total time spend for step 1 : 1.4305334091186523 step2:final Thu Feb 6 07:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20290772) 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 20290772 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1335144718,1335144715,1335144713,1335144709,1335144783,1335144781,1335144780,1335144868,1335144862,1335144850,1335144840,1335144832,1335144919,1335144917,1335144916,1335144913,1335144911,1335144959,1335144956,1335144954,1335145025,1335145020,1335145011,1335145007,1335145004,1335145001,1335145072,1335145069,1335145066,1335145064); 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([20290772]) Inside saveOutput : final : False verbose : True original output for save of step final : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} new output for save of step final : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] map_info['map_portfolio_photo'] : {20290772: [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911, 1335144868, 1335144862, 1335144850, 1335144840, 1335144832, 1335144783, 1335144781, 1335144780, 1335144718, 1335144715, 1335144713, 1335144709]} final : False mtd_id 4302 list_pids : [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] Looping around the photos to save general results len do output : 18 /1335145072.Didn't retrieve data . /1335145069.Didn't retrieve data . /1335145066.Didn't retrieve data . /1335145064.Didn't retrieve data . /1335145025.Didn't retrieve data . /1335145020.Didn't retrieve data . /1335145011.Didn't retrieve data . /1335145007.Didn't retrieve data . /1335145004.Didn't retrieve data . /1335145001.Didn't retrieve data . /1335144959.Didn't retrieve data . /1335144956.Didn't retrieve data . /1335144954.Didn't retrieve data . /1335144919.Didn't retrieve data . /1335144917.Didn't retrieve data . /1335144916.Didn't retrieve data . /1335144913.Didn't retrieve data . /1335144911.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, '2558503') ('4302', '20290772', '1335145072', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '20290772', '1335145072', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145069', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145066', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145064', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145025', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145020', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145011', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145007', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145004', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335145001', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144959', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144956', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144954', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144919', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144917', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144916', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144913', '0.03275203805741659', None, None, None, None, '2558503'), ('4302', '20290772', '1335144911', '0.03275203805741659', None, None, None, None, '2558503')] time used for this insertion : 0.014638423919677734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06415367126464844 time spend to save output : 0.015419721603393555 total time spend for step 2 : 0.07957339286804199 step3:velours_tree Thu Feb 6 07:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20290772: [{'Carton_brun': 20290823, 'autre_refus': 20290824, 'plastique': 20290825, 'flou': 20290826, 'mal_croppe': 20290827, 'cartonnette': 20290828, 'environnement': 20290829, 'papier': 20290830, 'Teint_Dans_La_Masse': 20290831, 'Carton_gris': 20290832, 'kraft': 20290833, 'metal': 20290834}]} input_args_next_step : {20290772: ()} output_args : {20290772: [{'Carton_brun': 20290823, 'autre_refus': 20290824, 'plastique': 20290825, 'flou': 20290826, 'mal_croppe': 20290827, 'cartonnette': 20290828, 'environnement': 20290829, 'papier': 20290830, 'Teint_Dans_La_Masse': 20290831, 'Carton_gris': 20290832, 'kraft': 20290833, 'metal': 20290834}]} args : 20290772 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 : ({'Carton_brun': 20290823, 'autre_refus': 20290824, 'plastique': 20290825, 'flou': 20290826, 'mal_croppe': 20290827, 'cartonnette': 20290828, 'environnement': 20290829, 'papier': 20290830, 'Teint_Dans_La_Masse': 20290831, 'Carton_gris': 20290832, 'kraft': 20290833, 'metal': 20290834},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20290772) 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([20290772]) 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.4194009304046631 time spend to save output : 4.863739013671875e-05 total time spend for step 3 : 0.4194495677947998 step4:send_mail_cod Thu Feb 6 07:25:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} input_args_next_step : {1335145072: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145072 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145069 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145066 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145064 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145025 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145020 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145011 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145007 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145004 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335145001 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144959 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144956 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144954 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144919 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144917 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144916 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144913 depend.output_id : 0 input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ()} output_args : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',)} args : 1335144911 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 : {20290772: [{'Carton_brun': 20290823, 'autre_refus': 20290824, 'plastique': 20290825, 'flou': 20290826, 'mal_croppe': 20290827, 'cartonnette': 20290828, 'environnement': 20290829, 'papier': 20290830, 'Teint_Dans_La_Masse': 20290831, 'Carton_gris': 20290832, 'kraft': 20290833, 'metal': 20290834}]} input_args_next_step : {1335145072: ('0.03275203805741659',), 1335145069: ('0.03275203805741659',), 1335145066: ('0.03275203805741659',), 1335145064: ('0.03275203805741659',), 1335145025: ('0.03275203805741659',), 1335145020: ('0.03275203805741659',), 1335145011: ('0.03275203805741659',), 1335145007: ('0.03275203805741659',), 1335145004: ('0.03275203805741659',), 1335145001: ('0.03275203805741659',), 1335144959: ('0.03275203805741659',), 1335144956: ('0.03275203805741659',), 1335144954: ('0.03275203805741659',), 1335144919: ('0.03275203805741659',), 1335144917: ('0.03275203805741659',), 1335144916: ('0.03275203805741659',), 1335144913: ('0.03275203805741659',), 1335144911: ('0.03275203805741659',), 20290772: ()} output_args : {20290772: [{'Carton_brun': 20290823, 'autre_refus': 20290824, 'plastique': 20290825, 'flou': 20290826, 'mal_croppe': 20290827, 'cartonnette': 20290828, 'environnement': 20290829, 'papier': 20290830, 'Teint_Dans_La_Masse': 20290831, 'Carton_gris': 20290832, 'kraft': 20290833, 'metal': 20290834}]} args : 20290772 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 :19, first value : ('0.03275203805741659',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20290772) 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 (1335145072,1335145069,1335145066,1335145064,1335145025,1335145020,1335145011,1335145007,1335145004,1335145001,1335144959,1335144956,1335144954,1335144919,1335144917,1335144916,1335144913,1335144911) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1335144911 begin to download photo : 1335144919 begin to download photo : 1335145001 begin to download photo : 1335145020 begin to download photo : 1335145069 download finish for photo 1335145020 begin to download photo : 1335145025 download finish for photo 1335145069 begin to download photo : 1335145072 download finish for photo 1335144911 begin to download photo : 1335144913 download finish for photo 1335144919 begin to download photo : 1335144954 download finish for photo 1335145001 begin to download photo : 1335145004 download finish for photo 1335145025 begin to download photo : 1335145064 download finish for photo 1335144913 begin to download photo : 1335144916 download finish for photo 1335145072 download finish for photo 1335144954 begin to download photo : 1335144956 download finish for photo 1335145004 begin to download photo : 1335145007 download finish for photo 1335144916 begin to download photo : 1335144917 download finish for photo 1335145064 begin to download photo : 1335145066 download finish for photo 1335144956 begin to download photo : 1335144959 download finish for photo 1335145007 begin to download photo : 1335145011 download finish for photo 1335145066 download finish for photo 1335144917 download finish for photo 1335144959 download finish for photo 1335145011 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P20290772_06-02-2025_07_25_00.pdf 20290824 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=20290824 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335145009: '1738822873_3248947_1335144850_28788538702c62a3dfec57a3ceb0e588_rle_crop_3657339796_0.png'} change filename to text .imagette202908241738823100/ imagette202908241738823100/1738822873_3248947_1335144850_28788538702c62a3dfec57a3ceb0e588_rle_crop_3657339796_0.png.png imagette202908251738823100/ imagette202908261738823100/ imagette202908271738823100/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/1817f402c52c84ba90bf5a6c94cdf9b6_81740833.png imagette202908241738823100 20290825 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=20290825 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202908251738823100 20290826 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=20290826 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202908261738823100 20290827 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=20290827 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202908271738823100 20290828 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=20290828 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335145013: '1738822873_3248947_1335144840_ca18489e26eabc648437c22842b71a89_rle_crop_3657339817_0.png'} change filename to text .imagette202908281738823100/ imagette202908281738823100/1738822873_3248947_1335144840_ca18489e26eabc648437c22842b71a89_rle_crop_3657339817_0.png.png imagette202908331738823101/ imagette202908341738823101/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/59a5e1a44b3094881824b5bed2f5bc17_80413164.png imagette202908281738823100 20290833 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=20290833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202908331738823101 20290834 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=20290834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette202908341738823101 20290823 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=20290823 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335144903: '1738822751_3246549_1335144780_8ae753bb5606f96458a4ea1dba907f62_rle_crop_3657333520_0.png', 1335144940: '1738822772_3246835_1335144715_30b354854adae1604750e44aeed67052_rle_crop_3657333732_0.png', 1335145015: '1738822873_3248947_1335144862_a3ea4545c0b6db72239d64b1b4c6724a_rle_crop_3657339769_0.png', 1335145016: '1738822873_3248947_1335144862_a3ea4545c0b6db72239d64b1b4c6724a_rle_crop_3657339774_0.png', 1335145019: '1738822873_3248947_1335144850_28788538702c62a3dfec57a3ceb0e588_rle_crop_3657339805_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/c2620fcee428e5228a62db1c84b6851e_95543582.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/48c363d0b2d5f8ab8bfdbc7c002054b0_67137680.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/88f9d94cfe215cb17163693c6271214a_8493176.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/e7851275babfc2425363f5d8e9422627_81737181.png change filename to text .imagette202908231738823101/ imagette202908231738823101/1738822873_3248947_1335144850_28788538702c62a3dfec57a3ceb0e588_rle_crop_3657339805_0.png.png imagette202908231738823101/1738822873_3248947_1335144862_a3ea4545c0b6db72239d64b1b4c6724a_rle_crop_3657339774_0.png.png imagette202908231738823101/1738822772_3246835_1335144715_30b354854adae1604750e44aeed67052_rle_crop_3657333732_0.png.png imagette202908231738823101/1738822751_3246549_1335144780_8ae753bb5606f96458a4ea1dba907f62_rle_crop_3657333520_0.png.png imagette202908231738823101/1738822873_3248947_1335144862_a3ea4545c0b6db72239d64b1b4c6724a_rle_crop_3657339769_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/de46707145b5677ff628917a2c07c50e_84483054.png imagette202908231738823101 20290831 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=20290831 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335144934: '1738822772_3246835_1335144783_152bb5189e105f38edc9be3ea4ba11f9_rle_crop_3657333712_0.png', 1335144935: '1738822772_3246835_1335144713_91c5ce974750f0a900c30f33057bcc8f_rle_crop_3657334532_0.png', 1335144936: '1738822772_3246835_1335144709_d60081f1578b7e7a8e3ec3ccd751e44c_rle_crop_3657334551_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/a74463199136de240e320b3089b86972_76623260.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0d4eabf820d7ffa60749277a077c9441_19288832.png change filename to text .imagette202908311738823101/ imagette202908311738823101/1738822772_3246835_1335144713_91c5ce974750f0a900c30f33057bcc8f_rle_crop_3657334532_0.png.png imagette202908311738823101/1738822772_3246835_1335144709_d60081f1578b7e7a8e3ec3ccd751e44c_rle_crop_3657334551_0.png.png imagette202908311738823101/1738822772_3246835_1335144783_152bb5189e105f38edc9be3ea4ba11f9_rle_crop_3657333712_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/ff1715ed784dda5207c2ba0b4d0ce962_54933576.png imagette202908311738823101 20290832 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=20290832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1335144937: '1738822772_3246835_1335144718_973a38f46441b5b3966335bb6f78959f_rle_crop_3657333721_0.png', 1335144938: '1738822772_3246835_1335144715_30b354854adae1604750e44aeed67052_rle_crop_3657333729_0.png', 1335145010: '1738822873_3248947_1335144840_ca18489e26eabc648437c22842b71a89_rle_crop_3657339812_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/8af01a4b690721b733382f4f56359273_14833080.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/0463798b6dcbcf9369677df4334a3c85_73736434.png change filename to text .imagette202908321738823101/ imagette202908321738823101/1738822873_3248947_1335144840_ca18489e26eabc648437c22842b71a89_rle_crop_3657339812_0.png.png imagette202908321738823101/1738822772_3246835_1335144715_30b354854adae1604750e44aeed67052_rle_crop_3657333729_0.png.png imagette202908321738823101/1738822772_3246835_1335144718_973a38f46441b5b3966335bb6f78959f_rle_crop_3657333721_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/f6783cba18d2c1ed12b99350445a8d93_35345897.png imagette202908321738823101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20290772 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20290835,20290836,20290837,20290838,20290839,20290840,20290841,20290842,20290843,20290844,20290845,20290846?tags=Carton_brun,autre_refus,plastique,flou,mal_croppe,cartonnette,environnement,papier,Teint_Dans_La_Masse,Carton_gris,kraft,metal your option no_mail is active, we will not send the real mail to your client args[1335145072] : ('0.03275203805741659',) no score found for photo 1335145072 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145069] : ('0.03275203805741659',) no score found for photo 1335145069 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145066] : ('0.03275203805741659',) no score found for photo 1335145066 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145064] : ('0.03275203805741659',) no score found for photo 1335145064 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145025] : ('0.03275203805741659',) no score found for photo 1335145025 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145020] : ('0.03275203805741659',) no score found for photo 1335145020 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145011] : ('0.03275203805741659',) no score found for photo 1335145011 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145007] : ('0.03275203805741659',) no score found for photo 1335145007 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145004] : ('0.03275203805741659',) no score found for photo 1335145004 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335145001] : ('0.03275203805741659',) no score found for photo 1335145001 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144959] : ('0.03275203805741659',) no score found for photo 1335144959 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144956] : ('0.03275203805741659',) no score found for photo 1335144956 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144954] : ('0.03275203805741659',) no score found for photo 1335144954 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144919] : ('0.03275203805741659',) no score found for photo 1335144919 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144917] : ('0.03275203805741659',) no score found for photo 1335144917 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144916] : ('0.03275203805741659',) no score found for photo 1335144916 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144913] : ('0.03275203805741659',) no score found for photo 1335144913 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com args[1335144911] : ('0.03275203805741659',) no score found for photo 1335144911 apple ('0.03275203805741659',) We are sending mail with results at report@fotonower.com refus_total : 0.03275203805741659 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=20290772 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_P20290772_06-02-2025_07_25_00.pdf results_Auto_P20290772_06-02-2025_07_25_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290772_06-02-2025_07_25_00.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','20290772','results_Auto_P20290772_06-02-2025_07_25_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290772_06-02-2025_07_25_00.pdf','pdf','','0.19','0.03275203805741659') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20290772]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] map_info['map_portfolio_photo'] : {20290772: [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911, 1335144868, 1335144862, 1335144850, 1335144840, 1335144832, 1335144783, 1335144781, 1335144780, 1335144718, 1335144715, 1335144713, 1335144709]} final : False mtd_id 4302 list_pids : [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] 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, '2558503') ('4302', '20290772', '1335145072', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '20290772', '1335145072', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503')] time used for this insertion : 0.01486659049987793 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0172359943389893 time spend to save output : 0.015172243118286133 total time spend for step 4 : 3.0324082374572754 step5:split_time_score Thu Feb 6 07:25: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 : ['20290772'] 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 : [('20290772',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20290772) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1335145069: {'path': 'temp/1738823100_2520444_1335145069_de43d392aa1d8258df84e0fdd7869920.jpg', 'extension': 'jpg'}, 1335145072: {'path': 'temp/1738823100_2520444_1335145072_f7f0880a752769e1d09afbe35a2dffaf.jpg', 'extension': 'jpg'}, 1335145020: {'path': 'temp/1738823100_2520444_1335145020_2d68bb0d80f6607c74ba602ae0318952.jpg', 'extension': 'jpg'}, 1335145025: {'path': 'temp/1738823100_2520444_1335145025_fe67086cc4b223c403abeb21bf50f06f.jpg', 'extension': 'jpg'}, 1335145064: {'path': 'temp/1738823100_2520444_1335145064_a44072e46e87281e51fe0c202b8ae1a2.jpg', 'extension': 'jpg'}, 1335145066: {'path': 'temp/1738823100_2520444_1335145066_e5e56c4c2d8be10d77c0b516661e2162.jpg', 'extension': 'jpg'}, 1335144911: {'path': 'temp/1738823100_2520444_1335144911_0510cdb9ef141e88311f354007ac49cc.jpg', 'extension': 'jpg'}, 1335144913: {'path': 'temp/1738823100_2520444_1335144913_ebc1e7d33c36bddf9321626101a048a4.jpg', 'extension': 'jpg'}, 1335144916: {'path': 'temp/1738823100_2520444_1335144916_5a4bcdebe63ee4f8c37e6554df95b185.jpg', 'extension': 'jpg'}, 1335144917: {'path': 'temp/1738823100_2520444_1335144917_02cba4cf58c4a09922fe3c9898b94b15.jpg', 'extension': 'jpg'}, 1335144919: {'path': 'temp/1738823100_2520444_1335144919_5b81686860edceb3f693d1ae05a7e18b.jpg', 'extension': 'jpg'}, 1335144954: {'path': 'temp/1738823100_2520444_1335144954_48a04d167f2e69c0aad5d2dbe72a9e84.jpg', 'extension': 'jpg'}, 1335144956: {'path': 'temp/1738823100_2520444_1335144956_0437c80ed790704bd197aaa3693c3540.jpg', 'extension': 'jpg'}, 1335144959: {'path': 'temp/1738823100_2520444_1335144959_706cfcb7fbf63c28f0f07569d135eb39.jpg', 'extension': 'jpg'}, 1335145001: {'path': 'temp/1738823100_2520444_1335145001_f5873f2b61a7a10c767ae8afc215655a.jpg', 'extension': 'jpg'}, 1335145004: {'path': 'temp/1738823100_2520444_1335145004_e3126334d5e07b76ea8edd26828d9579.jpg', 'extension': 'jpg'}, 1335145007: {'path': 'temp/1738823100_2520444_1335145007_ce0f0286c59bb91485b26f87fc2dbbba.jpg', 'extension': 'jpg'}, 1335145011: {'path': 'temp/1738823100_2520444_1335145011_cb0f174719e5da3f53bd57b430c8d08a.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 = 20290772; (('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 = 20290772 group by h (('07', 30),) 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=20290772 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 (20290772) 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 (20290772) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06022025 20290772 Nombre de photos uploadées : 30 / 23040 (0%) 06022025 20290772 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 06022025 20290772 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1335144718, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/973a38f46441b5b3966335bb6f78959f.jpg', 'username': None, 'uploaded_at': 1738822628, 'text': 'image_06022025_07_16_04_010144m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335144715, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/30b354854adae1604750e44aeed67052.jpg', 'username': None, 'uploaded_at': 1738822628, 'text': 'image_06022025_07_16_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335144713, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/91c5ce974750f0a900c30f33057bcc8f.jpg', 'username': None, 'uploaded_at': 1738822628, 'text': 'image_06022025_07_16_33_009125m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1335144709, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/6/d60081f1578b7e7a8e3ec3ccd751e44c.jpg', 'username': None, 'uploaded_at': 1738822628, 'text': 'image_06022025_07_16_43_010138m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017554759979248047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20290772, '2025-02-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1581747,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02424311637878418 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= 1581747 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590020, 'mtr_portfolio_id': 20289032, 'dashboard_result_id': 8733222, '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_P20289032_06-02-2025_06_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20289033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289044, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590020, 'mtr_portfolio_id': 20289745, 'dashboard_result_id': 8733223, '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_P20289745_06-02-2025_07_03_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20289798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289799, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590020, 'mtr_portfolio_id': 20290351, 'dashboard_result_id': 8733224, '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_P20290351_06-02-2025_07_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290368, 'pht': 3726}}"}, {'dashboat_entry_day': 1581747, 'dashboard_run_id': 1590020, 'mtr_portfolio_id': 20290772, 'dashboard_result_id': 8733225, '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_P20290772_06-02-2025_07_21_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290834, '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 = 20289032 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': 2558300, 'mtr_portfolio_id': 20289032, 'created_at': datetime.datetime(2025, 2, 6, 6, 46, 57), 'result': '0.04159714460298843', 'result_long': None, 'result_double': None}] Qualite : 0.04159714460298843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20289032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289032_06-02-2025_06_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20289032 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_P20289032_06-02-2025_06_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20289033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289044, 'pht': 3726}}" where mtr_portfolio_id = 20289032 and dashboard_run_id = 1590020 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`=20289032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8733222, 0.04159714460298843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289032_06-02-2025_06_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20289033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289034, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289036, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289039, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289044, '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 = 20289745 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': 2558372, 'mtr_portfolio_id': 20289745, 'created_at': datetime.datetime(2025, 2, 6, 7, 3, 29), 'result': '0.045709068374573225', 'result_long': None, 'result_double': None}] Qualite : 0.045709068374573225 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20289745 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289745_06-02-2025_07_03_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20289745 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_P20289745_06-02-2025_07_03_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20289798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289799, 'pht': 3726}}" where mtr_portfolio_id = 20289745 and dashboard_run_id = 1590020 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`=20289745 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8733223, 0.045709068374573225, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20289745_06-02-2025_07_03_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20289787, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20289788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20289789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20289791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20289792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20289793, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20289794, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20289795, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20289796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20289797, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20289798, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20289799, '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 = 20290351 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': 2558458, 'mtr_portfolio_id': 20290351, 'created_at': datetime.datetime(2025, 2, 6, 7, 18, 59), 'result': '0.059361487642291676', 'result_long': None, 'result_double': None}] Qualite : 0.059361487642291676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20290351 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290351_06-02-2025_07_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20290351 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_P20290351_06-02-2025_07_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290368, 'pht': 3726}}" where mtr_portfolio_id = 20290351 and dashboard_run_id = 1590020 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`=20290351 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8733224, 0.059361487642291676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290351_06-02-2025_07_18_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290358, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290360, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290366, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290368, '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 = 20290772 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': 2558503, 'mtr_portfolio_id': 20290772, 'created_at': datetime.datetime(2025, 2, 6, 7, 24, 59), 'result': '0.03275203805741659', 'result_long': None, 'result_double': None}] Qualite : 0.03275203805741659 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20290772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290772_06-02-2025_07_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20290772 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_P20290772_06-02-2025_07_25_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290834, 'pht': 3726}}" where mtr_portfolio_id = 20290772 and dashboard_run_id = 1590020 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`=20290772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8733225, 0.03275203805741659, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20290772_06-02-2025_07_25_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20290823, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20290824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20290825, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20290826, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20290827, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20290828, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20290829, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20290830, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20290831, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20290832, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20290833, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20290834, '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 (20289032,20289745,20290351,20290772) result : ((1335135380,), (1335135383,), (1335135385,), (1335135905,), (1335135970,), (1335135976,), (1335135985,), (1335135988,), (1335135991,), (1335136212,), (1335136214,), (1335136241,), (1335136245,), (1335136248,), (1335136620,), (1335136622,), (1335136624,), (1335136626,), (1335136629,), (1335136631,), (1335136730,), (1335136731,), (1335136733,), (1335136749,), (1335136797,), (1335136799,), (1335136801,), (1335136816,), (1335136818,), (1335136874,), (1335136880,), (1335136886,), (1335136905,), (1335136907,), (1335136910,), (1335136964,), (1335136966,), (1335138096,), (1335138162,), (1335138164,), (1335138166,), (1335138168,), (1335138171,), (1335138174,), (1335138252,), (1335138254,), (1335138256,), (1335138265,), (1335138272,), (1335138292,), (1335138296,), (1335138298,), (1335138300,), (1335138304,), (1335138334,), (1335138319,), (1335138321,), (1335138327,), (1335138415,), (1335138421,), (1335138434,), (1335138444,), (1335139187,), (1335139252,), (1335139286,), (1335139327,), (1335139374,), (1335140005,), (1335140067,), (1335140088,), (1335140092,), (1335140094,), (1335140231,), (1335140237,), (1335140661,), (1335140677,), (1335140681,), (1335140683,), (1335140685,), (1335140688,), (1335140853,), (1335140855,), (1335140857,), (1335140859,), (1335140862,), (1335140865,), (1335140891,), (1335140897,), (1335140901,), (1335141333,), (1335141338,), (1335141340,), (1335141345,), (1335141353,), (1335141362,), (1335141387,), (1335141390,), (1335141394,), (1335141400,), (1335141439,), (1335141451,), (1335141453,), (1335141456,), (1335141458,), (1335141461,), (1335141471,), (1335141557,), (1335141559,), (1335141561,), (1335141564,), (1335141567,), (1335141599,), (1335141616,), (1335141618,), (1335141754,), (1335141759,), (1335141764,), (1335141841,), (1335141825,), (1335141830,), (1335141834,), (1335141838,), (1335141861,), (1335141863,), (1335141868,), (1335141903,), (1335141912,), (1335141915,), (1335141917,), (1335141919,), (1335142219,), (1335142221,), (1335142223,), (1335142224,), (1335142277,), (1335142301,), (1335142836,), (1335142838,), (1335142848,), (1335143004,), (1335143017,), (1335143020,), (1335143033,), (1335143096,), (1335143127,), (1335143150,), (1335143152,), (1335143216,), (1335143217,), (1335143219,), (1335144605,), (1335144611,), (1335144621,), (1335144626,), (1335144633,), (1335144639,), (1335144651,), (1335144653,), (1335144655,), (1335144657,), (1335144661,), (1335144670,), (1335144683,), (1335144722,), (1335144709,), (1335144713,), (1335144715,), (1335144718,), (1335144780,), (1335144781,), (1335144783,), (1335144832,), (1335144840,), (1335144850,), (1335144862,), (1335144868,), (1335144911,), (1335144913,), (1335144916,), (1335144917,), (1335144919,), (1335144954,), (1335144956,), (1335144959,), (1335145001,), (1335145004,), (1335145007,), (1335145011,), (1335145020,), (1335145025,), (1335145064,), (1335145066,), (1335145069,), (1335145072,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06022025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20290772]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] map_info['map_portfolio_photo'] : {20290772: [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911, 1335144868, 1335144862, 1335144850, 1335144840, 1335144832, 1335144783, 1335144781, 1335144780, 1335144718, 1335144715, 1335144713, 1335144709]} final : True mtd_id 4302 list_pids : [1335145072, 1335145069, 1335145066, 1335145064, 1335145025, 1335145020, 1335145011, 1335145007, 1335145004, 1335145001, 1335144959, 1335144956, 1335144954, 1335144919, 1335144917, 1335144916, 1335144913, 1335144911] Looping around the photos to save general results len do output : 1 /20290772Didn'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, '2558503') ('4302', '20290772', '1335145072', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503') ('4302', None, None, None, None, None, None, None, '2558503') ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '20290772', 'None', None, None, None, None, '2558503'), ('4302', '20290772', '1335145072', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145069', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145066', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145064', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145025', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145020', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145011', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145007', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145004', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335145001', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144959', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144956', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144954', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144919', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144917', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144916', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144913', None, None, None, None, None, '2558503'), ('4302', '20290772', '1335144911', None, None, None, None, None, '2558503')] time used for this insertion : 0.014011383056640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.328261137008667 time spend to save output : 0.014244794845581055 total time spend for step 5 : 0.34250593185424805 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 (2558503) 2.41user 2.42system 0:09.25elapsed 52%CPU (0avgtext+0avgdata 161268maxresident)k 48400inputs+12424outputs (184major+75116minor)pagefaults 0swaps