python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 2040550 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 (2659085) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2659085) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300708 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2659085'] with mtr_portfolio_ids : ['21300708'] and first list_photo_ids : [] new path : /proc/2040550/ Name: python3 Umask: 0002 State: R (running) Tgid: 2040550 Ngid: 0 Pid: 2040550 PPid: 2040549 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2040550 NSpid: 2040550 NSpgid: 2039642 NSsid: 2039642 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98056 kB VmRSS: 98056 kB RssAnon: 59764 kB RssFile: 38292 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 1/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: 54 nonvoluntary_ctxt_switches: 94 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2040550', 'Ngid': '0', 'Pid': '2040550', 'PPid': '2040549', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2040550', 'NSpid': '2040550', 'NSpgid': '2039642', 'NSsid': '2039642', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98056 kB', 'VmRSS': '98056 kB', 'RssAnon': '59764 kB', 'RssFile': '38292 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '1/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': '54', 'nonvoluntary_ctxt_switches': '94'} ('datou_batch_current', '2040550', '1106844', '0', '1106844', '865592', '98056', b'', 'marlene', '2659085') 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 (21300708) 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 (2659085 ) ) 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 (21300708) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343139674, 'portfolio_id': 21300708}, {'photo_id': 1343139671, 'portfolio_id': 21300708}, {'photo_id': 1343139667, 'portfolio_id': 21300708}, {'photo_id': 1343139661, 'portfolio_id': 21300708}, {'photo_id': 1343139642, 'portfolio_id': 21300708}, {'photo_id': 1343139629, 'portfolio_id': 21300708}, {'photo_id': 1343139329, 'portfolio_id': 21300708}, {'photo_id': 1343139325, 'portfolio_id': 21300708}, {'photo_id': 1343139310, 'portfolio_id': 21300708}, {'photo_id': 1343139306, 'portfolio_id': 21300708}, {'photo_id': 1343139257, 'portfolio_id': 21300708}, {'photo_id': 1343138722, 'portfolio_id': 21300708}, {'photo_id': 1343138695, 'portfolio_id': 21300708}, {'photo_id': 1343138662, 'portfolio_id': 21300708}, {'photo_id': 1343138613, 'portfolio_id': 21300708}, {'photo_id': 1343138510, 'portfolio_id': 21300708}, {'photo_id': 1343138120, 'portfolio_id': 21300708}, {'photo_id': 1343138095, 'portfolio_id': 21300708}, {'photo_id': 1343138082, 'portfolio_id': 21300708}, {'photo_id': 1343138074, 'portfolio_id': 21300708}, {'photo_id': 1343138066, 'portfolio_id': 21300708}, {'photo_id': 1343138024, 'portfolio_id': 21300708}, {'photo_id': 1343138022, 'portfolio_id': 21300708}, {'photo_id': 1343138019, 'portfolio_id': 21300708}, {'photo_id': 1343138014, 'portfolio_id': 21300708}, {'photo_id': 1343138010, 'portfolio_id': 21300708}, {'photo_id': 1343138002, 'portfolio_id': 21300708}, {'photo_id': 1343137907, 'portfolio_id': 21300708}, {'photo_id': 1343137881, 'portfolio_id': 21300708}, {'photo_id': 1343137852, 'portfolio_id': 21300708}, {'photo_id': 1343137842, 'portfolio_id': 21300708}, {'photo_id': 1343137385, 'portfolio_id': 21300708}, {'photo_id': 1343137325, 'portfolio_id': 21300708}, {'photo_id': 1343137271, 'portfolio_id': 21300708}, {'photo_id': 1343137252, 'portfolio_id': 21300708}] map_portfolio_id_photo_id: {21300708: [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257, 1343138722, 1343138695, 1343138662, 1343138613, 1343138510, 1343138120, 1343138095, 1343138082, 1343138074, 1343138066, 1343138024, 1343138022, 1343138019, 1343138014, 1343138010, 1343138002, 1343137907, 1343137881, 1343137852, 1343137842, 1343137385, 1343137325, 1343137271, 1343137252]} ##### 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.018682241439819336 #### 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 Mar 11 18:23:30 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 (21300708) 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 : 21300708 get user id for portfolio 21300708 get sub ptf for main ptf 21300708, type 3726 and hashtags ['Carton_gris', 'mal_croppe', 'Carton_brun', 'environnement', 'metal', 'Teint_Dans_La_Masse', 'flou', 'plastique', 'kraft', 'autre_refus', 'papier', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21300708 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','Carton_brun','environnement','metal','Teint_Dans_La_Masse','flou','plastique','kraft','autre_refus','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21300708 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','Carton_brun','environnement','metal','Teint_Dans_La_Masse','flou','plastique','kraft','autre_refus','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21300708, 'sub_port_id': 21300749, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885175, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'autre_refus': {'main_port_id': 21300708, 'sub_port_id': 21300750, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885176, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'mal_croppe': {'main_port_id': 21300708, 'sub_port_id': 21300751, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885177, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'metal': {'main_port_id': 21300708, 'sub_port_id': 21300752, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885178, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'plastique': {'main_port_id': 21300708, 'sub_port_id': 21300753, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885179, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'Carton_brun': {'main_port_id': 21300708, 'sub_port_id': 21300754, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885180, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'flou': {'main_port_id': 21300708, 'sub_port_id': 21300755, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885181, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'papier': {'main_port_id': 21300708, 'sub_port_id': 21300756, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885182, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'environnement': {'main_port_id': 21300708, 'sub_port_id': 21300757, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885183, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21300708, 'sub_port_id': 21300758, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885184, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'cartonnette': {'main_port_id': 21300708, 'sub_port_id': 21300759, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885185, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}, 'kraft': {'main_port_id': 21300708, 'sub_port_id': 21300760, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885186, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21300749 , 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=21300708 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 (21300749) result : ((1343139472,), (1343139473,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300750 , 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=21300708 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 (21300750) result : ((1343138968,), (1343138970,), (1343138972,), (1343139452,), (1343139453,), (1343139454,), (1343139455,), (1343139569,), (1343139570,), (1343139571,), (1343139572,), (1343139573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300751 , 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=21300708 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 (21300751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300752 , 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=21300708 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 (21300752) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300753 , 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=21300708 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 (21300753) result : ((1343139101,), (1343139609,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300754 , 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=21300708 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 (21300754) result : ((1343139501,), (1343139597,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300755 , 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=21300708 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 (21300755) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300756 , 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=21300708 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 (21300756) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300757 , 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=21300708 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 (21300757) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300758 , 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=21300708 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 (21300758) result : ((1343138880,), (1343138884,), (1343138885,), (1343138886,), (1343139444,), (1343139445,), (1343139447,), (1343139545,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300759 , 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=21300708 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 (21300759) result : ((1343139031,), (1343139491,), (1343139589,), (1343139590,), (1343139592,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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 21300760 , 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=21300708 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 (21300760) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21300708) result : ((1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) 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`=21300708 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','Carton_brun','environnement','metal','Teint_Dans_La_Masse','flou','plastique','kraft','autre_refus','papier','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21300708 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','mal_croppe','Carton_brun','environnement','metal','Teint_Dans_La_Masse','flou','plastique','kraft','autre_refus','papier','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21300708, 'sub_port_id': 21300761, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885187, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'autre_refus': {'main_port_id': 21300708, 'sub_port_id': 21300762, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885188, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'mal_croppe': {'main_port_id': 21300708, 'sub_port_id': 21300763, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885189, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'metal': {'main_port_id': 21300708, 'sub_port_id': 21300764, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885190, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'plastique': {'main_port_id': 21300708, 'sub_port_id': 21300765, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885191, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'Carton_brun': {'main_port_id': 21300708, 'sub_port_id': 21300766, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885192, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'flou': {'main_port_id': 21300708, 'sub_port_id': 21300767, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885193, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'papier': {'main_port_id': 21300708, 'sub_port_id': 21300768, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885194, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'environnement': {'main_port_id': 21300708, 'sub_port_id': 21300769, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885195, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 21300708, 'sub_port_id': 21300770, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885196, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'cartonnette': {'main_port_id': 21300708, 'sub_port_id': 21300771, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885197, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 19, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}, 'kraft': {'main_port_id': 21300708, 'sub_port_id': 21300772, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13885198, 'last_updated_at': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 18, 21, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 18, 19, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21300772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21300760 lien utilise dans velours : https://www.fotonower.com/velours/21300761,21300762,21300763,21300764,21300765,21300766,21300767,21300768,21300769,21300770,21300771,21300772?tags=Carton_gris,autre_refus,mal_croppe,metal,plastique,Carton_brun,flou,papier,environnement,Teint_Dans_La_Masse,cartonnette,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21300708]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] map_info['map_portfolio_photo'] : {21300708: [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257, 1343138722, 1343138695, 1343138662, 1343138613, 1343138510, 1343138120, 1343138095, 1343138082, 1343138074, 1343138066, 1343138024, 1343138022, 1343138019, 1343138014, 1343138010, 1343138002, 1343137907, 1343137881, 1343137852, 1343137842, 1343137385, 1343137325, 1343137271, 1343137252]} final : False mtd_id 4302 list_pids : [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] Looping around the photos to save general results len do output : 1 /21300708. 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, '2659085') ('4302', '21300708', '1343139674', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '21300708', "{'Carton_gris': 21300749, 'autre_refus': 21300750, 'mal_croppe': 21300751, 'metal': 21300752, 'plastique': 21300753, 'Carton_brun': 21300754, 'flou': 21300755, 'papier': 21300756, 'environnement': 21300757, 'Teint_Dans_La_Masse': 21300758, 'cartonnette': 21300759, 'kraft': 21300760}", None, None, None, None, '2659085'), ('4302', '21300708', '1343139674', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085')] time used for this insertion : 0.17725372314453125 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4684269428253174 time spend to save output : 0.17761731147766113 total time spend for step 1 : 1.6460442543029785 step2:final Tue Mar 11 18:23:31 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 (21300708) 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 21300708 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343137385,1343137325,1343137271,1343137252,1343137907,1343137881,1343137852,1343137842,1343138024,1343138022,1343138019,1343138014,1343138010,1343138002,1343138120,1343138095,1343138082,1343138074,1343138066,1343138722,1343138695,1343138662,1343138613,1343138510,1343139329,1343139325,1343139310,1343139306,1343139257,1343139674,1343139671,1343139667,1343139661,1343139642,1343139629); 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([21300708]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} new output for save of step final : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] map_info['map_portfolio_photo'] : {21300708: [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257, 1343138722, 1343138695, 1343138662, 1343138613, 1343138510, 1343138120, 1343138095, 1343138082, 1343138074, 1343138066, 1343138024, 1343138022, 1343138019, 1343138014, 1343138010, 1343138002, 1343137907, 1343137881, 1343137852, 1343137842, 1343137385, 1343137325, 1343137271, 1343137252]} final : False mtd_id 4302 list_pids : [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] Looping around the photos to save general results len do output : 11 /1343139674.Didn't retrieve data . /1343139671.Didn't retrieve data . /1343139667.Didn't retrieve data . /1343139661.Didn't retrieve data . /1343139642.Didn't retrieve data . /1343139629.Didn't retrieve data . /1343139329.Didn't retrieve data . /1343139325.Didn't retrieve data . /1343139310.Didn't retrieve data . /1343139306.Didn't retrieve data . /1343139257.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, '2659085') ('4302', '21300708', '1343139674', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '21300708', '1343139674', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139671', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139667', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139661', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139642', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139629', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139329', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139325', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139310', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139306', '0.06426012087497776', None, None, None, None, '2659085'), ('4302', '21300708', '1343139257', '0.06426012087497776', None, None, None, None, '2659085')] time used for this insertion : 0.018512725830078125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06768584251403809 time spend to save output : 0.019217967987060547 total time spend for step 2 : 0.08690381050109863 step3:velours_tree Tue Mar 11 18:23:31 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 : {21300708: [{'Carton_gris': 21300749, 'autre_refus': 21300750, 'mal_croppe': 21300751, 'metal': 21300752, 'plastique': 21300753, 'Carton_brun': 21300754, 'flou': 21300755, 'papier': 21300756, 'environnement': 21300757, 'Teint_Dans_La_Masse': 21300758, 'cartonnette': 21300759, 'kraft': 21300760}]} input_args_next_step : {21300708: ()} output_args : {21300708: [{'Carton_gris': 21300749, 'autre_refus': 21300750, 'mal_croppe': 21300751, 'metal': 21300752, 'plastique': 21300753, 'Carton_brun': 21300754, 'flou': 21300755, 'papier': 21300756, 'environnement': 21300757, 'Teint_Dans_La_Masse': 21300758, 'cartonnette': 21300759, 'kraft': 21300760}]} args : 21300708 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21300749, 'autre_refus': 21300750, 'mal_croppe': 21300751, 'metal': 21300752, 'plastique': 21300753, 'Carton_brun': 21300754, 'flou': 21300755, 'papier': 21300756, 'environnement': 21300757, 'Teint_Dans_La_Masse': 21300758, 'cartonnette': 21300759, 'kraft': 21300760},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21300708) 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([21300708]) 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.33762145042419434 time spend to save output : 6.890296936035156e-05 total time spend for step 3 : 0.3376903533935547 step4:send_mail_cod Tue Mar 11 18:23:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} input_args_next_step : {1343139674: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139674 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139671 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139667 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139661 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139642 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139629 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139329 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139325 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139310 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139306 depend.output_id : 0 input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ()} output_args : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',)} args : 1343139257 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 : {21300708: [{'Carton_gris': 21300749, 'autre_refus': 21300750, 'mal_croppe': 21300751, 'metal': 21300752, 'plastique': 21300753, 'Carton_brun': 21300754, 'flou': 21300755, 'papier': 21300756, 'environnement': 21300757, 'Teint_Dans_La_Masse': 21300758, 'cartonnette': 21300759, 'kraft': 21300760}]} input_args_next_step : {1343139674: ('0.06426012087497776',), 1343139671: ('0.06426012087497776',), 1343139667: ('0.06426012087497776',), 1343139661: ('0.06426012087497776',), 1343139642: ('0.06426012087497776',), 1343139629: ('0.06426012087497776',), 1343139329: ('0.06426012087497776',), 1343139325: ('0.06426012087497776',), 1343139310: ('0.06426012087497776',), 1343139306: ('0.06426012087497776',), 1343139257: ('0.06426012087497776',), 21300708: ()} output_args : {21300708: [{'Carton_gris': 21300749, 'autre_refus': 21300750, 'mal_croppe': 21300751, 'metal': 21300752, 'plastique': 21300753, 'Carton_brun': 21300754, 'flou': 21300755, 'papier': 21300756, 'environnement': 21300757, 'Teint_Dans_La_Masse': 21300758, 'cartonnette': 21300759, 'kraft': 21300760}]} args : 21300708 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 :12, first value : ('0.06426012087497776',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21300708) 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 (1343139674,1343139671,1343139667,1343139661,1343139642,1343139629,1343139329,1343139325,1343139310,1343139306,1343139257) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343139257 begin to download photo : 1343139325 begin to download photo : 1343139642 begin to download photo : 1343139671 download finish for photo 1343139257 begin to download photo : 1343139306 download finish for photo 1343139325 begin to download photo : 1343139329 download finish for photo 1343139642 begin to download photo : 1343139661 download finish for photo 1343139671 begin to download photo : 1343139674 download finish for photo 1343139329 begin to download photo : 1343139629 download finish for photo 1343139674 download finish for photo 1343139661 begin to download photo : 1343139667 download finish for photo 1343139629 download finish for photo 1343139667 download finish for photo 1343139306 begin to download photo : 1343139310 download finish for photo 1343139310 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 : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P21300708_11-03-2025_18_23_32.pdf 21300750 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=21300750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343138968: '1741713614_1575353_1343137907_a9ada9a974676fad7ff9b1b06a992c46_rle_crop_3706022073_0.png', 1343138970: '1741713614_1575353_1343137252_79a43f2e104dc1f5198c9a7adb1a1be4_rle_crop_3706022037_0.png', 1343138972: '1741713614_1575353_1343137252_79a43f2e104dc1f5198c9a7adb1a1be4_rle_crop_3706022039_0.png', 1343139452: '1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022362_0.png', 1343139453: '1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022616_0.png', 1343139454: '1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022626_0.png', 1343139455: '1741713632_1575636_1343137842_9269a1819f7ae2207092addae5e555b0_rle_crop_3706022845_0.png', 1343139569: '1741713651_1575909_1343138019_3376d070444831ef12984969965128a0_rle_crop_3706022833_0.png', 1343139570: '1741713651_1575909_1343138019_3376d070444831ef12984969965128a0_rle_crop_3706022834_0.png', 1343139571: '1741713651_1575909_1343138014_5bef8842bc307606d4a1dd7f98930c8c_rle_crop_3706022920_0.png', 1343139572: '1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023165_0.png', 1343139573: '1741713651_1575909_1343138002_f8da0ab5bb41ac5d6fd92f30006b4960_rle_crop_3706023384_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/52333da04696d66dd086660a26cbebce_19485128.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/872909c0b794de610e142b43a82d42e6_49153538.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b19d2ecd002fbde7ffd14a99a9cb5ff8_27593645.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ef22e9be337faabc625acef07cee4b46_94723497.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/aefdf986897e0fab3cde5e2871f61114_19807687.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/34628e6cbde48fb38eb7adcf4376bdb5_9341335.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d05dc6b7ad53bc0ef95375bd23b2ea59_60423051.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c526956a837bf8a947b99958a584c820_36352170.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/35e2fd67cf23ef9b128add9854f46fc8_78763958.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c6ac94a7ec11e45d4b7828b7a339d32f_29096805.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a62935d63f346583c51550ce717d2542_20563583.png change filename to text .imagette213007501741713812/ imagette213007501741713812/1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022362_0.png.png imagette213007501741713812/1741713614_1575353_1343137252_79a43f2e104dc1f5198c9a7adb1a1be4_rle_crop_3706022037_0.png.png imagette213007501741713812/1741713651_1575909_1343138002_f8da0ab5bb41ac5d6fd92f30006b4960_rle_crop_3706023384_0.png.png imagette213007501741713812/1741713632_1575636_1343137842_9269a1819f7ae2207092addae5e555b0_rle_crop_3706022845_0.png.png imagette213007501741713812/1741713651_1575909_1343138014_5bef8842bc307606d4a1dd7f98930c8c_rle_crop_3706022920_0.png.png imagette213007501741713812/1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022616_0.png.png imagette213007501741713812/1741713651_1575909_1343138019_3376d070444831ef12984969965128a0_rle_crop_3706022834_0.png.png imagette213007501741713812/1741713614_1575353_1343137252_79a43f2e104dc1f5198c9a7adb1a1be4_rle_crop_3706022039_0.png.png imagette213007501741713812/1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023165_0.png.png imagette213007501741713812/1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022626_0.png.png imagette213007501741713812/1741713651_1575909_1343138019_3376d070444831ef12984969965128a0_rle_crop_3706022833_0.png.png imagette213007501741713812/1741713614_1575353_1343137907_a9ada9a974676fad7ff9b1b06a992c46_rle_crop_3706022073_0.png.png imagette213007511741713813/ imagette213007521741713813/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/eb568a4b9e9251c6f8d151f8894b02eb_74150113.png imagette213007501741713812 21300751 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=21300751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213007511741713813 21300752 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=21300752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213007521741713813 21300753 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=21300753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343139101: '1741713614_1575353_1343137385_ea7c1c274d6181615a01f7fdfd831fdb_rle_crop_3706021838_0.png', 1343139609: '1741713651_1575909_1343138019_3376d070444831ef12984969965128a0_rle_crop_3706022826_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5afa9d48f4825eb4e9ffd2c04d3f409f_4371847.png change filename to text .imagette213007531741713813/ imagette213007531741713813/1741713614_1575353_1343137385_ea7c1c274d6181615a01f7fdfd831fdb_rle_crop_3706021838_0.png.png imagette213007531741713813/1741713651_1575909_1343138019_3376d070444831ef12984969965128a0_rle_crop_3706022826_0.png.png imagette213007551741713813/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/160ed4414596345fa8fbcb51e7a8aff7_52267140.png imagette213007531741713813 21300755 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=21300755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213007551741713813 21300759 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=21300759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343139031: '1741713614_1575353_1343137907_a9ada9a974676fad7ff9b1b06a992c46_rle_crop_3706022068_0.png', 1343139491: '1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022617_0.png', 1343139589: '1741713651_1575909_1343138014_5bef8842bc307606d4a1dd7f98930c8c_rle_crop_3706022917_0.png', 1343139590: '1741713651_1575909_1343138014_5bef8842bc307606d4a1dd7f98930c8c_rle_crop_3706022914_0.png', 1343139592: '1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023162_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9ed51deb6fd207662e617571306a8762_75188543.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d5474e02f9993334bdd6d191330ec8de_93937424.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/12211a5c9995f7655704acb13113afaa_96919830.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f56525b016877f5e5103e13a8122d345_33016545.png change filename to text .imagette213007591741713813/ imagette213007591741713813/1741713614_1575353_1343137907_a9ada9a974676fad7ff9b1b06a992c46_rle_crop_3706022068_0.png.png imagette213007591741713813/1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022617_0.png.png imagette213007591741713813/1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023162_0.png.png imagette213007591741713813/1741713651_1575909_1343138014_5bef8842bc307606d4a1dd7f98930c8c_rle_crop_3706022914_0.png.png imagette213007591741713813/1741713651_1575909_1343138014_5bef8842bc307606d4a1dd7f98930c8c_rle_crop_3706022917_0.png.png imagette213007601741713813/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/21e15fd2f9eac64c3781f4c6c9be6ec5_19692232.png imagette213007591741713813 21300760 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=21300760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213007601741713813 21300749 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=21300749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343139472: '1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022363_0.png', 1343139473: '1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022355_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/dfb751092c6c5208f9f38b40005dad9e_89451679.png change filename to text .imagette213007491741713813/ imagette213007491741713813/1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022363_0.png.png imagette213007491741713813/1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022355_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ea49835ea0b80af8e1edf35a47cfa3b_87416669.png imagette213007491741713813 21300754 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=21300754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343139501: '1741713632_1575636_1343137842_9269a1819f7ae2207092addae5e555b0_rle_crop_3706022846_0.png', 1343139597: '1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023163_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/22e947f08817a642f1b4536639ac3f3a_17659976.png change filename to text .imagette213007541741713813/ imagette213007541741713813/1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023163_0.png.png imagette213007541741713813/1741713632_1575636_1343137842_9269a1819f7ae2207092addae5e555b0_rle_crop_3706022846_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/79b11c67252e53506f21fc4d6b5132f0_43149759.png imagette213007541741713813 21300758 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=21300758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343138880: '1741713614_1575353_1343137907_a9ada9a974676fad7ff9b1b06a992c46_rle_crop_3706022071_0.png', 1343138884: '1741713614_1575353_1343137271_92f2fb293005268f1c8d6a38c7e04d72_rle_crop_3706022020_0.png', 1343138885: '1741713614_1575353_1343137271_92f2fb293005268f1c8d6a38c7e04d72_rle_crop_3706022016_0.png', 1343138886: '1741713614_1575353_1343137252_79a43f2e104dc1f5198c9a7adb1a1be4_rle_crop_3706022038_0.png', 1343139444: '1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022360_0.png', 1343139445: '1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022624_0.png', 1343139447: '1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022618_0.png', 1343139545: '1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023169_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/427b1ce2474b5417210d43679e9d6c24_66151463.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f6e57fdda82703a2f85f33d91e333f12_20543642.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/e19a185cb692cf9349a69ee58a52dd4d_71874466.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ff2f6dcbdeb08e0e0937447fd79a63b0_18007659.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9f76c299ec1df519d5062e59b43acc39_7946489.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/81a542d92057e971dedac73fa0d7c7a5_22301107.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/bbe9a82d9745eb5cc7bd5109dd18892b_60005512.png change filename to text .imagette213007581741713814/ imagette213007581741713814/1741713614_1575353_1343137907_a9ada9a974676fad7ff9b1b06a992c46_rle_crop_3706022071_0.png.png imagette213007581741713814/1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022618_0.png.png imagette213007581741713814/1741713614_1575353_1343137271_92f2fb293005268f1c8d6a38c7e04d72_rle_crop_3706022016_0.png.png imagette213007581741713814/1741713614_1575353_1343137271_92f2fb293005268f1c8d6a38c7e04d72_rle_crop_3706022020_0.png.png imagette213007581741713814/1741713632_1575636_1343137881_6978fbd363bd2bdce317d673c0771047_rle_crop_3706022360_0.png.png imagette213007581741713814/1741713651_1575909_1343138010_0b577f1b50addd4e805dd363d42f534e_rle_crop_3706023169_0.png.png imagette213007581741713814/1741713632_1575636_1343137852_9f01805786bbca4965b14d0ba07ec42d_rle_crop_3706022624_0.png.png imagette213007581741713814/1741713614_1575353_1343137252_79a43f2e104dc1f5198c9a7adb1a1be4_rle_crop_3706022038_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/225c998371eab3dd7cf9937565bea34f_96079463.png imagette213007581741713814 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21300708 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21300761,21300762,21300763,21300764,21300765,21300766,21300767,21300768,21300769,21300770,21300771,21300772?tags=Carton_gris,autre_refus,mal_croppe,metal,plastique,Carton_brun,flou,papier,environnement,Teint_Dans_La_Masse,cartonnette,kraft your option no_mail is active, we will not send the real mail to your client args[1343139674] : ('0.06426012087497776',) no score found for photo 1343139674 We are sending mail with results at report@fotonower.com args[1343139671] : ('0.06426012087497776',) no score found for photo 1343139671 We are sending mail with results at report@fotonower.com args[1343139667] : ('0.06426012087497776',) no score found for photo 1343139667 We are sending mail with results at report@fotonower.com args[1343139661] : ('0.06426012087497776',) no score found for photo 1343139661 We are sending mail with results at report@fotonower.com args[1343139642] : ('0.06426012087497776',) no score found for photo 1343139642 We are sending mail with results at report@fotonower.com args[1343139629] : ('0.06426012087497776',) no score found for photo 1343139629 We are sending mail with results at report@fotonower.com args[1343139329] : ('0.06426012087497776',) no score found for photo 1343139329 We are sending mail with results at report@fotonower.com args[1343139325] : ('0.06426012087497776',) no score found for photo 1343139325 We are sending mail with results at report@fotonower.com args[1343139310] : ('0.06426012087497776',) no score found for photo 1343139310 We are sending mail with results at report@fotonower.com args[1343139306] : ('0.06426012087497776',) no score found for photo 1343139306 We are sending mail with results at report@fotonower.com args[1343139257] : ('0.06426012087497776',) no score found for photo 1343139257 We are sending mail with results at report@fotonower.com refus_total : 0.06426012087497776 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=21300708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'autre_refus' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21300708]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] map_info['map_portfolio_photo'] : {21300708: [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257, 1343138722, 1343138695, 1343138662, 1343138613, 1343138510, 1343138120, 1343138095, 1343138082, 1343138074, 1343138066, 1343138024, 1343138022, 1343138019, 1343138014, 1343138010, 1343138002, 1343137907, 1343137881, 1343137852, 1343137842, 1343137385, 1343137325, 1343137271, 1343137252]} final : False mtd_id 4302 list_pids : [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] 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, '2659085') ('4302', '21300708', '1343139674', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '21300708', '1343139674', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085')] time used for this insertion : 0.3686501979827881 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4701809883117676 time spend to save output : 0.36891603469848633 total time spend for step 4 : 2.839097023010254 step5:split_time_score Tue Mar 11 18:23:34 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 : ['21300708'] 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 : [('21300708',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21300708) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343139671: {'path': 'temp/1741713812_2040550_1343139671_f37a3bab4ea716a3722d484766d8b24a.jpg', 'extension': 'jpg'}, 1343139674: {'path': 'temp/1741713812_2040550_1343139674_27027425cda5ae6c4429a361ec32dad6.jpg', 'extension': 'jpg'}, 1343139325: {'path': 'temp/1741713812_2040550_1343139325_a0109970d35bc8d554983ac1a3e2a086.jpg', 'extension': 'jpg'}, 1343139329: {'path': 'temp/1741713812_2040550_1343139329_b0a1c240b190911fdfa466a56b8d3048.jpg', 'extension': 'jpg'}, 1343139629: {'path': 'temp/1741713812_2040550_1343139629_39486cdd2fefc34911a3215105ef230d.jpg', 'extension': 'jpg'}, 1343139642: {'path': 'temp/1741713812_2040550_1343139642_0f920611e8b0a190d4a17c93c673df67.jpg', 'extension': 'jpg'}, 1343139661: {'path': 'temp/1741713812_2040550_1343139661_43993e9e8fe85c5b681433258c7e0228.jpg', 'extension': 'jpg'}, 1343139667: {'path': 'temp/1741713812_2040550_1343139667_4d283eb5270c1d2c3c4ffe53ac075c08.jpg', 'extension': 'jpg'}, 1343139257: {'path': 'temp/1741713812_2040550_1343139257_6253cc07309009f4698efc2ddf205c08.jpg', 'extension': 'jpg'}, 1343139306: {'path': 'temp/1741713812_2040550_1343139306_8662e02e9ae9e9b11d0249570a0562c7.jpg', 'extension': 'jpg'}, 1343139310: {'path': 'temp/1741713812_2040550_1343139310_a1615ecb1f2cc8a6834161ec0763ca36.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 = 21300708; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21300708 group by h (('18', 35),) 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=21300708 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 (21300708) 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 (21300708) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21300708 Nombre de photos uploadées : 35 / 23040 (0%) 11032025 21300708 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 11032025 21300708 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1343137385, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ea7c1c274d6181615a01f7fdfd831fdb.jpg', 'username': None, 'uploaded_at': 1741713399, 'text': 'image_11032025_18_15_14_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343137325, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/64f06fb84ec301726e40859fc6940706.jpg', 'username': None, 'uploaded_at': 1741713399, 'text': 'image_11032025_18_15_23_009123m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343137271, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/92f2fb293005268f1c8d6a38c7e04d72.jpg', 'username': None, 'uploaded_at': 1741713399, 'text': 'image_11032025_18_15_33_010144m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343137252, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/79a43f2e104dc1f5198c9a7adb1a1be4.jpg', 'username': None, 'uploaded_at': 1741713399, 'text': 'image_11032025_18_15_44_010146m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015842914581298828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21300708, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 1.7373287677764893 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667361, 'mtr_portfolio_id': 21300323, 'dashboard_result_id': 9356101, '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_P21300323_11-03-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21300348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21300349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21300350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21300351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21300352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21300353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21300354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21300355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21300356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21300357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21300358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21300359, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1667361, 'mtr_portfolio_id': 21300708, 'dashboard_result_id': 9356102, '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_P21300708_11-03-2025_18_19_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21300749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21300750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21300751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21300752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21300753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21300754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21300755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21300756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21300757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21300758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21300759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21300760, '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 = 21300323 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': 2659047, 'mtr_portfolio_id': 21300323, 'created_at': datetime.datetime(2025, 3, 11, 18, 19), 'result': '0.05392843308567019', 'result_long': None, 'result_double': None}] Qualite : 0.05392843308567019 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21300323 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21300323_11-03-2025_18_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21300323 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_P21300323_11-03-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21300348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21300349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21300350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21300351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21300352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21300353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21300354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21300355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21300356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21300357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21300358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21300359, 'pht': 3726}}" where mtr_portfolio_id = 21300323 and dashboard_run_id = 1667361 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`=21300323 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9356101, 0.05392843308567019, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21300323_11-03-2025_18_19_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21300348, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21300349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21300350, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21300351, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21300352, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21300353, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21300354, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21300355, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21300356, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21300357, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21300358, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21300359, '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 = 21300708 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': 2659085, 'mtr_portfolio_id': 21300708, 'created_at': datetime.datetime(2025, 3, 11, 18, 23, 31), 'result': '0.06426012087497776', 'result_long': None, 'result_double': None}] Qualite : 0.06426012087497776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21300708 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21300708_11-03-2025_18_19_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21300708 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_P21300708_11-03-2025_18_19_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21300749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21300750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21300751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21300752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21300753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21300754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21300755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21300756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21300757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21300758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21300759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21300760, 'pht': 3726}}" where mtr_portfolio_id = 21300708 and dashboard_run_id = 1667361 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`=21300708 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9356102, 0.06426012087497776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21300708_11-03-2025_18_19_38.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21300749, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21300750, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21300751, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21300752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21300753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21300754, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21300755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21300756, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21300757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21300758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21300759, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21300760, '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 (21300323,21300708) result : ((1343133435,), (1343133469,), (1343133856,), (1343133877,), (1343133900,), (1343133919,), (1343133923,), (1343133925,), (1343134078,), (1343134164,), (1343134311,), (1343134611,), (1343134637,), (1343134661,), (1343134688,), (1343134704,), (1343134735,), (1343134984,), (1343134998,), (1343135027,), (1343135067,), (1343135104,), (1343135120,), (1343135233,), (1343135275,), (1343135357,), (1343135480,), (1343135589,), (1343135596,), (1343135600,), (1343135612,), (1343135638,), (1343135656,), (1343135846,), (1343135868,), (1343135892,), (1343135911,), (1343136194,), (1343136284,), (1343136297,), (1343136306,), (1343136315,), (1343136320,), (1343136337,), (1343136345,), (1343136350,), (1343136355,), (1343136359,), (1343136363,), (1343136414,), (1343136419,), (1343136424,), (1343136428,), (1343136544,), (1343136550,), (1343136565,), (1343136576,), (1343136585,), (1343136715,), (1343136742,), (1343136766,), (1343136794,), (1343136816,), (1343136837,), (1343136921,), (1343136928,), (1343136933,), (1343136937,), (1343137423,), (1343137252,), (1343137271,), (1343137325,), (1343137385,), (1343137842,), (1343137852,), (1343137881,), (1343137907,), (1343138002,), (1343138010,), (1343138014,), (1343138019,), (1343138022,), (1343138024,), (1343138066,), (1343138074,), (1343138082,), (1343138095,), (1343138120,), (1343138510,), (1343138613,), (1343138662,), (1343138695,), (1343138722,), (1343139257,), (1343139306,), (1343139310,), (1343139325,), (1343139329,), (1343139629,), (1343139642,), (1343139661,), (1343139667,), (1343139671,), (1343139674,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21300708]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] map_info['map_portfolio_photo'] : {21300708: [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257, 1343138722, 1343138695, 1343138662, 1343138613, 1343138510, 1343138120, 1343138095, 1343138082, 1343138074, 1343138066, 1343138024, 1343138022, 1343138019, 1343138014, 1343138010, 1343138002, 1343137907, 1343137881, 1343137852, 1343137842, 1343137385, 1343137325, 1343137271, 1343137252]} final : True mtd_id 4302 list_pids : [1343139674, 1343139671, 1343139667, 1343139661, 1343139642, 1343139629, 1343139329, 1343139325, 1343139310, 1343139306, 1343139257] Looping around the photos to save general results len do output : 1 /21300708Didn'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, '2659085') ('4302', '21300708', '1343139674', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085') ('4302', None, None, None, None, None, None, None, '2659085') ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '21300708', 'None', None, None, None, None, '2659085'), ('4302', '21300708', '1343139674', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139671', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139667', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139661', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139642', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139629', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139329', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139325', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139310', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139306', None, None, None, None, None, '2659085'), ('4302', '21300708', '1343139257', None, None, None, None, None, '2659085')] time used for this insertion : 0.027292490005493164 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9421656131744385 time spend to save output : 0.027635574340820312 total time spend for step 5 : 1.9698011875152588 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 (2659085) 1.84user 2.19system 0:10.94elapsed 36%CPU (0avgtext+0avgdata 149528maxresident)k 184inputs+11320outputs (1major+60277minor)pagefaults 0swaps