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 : 3669121 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 (2709164) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2709164) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909447 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2709164'] with mtr_portfolio_ids : ['21909447'] and first list_photo_ids : [] new path : /proc/3669121/ Name: python3 Umask: 0002 State: R (running) Tgid: 3669121 Ngid: 0 Pid: 3669121 PPid: 3669120 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3669121 NSpid: 3669121 NSpgid: 3667365 NSsid: 3667365 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 96900 kB VmRSS: 96900 kB RssAnon: 59764 kB RssFile: 37136 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 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: 56 nonvoluntary_ctxt_switches: 169 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3669121', 'Ngid': '0', 'Pid': '3669121', 'PPid': '3669120', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3669121', 'NSpid': '3669121', 'NSpgid': '3667365', 'NSsid': '3667365', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '96900 kB', 'VmRSS': '96900 kB', 'RssAnon': '59764 kB', 'RssFile': '37136 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 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': '56', 'nonvoluntary_ctxt_switches': '169'} ('datou_batch_current', '3669121', '1106928', '0', '1106928', '865676', '96900', b'', 'marlene', '2709164') 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 (21909447) 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 (2709164 ) ) 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 (21909447) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349011753, 'portfolio_id': 21909447}, {'photo_id': 1349011747, 'portfolio_id': 21909447}, {'photo_id': 1349011742, 'portfolio_id': 21909447}, {'photo_id': 1349011739, 'portfolio_id': 21909447}, {'photo_id': 1349011736, 'portfolio_id': 21909447}, {'photo_id': 1349011734, 'portfolio_id': 21909447}, {'photo_id': 1349011635, 'portfolio_id': 21909447}, {'photo_id': 1349011631, 'portfolio_id': 21909447}, {'photo_id': 1349011627, 'portfolio_id': 21909447}, {'photo_id': 1349011560, 'portfolio_id': 21909447}, {'photo_id': 1349011539, 'portfolio_id': 21909447}, {'photo_id': 1349011533, 'portfolio_id': 21909447}, {'photo_id': 1349011510, 'portfolio_id': 21909447}, {'photo_id': 1349011506, 'portfolio_id': 21909447}, {'photo_id': 1349011424, 'portfolio_id': 21909447}, {'photo_id': 1349011417, 'portfolio_id': 21909447}, {'photo_id': 1349011410, 'portfolio_id': 21909447}, {'photo_id': 1349011406, 'portfolio_id': 21909447}, {'photo_id': 1349011401, 'portfolio_id': 21909447}, {'photo_id': 1349011366, 'portfolio_id': 21909447}, {'photo_id': 1349011354, 'portfolio_id': 21909447}, {'photo_id': 1349011338, 'portfolio_id': 21909447}, {'photo_id': 1349011314, 'portfolio_id': 21909447}, {'photo_id': 1349011224, 'portfolio_id': 21909447}, {'photo_id': 1349011215, 'portfolio_id': 21909447}, {'photo_id': 1349011209, 'portfolio_id': 21909447}, {'photo_id': 1349011206, 'portfolio_id': 21909447}, {'photo_id': 1349011202, 'portfolio_id': 21909447}, {'photo_id': 1349011173, 'portfolio_id': 21909447}, {'photo_id': 1349011170, 'portfolio_id': 21909447}, {'photo_id': 1349011166, 'portfolio_id': 21909447}, {'photo_id': 1349011161, 'portfolio_id': 21909447}, {'photo_id': 1349011080, 'portfolio_id': 21909447}, {'photo_id': 1349011050, 'portfolio_id': 21909447}, {'photo_id': 1349011048, 'portfolio_id': 21909447}, {'photo_id': 1349010929, 'portfolio_id': 21909447}, {'photo_id': 1349010921, 'portfolio_id': 21909447}, {'photo_id': 1349010912, 'portfolio_id': 21909447}, {'photo_id': 1349010895, 'portfolio_id': 21909447}, {'photo_id': 1349010893, 'portfolio_id': 21909447}, {'photo_id': 1349010891, 'portfolio_id': 21909447}, {'photo_id': 1349010839, 'portfolio_id': 21909447}, {'photo_id': 1349010836, 'portfolio_id': 21909447}, {'photo_id': 1349010832, 'portfolio_id': 21909447}, {'photo_id': 1349010829, 'portfolio_id': 21909447}, {'photo_id': 1349010826, 'portfolio_id': 21909447}] map_portfolio_id_photo_id: {21909447: [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506, 1349011424, 1349011417, 1349011410, 1349011406, 1349011401, 1349011366, 1349011354, 1349011338, 1349011314, 1349011224, 1349011215, 1349011209, 1349011206, 1349011202, 1349011173, 1349011170, 1349011166, 1349011161, 1349011080, 1349011050, 1349011048, 1349010929, 1349010921, 1349010912, 1349010895, 1349010893, 1349010891, 1349010839, 1349010836, 1349010832, 1349010829, 1349010826]} ##### 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.01580524444580078 #### 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 Mon Mar 31 14:41:26 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 (21909447) 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 : 21909447 get user id for portfolio 21909447 get sub ptf for main ptf 21909447, type 3726 and hashtags ['kraft', 'mal_croppe', 'Carton_gris', 'Teint_Dans_La_Masse', 'metal', 'cartonnette', 'plastique', 'flou', 'environnement', 'papier', 'Carton_brun', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21909447 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_gris','Teint_Dans_La_Masse','metal','cartonnette','plastique','flou','environnement','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21909447 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_gris','Teint_Dans_La_Masse','metal','cartonnette','plastique','flou','environnement','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21909447, 'sub_port_id': 21909451, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416130, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'mal_croppe': {'main_port_id': 21909447, 'sub_port_id': 21909452, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416131, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'kraft': {'main_port_id': 21909447, 'sub_port_id': 21909453, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416132, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'flou': {'main_port_id': 21909447, 'sub_port_id': 21909454, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416133, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'cartonnette': {'main_port_id': 21909447, 'sub_port_id': 21909455, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416134, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'metal': {'main_port_id': 21909447, 'sub_port_id': 21909456, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416135, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'Carton_gris': {'main_port_id': 21909447, 'sub_port_id': 21909457, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416136, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21909447, 'sub_port_id': 21909458, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416137, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'plastique': {'main_port_id': 21909447, 'sub_port_id': 21909459, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416138, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'environnement': {'main_port_id': 21909447, 'sub_port_id': 21909460, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416139, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'autre_refus': {'main_port_id': 21909447, 'sub_port_id': 21909461, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416140, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}, 'Carton_brun': {'main_port_id': 21909447, 'sub_port_id': 21909462, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416141, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21909451 , 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=21909447 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 (21909451) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909452 , 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=21909447 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 (21909452) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909453 , 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=21909447 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 (21909453) result : ((1349011303,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909454 , 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=21909447 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 (21909454) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909455 , 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=21909447 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 (21909455) result : ((1349011145,), (1349011390,), (1349011391,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909456 , 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=21909447 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 (21909456) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909457 , 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=21909447 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 (21909457) result : ((1349011301,), (1349011459,), (1349011719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909458 , 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=21909447 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 (21909458) result : ((1349011140,), (1349011141,), (1349011383,), (1349011384,), (1349011385,), (1349011386,), (1349011458,), (1349011717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909459 , 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=21909447 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 (21909459) result : ((1349011149,), (1349011150,), (1349011396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909460 , 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=21909447 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 (21909460) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909461 , 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=21909447 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 (21909461) result : ((1349011142,), (1349011143,), (1349011144,), (1349011250,), (1349011388,), (1349011389,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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 21909462 , 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=21909447 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 (21909462) result : ((1349011147,), (1349011148,), (1349011393,), (1349011394,), (1349011395,), (1349011465,), (1349011721,), (1349011722,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21909447) result : ((1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) 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`=21909447 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_gris','Teint_Dans_La_Masse','metal','cartonnette','plastique','flou','environnement','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21909447 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','mal_croppe','Carton_gris','Teint_Dans_La_Masse','metal','cartonnette','plastique','flou','environnement','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21909447, 'sub_port_id': 21909463, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416142, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'mal_croppe': {'main_port_id': 21909447, 'sub_port_id': 21909464, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416143, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'kraft': {'main_port_id': 21909447, 'sub_port_id': 21909465, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416144, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'flou': {'main_port_id': 21909447, 'sub_port_id': 21909466, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416145, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'cartonnette': {'main_port_id': 21909447, 'sub_port_id': 21909467, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416146, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'metal': {'main_port_id': 21909447, 'sub_port_id': 21909468, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416147, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'Carton_gris': {'main_port_id': 21909447, 'sub_port_id': 21909469, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416148, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 21909447, 'sub_port_id': 21909470, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416149, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'plastique': {'main_port_id': 21909447, 'sub_port_id': 21909471, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416150, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'environnement': {'main_port_id': 21909447, 'sub_port_id': 21909472, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416151, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'autre_refus': {'main_port_id': 21909447, 'sub_port_id': 21909473, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416152, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 35), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}, 'Carton_brun': {'main_port_id': 21909447, 'sub_port_id': 21909474, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14416153, 'last_updated_at': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 14, 38, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 14, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909463,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909451 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909464,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909452 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909465,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909453 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909466,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909454 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909467,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909455 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909468,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909456 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909469,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909457 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909470,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909458 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909471,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909459 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909472,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909460 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909473,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909461 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21909474,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21909462 lien utilise dans velours : https://www.fotonower.com/velours/21909463,21909464,21909465,21909466,21909467,21909468,21909469,21909470,21909471,21909472,21909473,21909474?tags=papier,mal_croppe,kraft,flou,cartonnette,metal,Carton_gris,Teint_Dans_La_Masse,plastique,environnement,autre_refus,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21909447]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] map_info['map_portfolio_photo'] : {21909447: [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506, 1349011424, 1349011417, 1349011410, 1349011406, 1349011401, 1349011366, 1349011354, 1349011338, 1349011314, 1349011224, 1349011215, 1349011209, 1349011206, 1349011202, 1349011173, 1349011170, 1349011166, 1349011161, 1349011080, 1349011050, 1349011048, 1349010929, 1349010921, 1349010912, 1349010895, 1349010893, 1349010891, 1349010839, 1349010836, 1349010832, 1349010829, 1349010826]} final : False mtd_id 4302 list_pids : [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] Looping around the photos to save general results len do output : 1 /21909447. 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, '2709164') ('4302', '21909447', '1349011753', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21909447', "{'papier': 21909451, 'mal_croppe': 21909452, 'kraft': 21909453, 'flou': 21909454, 'cartonnette': 21909455, 'metal': 21909456, 'Carton_gris': 21909457, 'Teint_Dans_La_Masse': 21909458, 'plastique': 21909459, 'environnement': 21909460, 'autre_refus': 21909461, 'Carton_brun': 21909462}", None, None, None, None, '2709164'), ('4302', '21909447', '1349011753', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164')] time used for this insertion : 0.014266729354858398 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4729101657867432 time spend to save output : 0.014598846435546875 total time spend for step 1 : 1.48750901222229 step2:final Mon Mar 31 14:41:28 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 (21909447) 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 21909447 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349010839,1349010836,1349010832,1349010829,1349010826,1349010929,1349010921,1349010912,1349010895,1349010893,1349010891,1349011080,1349011050,1349011048,1349011173,1349011170,1349011166,1349011161,1349011224,1349011215,1349011209,1349011206,1349011202,1349011366,1349011354,1349011338,1349011314,1349011424,1349011417,1349011410,1349011406,1349011401,1349011560,1349011539,1349011533,1349011510,1349011506,1349011635,1349011631,1349011627,1349011753,1349011747,1349011742,1349011739,1349011736,1349011734); 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([21909447]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} new output for save of step final : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] map_info['map_portfolio_photo'] : {21909447: [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506, 1349011424, 1349011417, 1349011410, 1349011406, 1349011401, 1349011366, 1349011354, 1349011338, 1349011314, 1349011224, 1349011215, 1349011209, 1349011206, 1349011202, 1349011173, 1349011170, 1349011166, 1349011161, 1349011080, 1349011050, 1349011048, 1349010929, 1349010921, 1349010912, 1349010895, 1349010893, 1349010891, 1349010839, 1349010836, 1349010832, 1349010829, 1349010826]} final : False mtd_id 4302 list_pids : [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] Looping around the photos to save general results len do output : 14 /1349011753.Didn't retrieve data . /1349011747.Didn't retrieve data . /1349011742.Didn't retrieve data . /1349011739.Didn't retrieve data . /1349011736.Didn't retrieve data . /1349011734.Didn't retrieve data . /1349011635.Didn't retrieve data . /1349011631.Didn't retrieve data . /1349011627.Didn't retrieve data . /1349011560.Didn't retrieve data . /1349011539.Didn't retrieve data . /1349011533.Didn't retrieve data . /1349011510.Didn't retrieve data . /1349011506.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, '2709164') ('4302', '21909447', '1349011753', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21909447', '1349011753', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011747', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011742', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011739', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011736', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011734', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011635', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011631', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011627', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011560', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011539', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011533', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011510', '0.04056487232357842', None, None, None, None, '2709164'), ('4302', '21909447', '1349011506', '0.04056487232357842', None, None, None, None, '2709164')] time used for this insertion : 0.015764713287353516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07191348075866699 time spend to save output : 0.016469717025756836 total time spend for step 2 : 0.08838319778442383 step3:velours_tree Mon Mar 31 14:41:28 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 : {21909447: [{'papier': 21909451, 'mal_croppe': 21909452, 'kraft': 21909453, 'flou': 21909454, 'cartonnette': 21909455, 'metal': 21909456, 'Carton_gris': 21909457, 'Teint_Dans_La_Masse': 21909458, 'plastique': 21909459, 'environnement': 21909460, 'autre_refus': 21909461, 'Carton_brun': 21909462}]} input_args_next_step : {21909447: ()} output_args : {21909447: [{'papier': 21909451, 'mal_croppe': 21909452, 'kraft': 21909453, 'flou': 21909454, 'cartonnette': 21909455, 'metal': 21909456, 'Carton_gris': 21909457, 'Teint_Dans_La_Masse': 21909458, 'plastique': 21909459, 'environnement': 21909460, 'autre_refus': 21909461, 'Carton_brun': 21909462}]} args : 21909447 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 : ({'papier': 21909451, 'mal_croppe': 21909452, 'kraft': 21909453, 'flou': 21909454, 'cartonnette': 21909455, 'metal': 21909456, 'Carton_gris': 21909457, 'Teint_Dans_La_Masse': 21909458, 'plastique': 21909459, 'environnement': 21909460, 'autre_refus': 21909461, 'Carton_brun': 21909462},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21909447) 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([21909447]) 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.4546375274658203 time spend to save output : 5.435943603515625e-05 total time spend for step 3 : 0.45469188690185547 step4:send_mail_cod Mon Mar 31 14:41:29 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 : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} input_args_next_step : {1349011753: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011753 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011747 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011742 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011739 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011736 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011734 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011635 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011631 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011627 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011560 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011539 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011533 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011510 depend.output_id : 0 input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ()} output_args : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',)} args : 1349011506 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 : {21909447: [{'papier': 21909451, 'mal_croppe': 21909452, 'kraft': 21909453, 'flou': 21909454, 'cartonnette': 21909455, 'metal': 21909456, 'Carton_gris': 21909457, 'Teint_Dans_La_Masse': 21909458, 'plastique': 21909459, 'environnement': 21909460, 'autre_refus': 21909461, 'Carton_brun': 21909462}]} input_args_next_step : {1349011753: ('0.04056487232357842',), 1349011747: ('0.04056487232357842',), 1349011742: ('0.04056487232357842',), 1349011739: ('0.04056487232357842',), 1349011736: ('0.04056487232357842',), 1349011734: ('0.04056487232357842',), 1349011635: ('0.04056487232357842',), 1349011631: ('0.04056487232357842',), 1349011627: ('0.04056487232357842',), 1349011560: ('0.04056487232357842',), 1349011539: ('0.04056487232357842',), 1349011533: ('0.04056487232357842',), 1349011510: ('0.04056487232357842',), 1349011506: ('0.04056487232357842',), 21909447: ()} output_args : {21909447: [{'papier': 21909451, 'mal_croppe': 21909452, 'kraft': 21909453, 'flou': 21909454, 'cartonnette': 21909455, 'metal': 21909456, 'Carton_gris': 21909457, 'Teint_Dans_La_Masse': 21909458, 'plastique': 21909459, 'environnement': 21909460, 'autre_refus': 21909461, 'Carton_brun': 21909462}]} args : 21909447 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.04056487232357842',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21909447) 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 (1349011753,1349011747,1349011742,1349011739,1349011736,1349011734,1349011635,1349011631,1349011627,1349011560,1349011539,1349011533,1349011510,1349011506) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349011506 begin to download photo : 1349011539 begin to download photo : 1349011631 begin to download photo : 1349011736 begin to download photo : 1349011747 download finish for photo 1349011747 begin to download photo : 1349011753 download finish for photo 1349011506 begin to download photo : 1349011510 download finish for photo 1349011736 begin to download photo : 1349011739 download finish for photo 1349011539 begin to download photo : 1349011560 download finish for photo 1349011631 begin to download photo : 1349011635 download finish for photo 1349011753 download finish for photo 1349011560 begin to download photo : 1349011627 download finish for photo 1349011635 begin to download photo : 1349011734 download finish for photo 1349011510 begin to download photo : 1349011533 download finish for photo 1349011739 begin to download photo : 1349011742 download finish for photo 1349011734 download finish for photo 1349011627 download finish for photo 1349011533 download finish for photo 1349011742 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219094521743424889/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21909447_31-03-2025_14_41_29.pdf 21909452 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=21909452 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219094521743424889 21909453 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=21909453 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011303: '1743424532_3510078_1349011048_0cfaedd0c317505ec18d2bc3d79f69da_rle_crop_3741074265_0.png'} change filename to text .imagette219094531743424889/ imagette219094531743424889/1743424532_3510078_1349011048_0cfaedd0c317505ec18d2bc3d79f69da_rle_crop_3741074265_0.png.png imagette219094541743424889/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9d0d10277460c1c7aae77673d7c1d0e0_97387734.png imagette219094531743424889 21909454 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=21909454 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219094541743424889 21909455 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=21909455 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011145: '1743424381_3508769_1349010832_7e3b9120691fb98dbcbe67eb353e53f0_rle_crop_3741072929_0.png', 1349011390: '1743424552_3510295_1349011080_97fb4132e0e0ef44b7d6cc3f3c7b50e4_rle_crop_3741074452_0.png', 1349011391: '1743424552_3510295_1349010891_07e3a73a6c4662348a22fef138191ae1_rle_crop_3741074520_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/da562f73616db5b29e85ecedf9b142f9_83167832.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/98fa7ea6d41afcffd53bd4bfb45985c7_29678277.png change filename to text .imagette219094551743424889/ imagette219094551743424889/1743424552_3510295_1349011080_97fb4132e0e0ef44b7d6cc3f3c7b50e4_rle_crop_3741074452_0.png.png imagette219094551743424889/1743424552_3510295_1349010891_07e3a73a6c4662348a22fef138191ae1_rle_crop_3741074520_0.png.png imagette219094551743424889/1743424381_3508769_1349010832_7e3b9120691fb98dbcbe67eb353e53f0_rle_crop_3741072929_0.png.png imagette219094561743424889/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/437369b53b8f38c2a056e3a50ac51560_72118931.png imagette219094551743424889 21909456 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=21909456 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219094561743424889 21909459 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=21909459 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011149: '1743424381_3508769_1349010839_a6ce4b30389f7874ffbd61995a6f4cde_rle_crop_3741072908_0.png', 1349011150: '1743424381_3508769_1349010836_15138fa9afd467f52e2fa4506b75e03f_rle_crop_3741072922_0.png', 1349011396: '1743424552_3510295_1349010891_07e3a73a6c4662348a22fef138191ae1_rle_crop_3741074526_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/8cdb73e7dd8e8d07443a32403a21322d_58655440.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9e1ec8ca92f6d356e7085bf30205485b_60333884.png change filename to text .imagette219094591743424889/ imagette219094591743424889/1743424381_3508769_1349010839_a6ce4b30389f7874ffbd61995a6f4cde_rle_crop_3741072908_0.png.png imagette219094591743424889/1743424381_3508769_1349010836_15138fa9afd467f52e2fa4506b75e03f_rle_crop_3741072922_0.png.png imagette219094591743424889/1743424552_3510295_1349010891_07e3a73a6c4662348a22fef138191ae1_rle_crop_3741074526_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6bcb62be6043362a23e35f0cdcdc7393_98307641.png imagette219094591743424889 21909461 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=21909461 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011142: '1743424381_3508769_1349010832_7e3b9120691fb98dbcbe67eb353e53f0_rle_crop_3741072928_0.png', 1349011143: '1743424381_3508769_1349010829_4ac7eb3666e24cd3ac96aa9ae5aa27c3_rle_crop_3741072940_0.png', 1349011144: '1743424381_3508769_1349010826_2025370c1349cd71bc4c53895d26a287_rle_crop_3741072952_0.png', 1349011250: '1743424513_3509853_1349011166_1ad968e1491425e9f62ed502b0ad2413_rle_crop_3741074173_0.png', 1349011388: '1743424552_3510295_1349011080_97fb4132e0e0ef44b7d6cc3f3c7b50e4_rle_crop_3741074457_0.png', 1349011389: '1743424552_3510295_1349010891_07e3a73a6c4662348a22fef138191ae1_rle_crop_3741074524_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/91e773c8d95bad082b3934c1e339f9dc_74136309.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/aa6f9c36a1fe9487ac86df85a1ccb050_88045375.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b5aa2ecd4acaed5e4c1011fca2fd4c51_57586049.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/dcabee110efe6408d4c13d9dc12a6334_77550929.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a6dbd52e15708a6a0eeb3ee4895bc125_95115304.png change filename to text .imagette219094611743424890/ imagette219094611743424890/1743424552_3510295_1349011080_97fb4132e0e0ef44b7d6cc3f3c7b50e4_rle_crop_3741074457_0.png.png imagette219094611743424890/1743424552_3510295_1349010891_07e3a73a6c4662348a22fef138191ae1_rle_crop_3741074524_0.png.png imagette219094611743424890/1743424381_3508769_1349010832_7e3b9120691fb98dbcbe67eb353e53f0_rle_crop_3741072928_0.png.png imagette219094611743424890/1743424513_3509853_1349011166_1ad968e1491425e9f62ed502b0ad2413_rle_crop_3741074173_0.png.png imagette219094611743424890/1743424381_3508769_1349010826_2025370c1349cd71bc4c53895d26a287_rle_crop_3741072952_0.png.png imagette219094611743424890/1743424381_3508769_1349010829_4ac7eb3666e24cd3ac96aa9ae5aa27c3_rle_crop_3741072940_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/04b3be110ff7d89e025ba286cfb640f3_90771545.png imagette219094611743424890 21909457 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=21909457 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011301: '1743424532_3510078_1349011050_3f6e682a89b997c1386334c6c3de5722_rle_crop_3741074252_0.png', 1349011459: '1743424645_1017471_1349011202_cdd8561ca769b8a317ab3d2f1a243daa_rle_crop_3741074862_0.png', 1349011719: '1743424751_3511920_1349011401_b7625ebae0baee0bcc0c7d0eedccd910_rle_crop_3741075081_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0625607a19d38c0a80935fb8699ab7f0_33574059.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6a78e590f2ac115f8dd9972a2e78d69a_26256216.png change filename to text .imagette219094571743424890/ imagette219094571743424890/1743424645_1017471_1349011202_cdd8561ca769b8a317ab3d2f1a243daa_rle_crop_3741074862_0.png.png imagette219094571743424890/1743424751_3511920_1349011401_b7625ebae0baee0bcc0c7d0eedccd910_rle_crop_3741075081_0.png.png imagette219094571743424890/1743424532_3510078_1349011050_3f6e682a89b997c1386334c6c3de5722_rle_crop_3741074252_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7a9fdeae6be0dec328412b3802e6075a_56515614.png imagette219094571743424890 21909458 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=21909458 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011140: '1743424381_3508769_1349010839_a6ce4b30389f7874ffbd61995a6f4cde_rle_crop_3741072909_0.png', 1349011141: '1743424381_3508769_1349010832_7e3b9120691fb98dbcbe67eb353e53f0_rle_crop_3741072930_0.png', 1349011383: '1743424552_3510295_1349011080_97fb4132e0e0ef44b7d6cc3f3c7b50e4_rle_crop_3741074455_0.png', 1349011384: '1743424552_3510295_1349010921_cb9d4ad5f3077dd06139cdc95cd4b429_rle_crop_3741074473_0.png', 1349011385: '1743424552_3510295_1349010921_cb9d4ad5f3077dd06139cdc95cd4b429_rle_crop_3741074471_0.png', 1349011386: '1743424552_3510295_1349010895_5cc83a05d09ed1507f91503046f5c114_rle_crop_3741074491_0.png', 1349011458: '1743424645_1017471_1349011202_cdd8561ca769b8a317ab3d2f1a243daa_rle_crop_3741074865_0.png', 1349011717: '1743424751_3511920_1349011417_228c0802b23e66099d108d2e74b116f5_rle_crop_3741074993_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/67d2bda7f18320fca79ab7b87ed6d831_27917937.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/63705e830ffedb4f4ea93a2271950f32_85950255.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e1a35ea93bfa8d75cf9ef861c2ce8006_75935322.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/46d0733d98391bf1344d29d517218bb9_91362497.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b8dd650868535c1eaf2915d7d301b9cd_58554850.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/58f6401c140acdc92cdfe85db93518b4_65858744.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c9cca2fa9cc7af5a9aa56599c2c9dbfe_16063116.png change filename to text .imagette219094581743424890/ imagette219094581743424890/1743424645_1017471_1349011202_cdd8561ca769b8a317ab3d2f1a243daa_rle_crop_3741074865_0.png.png imagette219094581743424890/1743424552_3510295_1349010921_cb9d4ad5f3077dd06139cdc95cd4b429_rle_crop_3741074473_0.png.png imagette219094581743424890/1743424552_3510295_1349010895_5cc83a05d09ed1507f91503046f5c114_rle_crop_3741074491_0.png.png imagette219094581743424890/1743424381_3508769_1349010839_a6ce4b30389f7874ffbd61995a6f4cde_rle_crop_3741072909_0.png.png imagette219094581743424890/1743424552_3510295_1349010921_cb9d4ad5f3077dd06139cdc95cd4b429_rle_crop_3741074471_0.png.png imagette219094581743424890/1743424381_3508769_1349010832_7e3b9120691fb98dbcbe67eb353e53f0_rle_crop_3741072930_0.png.png imagette219094581743424890/1743424552_3510295_1349011080_97fb4132e0e0ef44b7d6cc3f3c7b50e4_rle_crop_3741074455_0.png.png imagette219094581743424890/1743424751_3511920_1349011417_228c0802b23e66099d108d2e74b116f5_rle_crop_3741074993_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/bb07138c0e273e123f2f75d537aad289_25086124.png imagette219094581743424890 21909462 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=21909462 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349011147: '1743424381_3508769_1349010839_a6ce4b30389f7874ffbd61995a6f4cde_rle_crop_3741072907_0.png', 1349011148: '1743424381_3508769_1349010836_15138fa9afd467f52e2fa4506b75e03f_rle_crop_3741072920_0.png', 1349011393: '1743424552_3510295_1349010893_8189697e419e855b278054146084c815_rle_crop_3741074512_0.png', 1349011394: '1743424552_3510295_1349010893_8189697e419e855b278054146084c815_rle_crop_3741074514_0.png', 1349011395: '1743424552_3510295_1349010893_8189697e419e855b278054146084c815_rle_crop_3741074513_0.png', 1349011465: '1743424645_1017471_1349011209_856add35d3151ae49f4b7b067b4ae492_rle_crop_3741074844_0.png', 1349011721: '1743424751_3511920_1349011406_1db2b9acc87b7e0c4ec274d4d2b2f4c3_rle_crop_3741075021_0.png', 1349011722: '1743424751_3511920_1349011401_b7625ebae0baee0bcc0c7d0eedccd910_rle_crop_3741075085_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ef3a34d9e3f972a91c8d4d390bbd5e31_72833034.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/fa4b6f25e635c79babb5030771232850_70269921.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d394e24732e83c2be7afa4448275b941_98413942.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5e37213104f48c4c2b4b5d721b15f432_52254822.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ce6ee60f9163c5378db524730775b155_61048532.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/71b9b5e916bfd957b07960f361e2c1e4_61990916.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2576cc65219eafdac49826b888363d75_87817862.png change filename to text .imagette219094621743424890/ imagette219094621743424890/1743424751_3511920_1349011406_1db2b9acc87b7e0c4ec274d4d2b2f4c3_rle_crop_3741075021_0.png.png imagette219094621743424890/1743424381_3508769_1349010836_15138fa9afd467f52e2fa4506b75e03f_rle_crop_3741072920_0.png.png imagette219094621743424890/1743424751_3511920_1349011401_b7625ebae0baee0bcc0c7d0eedccd910_rle_crop_3741075085_0.png.png imagette219094621743424890/1743424552_3510295_1349010893_8189697e419e855b278054146084c815_rle_crop_3741074512_0.png.png imagette219094621743424890/1743424552_3510295_1349010893_8189697e419e855b278054146084c815_rle_crop_3741074513_0.png.png imagette219094621743424890/1743424645_1017471_1349011209_856add35d3151ae49f4b7b067b4ae492_rle_crop_3741074844_0.png.png imagette219094621743424890/1743424381_3508769_1349010839_a6ce4b30389f7874ffbd61995a6f4cde_rle_crop_3741072907_0.png.png imagette219094621743424890/1743424552_3510295_1349010893_8189697e419e855b278054146084c815_rle_crop_3741074514_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ae5b70ac947f62297894963324b3aa0f_71211854.png imagette219094621743424890 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21909447 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21909463,21909464,21909465,21909466,21909467,21909468,21909469,21909470,21909471,21909472,21909473,21909474?tags=papier,mal_croppe,kraft,flou,cartonnette,metal,Carton_gris,Teint_Dans_La_Masse,plastique,environnement,autre_refus,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1349011753] : ('0.04056487232357842',) no score found for photo 1349011753 We are sending mail with results at report@fotonower.com args[1349011747] : ('0.04056487232357842',) no score found for photo 1349011747 We are sending mail with results at report@fotonower.com args[1349011742] : ('0.04056487232357842',) no score found for photo 1349011742 We are sending mail with results at report@fotonower.com args[1349011739] : ('0.04056487232357842',) no score found for photo 1349011739 We are sending mail with results at report@fotonower.com args[1349011736] : ('0.04056487232357842',) no score found for photo 1349011736 We are sending mail with results at report@fotonower.com args[1349011734] : ('0.04056487232357842',) no score found for photo 1349011734 We are sending mail with results at report@fotonower.com args[1349011635] : ('0.04056487232357842',) no score found for photo 1349011635 We are sending mail with results at report@fotonower.com args[1349011631] : ('0.04056487232357842',) no score found for photo 1349011631 We are sending mail with results at report@fotonower.com args[1349011627] : ('0.04056487232357842',) no score found for photo 1349011627 We are sending mail with results at report@fotonower.com args[1349011560] : ('0.04056487232357842',) no score found for photo 1349011560 We are sending mail with results at report@fotonower.com args[1349011539] : ('0.04056487232357842',) no score found for photo 1349011539 We are sending mail with results at report@fotonower.com args[1349011533] : ('0.04056487232357842',) no score found for photo 1349011533 We are sending mail with results at report@fotonower.com args[1349011510] : ('0.04056487232357842',) no score found for photo 1349011510 We are sending mail with results at report@fotonower.com args[1349011506] : ('0.04056487232357842',) no score found for photo 1349011506 We are sending mail with results at report@fotonower.com refus_total : 0.04056487232357842 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=21909447 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_P21909447_31-03-2025_14_41_29.pdf results_Auto_P21909447_31-03-2025_14_41_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21909447_31-03-2025_14_41_29.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','21909447','results_Auto_P21909447_31-03-2025_14_41_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21909447_31-03-2025_14_41_29.pdf','pdf','','0.2','0.04056487232357842') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21909447]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] map_info['map_portfolio_photo'] : {21909447: [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506, 1349011424, 1349011417, 1349011410, 1349011406, 1349011401, 1349011366, 1349011354, 1349011338, 1349011314, 1349011224, 1349011215, 1349011209, 1349011206, 1349011202, 1349011173, 1349011170, 1349011166, 1349011161, 1349011080, 1349011050, 1349011048, 1349010929, 1349010921, 1349010912, 1349010895, 1349010893, 1349010891, 1349010839, 1349010836, 1349010832, 1349010829, 1349010826]} final : False mtd_id 4302 list_pids : [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] 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, '2709164') ('4302', '21909447', '1349011753', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21909447', '1349011753', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164')] time used for this insertion : 0.014209270477294922 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5883655548095703 time spend to save output : 0.014542579650878906 total time spend for step 4 : 3.602908134460449 step5:split_time_score Mon Mar 31 14:41:32 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 : ['21909447'] 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 : [('21909447',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21909447) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349011747: {'path': 'temp/1743424889_3669121_1349011747_803ccae2e051eaec0601f3a2091481bf.jpg', 'extension': 'jpg'}, 1349011753: {'path': 'temp/1743424889_3669121_1349011753_0494a652f8b4d23f5075cd600468be5a.jpg', 'extension': 'jpg'}, 1349011631: {'path': 'temp/1743424889_3669121_1349011631_c8b7c26eb8f1b23dcaf89acf72ef9989.jpg', 'extension': 'jpg'}, 1349011635: {'path': 'temp/1743424889_3669121_1349011635_c5a09165ff9ca7ad329d78626a5bcc6b.jpg', 'extension': 'jpg'}, 1349011734: {'path': 'temp/1743424889_3669121_1349011734_f654a0499fd380de918a3e9909d26a88.jpg', 'extension': 'jpg'}, 1349011539: {'path': 'temp/1743424889_3669121_1349011539_2008e548fcb48c4d91615650305dcf74.jpg', 'extension': 'jpg'}, 1349011560: {'path': 'temp/1743424889_3669121_1349011560_10b687ecfa7fed7cb81bab0c79403c6e.jpg', 'extension': 'jpg'}, 1349011627: {'path': 'temp/1743424889_3669121_1349011627_fdd5b1397a0a405d785fb969940eabce.jpg', 'extension': 'jpg'}, 1349011506: {'path': 'temp/1743424889_3669121_1349011506_9eb0bb42cc9ddbd1d35ae5f6bce4db3f.jpg', 'extension': 'jpg'}, 1349011510: {'path': 'temp/1743424889_3669121_1349011510_de3cb0bf78c33ed0c9e46731d83239c2.jpg', 'extension': 'jpg'}, 1349011533: {'path': 'temp/1743424889_3669121_1349011533_68a25a866d53751787559f98a467b52d.jpg', 'extension': 'jpg'}, 1349011736: {'path': 'temp/1743424889_3669121_1349011736_9d54ca09499cc510de2752595d38b3a2.jpg', 'extension': 'jpg'}, 1349011739: {'path': 'temp/1743424889_3669121_1349011739_ddec8f5cecba9c237b74c29bebf20f40.jpg', 'extension': 'jpg'}, 1349011742: {'path': 'temp/1743424889_3669121_1349011742_7e4c3c2e8d01ad0a14199511d6955264.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 = 21909447; (('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 = 21909447 group by h (('14', 46),) 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=21909447 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 (21909447) 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 (21909447) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21909447 Nombre de photos uploadées : 46 / 23040 (0%) 31032025 21909447 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 31032025 21909447 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1349010839, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a6ce4b30389f7874ffbd61995a6f4cde.jpg', 'username': None, 'uploaded_at': 1743424267, 'text': 'image_31032025_14_30_04_10147.jpg'}, {'photo_id': 1349010836, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/15138fa9afd467f52e2fa4506b75e03f.jpg', 'username': None, 'uploaded_at': 1743424267, 'text': 'image_31032025_14_30_14_10138.jpg'}, {'photo_id': 1349010832, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/7e3b9120691fb98dbcbe67eb353e53f0.jpg', 'username': None, 'uploaded_at': 1743424267, 'text': 'image_31032025_14_30_24_10135.jpg'}, {'photo_id': 1349010829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4ac7eb3666e24cd3ac96aa9ae5aa27c3.jpg', 'username': None, 'uploaded_at': 1743424267, 'text': 'image_31032025_14_30_33_9145.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016300678253173828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21909447, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02293539047241211 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711365, 'mtr_portfolio_id': 21907627, 'dashboard_result_id': 9757528, '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_P21907627_31-03-2025_14_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907640, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711365, 'mtr_portfolio_id': 21908086, 'dashboard_result_id': 9757529, '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_P21908086_31-03-2025_14_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908099, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711365, 'mtr_portfolio_id': 21908892, 'dashboard_result_id': 9757530, '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_P21908892_31-03-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908922, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711365, 'mtr_portfolio_id': 21909447, 'dashboard_result_id': 9757531, '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_P21909447_31-03-2025_14_39_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21909451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21909452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21909453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21909454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21909455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21909456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21909457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21909458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21909459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21909460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21909461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21909462, '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 = 21907627 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': 2708999, 'mtr_portfolio_id': 21907627, 'created_at': datetime.datetime(2025, 3, 31, 14, 5, 31), 'result': '0.07949287031517037', 'result_long': None, 'result_double': None}] Qualite : 0.07949287031517037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21907627 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21907627_31-03-2025_14_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21907627 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_P21907627_31-03-2025_14_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907640, 'pht': 3726}}" where mtr_portfolio_id = 21907627 and dashboard_run_id = 1711365 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`=21907627 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9757528, 0.07949287031517037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21907627_31-03-2025_14_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907640, '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 = 21908086 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': 2709061, 'mtr_portfolio_id': 21908086, 'created_at': datetime.datetime(2025, 3, 31, 14, 17, 1), 'result': '0.03995046359869548', 'result_long': None, 'result_double': None}] Qualite : 0.03995046359869548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21908086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908086_31-03-2025_14_17_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21908086 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_P21908086_31-03-2025_14_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908099, 'pht': 3726}}" where mtr_portfolio_id = 21908086 and dashboard_run_id = 1711365 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`=21908086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9757529, 0.03995046359869548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908086_31-03-2025_14_17_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908099, '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 = 21908892 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': 2709111, 'mtr_portfolio_id': 21908892, 'created_at': datetime.datetime(2025, 3, 31, 14, 33), 'result': '0.042700684942732686', 'result_long': None, 'result_double': None}] Qualite : 0.042700684942732686 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21908892 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908892_31-03-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21908892 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_P21908892_31-03-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908922, 'pht': 3726}}" where mtr_portfolio_id = 21908892 and dashboard_run_id = 1711365 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`=21908892 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9757530, 0.042700684942732686, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908892_31-03-2025_14_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908911, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908913, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908915, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908918, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908919, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908922, '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 = 21909447 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': 2709164, 'mtr_portfolio_id': 21909447, 'created_at': datetime.datetime(2025, 3, 31, 14, 41, 28), 'result': '0.04056487232357842', 'result_long': None, 'result_double': None}] Qualite : 0.04056487232357842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21909447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21909447_31-03-2025_14_41_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21909447 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_P21909447_31-03-2025_14_41_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21909451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21909452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21909453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21909454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21909455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21909456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21909457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21909458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21909459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21909460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21909461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21909462, 'pht': 3726}}" where mtr_portfolio_id = 21909447 and dashboard_run_id = 1711365 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`=21909447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9757531, 0.04056487232357842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21909447_31-03-2025_14_41_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21909451, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21909452, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21909453, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21909454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21909455, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21909456, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21909457, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21909458, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21909459, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21909460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21909461, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21909462, '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 (21907627,21908086,21908892,21909447) result : ((1349003410,), (1349003442,), (1349003445,), (1349003449,), (1349003514,), (1349003516,), (1349003534,), (1349003605,), (1349003613,), (1349003695,), (1349003707,), (1349003750,), (1349003753,), (1349003957,), (1349003960,), (1349003965,), (1349003970,), (1349004018,), (1349004020,), (1349004022,), (1349004024,), (1349004027,), (1349004054,), (1349004058,), (1349004063,), (1349004070,), (1349004104,), (1349004107,), (1349004110,), (1349004113,), (1349004117,), (1349004142,), (1349004146,), (1349004150,), (1349004153,), (1349004161,), (1349004164,), (1349004192,), (1349004202,), (1349004204,), (1349004209,), (1349004213,), (1349004237,), (1349004242,), (1349004480,), (1349004532,), (1349004584,), (1349004637,), (1349005507,), (1349005543,), (1349005594,), (1349005647,), (1349005707,), (1349005771,), (1349005911,), (1349005995,), (1349006485,), (1349006321,), (1349006350,), (1349006386,), (1349006423,), (1349006454,), (1349006586,), (1349006604,), (1349006611,), (1349006632,), (1349006678,), (1349006779,), (1349006785,), (1349006792,), (1349006797,), (1349006804,), (1349006834,), (1349006935,), (1349006940,), (1349006965,), (1349006973,), (1349006992,), (1349007098,), (1349007123,), (1349007132,), (1349007138,), (1349007151,), (1349007162,), (1349007258,), (1349007262,), (1349007281,), (1349007359,), (1349007362,), (1349007366,), (1349007372,), (1349007377,), (1349007529,), (1349007535,), (1349007548,), (1349007551,), (1349007559,), (1349007568,), (1349007646,), (1349007649,), (1349007863,), (1349007887,), (1349007903,), (1349007910,), (1349007922,), (1349007985,), (1349007987,), (1349007993,), (1349007997,), (1349008039,), (1349008041,), (1349008044,), (1349008307,), (1349008329,), (1349008410,), (1349008543,), (1349008498,), (1349008516,), (1349008680,), (1349008688,), (1349008694,), (1349008698,), (1349009042,), (1349009135,), (1349009153,), (1349009158,), (1349009178,), (1349009314,), (1349009318,), (1349009322,), (1349009325,), (1349009329,), (1349009332,), (1349009377,), (1349009379,), (1349009383,), (1349009387,), (1349009429,), (1349009484,), (1349009742,), (1349009760,), (1349009785,), (1349009929,), (1349009933,), (1349009936,), (1349009941,), (1349009948,), (1349009957,), (1349010008,), (1349010011,), (1349010015,), (1349010019,), (1349010024,), (1349010046,), (1349010050,), (1349010057,), (1349010067,), (1349010098,), (1349010102,), (1349010108,), (1349010112,), (1349010118,), (1349010162,), (1349010180,), (1349010187,), (1349010190,), (1349010194,), (1349010226,), (1349010247,), (1349010258,), (1349010424,), (1349010470,), (1349010476,), (1349010481,), (1349010486,), (1349010588,), (1349010591,), (1349010593,), (1349010601,), (1349010634,), (1349010777,), (1349010781,), (1349010784,), (1349010847,), (1349010826,), (1349010829,), (1349010832,), (1349010836,), (1349010839,), (1349010891,), (1349010893,), (1349010895,), (1349010912,), (1349010921,), (1349010929,), (1349011048,), (1349011050,), (1349011080,), (1349011161,), (1349011166,), (1349011170,), (1349011173,), (1349011202,), (1349011206,), (1349011209,), (1349011215,), (1349011224,), (1349011314,), (1349011338,), (1349011354,), (1349011366,), (1349011401,), (1349011406,), (1349011410,), (1349011417,), (1349011424,), (1349011506,), (1349011510,), (1349011533,), (1349011539,), (1349011560,), (1349011627,), (1349011631,), (1349011635,), (1349011734,), (1349011736,), (1349011739,), (1349011742,), (1349011747,), (1349011753,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21909447]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] map_info['map_portfolio_photo'] : {21909447: [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506, 1349011424, 1349011417, 1349011410, 1349011406, 1349011401, 1349011366, 1349011354, 1349011338, 1349011314, 1349011224, 1349011215, 1349011209, 1349011206, 1349011202, 1349011173, 1349011170, 1349011166, 1349011161, 1349011080, 1349011050, 1349011048, 1349010929, 1349010921, 1349010912, 1349010895, 1349010893, 1349010891, 1349010839, 1349010836, 1349010832, 1349010829, 1349010826]} final : True mtd_id 4302 list_pids : [1349011753, 1349011747, 1349011742, 1349011739, 1349011736, 1349011734, 1349011635, 1349011631, 1349011627, 1349011560, 1349011539, 1349011533, 1349011510, 1349011506] Looping around the photos to save general results len do output : 1 /21909447Didn'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, '2709164') ('4302', '21909447', '1349011753', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164') ('4302', None, None, None, None, None, None, None, '2709164') ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21909447', 'None', None, None, None, None, '2709164'), ('4302', '21909447', '1349011753', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011747', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011742', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011739', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011736', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011734', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011635', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011631', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011627', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011560', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011539', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011533', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011510', None, None, None, None, None, '2709164'), ('4302', '21909447', '1349011506', None, None, None, None, None, '2709164')] time used for this insertion : 0.014904260635375977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35022497177124023 time spend to save output : 0.015204191207885742 total time spend for step 5 : 0.365429162979126 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 (2709164) 2.42user 2.28system 0:08.22elapsed 57%CPU (0avgtext+0avgdata 159928maxresident)k 44728inputs+11552outputs (156major+77186minor)pagefaults 0swaps