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 : 2588260 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 (2668170) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2668170) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412913 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2668170'] with mtr_portfolio_ids : ['21412913'] and first list_photo_ids : [] new path : /proc/2588260/ Name: python3 Umask: 0002 State: R (running) Tgid: 2588260 Ngid: 0 Pid: 2588260 PPid: 2588259 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2588260 NSpid: 2588260 NSpgid: 2584495 NSsid: 2584495 VmPeak: 1106840 kB VmSize: 1106840 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99660 kB VmRSS: 99660 kB RssAnon: 59756 kB RssFile: 39904 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 604 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: 54 nonvoluntary_ctxt_switches: 128 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2588260', 'Ngid': '0', 'Pid': '2588260', 'PPid': '2588259', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2588260', 'NSpid': '2588260', 'NSpgid': '2584495', 'NSsid': '2584495', 'VmPeak': '1106840 kB', 'VmSize': '1106840 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99660 kB', 'VmRSS': '99660 kB', 'RssAnon': '59756 kB', 'RssFile': '39904 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '54', 'nonvoluntary_ctxt_switches': '128'} ('datou_batch_current', '2588260', '1106840', '0', '1106840', '865592', '99660', b'', 'marlene', '2668170') 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 (21412913) 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 (2668170 ) ) 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 (21412913) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1344086066, 'portfolio_id': 21412913}, {'photo_id': 1344086047, 'portfolio_id': 21412913}, {'photo_id': 1344085997, 'portfolio_id': 21412913}, {'photo_id': 1344085960, 'portfolio_id': 21412913}, {'photo_id': 1344085609, 'portfolio_id': 21412913}, {'photo_id': 1344085601, 'portfolio_id': 21412913}, {'photo_id': 1344085599, 'portfolio_id': 21412913}, {'photo_id': 1344085597, 'portfolio_id': 21412913}, {'photo_id': 1344085576, 'portfolio_id': 21412913}, {'photo_id': 1344085570, 'portfolio_id': 21412913}, {'photo_id': 1344085357, 'portfolio_id': 21412913}, {'photo_id': 1344085354, 'portfolio_id': 21412913}, {'photo_id': 1344085351, 'portfolio_id': 21412913}, {'photo_id': 1344085349, 'portfolio_id': 21412913}, {'photo_id': 1344085277, 'portfolio_id': 21412913}, {'photo_id': 1344085273, 'portfolio_id': 21412913}, {'photo_id': 1344085263, 'portfolio_id': 21412913}, {'photo_id': 1344085258, 'portfolio_id': 21412913}, {'photo_id': 1344085252, 'portfolio_id': 21412913}] map_portfolio_id_photo_id: {21412913: [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570, 1344085357, 1344085354, 1344085351, 1344085349, 1344085277, 1344085273, 1344085263, 1344085258, 1344085252]} ##### 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.014591455459594727 #### 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 Fri Mar 14 07:51:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21412913) 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 : 21412913 get user id for portfolio 21412913 get sub ptf for main ptf 21412913, type 3726 and hashtags ['flou', 'autre_refus', 'Carton_brun', 'plastique', 'mal_croppe', 'Carton_gris', 'Teint_Dans_La_Masse', 'papier', 'metal', 'cartonnette', 'environnement', 'kraft'] 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`=21412913 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','Carton_brun','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','metal','cartonnette','environnement','kraft')) 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`=21412913 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','Carton_brun','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','metal','cartonnette','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21412913, 'sub_port_id': 21412938, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985495, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'papier': {'main_port_id': 21412913, 'sub_port_id': 21412939, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985496, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'kraft': {'main_port_id': 21412913, 'sub_port_id': 21412940, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985497, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'Carton_gris': {'main_port_id': 21412913, 'sub_port_id': 21412941, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985498, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'metal': {'main_port_id': 21412913, 'sub_port_id': 21412942, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985499, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'plastique': {'main_port_id': 21412913, 'sub_port_id': 21412943, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985500, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'environnement': {'main_port_id': 21412913, 'sub_port_id': 21412944, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985501, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'autre_refus': {'main_port_id': 21412913, 'sub_port_id': 21412945, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985502, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'Carton_brun': {'main_port_id': 21412913, 'sub_port_id': 21412946, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985503, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'flou': {'main_port_id': 21412913, 'sub_port_id': 21412947, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985504, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'cartonnette': {'main_port_id': 21412913, 'sub_port_id': 21412948, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985505, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21412913, 'sub_port_id': 21412949, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985506, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21412938 , 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=21412913 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 (21412938) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412939 , 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=21412913 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 (21412939) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412940 , 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=21412913 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 (21412940) result : ((1344086272,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412941 , 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=21412913 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 (21412941) result : ((1344085801,), (1344085808,), (1344086266,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412942 , 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=21412913 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 (21412942) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412943 , 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=21412913 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 (21412943) result : ((1344085880,), (1344085883,), (1344085885,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412944 , 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=21412913 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 (21412944) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412945 , 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=21412913 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 (21412945) result : ((1344085756,), (1344085759,), (1344085760,), (1344085763,), (1344085765,), (1344085767,), (1344085769,), (1344086250,), (1344086254,), (1344086258,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412946 , 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=21412913 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 (21412946) result : ((1344086270,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412947 , 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=21412913 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 (21412947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412948 , 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=21412913 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 (21412948) result : ((1344085873,), (1344086268,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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 21412949 , 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=21412913 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 (21412949) result : ((1344085721,), (1344085723,), (1344085725,), (1344085727,), (1344085729,), (1344085731,), (1344086240,), (1344086241,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21412913) result : ((1344085252,), (1344085258,), (1344085263,), (1344085273,), (1344085277,), (1344085349,), (1344085351,), (1344085354,), (1344085357,), (1344085570,), (1344085576,), (1344085597,), (1344085599,), (1344085601,), (1344085609,), (1344085960,), (1344085997,), (1344086047,), (1344086066,)) 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`=21412913 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','Carton_brun','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','metal','cartonnette','environnement','kraft')) 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`=21412913 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','autre_refus','Carton_brun','plastique','mal_croppe','Carton_gris','Teint_Dans_La_Masse','papier','metal','cartonnette','environnement','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21412913, 'sub_port_id': 21412950, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985507, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'papier': {'main_port_id': 21412913, 'sub_port_id': 21412951, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985508, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'kraft': {'main_port_id': 21412913, 'sub_port_id': 21412952, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985509, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'Carton_gris': {'main_port_id': 21412913, 'sub_port_id': 21412953, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985510, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'metal': {'main_port_id': 21412913, 'sub_port_id': 21412954, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985511, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'plastique': {'main_port_id': 21412913, 'sub_port_id': 21412955, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985512, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'environnement': {'main_port_id': 21412913, 'sub_port_id': 21412956, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985513, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'autre_refus': {'main_port_id': 21412913, 'sub_port_id': 21412957, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985514, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'Carton_brun': {'main_port_id': 21412913, 'sub_port_id': 21412958, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985515, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'flou': {'main_port_id': 21412913, 'sub_port_id': 21412959, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985516, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'cartonnette': {'main_port_id': 21412913, 'sub_port_id': 21412960, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985517, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21412913, 'sub_port_id': 21412961, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13985518, 'last_updated_at': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 14, 7, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 14, 7, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412950,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412938 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412951,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412939 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412952,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412940 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412953,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412941 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21412961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21412949 lien utilise dans velours : https://www.fotonower.com/velours/21412950,21412951,21412952,21412953,21412954,21412955,21412956,21412957,21412958,21412959,21412960,21412961?tags=mal_croppe,papier,kraft,Carton_gris,metal,plastique,environnement,autre_refus,Carton_brun,flou,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21412913]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570] map_info['map_portfolio_photo'] : {21412913: [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570, 1344085357, 1344085354, 1344085351, 1344085349, 1344085277, 1344085273, 1344085263, 1344085258, 1344085252]} final : False mtd_id 4302 list_pids : [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570] Looping around the photos to save general results len do output : 1 /21412913. 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, '2668170') ('4302', '21412913', '1344086066', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344086047', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085997', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085960', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085609', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085601', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085599', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085597', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085576', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085570', None, None, None, None, None, '2668170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21412913', "{'mal_croppe': 21412938, 'papier': 21412939, 'kraft': 21412940, 'Carton_gris': 21412941, 'metal': 21412942, 'plastique': 21412943, 'environnement': 21412944, 'autre_refus': 21412945, 'Carton_brun': 21412946, 'flou': 21412947, 'cartonnette': 21412948, 'Teint_Dans_La_Masse': 21412949}", None, None, None, None, '2668170'), ('4302', '21412913', '1344086066', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344086047', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085997', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085960', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085609', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085601', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085599', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085597', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085576', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085570', None, None, None, None, None, '2668170')] time used for this insertion : 0.013747930526733398 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5266554355621338 time spend to save output : 0.014015674591064453 total time spend for step 1 : 1.5406711101531982 step2:final Fri Mar 14 07:51:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21412913) 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 21412913 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1344085277,1344085273,1344085263,1344085258,1344085252,1344085357,1344085354,1344085351,1344085349,1344085609,1344085601,1344085599,1344085597,1344085576,1344085570,1344086066,1344086047,1344085997,1344085960); 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([21412913]) Inside saveOutput : final : False verbose : True original output for save of step final : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} new output for save of step final : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570] map_info['map_portfolio_photo'] : {21412913: [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570, 1344085357, 1344085354, 1344085351, 1344085349, 1344085277, 1344085273, 1344085263, 1344085258, 1344085252]} final : False mtd_id 4302 list_pids : [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570] Looping around the photos to save general results len do output : 10 /1344086066.Didn't retrieve data . /1344086047.Didn't retrieve data . /1344085997.Didn't retrieve data . /1344085960.Didn't retrieve data . /1344085609.Didn't retrieve data . /1344085601.Didn't retrieve data . /1344085599.Didn't retrieve data . /1344085597.Didn't retrieve data . /1344085576.Didn't retrieve data . /1344085570.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, '2668170') ('4302', '21412913', '1344086066', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344086047', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085997', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085960', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085609', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085601', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085599', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085597', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085576', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085570', None, None, None, None, None, '2668170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21412913', '1344086066', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344086047', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085997', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085960', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085609', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085601', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085599', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085597', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085576', '0.07713548470405021', None, None, None, None, '2668170'), ('4302', '21412913', '1344085570', '0.07713548470405021', None, None, None, None, '2668170')] time used for this insertion : 0.013504266738891602 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.160677433013916 time spend to save output : 0.014086723327636719 total time spend for step 2 : 1.1747641563415527 step3:velours_tree Fri Mar 14 07:52: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 complete output_args for input 0 : {21412913: [{'mal_croppe': 21412938, 'papier': 21412939, 'kraft': 21412940, 'Carton_gris': 21412941, 'metal': 21412942, 'plastique': 21412943, 'environnement': 21412944, 'autre_refus': 21412945, 'Carton_brun': 21412946, 'flou': 21412947, 'cartonnette': 21412948, 'Teint_Dans_La_Masse': 21412949}]} input_args_next_step : {21412913: ()} output_args : {21412913: [{'mal_croppe': 21412938, 'papier': 21412939, 'kraft': 21412940, 'Carton_gris': 21412941, 'metal': 21412942, 'plastique': 21412943, 'environnement': 21412944, 'autre_refus': 21412945, 'Carton_brun': 21412946, 'flou': 21412947, 'cartonnette': 21412948, 'Teint_Dans_La_Masse': 21412949}]} args : 21412913 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 : ({'mal_croppe': 21412938, 'papier': 21412939, 'kraft': 21412940, 'Carton_gris': 21412941, 'metal': 21412942, 'plastique': 21412943, 'environnement': 21412944, 'autre_refus': 21412945, 'Carton_brun': 21412946, 'flou': 21412947, 'cartonnette': 21412948, 'Teint_Dans_La_Masse': 21412949},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21412913) 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([21412913]) 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.3338339328765869 time spend to save output : 7.891654968261719e-05 total time spend for step 3 : 0.33391284942626953 step4:send_mail_cod Fri Mar 14 07:52:01 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 : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} input_args_next_step : {1344086066: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344086066 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344086047 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085997 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085960 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085609 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085601 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085599 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085597 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085576 depend.output_id : 0 input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ()} output_args : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',)} args : 1344085570 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {21412913: [{'mal_croppe': 21412938, 'papier': 21412939, 'kraft': 21412940, 'Carton_gris': 21412941, 'metal': 21412942, 'plastique': 21412943, 'environnement': 21412944, 'autre_refus': 21412945, 'Carton_brun': 21412946, 'flou': 21412947, 'cartonnette': 21412948, 'Teint_Dans_La_Masse': 21412949}]} input_args_next_step : {1344086066: ('0.07713548470405021',), 1344086047: ('0.07713548470405021',), 1344085997: ('0.07713548470405021',), 1344085960: ('0.07713548470405021',), 1344085609: ('0.07713548470405021',), 1344085601: ('0.07713548470405021',), 1344085599: ('0.07713548470405021',), 1344085597: ('0.07713548470405021',), 1344085576: ('0.07713548470405021',), 1344085570: ('0.07713548470405021',), 21412913: ()} output_args : {21412913: [{'mal_croppe': 21412938, 'papier': 21412939, 'kraft': 21412940, 'Carton_gris': 21412941, 'metal': 21412942, 'plastique': 21412943, 'environnement': 21412944, 'autre_refus': 21412945, 'Carton_brun': 21412946, 'flou': 21412947, 'cartonnette': 21412948, 'Teint_Dans_La_Masse': 21412949}]} args : 21412913 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 :11, first value : ('0.07713548470405021',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21412913) 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 (1344086066,1344086047,1344085997,1344085960,1344085609,1344085601,1344085599,1344085597,1344085576,1344085570) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1344085570 begin to download photo : 1344085599 begin to download photo : 1344085960 begin to download photo : 1344086066 download finish for photo 1344086066 download finish for photo 1344085570 begin to download photo : 1344085576 download finish for photo 1344085960 begin to download photo : 1344085997 download finish for photo 1344085599 begin to download photo : 1344085601 download finish for photo 1344085601 begin to download photo : 1344085609 download finish for photo 1344085997 begin to download photo : 1344086047 download finish for photo 1344086047 download finish for photo 1344085609 download finish for photo 1344085576 begin to download photo : 1344085597 download finish for photo 1344085597 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette214129381741935123/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21412913_14-03-2025_07_52_03.pdf 21412938 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=21412938 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214129381741935123 21412940 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=21412940 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344086272: '1741935026_1068815_1344085609_88d4ceb2bf5534dd60ffc406bf8639ad_rle_crop_3711573585_0.png'} change filename to text .imagette214129401741935123/ imagette214129401741935123/1741935026_1068815_1344085609_88d4ceb2bf5534dd60ffc406bf8639ad_rle_crop_3711573585_0.png.png imagette214129421741935123/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/63e9b6990bcab31110bcea0bfce1fb40_23998231.png imagette214129401741935123 21412942 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=21412942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214129421741935123 21412943 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=21412943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344085880: '1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572643_0.png', 1344085883: '1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572731_0.png', 1344085885: '1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572875_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c281b07f5c39c8b31ada4d528897fe4b_35300391.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/8c7d8207c1b7c4bbf8595aca27bf6adf_53095889.png change filename to text .imagette214129431741935123/ imagette214129431741935123/1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572731_0.png.png imagette214129431741935123/1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572875_0.png.png imagette214129431741935123/1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572643_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/50208698765e4493188fb0ba882e11ff_11949301.png imagette214129431741935123 21412945 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=21412945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344085756: '1741934909_1068096_1344085277_c6666a8efedd86cd61da9bffcd84dc48_rle_crop_3711572624_0.png', 1344085759: '1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572649_0.png', 1344085760: '1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572730_0.png', 1344085763: '1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572737_0.png', 1344085765: '1741934909_1068096_1344085258_35d9420a03511b208d0ef21d8dc3c1ca_rle_crop_3711572807_0.png', 1344085767: '1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572879_0.png', 1344085769: '1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572874_0.png', 1344086250: '1741935026_1068815_1344085609_88d4ceb2bf5534dd60ffc406bf8639ad_rle_crop_3711573584_0.png', 1344086254: '1741935026_1068815_1344085351_0a44d75a86faf1faf8ef46fcc90d7d7c_rle_crop_3711573753_0.png', 1344086258: '1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573765_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/667cb64918cf2347854e193d04c2ad33_43869860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/4afe623aa77102f1085bbf7963aa8ed5_13694186.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/61f8e83c0914e462bb71dce7092ea270_82435193.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/0d89b21543713ab46a4cef8a87892147_6175762.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d143bb222880c741cafe2c16eb13b344_93861751.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/7c1eb4c46e12e12b70ab836893f26e6c_63389424.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/00703a5e0e1018a08eb2fc8129e98c22_83171549.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/aff0a198e307395abc6886b9ec6eb1bd_50756740.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/2289ba26d30742c4a459a00ffed74766_72622911.png change filename to text .imagette214129451741935123/ imagette214129451741935123/1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572730_0.png.png imagette214129451741935123/1741935026_1068815_1344085351_0a44d75a86faf1faf8ef46fcc90d7d7c_rle_crop_3711573753_0.png.png imagette214129451741935123/1741934909_1068096_1344085277_c6666a8efedd86cd61da9bffcd84dc48_rle_crop_3711572624_0.png.png imagette214129451741935123/1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572874_0.png.png imagette214129451741935123/1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573765_0.png.png imagette214129451741935123/1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572737_0.png.png imagette214129451741935123/1741935026_1068815_1344085609_88d4ceb2bf5534dd60ffc406bf8639ad_rle_crop_3711573584_0.png.png imagette214129451741935123/1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572649_0.png.png imagette214129451741935123/1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572879_0.png.png imagette214129451741935123/1741934909_1068096_1344085258_35d9420a03511b208d0ef21d8dc3c1ca_rle_crop_3711572807_0.png.png imagette214129471741935126/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a7bc4367947b59d36022292e4d2f5ec1_70998868.png imagette214129451741935123 21412947 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=21412947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette214129471741935126 21412948 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=21412948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344085873: '1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572739_0.png', 1344086268: '1741935026_1068815_1344085351_0a44d75a86faf1faf8ef46fcc90d7d7c_rle_crop_3711573751_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/68c6ba3c2174443c954d9e167a63be61_64131698.png change filename to text .imagette214129481741935126/ imagette214129481741935126/1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572739_0.png.png imagette214129481741935126/1741935026_1068815_1344085351_0a44d75a86faf1faf8ef46fcc90d7d7c_rle_crop_3711573751_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/06534dcf075cdeb5c882e4d9c08ce18e_25571458.png imagette214129481741935126 21412941 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=21412941 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344085801: '1741934909_1068096_1344085258_35d9420a03511b208d0ef21d8dc3c1ca_rle_crop_3711572803_0.png', 1344085808: '1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572876_0.png', 1344086266: '1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573760_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d3fc772dd6df2d456d397c9ea10f9dc6_2361001.png change filename to text .imagette214129411741935126/ imagette214129411741935126/1741934909_1068096_1344085258_35d9420a03511b208d0ef21d8dc3c1ca_rle_crop_3711572803_0.png.png imagette214129411741935126/1741934909_1068096_1344085252_9e63f5aaf9e873cdf27d15b73272faf0_rle_crop_3711572876_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/afbb7636a648a410f38dd411496e252f_75968966.png -- Missing : http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/3844472b1a37534399f671867b5f11ed_38831743.png retrying : HTTP Error 503: Service Unavailable imagette214129411741935126 21412946 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=21412946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344086270: '1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573764_0.png'} change filename to text .imagette214129461741935216/ imagette214129461741935216/1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573764_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/281e7e8da878467c3fde09f60c7430a2_19929885.png imagette214129461741935216 21412949 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=21412949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1344085721: '1741934909_1068096_1344085277_c6666a8efedd86cd61da9bffcd84dc48_rle_crop_3711572631_0.png', 1344085723: '1741934909_1068096_1344085277_c6666a8efedd86cd61da9bffcd84dc48_rle_crop_3711572622_0.png', 1344085725: '1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572650_0.png', 1344085727: '1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572644_0.png', 1344085729: '1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572733_0.png', 1344085731: '1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572738_0.png', 1344086240: '1741935026_1068815_1344085609_88d4ceb2bf5534dd60ffc406bf8639ad_rle_crop_3711573583_0.png', 1344086241: '1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573767_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/81fda737739946fb48de1cb596af15d7_62976085.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/b6a0b891b6b5babdc56db060a0675f80_41863651.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/21fb04eefa7c40fb794c632c0343a13d_23149210.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/a8b1f1499d1735a3158b2d49f565ef99_88990432.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/e30d3e155005867e8014ce4324b84342_7354933.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/d075e5d1e4a363660facd71b58125ed4_55715402.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/c9ac84f5c49d24c8686e5258cec97f83_16560863.png change filename to text .imagette214129491741935216/ imagette214129491741935216/1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572650_0.png.png imagette214129491741935216/1741935026_1068815_1344085609_88d4ceb2bf5534dd60ffc406bf8639ad_rle_crop_3711573583_0.png.png imagette214129491741935216/1741934909_1068096_1344085277_c6666a8efedd86cd61da9bffcd84dc48_rle_crop_3711572622_0.png.png imagette214129491741935216/1741934909_1068096_1344085273_09ff6c77b3a350d7788b2745e4ef2bf0_rle_crop_3711572644_0.png.png imagette214129491741935216/1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572738_0.png.png imagette214129491741935216/1741934909_1068096_1344085277_c6666a8efedd86cd61da9bffcd84dc48_rle_crop_3711572631_0.png.png imagette214129491741935216/1741935026_1068815_1344085349_b9989f3fea1e6b708b00a5c20d3f3ccc_rle_crop_3711573767_0.png.png imagette214129491741935216/1741934909_1068096_1344085263_7996401a0efe3cdcd6d2065d19aa3bf7_rle_crop_3711572733_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/14/61b7cf881a62722fd4d34808103f0205_93596642.png imagette214129491741935216 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21412913 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21412950,21412951,21412952,21412953,21412954,21412955,21412956,21412957,21412958,21412959,21412960,21412961?tags=mal_croppe,papier,kraft,Carton_gris,metal,plastique,environnement,autre_refus,Carton_brun,flou,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1344086066] : ('0.07713548470405021',) no score found for photo 1344086066 We are sending mail with results at report@fotonower.com args[1344086047] : ('0.07713548470405021',) no score found for photo 1344086047 We are sending mail with results at report@fotonower.com args[1344085997] : ('0.07713548470405021',) no score found for photo 1344085997 We are sending mail with results at report@fotonower.com args[1344085960] : ('0.07713548470405021',) no score found for photo 1344085960 We are sending mail with results at report@fotonower.com args[1344085609] : ('0.07713548470405021',) no score found for photo 1344085609 We are sending mail with results at report@fotonower.com args[1344085601] : ('0.07713548470405021',) no score found for photo 1344085601 We are sending mail with results at report@fotonower.com args[1344085599] : ('0.07713548470405021',) no score found for photo 1344085599 We are sending mail with results at report@fotonower.com args[1344085597] : ('0.07713548470405021',) no score found for photo 1344085597 We are sending mail with results at report@fotonower.com args[1344085576] : ('0.07713548470405021',) no score found for photo 1344085576 We are sending mail with results at report@fotonower.com args[1344085570] : ('0.07713548470405021',) no score found for photo 1344085570 We are sending mail with results at report@fotonower.com refus_total : 0.07713548470405021 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=21412913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412913_14-03-2025_07_52_03.pdf results_Auto_P21412913_14-03-2025_07_52_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412913_14-03-2025_07_52_03.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21412913','results_Auto_P21412913_14-03-2025_07_52_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21412913_14-03-2025_07_52_03.pdf','pdf','','0.19','0.07713548470405021') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21412913]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570] map_info['map_portfolio_photo'] : {21412913: [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570, 1344085357, 1344085354, 1344085351, 1344085349, 1344085277, 1344085273, 1344085263, 1344085258, 1344085252]} final : False mtd_id 4302 list_pids : [1344086066, 1344086047, 1344085997, 1344085960, 1344085609, 1344085601, 1344085599, 1344085597, 1344085576, 1344085570] 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, '2668170') ('4302', '21412913', '1344086066', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344086047', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085997', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085960', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085609', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085601', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085599', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085597', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085576', None, None, None, None, None, '2668170') ('4302', None, None, None, None, None, None, None, '2668170') ('4302', '21412913', '1344085570', None, None, None, None, None, '2668170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21412913', '1344086066', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344086047', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085997', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085960', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085609', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085601', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085599', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085597', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085576', None, None, None, None, None, '2668170'), ('4302', '21412913', '1344085570', None, None, None, None, None, '2668170')] time used for this insertion : 0.013776540756225586 save_final save missing photos in datou_result : time spend for datou_step_exec : 127.83617496490479 time spend to save output : 0.01400136947631836 total time spend for step 4 : 127.8501763343811 step5:split_time_score Fri Mar 14 07:54:09 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 : ['21412913'] 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 : [('21412913',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21412913) new photo added, this last batch is non a complet batch, should exit and reload photo caffe_path_current : About to save ! 2 After save, about to update current ! 2.14user 2.22system 2:13.95elapsed 3%CPU (0avgtext+0avgdata 162172maxresident)k 272inputs+10616outputs (17major+64308minor)pagefaults 0swaps