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 : 2534810 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 (2799742) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2799742) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739142 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2799742'] with mtr_portfolio_ids : ['22739142'] and first list_photo_ids : [] new path : /proc/2534810/ Name: python3 Umask: 0002 State: R (running) Tgid: 2534810 Ngid: 0 Pid: 2534810 PPid: 2534809 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2534810 NSpid: 2534810 NSpgid: 2532201 NSsid: 2532201 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99684 kB VmRSS: 99684 kB RssAnon: 60200 kB RssFile: 39484 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 57 nonvoluntary_ctxt_switches: 139 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2534810', 'Ngid': '0', 'Pid': '2534810', 'PPid': '2534809', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2534810', 'NSpid': '2534810', 'NSpgid': '2532201', 'NSsid': '2532201', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99684 kB', 'VmRSS': '99684 kB', 'RssAnon': '60200 kB', 'RssFile': '39484 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '57', 'nonvoluntary_ctxt_switches': '139'} ('datou_batch_current', '2534810', '1107228', '0', '1107228', '865976', '99684', b'', 'marlene', '2799742') 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 (22739142) 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 (2799742 ) ) 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 (22739142) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356504758, 'portfolio_id': 22739142}, {'photo_id': 1356504756, 'portfolio_id': 22739142}, {'photo_id': 1356504755, 'portfolio_id': 22739142}, {'photo_id': 1356504709, 'portfolio_id': 22739142}, {'photo_id': 1356504706, 'portfolio_id': 22739142}, {'photo_id': 1356504703, 'portfolio_id': 22739142}, {'photo_id': 1356504699, 'portfolio_id': 22739142}, {'photo_id': 1356504694, 'portfolio_id': 22739142}, {'photo_id': 1356504691, 'portfolio_id': 22739142}, {'photo_id': 1356504542, 'portfolio_id': 22739142}, {'photo_id': 1356504516, 'portfolio_id': 22739142}, {'photo_id': 1356504482, 'portfolio_id': 22739142}, {'photo_id': 1356504455, 'portfolio_id': 22739142}, {'photo_id': 1356504428, 'portfolio_id': 22739142}, {'photo_id': 1356504066, 'portfolio_id': 22739142}, {'photo_id': 1356504039, 'portfolio_id': 22739142}, {'photo_id': 1356504009, 'portfolio_id': 22739142}, {'photo_id': 1356503756, 'portfolio_id': 22739142}, {'photo_id': 1356503752, 'portfolio_id': 22739142}, {'photo_id': 1356503748, 'portfolio_id': 22739142}, {'photo_id': 1356503618, 'portfolio_id': 22739142}, {'photo_id': 1356503614, 'portfolio_id': 22739142}, {'photo_id': 1356503578, 'portfolio_id': 22739142}, {'photo_id': 1356503576, 'portfolio_id': 22739142}, {'photo_id': 1356503239, 'portfolio_id': 22739142}, {'photo_id': 1356503233, 'portfolio_id': 22739142}, {'photo_id': 1356503217, 'portfolio_id': 22739142}, {'photo_id': 1356503186, 'portfolio_id': 22739142}, {'photo_id': 1356503123, 'portfolio_id': 22739142}] map_portfolio_id_photo_id: {22739142: [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691, 1356504542, 1356504516, 1356504482, 1356504455, 1356504428, 1356504066, 1356504039, 1356504009, 1356503756, 1356503752, 1356503748, 1356503618, 1356503614, 1356503578, 1356503576, 1356503239, 1356503233, 1356503217, 1356503186, 1356503123]} ##### 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.015372991561889648 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue May 6 23:38:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22739142) 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 : 22739142 get user id for portfolio 22739142 get sub ptf for main ptf 22739142, type 3726 and hashtags ['cartonnette', 'flou', 'autre_refus', 'kraft', 'metal', 'Teint_Dans_La_Masse', 'plastique', 'papier', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'environnement'] 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`=22739142 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','metal','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_gris','Carton_brun','environnement')) 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`=22739142 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','metal','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_gris','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22739142, 'sub_port_id': 22739203, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153453, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'Carton_gris': {'main_port_id': 22739142, 'sub_port_id': 22739204, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153454, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'metal': {'main_port_id': 22739142, 'sub_port_id': 22739205, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153455, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'autre_refus': {'main_port_id': 22739142, 'sub_port_id': 22739206, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153456, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22739142, 'sub_port_id': 22739207, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153457, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'plastique': {'main_port_id': 22739142, 'sub_port_id': 22739208, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153458, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'papier': {'main_port_id': 22739142, 'sub_port_id': 22739209, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153459, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'mal_croppe': {'main_port_id': 22739142, 'sub_port_id': 22739210, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153460, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'environnement': {'main_port_id': 22739142, 'sub_port_id': 22739211, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153461, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'Carton_brun': {'main_port_id': 22739142, 'sub_port_id': 22739212, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153462, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'flou': {'main_port_id': 22739142, 'sub_port_id': 22739213, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153463, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}, 'kraft': {'main_port_id': 22739142, 'sub_port_id': 22739214, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153464, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22739203 , 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=22739142 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 (22739203) result : ((1356503892,), (1356504346,), (1356504347,), (1356504771,), (1356504857,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739204 , 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=22739142 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 (22739204) result : ((1356504335,), (1356504336,), (1356504337,), (1356504844,), (1356504846,), (1356504848,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739205 , 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=22739142 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 (22739205) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739206 , 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=22739142 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 (22739206) result : ((1356504781,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739207 , 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=22739142 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 (22739207) result : ((1356503883,), (1356503885,), (1356504292,), (1356504293,), (1356504821,), (1356504823,), (1356504825,), (1356504827,), (1356504829,), (1356504831,), (1356504833,), (1356504835,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739208 , 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=22739142 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 (22739208) result : ((1356504364,), (1356504365,), (1356504783,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739209 , 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=22739142 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 (22739209) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739210 , 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=22739142 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 (22739210) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739211 , 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=22739142 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 (22739211) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739212 , 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=22739142 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 (22739212) result : ((1356504357,), (1356504865,), (1356504867,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739213 , 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=22739142 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 (22739213) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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 22739214 , 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=22739142 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 (22739214) result : ((1356504374,), (1356504375,), (1356504376,), (1356504874,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22739142) result : ((1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) 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`=22739142 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','metal','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_gris','Carton_brun','environnement')) 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`=22739142 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','metal','Teint_Dans_La_Masse','plastique','papier','mal_croppe','Carton_gris','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22739142, 'sub_port_id': 22739215, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153465, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'Carton_gris': {'main_port_id': 22739142, 'sub_port_id': 22739216, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153466, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'metal': {'main_port_id': 22739142, 'sub_port_id': 22739217, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153467, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'autre_refus': {'main_port_id': 22739142, 'sub_port_id': 22739218, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153468, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 22739142, 'sub_port_id': 22739219, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153469, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'plastique': {'main_port_id': 22739142, 'sub_port_id': 22739220, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153470, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'papier': {'main_port_id': 22739142, 'sub_port_id': 22739221, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153471, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'mal_croppe': {'main_port_id': 22739142, 'sub_port_id': 22739222, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153472, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'environnement': {'main_port_id': 22739142, 'sub_port_id': 22739223, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153473, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'Carton_brun': {'main_port_id': 22739142, 'sub_port_id': 22739224, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153474, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'flou': {'main_port_id': 22739142, 'sub_port_id': 22739225, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153475, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 35, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}, 'kraft': {'main_port_id': 22739142, 'sub_port_id': 22739226, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15153476, 'last_updated_at': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 23, 37), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 23, 35, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739215,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739203 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739216,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739204 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739217,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739205 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739218,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739206 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739219,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739207 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739220,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739208 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739221,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739209 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739222,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739210 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739223,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739211 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739224,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739212 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739225,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739213 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22739226,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22739214 lien utilise dans velours : https://www.fotonower.com/velours/22739215,22739216,22739217,22739218,22739219,22739220,22739221,22739222,22739223,22739224,22739225,22739226?tags=cartonnette,Carton_gris,metal,autre_refus,Teint_Dans_La_Masse,plastique,papier,mal_croppe,environnement,Carton_brun,flou,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22739142]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] map_info['map_portfolio_photo'] : {22739142: [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691, 1356504542, 1356504516, 1356504482, 1356504455, 1356504428, 1356504066, 1356504039, 1356504009, 1356503756, 1356503752, 1356503748, 1356503618, 1356503614, 1356503578, 1356503576, 1356503239, 1356503233, 1356503217, 1356503186, 1356503123]} final : False mtd_id 4302 list_pids : [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] Looping around the photos to save general results len do output : 1 /22739142. 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, '2799742') ('4302', '22739142', '1356504758', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22739142', "{'cartonnette': 22739203, 'Carton_gris': 22739204, 'metal': 22739205, 'autre_refus': 22739206, 'Teint_Dans_La_Masse': 22739207, 'plastique': 22739208, 'papier': 22739209, 'mal_croppe': 22739210, 'environnement': 22739211, 'Carton_brun': 22739212, 'flou': 22739213, 'kraft': 22739214}", None, None, None, None, '2799742'), ('4302', '22739142', '1356504758', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742')] time used for this insertion : 0.016093730926513672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4585306644439697 time spend to save output : 0.016373157501220703 total time spend for step 1 : 1.4749038219451904 step2:final Tue May 6 23:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (22739142) 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 22739142 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356503239,1356503233,1356503217,1356503186,1356503123,1356503618,1356503614,1356503578,1356503576,1356503756,1356503752,1356503748,1356504066,1356504039,1356504009,1356504542,1356504516,1356504482,1356504455,1356504428,1356504709,1356504706,1356504703,1356504699,1356504694,1356504691,1356504758,1356504756,1356504755); 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([22739142]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} new output for save of step final : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] map_info['map_portfolio_photo'] : {22739142: [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691, 1356504542, 1356504516, 1356504482, 1356504455, 1356504428, 1356504066, 1356504039, 1356504009, 1356503756, 1356503752, 1356503748, 1356503618, 1356503614, 1356503578, 1356503576, 1356503239, 1356503233, 1356503217, 1356503186, 1356503123]} final : False mtd_id 4302 list_pids : [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] Looping around the photos to save general results len do output : 9 /1356504758.Didn't retrieve data . /1356504756.Didn't retrieve data . /1356504755.Didn't retrieve data . /1356504709.Didn't retrieve data . /1356504706.Didn't retrieve data . /1356504703.Didn't retrieve data . /1356504699.Didn't retrieve data . /1356504694.Didn't retrieve data . /1356504691.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, '2799742') ('4302', '22739142', '1356504758', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22739142', '1356504758', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504756', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504755', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504709', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504706', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504703', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504699', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504694', '0.028507980196190393', None, None, None, None, '2799742'), ('4302', '22739142', '1356504691', '0.028507980196190393', None, None, None, None, '2799742')] time used for this insertion : 0.013503789901733398 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06757068634033203 time spend to save output : 0.013971328735351562 total time spend for step 2 : 0.0815420150756836 step3:velours_tree Tue May 6 23:38:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22739142: [{'cartonnette': 22739203, 'Carton_gris': 22739204, 'metal': 22739205, 'autre_refus': 22739206, 'Teint_Dans_La_Masse': 22739207, 'plastique': 22739208, 'papier': 22739209, 'mal_croppe': 22739210, 'environnement': 22739211, 'Carton_brun': 22739212, 'flou': 22739213, 'kraft': 22739214}]} input_args_next_step : {22739142: ()} output_args : {22739142: [{'cartonnette': 22739203, 'Carton_gris': 22739204, 'metal': 22739205, 'autre_refus': 22739206, 'Teint_Dans_La_Masse': 22739207, 'plastique': 22739208, 'papier': 22739209, 'mal_croppe': 22739210, 'environnement': 22739211, 'Carton_brun': 22739212, 'flou': 22739213, 'kraft': 22739214}]} args : 22739142 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 : ({'cartonnette': 22739203, 'Carton_gris': 22739204, 'metal': 22739205, 'autre_refus': 22739206, 'Teint_Dans_La_Masse': 22739207, 'plastique': 22739208, 'papier': 22739209, 'mal_croppe': 22739210, 'environnement': 22739211, 'Carton_brun': 22739212, 'flou': 22739213, 'kraft': 22739214},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22739142) 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([22739142]) 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.4267001152038574 time spend to save output : 4.601478576660156e-05 total time spend for step 3 : 0.426746129989624 step4:send_mail_cod Tue May 6 23:38:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} input_args_next_step : {1356504758: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504758 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504756 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504755 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504709 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504706 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504703 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504699 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504694 depend.output_id : 0 input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ()} output_args : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',)} args : 1356504691 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 : {22739142: [{'cartonnette': 22739203, 'Carton_gris': 22739204, 'metal': 22739205, 'autre_refus': 22739206, 'Teint_Dans_La_Masse': 22739207, 'plastique': 22739208, 'papier': 22739209, 'mal_croppe': 22739210, 'environnement': 22739211, 'Carton_brun': 22739212, 'flou': 22739213, 'kraft': 22739214}]} input_args_next_step : {1356504758: ('0.028507980196190393',), 1356504756: ('0.028507980196190393',), 1356504755: ('0.028507980196190393',), 1356504709: ('0.028507980196190393',), 1356504706: ('0.028507980196190393',), 1356504703: ('0.028507980196190393',), 1356504699: ('0.028507980196190393',), 1356504694: ('0.028507980196190393',), 1356504691: ('0.028507980196190393',), 22739142: ()} output_args : {22739142: [{'cartonnette': 22739203, 'Carton_gris': 22739204, 'metal': 22739205, 'autre_refus': 22739206, 'Teint_Dans_La_Masse': 22739207, 'plastique': 22739208, 'papier': 22739209, 'mal_croppe': 22739210, 'environnement': 22739211, 'Carton_brun': 22739212, 'flou': 22739213, 'kraft': 22739214}]} args : 22739142 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 :10, first value : ('0.028507980196190393',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22739142) 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 (1356504758,1356504756,1356504755,1356504709,1356504706,1356504703,1356504699,1356504694,1356504691) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356504691 begin to download photo : 1356504699 begin to download photo : 1356504706 begin to download photo : 1356504755 begin to download photo : 1356504758 download finish for photo 1356504758 download finish for photo 1356504699 begin to download photo : 1356504703 download finish for photo 1356504706 begin to download photo : 1356504709 download finish for photo 1356504691 begin to download photo : 1356504694 download finish for photo 1356504755 begin to download photo : 1356504756 download finish for photo 1356504694 download finish for photo 1356504703 download finish for photo 1356504756 download finish for photo 1356504709 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22739142_06-05-2025_23_38_59.pdf 22739203 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=22739203 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356503892: '1746567207_3793331_1356503578_ab224bdf9f6a25499047b617c916f845_rle_crop_3787426895_0.png', 1356504346: '1746567250_1910005_1356503618_a3759b38c901d8c915dba83a6b0c0b6b_rle_crop_3787427127_0.png', 1356504347: '1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427154_0.png', 1356504771: '1746567433_1911794_1356504039_47d11ec732d1ebbc097af675b357e99d_rle_crop_3787428117_0.png', 1356504857: '1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428222_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ba7a3125fc86ceef27cec66e7b0683da_54843558.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/472f3e3e8bf1233bb3edc4093235c303_36362314.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a7bb82388a855bded1916ced0252f084_34888683.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1d424fec76af0dba49fdb5b5eb2e9429_33883858.png change filename to text .imagette227392031746567539/ imagette227392031746567539/1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428222_0.png.png imagette227392031746567539/1746567250_1910005_1356503618_a3759b38c901d8c915dba83a6b0c0b6b_rle_crop_3787427127_0.png.png imagette227392031746567539/1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427154_0.png.png imagette227392031746567539/1746567433_1911794_1356504039_47d11ec732d1ebbc097af675b357e99d_rle_crop_3787428117_0.png.png imagette227392031746567539/1746567207_3793331_1356503578_ab224bdf9f6a25499047b617c916f845_rle_crop_3787426895_0.png.png imagette227392051746567539/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4a81c08b346528d07aacc900aaf5e0dd_4476407.png imagette227392031746567539 22739205 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=22739205 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227392051746567539 22739206 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=22739206 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356504781: '1746567447_3796649_1356504066_769c893d0811c19ddd1b3ffc83931685_rle_crop_3787428127_0.png'} change filename to text .imagette227392061746567539/ imagette227392061746567539/1746567447_3796649_1356504066_769c893d0811c19ddd1b3ffc83931685_rle_crop_3787428127_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4ba2111c417d1a15082349b27c5d684f_56113491.png imagette227392061746567539 22739208 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=22739208 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356504364: '1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427163_0.png', 1356504365: '1746567250_1910005_1356503186_5fbe417d75488d73d544c4515cef8d9f_rle_crop_3787427171_0.png', 1356504783: '1746567447_3796649_1356503748_3cd433ed3d9a077d62991057ccead60e_rle_crop_3787428156_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/cb9c26ecc0fdb9d963ff88dfa34b4adb_80067137.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/32a78a30cc0c91bc430fd59215c5d218_42004433.png change filename to text .imagette227392081746567539/ imagette227392081746567539/1746567447_3796649_1356503748_3cd433ed3d9a077d62991057ccead60e_rle_crop_3787428156_0.png.png imagette227392081746567539/1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427163_0.png.png imagette227392081746567539/1746567250_1910005_1356503186_5fbe417d75488d73d544c4515cef8d9f_rle_crop_3787427171_0.png.png imagette227392101746567540/ imagette227392131746567540/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/32c9cdee1b30c020333c0eb83d414987_48169244.png imagette227392081746567539 22739210 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=22739210 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227392101746567540 22739213 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=22739213 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227392131746567540 22739214 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=22739214 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356504374: '1746567250_1910005_1356503239_179e4f412819b02daeea6fc5d283b145_rle_crop_3787427137_0.png', 1356504375: '1746567250_1910005_1356503233_13f39317db91601c7aa8aa30d5436733_rle_crop_3787427146_0.png', 1356504376: '1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427162_0.png', 1356504874: '1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428166_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/62e1e47a8a0a8865b60ea5335bf05ca9_21391708.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1dc16ac5be0e4df79d989f27bb6d29c6_73740975.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/5a9fd99d16a6cbab633c78a3f3e54ff0_88353154.png change filename to text .imagette227392141746567540/ imagette227392141746567540/1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428166_0.png.png imagette227392141746567540/1746567250_1910005_1356503239_179e4f412819b02daeea6fc5d283b145_rle_crop_3787427137_0.png.png imagette227392141746567540/1746567250_1910005_1356503233_13f39317db91601c7aa8aa30d5436733_rle_crop_3787427146_0.png.png imagette227392141746567540/1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427162_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/b71ce1b27beae6415d713d5ade88a42b_32042265.png imagette227392141746567540 22739204 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=22739204 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356504335: '1746567250_1910005_1356503618_a3759b38c901d8c915dba83a6b0c0b6b_rle_crop_3787427129_0.png', 1356504336: '1746567250_1910005_1356503186_5fbe417d75488d73d544c4515cef8d9f_rle_crop_3787427169_0.png', 1356504337: '1746567250_1910005_1356503123_6a5c30c4fdad9e1e225f587b14d7d8a7_rle_crop_3787427184_0.png', 1356504844: '1746567447_3421489_1356504455_355d41556c94628c8826c883a28c2f8d_rle_crop_3787428204_0.png', 1356504846: '1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428220_0.png', 1356504848: '1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428228_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/d4e39aa284523fbbdfca60b0aa0d1fc5_1685039.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/3e50a93480526b753775c1494a3a14dc_27691651.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/819e63869ff478303d70cae0dfb7b7f9_24595972.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a635aa92bd38e48c0740bf1750d154ea_9945937.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/c32ab57d91a2358d917d34444200e78b_37765203.png change filename to text .imagette227392041746567540/ imagette227392041746567540/1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428228_0.png.png imagette227392041746567540/1746567250_1910005_1356503618_a3759b38c901d8c915dba83a6b0c0b6b_rle_crop_3787427129_0.png.png imagette227392041746567540/1746567447_3421489_1356504455_355d41556c94628c8826c883a28c2f8d_rle_crop_3787428204_0.png.png imagette227392041746567540/1746567250_1910005_1356503186_5fbe417d75488d73d544c4515cef8d9f_rle_crop_3787427169_0.png.png imagette227392041746567540/1746567250_1910005_1356503123_6a5c30c4fdad9e1e225f587b14d7d8a7_rle_crop_3787427184_0.png.png imagette227392041746567540/1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428220_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/002a1b28df043796b4f3cb28dea9b0aa_44381775.png imagette227392041746567540 22739207 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=22739207 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356503883: '1746567207_3793331_1356503614_4ee75b34210d7c313d98058cf85c86e1_rle_crop_3787426888_0.png', 1356503885: '1746567207_3793331_1356503576_f7e44b0b591ecc1b09e86602ca9b7ee9_rle_crop_3787426914_0.png', 1356504292: '1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427158_0.png', 1356504293: '1746567250_1910005_1356503123_6a5c30c4fdad9e1e225f587b14d7d8a7_rle_crop_3787427186_0.png', 1356504821: '1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428173_0.png', 1356504823: '1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428181_0.png', 1356504825: '1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428189_0.png', 1356504827: '1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428191_0.png', 1356504829: '1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428196_0.png', 1356504831: '1746567447_3421489_1356504455_355d41556c94628c8826c883a28c2f8d_rle_crop_3787428208_0.png', 1356504833: '1746567447_3421489_1356504455_355d41556c94628c8826c883a28c2f8d_rle_crop_3787428205_0.png', 1356504835: '1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428225_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7fab6eaae05ab6224cbd969e26a3ba28_26056538.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/6bb5187483d6223f3996aa82c70d6ce7_44079952.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/832139b41205740b0d039a85a58c71a4_40668300.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/0bd8ce800ee2cdadf08c4f78978fa3a6_12838966.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/e4833a29468aeff362fbb5df554de824_72968817.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7f595a692ed4ec7abee28c2c90958535_66424941.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/c8da409624dbeaf8e4ac1a4b4a454151_62029490.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/0dabf091ca8272f24b5abd0049d8af7d_73923633.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/b2bf06c58a8f97085c00adcabcfaf788_11346065.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/c497b6a3a99d1eda27d2524c9599d944_67083638.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/8ad822b94faffc076f16585925c52187_65349393.png change filename to text .imagette227392071746567540/ imagette227392071746567540/1746567207_3793331_1356503614_4ee75b34210d7c313d98058cf85c86e1_rle_crop_3787426888_0.png.png imagette227392071746567540/1746567250_1910005_1356503123_6a5c30c4fdad9e1e225f587b14d7d8a7_rle_crop_3787427186_0.png.png imagette227392071746567540/1746567447_3421489_1356504428_5326d6786bf5d5cae1a1048a898a7cd8_rle_crop_3787428225_0.png.png imagette227392071746567540/1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428181_0.png.png imagette227392071746567540/1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428196_0.png.png imagette227392071746567540/1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428173_0.png.png imagette227392071746567540/1746567250_1910005_1356503217_a8c033f94a7a229bca6c2ea0b42d14d8_rle_crop_3787427158_0.png.png imagette227392071746567540/1746567207_3793331_1356503576_f7e44b0b591ecc1b09e86602ca9b7ee9_rle_crop_3787426914_0.png.png imagette227392071746567540/1746567447_3421489_1356504455_355d41556c94628c8826c883a28c2f8d_rle_crop_3787428208_0.png.png imagette227392071746567540/1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428189_0.png.png imagette227392071746567540/1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428191_0.png.png imagette227392071746567540/1746567447_3421489_1356504455_355d41556c94628c8826c883a28c2f8d_rle_crop_3787428205_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ff274fadd4238c646ed79c413c31ccc9_76896607.png imagette227392071746567540 22739212 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=22739212 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356504357: '1746567250_1910005_1356503123_6a5c30c4fdad9e1e225f587b14d7d8a7_rle_crop_3787427187_0.png', 1356504865: '1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428167_0.png', 1356504867: '1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428192_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/097f9220795018cdf1a2e4ad1ab97d86_91014216.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/13fb14d9bf204588ccbc12e0b69a3146_48468654.png change filename to text .imagette227392121746567541/ imagette227392121746567541/1746567447_3421489_1356504482_87155fa0666647a80434ef14f0c6934c_rle_crop_3787428192_0.png.png imagette227392121746567541/1746567447_3421489_1356504516_85f638f255161590df686a358399c620_rle_crop_3787428167_0.png.png imagette227392121746567541/1746567250_1910005_1356503123_6a5c30c4fdad9e1e225f587b14d7d8a7_rle_crop_3787427187_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/e036fcd27f25bec6d697a9f3939bc861_33909364.png imagette227392121746567541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22739142 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22739215,22739216,22739217,22739218,22739219,22739220,22739221,22739222,22739223,22739224,22739225,22739226?tags=cartonnette,Carton_gris,metal,autre_refus,Teint_Dans_La_Masse,plastique,papier,mal_croppe,environnement,Carton_brun,flou,kraft your option no_mail is active, we will not send the real mail to your client args[1356504758] : ('0.028507980196190393',) no score found for photo 1356504758 We are sending mail with results at report@fotonower.com args[1356504756] : ('0.028507980196190393',) no score found for photo 1356504756 We are sending mail with results at report@fotonower.com args[1356504755] : ('0.028507980196190393',) no score found for photo 1356504755 We are sending mail with results at report@fotonower.com args[1356504709] : ('0.028507980196190393',) no score found for photo 1356504709 We are sending mail with results at report@fotonower.com args[1356504706] : ('0.028507980196190393',) no score found for photo 1356504706 We are sending mail with results at report@fotonower.com args[1356504703] : ('0.028507980196190393',) no score found for photo 1356504703 We are sending mail with results at report@fotonower.com args[1356504699] : ('0.028507980196190393',) no score found for photo 1356504699 We are sending mail with results at report@fotonower.com args[1356504694] : ('0.028507980196190393',) no score found for photo 1356504694 We are sending mail with results at report@fotonower.com args[1356504691] : ('0.028507980196190393',) no score found for photo 1356504691 We are sending mail with results at report@fotonower.com refus_total : 0.028507980196190393 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=22739142 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_P22739142_06-05-2025_23_38_59.pdf results_Auto_P22739142_06-05-2025_23_38_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_38_59.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','22739142','results_Auto_P22739142_06-05-2025_23_38_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_38_59.pdf','pdf','','0.17','0.028507980196190393') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22739142]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] map_info['map_portfolio_photo'] : {22739142: [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691, 1356504542, 1356504516, 1356504482, 1356504455, 1356504428, 1356504066, 1356504039, 1356504009, 1356503756, 1356503752, 1356503748, 1356503618, 1356503614, 1356503578, 1356503576, 1356503239, 1356503233, 1356503217, 1356503186, 1356503123]} final : False mtd_id 4302 list_pids : [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] 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, '2799742') ('4302', '22739142', '1356504758', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22739142', '1356504758', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742')] time used for this insertion : 0.013944864273071289 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0770857334136963 time spend to save output : 0.014155864715576172 total time spend for step 4 : 3.0912415981292725 step5:split_time_score Tue May 6 23:39:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22739142'] 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 : [('22739142',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22739142) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356504758: {'path': 'temp/1746567539_2534810_1356504758_795a59b9949cd824aea85f3db577a4d1.jpg', 'extension': 'jpg'}, 1356504691: {'path': 'temp/1746567539_2534810_1356504691_deb9b773e1e0c193df79be4b5854d32c.jpg', 'extension': 'jpg'}, 1356504694: {'path': 'temp/1746567539_2534810_1356504694_7bd6d9b24cc70a2432092c744de0f6a7.jpg', 'extension': 'jpg'}, 1356504699: {'path': 'temp/1746567539_2534810_1356504699_747077bf7e589430911ce6ec7c2a101c.jpg', 'extension': 'jpg'}, 1356504703: {'path': 'temp/1746567539_2534810_1356504703_8bde224ba745a32f71eab6d495b3d748.jpg', 'extension': 'jpg'}, 1356504755: {'path': 'temp/1746567539_2534810_1356504755_6ee7c71e21abd8d27c3b1fb6f0f2f40a.jpg', 'extension': 'jpg'}, 1356504756: {'path': 'temp/1746567539_2534810_1356504756_3a70863c6c9d3df9546830955c6915d0.jpg', 'extension': 'jpg'}, 1356504706: {'path': 'temp/1746567539_2534810_1356504706_eedba8c659027b70f0acb778910efd16.jpg', 'extension': 'jpg'}, 1356504709: {'path': 'temp/1746567539_2534810_1356504709_c97aa4e0df82d267077f80b7af8b5000.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 = 22739142; (('arc_en_ciel_jrm_live',),) 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 = 22739142 group by h (('23', 29),) 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=22739142 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 (22739142) 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 (22739142) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06052025 22739142 Nombre de photos uploadées : 29 / 23040 (0%) 06052025 22739142 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 06052025 22739142 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1356503239, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/179e4f412819b02daeea6fc5d283b145.jpg', 'username': None, 'uploaded_at': 1746567067, 'text': 'image_06052025_23_30_04_009129m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356503233, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/13f39317db91601c7aa8aa30d5436733.jpg', 'username': None, 'uploaded_at': 1746567067, 'text': 'image_06052025_23_30_14_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356503217, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a8c033f94a7a229bca6c2ea0b42d14d8.jpg', 'username': None, 'uploaded_at': 1746567067, 'text': 'image_06052025_23_30_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356503186, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/5fbe417d75488d73d544c4515cef8d9f.jpg', 'username': None, 'uploaded_at': 1746567067, 'text': 'image_06052025_23_30_34_010140m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 9.5367431640625e-07 elapsed_time : order_list_meta_photo_and_scores 3.5762786865234375e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008890628814697266 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 22739142, '2025-05-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1777201,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02395486831665039 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= 1777201 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1777201, 'dashboard_run_id': 1788262, 'mtr_portfolio_id': 22736253, 'dashboard_result_id': 10355541, '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_P22736253_06-05-2025_23_04_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22736260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22736261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22736262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22736263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22736264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22736265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22736266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22736267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22736268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22736269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22736270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22736271, 'pht': 3726}}"}, {'dashboat_entry_day': 1777201, 'dashboard_run_id': 1788262, 'mtr_portfolio_id': 22737346, 'dashboard_result_id': 10355542, '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_P22737346_06-05-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22737422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22737423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22737424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22737425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22737426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22737427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22737428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22737429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22737430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22737431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22737432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22737433, 'pht': 3726}}"}, {'dashboat_entry_day': 1777201, 'dashboard_run_id': 1788262, 'mtr_portfolio_id': 22738129, 'dashboard_result_id': 10355543, '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_P22738129_06-05-2025_23_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22738204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22738205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22738206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22738207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22738208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22738209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22738210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22738211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22738212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22738213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22738214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22738215, 'pht': 3726}}"}, {'dashboat_entry_day': 1777201, 'dashboard_run_id': 1788262, 'mtr_portfolio_id': 22739142, 'dashboard_result_id': 10355544, '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_P22739142_06-05-2025_23_37_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739214, '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 = 22736253 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': 2799570, 'mtr_portfolio_id': 22736253, 'created_at': datetime.datetime(2025, 5, 6, 23, 4, 58), 'result': '0.029851973943089347', 'result_long': None, 'result_double': None}] Qualite : 0.029851973943089347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22736253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22736253_06-05-2025_23_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22736253 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_P22736253_06-05-2025_23_04_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22736260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22736261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22736262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22736263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22736264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22736265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22736266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22736267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22736268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22736269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22736270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22736271, 'pht': 3726}}" where mtr_portfolio_id = 22736253 and dashboard_run_id = 1788262 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`=22736253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10355541, 0.029851973943089347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22736253_06-05-2025_23_04_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22736260, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22736261, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22736262, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22736263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22736264, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22736265, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22736266, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22736267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22736268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22736269, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22736270, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22736271, '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 = 22737346 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': 2799644, 'mtr_portfolio_id': 22737346, 'created_at': datetime.datetime(2025, 5, 6, 23, 18, 57), 'result': '0.050240377798854624', 'result_long': None, 'result_double': None}] Qualite : 0.050240377798854624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22737346 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22737346_06-05-2025_23_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22737346 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_P22737346_06-05-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22737422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22737423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22737424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22737425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22737426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22737427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22737428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22737429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22737430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22737431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22737432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22737433, 'pht': 3726}}" where mtr_portfolio_id = 22737346 and dashboard_run_id = 1788262 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`=22737346 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10355542, 0.050240377798854624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22737346_06-05-2025_23_18_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22737422, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22737423, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22737424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22737425, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22737426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22737427, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22737428, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22737429, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22737430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22737431, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22737432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22737433, '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 = 22738129 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': 2799689, 'mtr_portfolio_id': 22738129, 'created_at': datetime.datetime(2025, 5, 6, 23, 34, 58), 'result': '0.04109289286420502', 'result_long': None, 'result_double': None}] Qualite : 0.04109289286420502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22738129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22738129_06-05-2025_23_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22738129 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_P22738129_06-05-2025_23_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22738204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22738205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22738206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22738207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22738208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22738209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22738210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22738211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22738212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22738213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22738214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22738215, 'pht': 3726}}" where mtr_portfolio_id = 22738129 and dashboard_run_id = 1788262 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`=22738129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10355543, 0.04109289286420502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22738129_06-05-2025_23_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22738204, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22738205, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22738206, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22738207, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22738208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22738209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22738210, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22738211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22738212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22738213, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22738214, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22738215, '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 = 22739142 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': 2799742, 'mtr_portfolio_id': 22739142, 'created_at': datetime.datetime(2025, 5, 6, 23, 38, 58), 'result': '0.028507980196190393', 'result_long': None, 'result_double': None}] Qualite : 0.028507980196190393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22739142 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22739142 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_P22739142_06-05-2025_23_38_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739214, 'pht': 3726}}" where mtr_portfolio_id = 22739142 and dashboard_run_id = 1788262 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`=22739142 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10355544, 0.028507980196190393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22739142_06-05-2025_23_38_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22739203, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22739204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22739205, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22739206, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22739207, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22739208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22739209, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22739210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22739211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22739212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22739213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22739214, '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 (22736253,22737346,22738129,22739142) result : ((1356483353,), (1356483402,), (1356483409,), (1356483414,), (1356483866,), (1356483924,), (1356483979,), (1356484030,), (1356484086,), (1356484161,), (1356484513,), (1356484542,), (1356484570,), (1356484600,), (1356484629,), (1356484659,), (1356484785,), (1356484792,), (1356484822,), (1356486449,), (1356486526,), (1356486578,), (1356486647,), (1356486730,), (1356487553,), (1356487565,), (1356487617,), (1356487814,), (1356487848,), (1356487879,), (1356487919,), (1356488066,), (1356488196,), (1356488552,), (1356488581,), (1356488615,), (1356488676,), (1356488704,), (1356489194,), (1356489249,), (1356489303,), (1356489335,), (1356489363,), (1356489606,), (1356489627,), (1356489654,), (1356489682,), (1356489708,), (1356490151,), (1356490231,), (1356490303,), (1356490380,), (1356490462,), (1356491874,), (1356491902,), (1356491934,), (1356491956,), (1356491963,), (1356492312,), (1356492245,), (1356492269,), (1356492288,), (1356492293,), (1356492395,), (1356492400,), (1356492405,), (1356492410,), (1356492461,), (1356492466,), (1356492488,), (1356492492,), (1356492556,), (1356492564,), (1356492581,), (1356492602,), (1356492655,), (1356492687,), (1356492956,), (1356492995,), (1356493051,), (1356493114,), (1356493145,), (1356493361,), (1356493364,), (1356493368,), (1356493373,), (1356494460,), (1356494462,), (1356494474,), (1356495125,), (1356495152,), (1356495188,), (1356495513,), (1356495879,), (1356495882,), (1356495885,), (1356495887,), (1356495888,), (1356495926,), (1356495929,), (1356495931,), (1356495968,), (1356496051,), (1356496150,), (1356496175,), (1356496179,), (1356496181,), (1356496380,), (1356496412,), (1356496440,), (1356496466,), (1356496520,), (1356496710,), (1356496890,), (1356496920,), (1356496948,), (1356497282,), (1356497149,), (1356497175,), (1356497223,), (1356497256,), (1356497279,), (1356497384,), (1356497387,), (1356497389,), (1356497391,), (1356497392,), (1356497396,), (1356497487,), (1356497488,), (1356497502,), (1356497599,), (1356497602,), (1356497605,), (1356497607,), (1356498601,), (1356498630,), (1356498664,), (1356498848,), (1356498893,), (1356498968,), (1356499519,), (1356499573,), (1356499613,), (1356499658,), (1356499695,), (1356499924,), (1356499925,), (1356499927,), (1356499929,), (1356500006,), (1356500009,), (1356500011,), (1356500027,), (1356500060,), (1356500094,), (1356500430,), (1356500480,), (1356500529,), (1356500559,), (1356500588,), (1356500788,), (1356500792,), (1356501027,), (1356501058,), (1356501089,), (1356501432,), (1356501482,), (1356501525,), (1356501539,), (1356501542,), (1356501981,), (1356502056,), (1356502117,), (1356502170,), (1356502214,), (1356502751,), (1356502792,), (1356502794,), (1356502797,), (1356502800,), (1356502804,), (1356502904,), (1356502932,), (1356503266,), (1356503123,), (1356503186,), (1356503217,), (1356503233,), (1356503239,), (1356503576,), (1356503578,), (1356503614,), (1356503618,), (1356503748,), (1356503752,), (1356503756,), (1356504009,), (1356504039,), (1356504066,), (1356504428,), (1356504455,), (1356504482,), (1356504516,), (1356504542,), (1356504691,), (1356504694,), (1356504699,), (1356504703,), (1356504706,), (1356504709,), (1356504755,), (1356504756,), (1356504758,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06052025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22739142]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] map_info['map_portfolio_photo'] : {22739142: [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691, 1356504542, 1356504516, 1356504482, 1356504455, 1356504428, 1356504066, 1356504039, 1356504009, 1356503756, 1356503752, 1356503748, 1356503618, 1356503614, 1356503578, 1356503576, 1356503239, 1356503233, 1356503217, 1356503186, 1356503123]} final : True mtd_id 4302 list_pids : [1356504758, 1356504756, 1356504755, 1356504709, 1356504706, 1356504703, 1356504699, 1356504694, 1356504691] Looping around the photos to save general results len do output : 1 /22739142Didn'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, '2799742') ('4302', '22739142', '1356504758', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742') ('4302', None, None, None, None, None, None, None, '2799742') ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22739142', 'None', None, None, None, None, '2799742'), ('4302', '22739142', '1356504758', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504756', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504755', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504709', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504706', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504703', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504699', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504694', None, None, None, None, None, '2799742'), ('4302', '22739142', '1356504691', None, None, None, None, None, '2799742')] time used for this insertion : 0.015942096710205078 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34990882873535156 time spend to save output : 0.016125202178955078 total time spend for step 5 : 0.36603403091430664 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 (2799742) 2.04user 2.65system 0:08.16elapsed 57%CPU (0avgtext+0avgdata 160576maxresident)k 40952inputs+8576outputs (179major+64530minor)pagefaults 0swaps