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 : 1901727 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 (2662118) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2662118) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342896 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2662118'] with mtr_portfolio_ids : ['21342896'] and first list_photo_ids : [] new path : /proc/1901727/ Name: python3 Umask: 0002 State: R (running) Tgid: 1901727 Ngid: 0 Pid: 1901727 PPid: 1901726 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1901727 NSpid: 1901727 NSpgid: 1898019 NSsid: 1898019 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99128 kB VmRSS: 99128 kB RssAnon: 59764 kB RssFile: 39364 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 102 nonvoluntary_ctxt_switches: 254 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1901727', 'Ngid': '0', 'Pid': '1901727', 'PPid': '1901726', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1901727', 'NSpid': '1901727', 'NSpgid': '1898019', 'NSsid': '1898019', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99128 kB', 'VmRSS': '99128 kB', 'RssAnon': '59764 kB', 'RssFile': '39364 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '102', 'nonvoluntary_ctxt_switches': '254'} ('datou_batch_current', '1901727', '1106844', '0', '1106844', '865592', '99128', b'', 'marlene', '2662118') 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 (21342896) 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 (2662118 ) ) 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 (21342896) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343365929, 'portfolio_id': 21342896}, {'photo_id': 1343363257, 'portfolio_id': 21342896}, {'photo_id': 1343362698, 'portfolio_id': 21342896}, {'photo_id': 1343362646, 'portfolio_id': 21342896}, {'photo_id': 1343362214, 'portfolio_id': 21342896}, {'photo_id': 1343362185, 'portfolio_id': 21342896}, {'photo_id': 1343362157, 'portfolio_id': 21342896}, {'photo_id': 1343362106, 'portfolio_id': 21342896}, {'photo_id': 1343361783, 'portfolio_id': 21342896}, {'photo_id': 1343361759, 'portfolio_id': 21342896}, {'photo_id': 1343361678, 'portfolio_id': 21342896}, {'photo_id': 1343361675, 'portfolio_id': 21342896}, {'photo_id': 1343361669, 'portfolio_id': 21342896}, {'photo_id': 1343361545, 'portfolio_id': 21342896}, {'photo_id': 1343361508, 'portfolio_id': 21342896}, {'photo_id': 1343361492, 'portfolio_id': 21342896}, {'photo_id': 1343361148, 'portfolio_id': 21342896}, {'photo_id': 1343361093, 'portfolio_id': 21342896}, {'photo_id': 1343360816, 'portfolio_id': 21342896}, {'photo_id': 1343360814, 'portfolio_id': 21342896}, {'photo_id': 1343360806, 'portfolio_id': 21342896}, {'photo_id': 1343360789, 'portfolio_id': 21342896}, {'photo_id': 1343360780, 'portfolio_id': 21342896}, {'photo_id': 1343360733, 'portfolio_id': 21342896}, {'photo_id': 1343360730, 'portfolio_id': 21342896}, {'photo_id': 1343360694, 'portfolio_id': 21342896}] map_portfolio_id_photo_id: {21342896: [1343365929, 1343363257, 1343362698, 1343362646, 1343362214, 1343362185, 1343362157, 1343362106, 1343361783, 1343361759, 1343361678, 1343361675, 1343361669, 1343361545, 1343361508, 1343361492, 1343361148, 1343361093, 1343360816, 1343360814, 1343360806, 1343360789, 1343360780, 1343360733, 1343360730, 1343360694]} ##### 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.017194509506225586 #### 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 Wed Mar 12 11:47:56 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 (21342896) 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 : 21342896 get user id for portfolio 21342896 get sub ptf for main ptf 21342896, type 3726 and hashtags ['mal_croppe', 'kraft', 'plastique', 'environnement', 'autre_refus', 'flou', 'Carton_brun', 'papier', 'metal', 'Teint_Dans_La_Masse', 'Carton_gris', '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`=21342896 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','plastique','environnement','autre_refus','flou','Carton_brun','papier','metal','Teint_Dans_La_Masse','Carton_gris','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`=21342896 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','plastique','environnement','autre_refus','flou','Carton_brun','papier','metal','Teint_Dans_La_Masse','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21342896, 'sub_port_id': 21342897, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923662, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'environnement': {'main_port_id': 21342896, 'sub_port_id': 21342898, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923663, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'mal_croppe': {'main_port_id': 21342896, 'sub_port_id': 21342899, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923664, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21342896, 'sub_port_id': 21342900, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923665, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'Carton_brun': {'main_port_id': 21342896, 'sub_port_id': 21342901, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923666, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'papier': {'main_port_id': 21342896, 'sub_port_id': 21342902, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923667, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'flou': {'main_port_id': 21342896, 'sub_port_id': 21342903, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923668, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'autre_refus': {'main_port_id': 21342896, 'sub_port_id': 21342904, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923669, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'plastique': {'main_port_id': 21342896, 'sub_port_id': 21342905, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923670, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'kraft': {'main_port_id': 21342896, 'sub_port_id': 21342906, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923671, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'Carton_gris': {'main_port_id': 21342896, 'sub_port_id': 21342907, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923672, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}, 'metal': {'main_port_id': 21342896, 'sub_port_id': 21342908, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923673, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21342897 , 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=21342896 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 (21342897) result : ((1343361674,), (1343364212,), (1343364213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342898 , 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=21342896 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 (21342898) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342899 , 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=21342896 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 (21342899) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342900 , 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=21342896 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 (21342900) result : ((1343361581,), (1343361583,), (1343361584,), (1343361651,), (1343361652,), (1343361653,), (1343361654,), (1343361655,), (1343361656,), (1343361658,), (1343361659,), (1343361660,), (1343362033,), (1343364191,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342901 , 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=21342896 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 (21342901) result : ((1343362058,), (1343363883,), (1343363884,), (1343364224,), (1343364226,), (1343364227,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342902 , 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=21342896 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 (21342902) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342903 , 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=21342896 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 (21342903) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342904 , 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=21342896 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 (21342904) result : ((1343361595,), (1343361597,), (1343361598,), (1343361599,), (1343361600,), (1343361664,), (1343361665,), (1343361666,), (1343361667,), (1343362045,), (1343362047,), (1343362637,), (1343363871,), (1343363872,), (1343364198,), (1343364199,), (1343364200,), (1343364201,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342905 , 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=21342896 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 (21342905) result : ((1343362650,), (1343363892,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342906 , 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=21342896 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 (21342906) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342907 , 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=21342896 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 (21342907) result : ((1343361668,), (1343362052,), (1343363877,), (1343364208,), (1343364209,), (1343364210,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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 21342908 , 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=21342896 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 (21342908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) 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`=21342896 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','plastique','environnement','autre_refus','flou','Carton_brun','papier','metal','Teint_Dans_La_Masse','Carton_gris','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`=21342896 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','kraft','plastique','environnement','autre_refus','flou','Carton_brun','papier','metal','Teint_Dans_La_Masse','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21342896, 'sub_port_id': 21342909, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923674, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'environnement': {'main_port_id': 21342896, 'sub_port_id': 21342910, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923675, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'mal_croppe': {'main_port_id': 21342896, 'sub_port_id': 21342911, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923676, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21342896, 'sub_port_id': 21342912, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923677, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'Carton_brun': {'main_port_id': 21342896, 'sub_port_id': 21342913, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923678, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'papier': {'main_port_id': 21342896, 'sub_port_id': 21342914, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923679, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'flou': {'main_port_id': 21342896, 'sub_port_id': 21342915, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923680, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'autre_refus': {'main_port_id': 21342896, 'sub_port_id': 21342916, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923681, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'plastique': {'main_port_id': 21342896, 'sub_port_id': 21342917, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923682, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'kraft': {'main_port_id': 21342896, 'sub_port_id': 21342918, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923683, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'Carton_gris': {'main_port_id': 21342896, 'sub_port_id': 21342919, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923684, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 35, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}, 'metal': {'main_port_id': 21342896, 'sub_port_id': 21342920, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13923685, 'last_updated_at': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 11, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 11, 35, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342909,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342897 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342910,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342898 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342911,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342899 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342912,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342900 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342913,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342914,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342902 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342915,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21342920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21342908 lien utilise dans velours : https://www.fotonower.com/velours/21342909,21342910,21342911,21342912,21342913,21342914,21342915,21342916,21342917,21342918,21342919,21342920?tags=cartonnette,environnement,mal_croppe,Teint_Dans_La_Masse,Carton_brun,papier,flou,autre_refus,plastique,kraft,Carton_gris,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21342896]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343365929] map_info['map_portfolio_photo'] : {21342896: [1343365929, 1343363257, 1343362698, 1343362646, 1343362214, 1343362185, 1343362157, 1343362106, 1343361783, 1343361759, 1343361678, 1343361675, 1343361669, 1343361545, 1343361508, 1343361492, 1343361148, 1343361093, 1343360816, 1343360814, 1343360806, 1343360789, 1343360780, 1343360733, 1343360730, 1343360694]} final : False mtd_id 4302 list_pids : [1343365929] Looping around the photos to save general results len do output : 1 /21342896. 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, '2662118') ('4302', '21342896', '1343365929', None, None, None, None, None, '2662118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21342896', "{'cartonnette': 21342897, 'environnement': 21342898, 'mal_croppe': 21342899, 'Teint_Dans_La_Masse': 21342900, 'Carton_brun': 21342901, 'papier': 21342902, 'flou': 21342903, 'autre_refus': 21342904, 'plastique': 21342905, 'kraft': 21342906, 'Carton_gris': 21342907, 'metal': 21342908}", None, None, None, None, '2662118'), ('4302', '21342896', '1343365929', None, None, None, None, None, '2662118')] time used for this insertion : 0.012103080749511719 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6067733764648438 time spend to save output : 0.012378215789794922 total time spend for step 1 : 1.6191515922546387 step2:final Wed Mar 12 11:47:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21342896) 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 21342896 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343360733,1343360730,1343360694,1343360816,1343360814,1343360806,1343360789,1343360780,1343361148,1343361093,1343361545,1343361508,1343361492,1343361678,1343361675,1343361669,1343361783,1343361759,1343362214,1343362185,1343362157,1343362106,1343362698,1343362646,1343365929,1343363257); 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([21342896]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343365929: ('0.07415376356906721',)} new output for save of step final : {1343365929: ('0.07415376356906721',)} [1343365929] map_info['map_portfolio_photo'] : {21342896: [1343365929, 1343363257, 1343362698, 1343362646, 1343362214, 1343362185, 1343362157, 1343362106, 1343361783, 1343361759, 1343361678, 1343361675, 1343361669, 1343361545, 1343361508, 1343361492, 1343361148, 1343361093, 1343360816, 1343360814, 1343360806, 1343360789, 1343360780, 1343360733, 1343360730, 1343360694]} final : False mtd_id 4302 list_pids : [1343365929] Looping around the photos to save general results len do output : 1 /1343365929.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, '2662118') ('4302', '21342896', '1343365929', None, None, None, None, None, '2662118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '21342896', '1343365929', '0.07415376356906721', None, None, None, None, '2662118')] time used for this insertion : 0.013019084930419922 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0479776859283447 time spend to save output : 0.013249635696411133 total time spend for step 2 : 2.061227321624756 step3:velours_tree Wed Mar 12 11:47:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21342896: [{'cartonnette': 21342897, 'environnement': 21342898, 'mal_croppe': 21342899, 'Teint_Dans_La_Masse': 21342900, 'Carton_brun': 21342901, 'papier': 21342902, 'flou': 21342903, 'autre_refus': 21342904, 'plastique': 21342905, 'kraft': 21342906, 'Carton_gris': 21342907, 'metal': 21342908}]} input_args_next_step : {21342896: ()} output_args : {21342896: [{'cartonnette': 21342897, 'environnement': 21342898, 'mal_croppe': 21342899, 'Teint_Dans_La_Masse': 21342900, 'Carton_brun': 21342901, 'papier': 21342902, 'flou': 21342903, 'autre_refus': 21342904, 'plastique': 21342905, 'kraft': 21342906, 'Carton_gris': 21342907, 'metal': 21342908}]} args : 21342896 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'cartonnette': 21342897, 'environnement': 21342898, 'mal_croppe': 21342899, 'Teint_Dans_La_Masse': 21342900, 'Carton_brun': 21342901, 'papier': 21342902, 'flou': 21342903, 'autre_refus': 21342904, 'plastique': 21342905, 'kraft': 21342906, 'Carton_gris': 21342907, 'metal': 21342908},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21342896) 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([21342896]) 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.5418481826782227 time spend to save output : 8.034706115722656e-05 total time spend for step 3 : 0.5419285297393799 step4:send_mail_cod Wed Mar 12 11:48:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343365929: ('0.07415376356906721',)} input_args_next_step : {1343365929: ()} output_args : {1343365929: ('0.07415376356906721',)} args : 1343365929 depend.output_id : 0 complete output_args for input 3 : {21342896: [{'cartonnette': 21342897, 'environnement': 21342898, 'mal_croppe': 21342899, 'Teint_Dans_La_Masse': 21342900, 'Carton_brun': 21342901, 'papier': 21342902, 'flou': 21342903, 'autre_refus': 21342904, 'plastique': 21342905, 'kraft': 21342906, 'Carton_gris': 21342907, 'metal': 21342908}]} input_args_next_step : {1343365929: ('0.07415376356906721',), 21342896: ()} output_args : {21342896: [{'cartonnette': 21342897, 'environnement': 21342898, 'mal_croppe': 21342899, 'Teint_Dans_La_Masse': 21342900, 'Carton_brun': 21342901, 'papier': 21342902, 'flou': 21342903, 'autre_refus': 21342904, 'plastique': 21342905, 'kraft': 21342906, 'Carton_gris': 21342907, 'metal': 21342908}]} args : 21342896 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 :2, first value : ('0.07415376356906721',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21342896) 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 (1343365929) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343365929 download finish for photo 1343365929 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 : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P21342896_12-03-2025_11_48_00.pdf 21342897 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=21342897 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343361674: '1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437725_0.png', 1343364212: '1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448636_0.png', 1343364213: '1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448640_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ed8c8806d0294caf7078b8128ee04e4b_19309922.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e85fbc9bb87dd052c0c6d30eb4ffd3ab_77763001.png change filename to text .imagette213428971741776480/ imagette213428971741776480/1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448636_0.png.png imagette213428971741776480/1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448640_0.png.png imagette213428971741776480/1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437725_0.png.png imagette213428991741776480/ imagette213429031741776480/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/fceb350a147d30e8e133e5b114fdbdc4_6210993.png imagette213428971741776480 21342899 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=21342899 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213428991741776480 21342903 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=21342903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213429031741776480 21342904 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=21342904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343362045: '1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443250_0.png', 1343364201: '1741776014_2537210_1343362106_15b38ae907f98c7c8659dcb25706bd93_rle_crop_3707448675_0.png', 1343364200: '1741776014_2537210_1343362157_3ec39795a75aed3bb5dbaf4e550773c1_rle_crop_3707448658_0.png', 1343364199: '1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448648_0.png', 1343364198: '1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448630_0.png', 1343363872: '1741775993_2536950_1343361759_f621a6e8fb9e549ca2625cc61863cdbf_rle_crop_3707447574_0.png', 1343363871: '1741775993_2536950_1343362214_014b558fedecdc597960b110819957e7_rle_crop_3707447444_0.png', 1343362637: '1741775873_2535949_1343361783_c85cf5365e1434edacfcdad53a823f5d_rle_crop_3707445498_0.png', 1343362047: '1741775775_2534912_1343361093_2590e99c1470207bebb81c24f031b782_rle_crop_3707443335_0.png', 1343361595: '1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434987_0.png', 1343361667: '1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438124_0.png', 1343361666: '1741775653_2533871_1343360789_80f9210b0e255fcbd0f948524abe0a36_rle_crop_3707438048_0.png', 1343361665: '1741775653_2533871_1343360806_211fb59ef3595d8434c7145974ded816_rle_crop_3707437747_0.png', 1343361664: '1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437727_0.png', 1343361600: '1741775630_2533658_1343360694_c0e7a390e401da16c94e3b30e91a619f_rle_crop_3707435335_0.png', 1343361599: '1741775630_2533658_1343360730_c33884a7b7864e712414f6d6394caabd_rle_crop_3707435269_0.png', 1343361598: '1741775630_2533658_1343360733_4ba4c45edd23275bbd647282580e6fce_rle_crop_3707435002_0.png', 1343361597: '1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434984_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0a6073c6127f9daf21ee18aec8dae3d7_600568.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/1f31831b69c54030a23d3eca15b772f1_61498259.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a640cb05ad4a580150f20804bc89bb9f_33433038.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ef51badec143036fadddf164e9e4031c_4294798.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/bfd1d1d5b2ae9f277cede32403d42317_59795419.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f7b0b016bfc57abac56ebf0a2055a712_48073360.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/7b25b3998ba627856d7d2ec30d3d99ed_57272321.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/70706ae0ae8233d05254276a297d8715_15312197.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/a8bc02164523a4d840dbc09cf8e587d3_16143445.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/81a7956b7b6392927c1097539d1de271_59225151.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b5d80ebcf800ef660181277f082f4246_25158454.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/df4be7ff570e5fce8599872db499b1bd_23560909.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f700b83078e4de33daae92479c58e4a5_5506192.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/14844c25a09849c44060a7aa7e795478_6750471.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/735507e43d4cad7975dcc549a7b17c3e_87288244.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/62c0884cf929d736e47fb73f562254d1_94585274.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4a757cd7143f482108211e056a1c7f13_87695325.png change filename to text .imagette213429041741776480/ imagette213429041741776480/1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437727_0.png.png imagette213429041741776480/1741775775_2534912_1343361093_2590e99c1470207bebb81c24f031b782_rle_crop_3707443335_0.png.png imagette213429041741776480/1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438124_0.png.png imagette213429041741776480/1741775873_2535949_1343361783_c85cf5365e1434edacfcdad53a823f5d_rle_crop_3707445498_0.png.png imagette213429041741776480/1741775653_2533871_1343360806_211fb59ef3595d8434c7145974ded816_rle_crop_3707437747_0.png.png imagette213429041741776480/1741775993_2536950_1343362214_014b558fedecdc597960b110819957e7_rle_crop_3707447444_0.png.png imagette213429041741776480/1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448648_0.png.png imagette213429041741776480/1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448630_0.png.png imagette213429041741776480/1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443250_0.png.png imagette213429041741776480/1741775630_2533658_1343360694_c0e7a390e401da16c94e3b30e91a619f_rle_crop_3707435335_0.png.png imagette213429041741776480/1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434987_0.png.png imagette213429041741776480/1741776014_2537210_1343362106_15b38ae907f98c7c8659dcb25706bd93_rle_crop_3707448675_0.png.png imagette213429041741776480/1741776014_2537210_1343362157_3ec39795a75aed3bb5dbaf4e550773c1_rle_crop_3707448658_0.png.png imagette213429041741776480/1741775653_2533871_1343360789_80f9210b0e255fcbd0f948524abe0a36_rle_crop_3707438048_0.png.png imagette213429041741776480/1741775993_2536950_1343361759_f621a6e8fb9e549ca2625cc61863cdbf_rle_crop_3707447574_0.png.png imagette213429041741776480/1741775630_2533658_1343360733_4ba4c45edd23275bbd647282580e6fce_rle_crop_3707435002_0.png.png imagette213429041741776480/1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434984_0.png.png imagette213429041741776480/1741775630_2533658_1343360730_c33884a7b7864e712414f6d6394caabd_rle_crop_3707435269_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/054c880bbe66ffb311873fb35e4ac586_48043954.png imagette213429041741776480 21342905 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=21342905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343362650: '1741775873_2535949_1343361669_4a25b020fabb400929dd89e8a4f52a5a_rle_crop_3707445508_0.png', 1343363892: '1741775993_2536950_1343362214_014b558fedecdc597960b110819957e7_rle_crop_3707447434_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/53a6a03358507e27e6c058ccfd56797f_19706816.png change filename to text .imagette213429051741776481/ imagette213429051741776481/1741775873_2535949_1343361669_4a25b020fabb400929dd89e8a4f52a5a_rle_crop_3707445508_0.png.png imagette213429051741776481/1741775993_2536950_1343362214_014b558fedecdc597960b110819957e7_rle_crop_3707447434_0.png.png imagette213429061741776481/ imagette213429081741776481/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/ac94ace2266f62f1afbd476eb3096b31_7326031.png imagette213429051741776481 21342906 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=21342906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213429061741776481 21342908 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=21342908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213429081741776481 21342900 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=21342900 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343361581: '1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434990_0.png', 1343361583: '1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434989_0.png', 1343361584: '1741775630_2533658_1343360694_c0e7a390e401da16c94e3b30e91a619f_rle_crop_3707435338_0.png', 1343361651: '1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437735_0.png', 1343361652: '1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437728_0.png', 1343361653: '1741775653_2533871_1343360806_211fb59ef3595d8434c7145974ded816_rle_crop_3707437754_0.png', 1343361654: '1741775653_2533871_1343360806_211fb59ef3595d8434c7145974ded816_rle_crop_3707437750_0.png', 1343361655: '1741775653_2533871_1343360789_80f9210b0e255fcbd0f948524abe0a36_rle_crop_3707438051_0.png', 1343361656: '1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438133_0.png', 1343361658: '1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438127_0.png', 1343361659: '1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438125_0.png', 1343361660: '1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438123_0.png', 1343362033: '1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443249_0.png', 1343364191: '1741776014_2537210_1343362157_3ec39795a75aed3bb5dbaf4e550773c1_rle_crop_3707448662_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/edb701cdaef88a9e6caa86db080bd8c6_49547496.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/fbfbfb3ee12ecce59f0f8aef82845255_55492338.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/05921b308c4e55f633fc72e9f8e2f415_60536359.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d65ff5b2b896c89ee0d368ae5b6ba104_11035118.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d2a5cd3b930341f129b47de984760c8a_7042401.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/58661ebf0e46c52b4053f412ac5b0f59_69964057.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/28225ae091d72c510ad031b82695dc1d_69901634.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cd29b31b85bcee98df98b7b74b0dfc9c_76718487.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/fa3eebb264e6826ad2b9db05fccc711e_68713347.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/69392713be9e911aa581f58db1ab60eb_35096175.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c7c8750756cad64f3874c73cc2c6ae87_15826739.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/20d3058746228f08080bd334c7fecd38_44921867.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f874e0c3e0c44c60d3e2bf9e19475dbe_96922861.png change filename to text .imagette213429001741776481/ imagette213429001741776481/1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437728_0.png.png imagette213429001741776481/1741775630_2533658_1343360694_c0e7a390e401da16c94e3b30e91a619f_rle_crop_3707435338_0.png.png imagette213429001741776481/1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434990_0.png.png imagette213429001741776481/1741775653_2533871_1343360814_e806e508427a160b26491591bf334995_rle_crop_3707437735_0.png.png imagette213429001741776481/1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438133_0.png.png imagette213429001741776481/1741776014_2537210_1343362157_3ec39795a75aed3bb5dbaf4e550773c1_rle_crop_3707448662_0.png.png imagette213429001741776481/1741775653_2533871_1343360806_211fb59ef3595d8434c7145974ded816_rle_crop_3707437754_0.png.png imagette213429001741776481/1741775630_2533658_1343360816_d4a743e27ea7be51f0af374f268cd564_rle_crop_3707434989_0.png.png imagette213429001741776481/1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443249_0.png.png imagette213429001741776481/1741775653_2533871_1343360806_211fb59ef3595d8434c7145974ded816_rle_crop_3707437750_0.png.png imagette213429001741776481/1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438123_0.png.png imagette213429001741776481/1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438125_0.png.png imagette213429001741776481/1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438127_0.png.png imagette213429001741776481/1741775653_2533871_1343360789_80f9210b0e255fcbd0f948524abe0a36_rle_crop_3707438051_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/826c0c1b8dac25fb825e36fa22d6aa15_92499942.png imagette213429001741776481 21342901 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=21342901 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343362058: '1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443251_0.png', 1343363883: '1741775993_2536950_1343362214_014b558fedecdc597960b110819957e7_rle_crop_3707447437_0.png', 1343363884: '1741775993_2536950_1343361759_f621a6e8fb9e549ca2625cc61863cdbf_rle_crop_3707447569_0.png', 1343364224: '1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448632_0.png', 1343364226: '1741776014_2537210_1343362157_3ec39795a75aed3bb5dbaf4e550773c1_rle_crop_3707448657_0.png', 1343364227: '1741776014_2537210_1343362106_15b38ae907f98c7c8659dcb25706bd93_rle_crop_3707448677_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b1b14618860fd50f009112a6f1436548_82039338.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0672c58ffc6792eb4e1012bc06e0ad0c_54549171.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/0ed8b7581e9f3ea7e902027fb4ebb55c_82948519.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/47a509e4e48af88eb90bc48ee7c49038_30975597.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/60ae0077970b1a9a85dd77fdd950e8ee_81793635.png change filename to text .imagette213429011741776482/ imagette213429011741776482/1741776014_2537210_1343362157_3ec39795a75aed3bb5dbaf4e550773c1_rle_crop_3707448657_0.png.png imagette213429011741776482/1741775993_2536950_1343362214_014b558fedecdc597960b110819957e7_rle_crop_3707447437_0.png.png imagette213429011741776482/1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448632_0.png.png imagette213429011741776482/1741776014_2537210_1343362106_15b38ae907f98c7c8659dcb25706bd93_rle_crop_3707448677_0.png.png imagette213429011741776482/1741775993_2536950_1343361759_f621a6e8fb9e549ca2625cc61863cdbf_rle_crop_3707447569_0.png.png imagette213429011741776482/1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443251_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/37904d65613274ebc04f72e64bac3d7f_84974614.png imagette213429011741776482 21342907 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=21342907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343361668: '1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438122_0.png', 1343362052: '1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443246_0.png', 1343363877: '1741775993_2536950_1343361759_f621a6e8fb9e549ca2625cc61863cdbf_rle_crop_3707447567_0.png', 1343364208: '1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448626_0.png', 1343364209: '1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448631_0.png', 1343364210: '1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448645_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2a846ebb838be1576278cd44ae4b6eda_99572959.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/f8639f1c759f37086b24a1d950fa809d_70789770.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3a9929961e121f488619611b3b4400f5_92069682.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/8ea99d5b9d8c8d18b94db1a79696deb3_69007854.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3a1dd699fa665640815560890d5aa92e_11255022.png change filename to text .imagette213429071741776482/ imagette213429071741776482/1741775775_2534912_1343361545_bf9a216924b10ba4c5dadb73ddd6b39d_rle_crop_3707443246_0.png.png imagette213429071741776482/1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448631_0.png.png imagette213429071741776482/1741776014_2537210_1343362185_cf87d0c955928cacabede7b35d746776_rle_crop_3707448645_0.png.png imagette213429071741776482/1741775653_2533871_1343360780_060c6b1bfe1718cac9ecad4db1defcc1_rle_crop_3707438122_0.png.png imagette213429071741776482/1741775993_2536950_1343361759_f621a6e8fb9e549ca2625cc61863cdbf_rle_crop_3707447567_0.png.png imagette213429071741776482/1741776014_2537210_1343362698_8e641391428d78c7584efff97f60f91c_rle_crop_3707448626_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/06c85fa48d2a8cbd194cdff3cefdda84_10169886.png imagette213429071741776482 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21342896 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21342909,21342910,21342911,21342912,21342913,21342914,21342915,21342916,21342917,21342918,21342919,21342920?tags=cartonnette,environnement,mal_croppe,Teint_Dans_La_Masse,Carton_brun,papier,flou,autre_refus,plastique,kraft,Carton_gris,metal your option no_mail is active, we will not send the real mail to your client args[1343365929] : ('0.07415376356906721',) no score found for photo 1343365929 We are sending mail with results at report@fotonower.com refus_total : 0.07415376356906721 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=21342896 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([21342896]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343365929] map_info['map_portfolio_photo'] : {21342896: [1343365929, 1343363257, 1343362698, 1343362646, 1343362214, 1343362185, 1343362157, 1343362106, 1343361783, 1343361759, 1343361678, 1343361675, 1343361669, 1343361545, 1343361508, 1343361492, 1343361148, 1343361093, 1343360816, 1343360814, 1343360806, 1343360789, 1343360780, 1343360733, 1343360730, 1343360694]} final : False mtd_id 4302 list_pids : [1343365929] 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, '2662118') ('4302', '21342896', '1343365929', None, None, None, None, None, '2662118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '21342896', '1343365929', None, None, None, None, None, '2662118')] time used for this insertion : 0.02867269515991211 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.935516357421875 time spend to save output : 0.02891373634338379 total time spend for step 4 : 2.964430093765259 step5:split_time_score Wed Mar 12 11:48:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21342896'] 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 : [('21342896',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21342896) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343365929: {'path': 'temp/1741776480_1901727_1343365929_b6d950a281111fe940862893e583bbe5.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 = 21342896; (('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 = 21342896 group by h (('11', 26),) 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=21342896 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 (21342896) 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 (21342896) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12032025 21342896 Nombre de photos uploadées : 26 / 23040 (0%) 12032025 21342896 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 12032025 21342896 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1343360733, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4ba4c45edd23275bbd647282580e6fce.jpg', 'username': None, 'uploaded_at': 1741775501, 'text': 'image_12032025_11_30_24_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343360730, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c33884a7b7864e712414f6d6394caabd.jpg', 'username': None, 'uploaded_at': 1741775501, 'text': 'image_12032025_11_30_34_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343360694, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c0e7a390e401da16c94e3b30e91a619f.jpg', 'username': None, 'uploaded_at': 1741775501, 'text': 'image_12032025_11_30_44_010140m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343360816, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d4a743e27ea7be51f0af374f268cd564.jpg', 'username': None, 'uploaded_at': 1741775560, 'text': 'image_12032025_11_30_54_010138m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0013146400451660156 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21342896, '2025-03-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1660967,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021564722061157227 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= 1660967 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1660967, 'dashboard_run_id': 1670058, 'mtr_portfolio_id': 21342896, 'dashboard_result_id': 9390637, '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_P21342896_12-03-2025_11_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21342897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21342898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21342899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21342900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21342901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21342902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21342903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21342904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21342905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21342906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21342907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21342908, '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 = 21342896 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': 2662118, 'mtr_portfolio_id': 21342896, 'created_at': datetime.datetime(2025, 3, 12, 11, 47, 59), 'result': '0.07415376356906721', 'result_long': None, 'result_double': None}] Qualite : 0.07415376356906721 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21342896 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21342896_12-03-2025_11_35_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21342896 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_P21342896_12-03-2025_11_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21342897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21342898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21342899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21342900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21342901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21342902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21342903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21342904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21342905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21342906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21342907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21342908, 'pht': 3726}}" where mtr_portfolio_id = 21342896 and dashboard_run_id = 1670058 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`=21342896 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9390637, 0.07415376356906721, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21342896_12-03-2025_11_35_06.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21342897, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21342898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21342899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21342900, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21342901, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21342902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21342903, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21342904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21342905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21342906, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21342907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21342908, '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 (21342896) result : ((1343360694,), (1343360730,), (1343360733,), (1343360780,), (1343360789,), (1343360806,), (1343360814,), (1343360816,), (1343361093,), (1343361148,), (1343361492,), (1343361508,), (1343361545,), (1343361669,), (1343361675,), (1343361678,), (1343361759,), (1343361783,), (1343362106,), (1343362157,), (1343362185,), (1343362214,), (1343362646,), (1343362698,), (1343363257,), (1343365929,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12032025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21342896]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343365929] map_info['map_portfolio_photo'] : {21342896: [1343365929, 1343363257, 1343362698, 1343362646, 1343362214, 1343362185, 1343362157, 1343362106, 1343361783, 1343361759, 1343361678, 1343361675, 1343361669, 1343361545, 1343361508, 1343361492, 1343361148, 1343361093, 1343360816, 1343360814, 1343360806, 1343360789, 1343360780, 1343360733, 1343360730, 1343360694]} final : True mtd_id 4302 list_pids : [1343365929] Looping around the photos to save general results len do output : 1 /21342896Didn'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, '2662118') ('4302', '21342896', '1343365929', None, None, None, None, None, '2662118') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '21342896', 'None', None, None, None, None, '2662118'), ('4302', '21342896', '1343365929', None, None, None, None, None, '2662118')] time used for this insertion : 0.011874198913574219 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1582796573638916 time spend to save output : 0.012068510055541992 total time spend for step 5 : 0.1703481674194336 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 (2662118) 1.90user 1.67system 0:09.18elapsed 38%CPU (0avgtext+0avgdata 149012maxresident)k 11280inputs+6480outputs (100major+62802minor)pagefaults 0swaps