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 : 784358 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 (2661317) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2661317) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332333 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2661317'] with mtr_portfolio_ids : ['21332333'] and first list_photo_ids : [] new path : /proc/784358/ Name: python3 Umask: 0002 State: R (running) Tgid: 784358 Ngid: 0 Pid: 784358 PPid: 784357 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 784358 NSpid: 784358 NSpgid: 781405 NSsid: 781405 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98704 kB VmRSS: 98704 kB RssAnon: 59756 kB RssFile: 38948 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 71 nonvoluntary_ctxt_switches: 154 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '784358', 'Ngid': '0', 'Pid': '784358', 'PPid': '784357', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '784358', 'NSpid': '784358', 'NSpgid': '781405', 'NSsid': '781405', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98704 kB', 'VmRSS': '98704 kB', 'RssAnon': '59756 kB', 'RssFile': '38948 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '71', 'nonvoluntary_ctxt_switches': '154'} ('datou_batch_current', '784358', '1106844', '0', '1106844', '865592', '98704', b'', 'marlene', '2661317') 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 (21332333) 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 (2661317 ) ) 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 (21332333) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343315619, 'portfolio_id': 21332333}, {'photo_id': 1343315596, 'portfolio_id': 21332333}, {'photo_id': 1343315577, 'portfolio_id': 21332333}, {'photo_id': 1343315565, 'portfolio_id': 21332333}, {'photo_id': 1343315561, 'portfolio_id': 21332333}, {'photo_id': 1343315554, 'portfolio_id': 21332333}, {'photo_id': 1343315451, 'portfolio_id': 21332333}, {'photo_id': 1343315448, 'portfolio_id': 21332333}, {'photo_id': 1343315433, 'portfolio_id': 21332333}, {'photo_id': 1343315234, 'portfolio_id': 21332333}, {'photo_id': 1343315230, 'portfolio_id': 21332333}, {'photo_id': 1343315225, 'portfolio_id': 21332333}, {'photo_id': 1343315221, 'portfolio_id': 21332333}, {'photo_id': 1343315151, 'portfolio_id': 21332333}, {'photo_id': 1343315079, 'portfolio_id': 21332333}, {'photo_id': 1343315051, 'portfolio_id': 21332333}, {'photo_id': 1343315028, 'portfolio_id': 21332333}, {'photo_id': 1343314938, 'portfolio_id': 21332333}, {'photo_id': 1343314624, 'portfolio_id': 21332333}, {'photo_id': 1343314596, 'portfolio_id': 21332333}, {'photo_id': 1343314577, 'portfolio_id': 21332333}, {'photo_id': 1343314554, 'portfolio_id': 21332333}, {'photo_id': 1343314338, 'portfolio_id': 21332333}, {'photo_id': 1343314313, 'portfolio_id': 21332333}, {'photo_id': 1343314283, 'portfolio_id': 21332333}, {'photo_id': 1343314238, 'portfolio_id': 21332333}, {'photo_id': 1343314212, 'portfolio_id': 21332333}, {'photo_id': 1343314187, 'portfolio_id': 21332333}, {'photo_id': 1343314079, 'portfolio_id': 21332333}, {'photo_id': 1343314065, 'portfolio_id': 21332333}, {'photo_id': 1343314058, 'portfolio_id': 21332333}, {'photo_id': 1343314053, 'portfolio_id': 21332333}, {'photo_id': 1343313908, 'portfolio_id': 21332333}, {'photo_id': 1343313904, 'portfolio_id': 21332333}, {'photo_id': 1343313888, 'portfolio_id': 21332333}] map_portfolio_id_photo_id: {21332333: [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433, 1343315234, 1343315230, 1343315225, 1343315221, 1343315151, 1343315079, 1343315051, 1343315028, 1343314938, 1343314624, 1343314596, 1343314577, 1343314554, 1343314338, 1343314313, 1343314283, 1343314238, 1343314212, 1343314187, 1343314079, 1343314065, 1343314058, 1343314053, 1343313908, 1343313904, 1343313888]} ##### 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.014737367630004883 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Mar 12 07:09: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 (21332333) 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 : 21332333 get user id for portfolio 21332333 get sub ptf for main ptf 21332333, type 3726 and hashtags ['Teint_Dans_La_Masse', 'papier', 'cartonnette', 'environnement', 'plastique', 'autre_refus', 'Carton_gris', 'mal_croppe', 'kraft', 'metal', 'flou', 'Carton_brun'] 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`=21332333 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','environnement','plastique','autre_refus','Carton_gris','mal_croppe','kraft','metal','flou','Carton_brun')) 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`=21332333 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','environnement','plastique','autre_refus','Carton_gris','mal_croppe','kraft','metal','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21332333, 'sub_port_id': 21332334, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914240, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'papier': {'main_port_id': 21332333, 'sub_port_id': 21332335, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914241, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'plastique': {'main_port_id': 21332333, 'sub_port_id': 21332336, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914242, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'metal': {'main_port_id': 21332333, 'sub_port_id': 21332337, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914243, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'Carton_brun': {'main_port_id': 21332333, 'sub_port_id': 21332338, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914244, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'mal_croppe': {'main_port_id': 21332333, 'sub_port_id': 21332339, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914245, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'autre_refus': {'main_port_id': 21332333, 'sub_port_id': 21332340, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914246, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'Carton_gris': {'main_port_id': 21332333, 'sub_port_id': 21332341, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914247, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 21332333, 'sub_port_id': 21332342, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914248, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'flou': {'main_port_id': 21332333, 'sub_port_id': 21332343, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914249, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'cartonnette': {'main_port_id': 21332333, 'sub_port_id': 21332344, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914250, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}, 'environnement': {'main_port_id': 21332333, 'sub_port_id': 21332345, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914251, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21332334 , 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=21332333 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 (21332334) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332335 , 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=21332333 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 (21332335) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332336 , 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=21332333 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 (21332336) result : ((1343315762,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332337 , 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=21332333 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 (21332337) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332338 , 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=21332333 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 (21332338) result : ((1343314988,), (1343314989,), (1343314990,), (1343315269,), (1343315446,), (1343315559,), (1343315754,), (1343315755,), (1343315759,), (1343315760,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332339 , 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=21332333 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 (21332339) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332340 , 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=21332333 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 (21332340) result : ((1343314718,), (1343314721,), (1343314724,), (1343314971,), (1343314972,), (1343314974,), (1343314975,), (1343315263,), (1343315264,), (1343315266,), (1343315361,), (1343315362,), (1343315364,), (1343315365,), (1343315366,), (1343315367,), (1343315558,), (1343315744,), (1343315747,), (1343315748,), (1343315749,), (1343315750,), (1343315751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332341 , 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=21332333 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 (21332341) result : ((1343315752,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332342 , 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=21332333 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 (21332342) result : ((1343314951,), (1343315261,), (1343315262,), (1343315306,), (1343315308,), (1343315309,), (1343315310,), (1343315311,), (1343315736,), (1343315737,), (1343315738,), (1343315739,), (1343315741,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332343 , 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=21332333 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 (21332343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332344 , 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=21332333 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 (21332344) result : ((1343314747,), (1343314981,), (1343315414,), (1343315416,), (1343315417,), (1343315746,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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 21332345 , 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=21332333 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 (21332345) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21332333) result : ((1343313888,), (1343313904,), (1343313908,), (1343314053,), (1343314058,), (1343314065,), (1343314079,), (1343314187,), (1343314212,), (1343314238,), (1343314283,), (1343314313,), (1343314338,), (1343314554,), (1343314577,), (1343314596,), (1343314624,), (1343314938,), (1343315028,), (1343315051,), (1343315079,), (1343315151,), (1343315221,), (1343315225,), (1343315230,), (1343315234,), (1343315433,), (1343315448,), (1343315451,), (1343315554,), (1343315561,), (1343315565,), (1343315577,), (1343315596,), (1343315619,)) 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`=21332333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','environnement','plastique','autre_refus','Carton_gris','mal_croppe','kraft','metal','flou','Carton_brun')) 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`=21332333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','cartonnette','environnement','plastique','autre_refus','Carton_gris','mal_croppe','kraft','metal','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21332333, 'sub_port_id': 21332346, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914252, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'papier': {'main_port_id': 21332333, 'sub_port_id': 21332347, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914253, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'plastique': {'main_port_id': 21332333, 'sub_port_id': 21332348, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914254, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'metal': {'main_port_id': 21332333, 'sub_port_id': 21332349, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914255, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'Carton_brun': {'main_port_id': 21332333, 'sub_port_id': 21332350, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914256, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'mal_croppe': {'main_port_id': 21332333, 'sub_port_id': 21332351, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914257, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'autre_refus': {'main_port_id': 21332333, 'sub_port_id': 21332352, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914258, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'Carton_gris': {'main_port_id': 21332333, 'sub_port_id': 21332353, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914259, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21332333, 'sub_port_id': 21332354, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914260, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'flou': {'main_port_id': 21332333, 'sub_port_id': 21332355, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914261, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'cartonnette': {'main_port_id': 21332333, 'sub_port_id': 21332356, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914262, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 5, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}, 'environnement': {'main_port_id': 21332333, 'sub_port_id': 21332357, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13914263, 'last_updated_at': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 7, 8), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 7, 5, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332334 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332335 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21332357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21332345 lien utilise dans velours : https://www.fotonower.com/velours/21332346,21332347,21332348,21332349,21332350,21332351,21332352,21332353,21332354,21332355,21332356,21332357?tags=kraft,papier,plastique,metal,Carton_brun,mal_croppe,autre_refus,Carton_gris,Teint_Dans_La_Masse,flou,cartonnette,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21332333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433] map_info['map_portfolio_photo'] : {21332333: [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433, 1343315234, 1343315230, 1343315225, 1343315221, 1343315151, 1343315079, 1343315051, 1343315028, 1343314938, 1343314624, 1343314596, 1343314577, 1343314554, 1343314338, 1343314313, 1343314283, 1343314238, 1343314212, 1343314187, 1343314079, 1343314065, 1343314058, 1343314053, 1343313908, 1343313904, 1343313888]} final : False mtd_id 4302 list_pids : [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433] Looping around the photos to save general results len do output : 1 /21332333. 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, '2661317') ('4302', '21332333', '1343315619', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315596', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315577', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315565', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315561', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315554', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315451', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315448', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315433', None, None, None, None, None, '2661317') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21332333', "{'kraft': 21332334, 'papier': 21332335, 'plastique': 21332336, 'metal': 21332337, 'Carton_brun': 21332338, 'mal_croppe': 21332339, 'autre_refus': 21332340, 'Carton_gris': 21332341, 'Teint_Dans_La_Masse': 21332342, 'flou': 21332343, 'cartonnette': 21332344, 'environnement': 21332345}", None, None, None, None, '2661317'), ('4302', '21332333', '1343315619', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315596', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315577', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315565', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315561', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315554', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315451', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315448', None, None, None, None, None, '2661317'), ('4302', '21332333', '1343315433', None, None, None, None, None, '2661317')] time used for this insertion : 0.013402938842773438 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4762904644012451 time spend to save output : 0.013684511184692383 total time spend for step 1 : 1.4899749755859375 step2:final Wed Mar 12 07:09: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 (21332333) 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 21332333 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343313908,1343313904,1343313888,1343314079,1343314065,1343314058,1343314053,1343314338,1343314313,1343314283,1343314238,1343314212,1343314187,1343314624,1343314596,1343314577,1343314554,1343315151,1343315079,1343315051,1343314938,1343315028,1343315234,1343315230,1343315225,1343315221,1343315451,1343315448,1343315433,1343315619,1343315596,1343315577,1343315565,1343315561,1343315554); 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([21332333]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} new output for save of step final : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433] map_info['map_portfolio_photo'] : {21332333: [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433, 1343315234, 1343315230, 1343315225, 1343315221, 1343315151, 1343315079, 1343315051, 1343315028, 1343314938, 1343314624, 1343314596, 1343314577, 1343314554, 1343314338, 1343314313, 1343314283, 1343314238, 1343314212, 1343314187, 1343314079, 1343314065, 1343314058, 1343314053, 1343313908, 1343313904, 1343313888]} final : False mtd_id 4302 list_pids : [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433] Looping around the photos to save general results len do output : 9 /1343315619.Didn't retrieve data . /1343315596.Didn't retrieve data . /1343315577.Didn't retrieve data . /1343315565.Didn't retrieve data . /1343315561.Didn't retrieve data . /1343315554.Didn't retrieve data . /1343315451.Didn't retrieve data . /1343315448.Didn't retrieve data . /1343315433.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, '2661317') ('4302', '21332333', '1343315619', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315596', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315577', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315565', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315561', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315554', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315451', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315448', None, None, None, None, None, '2661317') ('4302', None, None, None, None, None, None, None, '2661317') ('4302', '21332333', '1343315433', None, None, None, None, None, '2661317') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21332333', '1343315619', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315596', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315577', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315565', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315561', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315554', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315451', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315448', '0.06672863734111766', None, None, None, None, '2661317'), ('4302', '21332333', '1343315433', '0.06672863734111766', None, None, None, None, '2661317')] time used for this insertion : 0.013438940048217773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.16906309127807617 time spend to save output : 0.013944625854492188 total time spend for step 2 : 0.18300771713256836 step3:velours_tree Wed Mar 12 07:10: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 : {21332333: [{'kraft': 21332334, 'papier': 21332335, 'plastique': 21332336, 'metal': 21332337, 'Carton_brun': 21332338, 'mal_croppe': 21332339, 'autre_refus': 21332340, 'Carton_gris': 21332341, 'Teint_Dans_La_Masse': 21332342, 'flou': 21332343, 'cartonnette': 21332344, 'environnement': 21332345}]} input_args_next_step : {21332333: ()} output_args : {21332333: [{'kraft': 21332334, 'papier': 21332335, 'plastique': 21332336, 'metal': 21332337, 'Carton_brun': 21332338, 'mal_croppe': 21332339, 'autre_refus': 21332340, 'Carton_gris': 21332341, 'Teint_Dans_La_Masse': 21332342, 'flou': 21332343, 'cartonnette': 21332344, 'environnement': 21332345}]} args : 21332333 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 : ({'kraft': 21332334, 'papier': 21332335, 'plastique': 21332336, 'metal': 21332337, 'Carton_brun': 21332338, 'mal_croppe': 21332339, 'autre_refus': 21332340, 'Carton_gris': 21332341, 'Teint_Dans_La_Masse': 21332342, 'flou': 21332343, 'cartonnette': 21332344, 'environnement': 21332345},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332333) 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([21332333]) 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.44144582748413086 time spend to save output : 8.153915405273438e-05 total time spend for step 3 : 0.4415273666381836 step4:send_mail_cod Wed Mar 12 07:10:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} input_args_next_step : {1343315619: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315619 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315596 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315577 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315565 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315561 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315554 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315451 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315448 depend.output_id : 0 input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ()} output_args : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',)} args : 1343315433 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 : {21332333: [{'kraft': 21332334, 'papier': 21332335, 'plastique': 21332336, 'metal': 21332337, 'Carton_brun': 21332338, 'mal_croppe': 21332339, 'autre_refus': 21332340, 'Carton_gris': 21332341, 'Teint_Dans_La_Masse': 21332342, 'flou': 21332343, 'cartonnette': 21332344, 'environnement': 21332345}]} input_args_next_step : {1343315619: ('0.06672863734111766',), 1343315596: ('0.06672863734111766',), 1343315577: ('0.06672863734111766',), 1343315565: ('0.06672863734111766',), 1343315561: ('0.06672863734111766',), 1343315554: ('0.06672863734111766',), 1343315451: ('0.06672863734111766',), 1343315448: ('0.06672863734111766',), 1343315433: ('0.06672863734111766',), 21332333: ()} output_args : {21332333: [{'kraft': 21332334, 'papier': 21332335, 'plastique': 21332336, 'metal': 21332337, 'Carton_brun': 21332338, 'mal_croppe': 21332339, 'autre_refus': 21332340, 'Carton_gris': 21332341, 'Teint_Dans_La_Masse': 21332342, 'flou': 21332343, 'cartonnette': 21332344, 'environnement': 21332345}]} args : 21332333 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.06672863734111766',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21332333) 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 (1343315619,1343315596,1343315577,1343315565,1343315561,1343315554,1343315451,1343315448,1343315433) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343315433 begin to download photo : 1343315451 begin to download photo : 1343315561 begin to download photo : 1343315577 begin to download photo : 1343315619 download finish for photo 1343315451 begin to download photo : 1343315554 download finish for photo 1343315619 download finish for photo 1343315561 begin to download photo : 1343315565 download finish for photo 1343315433 begin to download photo : 1343315448 download finish for photo 1343315577 begin to download photo : 1343315596 download finish for photo 1343315554 download finish for photo 1343315448 download finish for photo 1343315565 download finish for photo 1343315596 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette213323341741759800/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21332333_12-03-2025_07_10_00.pdf 21332334 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=21332334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213323341741759800 21332336 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=21332336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343315762: '1741759711_2296366_1343315234_0638da0512e01db0557d4b2ec11af007_rle_crop_3707146021_0.png'} change filename to text .imagette213323361741759800/ imagette213323361741759800/1741759711_2296366_1343315234_0638da0512e01db0557d4b2ec11af007_rle_crop_3707146021_0.png.png imagette213323371741759800/ imagette213323391741759800/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3055b0b31cf211f04a7a32b8ed1ad6d8_73437440.png imagette213323361741759800 21332337 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=21332337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213323371741759800 21332339 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=21332339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette213323391741759800 21332340 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=21332340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343315362: '1741759589_2295554_1343314624_08ff135e91748cf0e99b25be042ff1ed_rle_crop_3707143378_0.png', 1343315751: '1741759711_2296366_1343314938_d3a88ec6ee3c90009747af842a4c396b_rle_crop_3707146182_0.png', 1343315750: '1741759711_2296366_1343315028_fb3e693883ca3cb55d4e511f6d4b8b90_rle_crop_3707146129_0.png', 1343315749: '1741759711_2296366_1343315051_4fd43690bfcec285b50ebfb14d8826d0_rle_crop_3707146105_0.png', 1343315748: '1741759711_2296366_1343315079_a75cd901308d8bcef057617022b31c87_rle_crop_3707146053_0.png', 1343315747: '1741759711_2296366_1343315234_0638da0512e01db0557d4b2ec11af007_rle_crop_3707146010_0.png', 1343315744: '1741759732_2296560_1343315230_fa745ef7cf16a010b06e5a5515c3658b_rle_crop_3707146139_0.png', 1343315558: '1741759705_3339473_1343315151_62f6aeae496e02898837face2e3ffdef_rle_crop_3707145730_0.png', 1343315367: '1741759589_2295554_1343314187_e7d1598e6eb746b8f751180f45147885_rle_crop_3707144697_0.png', 1343315366: '1741759589_2295554_1343314212_0eaa8ce169bbc5231f277f1637c23cd6_rle_crop_3707144682_0.png', 1343315365: '1741759589_2295554_1343314238_6b39bf58f913eedbec1fbf568e782c7b_rle_crop_3707143398_0.png', 1343315364: '1741759589_2295554_1343314283_9bcb7c652ec8dd7252566adfd6823acb_rle_crop_3707143390_0.png', 1343314718: '1741759466_3332996_1343314065_79f27e063accfdd0ffca18c55c981375_rle_crop_3707140152_0.png', 1343315361: '1741759589_2295554_1343314624_08ff135e91748cf0e99b25be042ff1ed_rle_crop_3707143372_0.png', 1343315266: '1741759586_3335936_1343314554_ee20bb5f0a55cb54b77a3f14fd99ff8c_rle_crop_3707142783_0.png', 1343315264: '1741759586_3335936_1343314577_624b75b30c2d08c5721adc2ac0850531_rle_crop_3707142681_0.png', 1343315263: '1741759586_3335936_1343314596_76b21012ff756d78f8eeb57c2bc06ae5_rle_crop_3707142665_0.png', 1343314975: '1741759471_2293961_1343313888_a8ea18977f5353e1f57676c3f92b6fe8_rle_crop_3707140752_0.png', 1343314974: '1741759471_2293961_1343313904_36093a878b80370e914bf5d48a8dfd14_rle_crop_3707140731_0.png', 1343314972: '1741759471_2293961_1343313908_60b47d092e803d5f5eded4a595222263_rle_crop_3707140711_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/482dd0e399f1f342d2296d46b10f5484_42012660.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/01309f23df5a93092fa2e8ecbf31f0d7_27505359.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/c6a144a59c7a94b948e08f95094a7f84_25198000.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3432407a4d3c211908f83a7e67c7113b_45225844.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/9a1be91571d274d61eecde832b7d50ea_49300929.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/27ca1429b67da05a1cf04b6d772fbfe0_66021106.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/b7439958b108526859d4e6c5c952c292_93919120.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/5302969c42c324b83d9afbfb499774e8_84035682.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/68000442bcbda24c5f33f6bcbf43c9d9_47736943.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/58f49499512a8f59dd155fc8b50c68d6_25010437.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/4ed8912a1946212af56127c4add1af45_32539255.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cc57db2c62e59d6437390d8e0ddb8021_61608553.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/d22881efe0999bbb780a81f0ee702ba3_92492409.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/59f078624ed9856e22ce5eab8bd33c1d_10391413.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e7438c41699c76dde75112746bdcc2fa_19604136.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/147665f2c8265e6ef92b729dd2d177e6_39759940.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/cb3549518e0c5253e66f3a8aac179d3e_48687320.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/3822265ecc2e3c0c01682df195f2f9a0_78786442.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/2482408cd7dc70bfeab0c98994b8c112_32574922.png change filename to text .imagette213323401741759800/ imagette213323401741759800/1741759471_2293961_1343313904_36093a878b80370e914bf5d48a8dfd14_rle_crop_3707140731_0.png.png imagette213323401741759800/1741759589_2295554_1343314624_08ff135e91748cf0e99b25be042ff1ed_rle_crop_3707143378_0.png.png imagette213323401741759800/1741759586_3335936_1343314577_624b75b30c2d08c5721adc2ac0850531_rle_crop_3707142681_0.png.png imagette213323401741759800/1741759586_3335936_1343314554_ee20bb5f0a55cb54b77a3f14fd99ff8c_rle_crop_3707142783_0.png.png imagette213323401741759800/1741759589_2295554_1343314283_9bcb7c652ec8dd7252566adfd6823acb_rle_crop_3707143390_0.png.png imagette213323401741759800/1741759711_2296366_1343315234_0638da0512e01db0557d4b2ec11af007_rle_crop_3707146010_0.png.png imagette213323401741759800/1741759732_2296560_1343315230_fa745ef7cf16a010b06e5a5515c3658b_rle_crop_3707146139_0.png.png imagette213323401741759800/1741759705_3339473_1343315151_62f6aeae496e02898837face2e3ffdef_rle_crop_3707145730_0.png.png imagette213323401741759800/1741759466_3332996_1343314065_79f27e063accfdd0ffca18c55c981375_rle_crop_3707140152_0.png.png imagette213323401741759800/1741759589_2295554_1343314238_6b39bf58f913eedbec1fbf568e782c7b_rle_crop_3707143398_0.png.png imagette213323401741759800/1741759471_2293961_1343313888_a8ea18977f5353e1f57676c3f92b6fe8_rle_crop_3707140752_0.png.png imagette213323401741759800/1741759711_2296366_1343315079_a75cd901308d8bcef057617022b31c87_rle_crop_3707146053_0.png.png imagette213323401741759800/1741759586_3335936_1343314596_76b21012ff756d78f8eeb57c2bc06ae5_rle_crop_3707142665_0.png.png imagette213323401741759800/1741759711_2296366_1343314938_d3a88ec6ee3c90009747af842a4c396b_rle_crop_3707146182_0.png.png imagette213323401741759800/1741759589_2295554_1343314624_08ff135e91748cf0e99b25be042ff1ed_rle_crop_3707143372_0.png.png imagette213323401741759800/1741759711_2296366_1343315051_4fd43690bfcec285b50ebfb14d8826d0_rle_crop_3707146105_0.png.png imagette213323401741759800/1741759471_2293961_1343313908_60b47d092e803d5f5eded4a595222263_rle_crop_3707140711_0.png.png imagette213323401741759800/1741759589_2295554_1343314212_0eaa8ce169bbc5231f277f1637c23cd6_rle_crop_3707144682_0.png.png imagette213323401741759800/1741759589_2295554_1343314187_e7d1598e6eb746b8f751180f45147885_rle_crop_3707144697_0.png.png imagette213323401741759800/1741759711_2296366_1343315028_fb3e693883ca3cb55d4e511f6d4b8b90_rle_crop_3707146129_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/12/e4ed9673403f6d044780bc90277d7b74_71644681.png imagette213323401741759800 21332343 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=21332343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 Catched exception ! Connect or reconnect ! ERROR in datou_step_exec, will save and exit ! Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2646, in datou_step_exec return send_or_copy.datou_step_exec_send_mail_cod(param, json_param, args, context, map_info, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_send_or_copy.py", line 767, in datou_step_exec_send_mail_cod dict_hashtag_useful_with_imagette_path, dict_sub_portfolio_with_hashtag_useful = cod.download_imagette_from_dict_sub_portfolio_with_hashtag(context, dict_sub_portfolio_with_hashtag,list_hashtag_useless = list_hashtag_useless, limite_contaminant=limite_contaminant, verbose = verbose, dict_hashtag_to_merge=dict_hashtag_to_merge) File "/home/admin/workarea/git/Velours/python/prod/cod/main_cod.py", line 676, in download_imagette_from_dict_sub_portfolio_with_hashtag folder_path = downloadListAndUrlsFromPortOrLabel(portfolio_id, limite_contaminant, 0, context.gq, 0, File "/home/admin/workarea/git/Velours/python/mtr/utils/prepare_photo_learning.py", line 91, in downloadListAndUrlsFromPortOrLabel list_url_to_download = portfolio_queries.select_photos(mtr_portfolio_id, hide_status=hide_status, verbose=verbose, limit=limit, offset=offset, columns=["photo_id", "url", "username", "text"]) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 49, in select_photos photos = self.gq.select(query) # , (hashtag_id, hashtag_type_id)) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 77, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 46, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433] map_info['map_portfolio_photo'] : {21332333: [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433, 1343315234, 1343315230, 1343315225, 1343315221, 1343315151, 1343315079, 1343315051, 1343315028, 1343314938, 1343314624, 1343314596, 1343314577, 1343314554, 1343314338, 1343314313, 1343314283, 1343314238, 1343314212, 1343314187, 1343314079, 1343314065, 1343314058, 1343314053, 1343313908, 1343313904, 1343313888]} final : True mtd_id 4302 list_pids : [1343315619, 1343315596, 1343315577, 1343315565, 1343315561, 1343315554, 1343315451, 1343315448, 1343315433] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21332333', '1343315619', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315596', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315577', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315565', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315561', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315554', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315451', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315448', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317'), ('4302', '21332333', '1343315433', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '2661317')] Catched exception ! Connect or reconnect ! exception in save_final Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") infos about query were already traced time used for this insertion : 0.009434938430786133 save_final ERROR in last step send_mail_cod, Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") time spend for datou_step_exec : 1.702540397644043 time spend to save output : 0.013901472091674805 total time spend for step 3 : 1.7164418697357178 UPDATE MTRPhoto.mtr_datou_current SET state=0, hostname='marlene' WHERE id in (2661317) Catched exception ! Connect or reconnect ! Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 68, in select cursor.execute(query, args) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 239, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (1053, 'Server shutdown in progress') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 43, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/__init__.py", line 84, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 179, in __init__ super(Connection, self).__init__(*args, **kwargs2) MySQLdb._exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2646, in datou_step_exec return send_or_copy.datou_step_exec_send_mail_cod(param, json_param, args, context, map_info, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_send_or_copy.py", line 767, in datou_step_exec_send_mail_cod dict_hashtag_useful_with_imagette_path, dict_sub_portfolio_with_hashtag_useful = cod.download_imagette_from_dict_sub_portfolio_with_hashtag(context, dict_sub_portfolio_with_hashtag,list_hashtag_useless = list_hashtag_useless, limite_contaminant=limite_contaminant, verbose = verbose, dict_hashtag_to_merge=dict_hashtag_to_merge) File "/home/admin/workarea/git/Velours/python/prod/cod/main_cod.py", line 676, in download_imagette_from_dict_sub_portfolio_with_hashtag folder_path = downloadListAndUrlsFromPortOrLabel(portfolio_id, limite_contaminant, 0, context.gq, 0, File "/home/admin/workarea/git/Velours/python/mtr/utils/prepare_photo_learning.py", line 91, in downloadListAndUrlsFromPortOrLabel list_url_to_download = portfolio_queries.select_photos(mtr_portfolio_id, hide_status=hide_status, verbose=verbose, limit=limit, offset=offset, columns=["photo_id", "url", "username", "text"]) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 49, in select_photos photos = self.gq.select(query) # , (hashtag_id, hashtag_type_id)) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 77, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 46, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 100, in insert number = cursor.execute(query, args) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 315, in _query db.query(q) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 239, in query _mysql.connection.query(self, query) MySQLdb._exceptions.OperationalError: (2013, 'Lost connection to MySQL server during query') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 43, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/__init__.py", line 84, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 179, in __init__ super(Connection, self).__init__(*args, **kwargs2) MySQLdb._exceptions.OperationalError: (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "prod/datou.py", line 270, in ret = batchDatouCurrent(context, datou_id, mtr_portfolio_ids, list_photo_ids, limit, offset, rand, save, File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 621, in batchDatouCurrent ret = batchDatouExec(context, datou_id, mtr_portfolio_ids, list_photo_ids, list_input_json, limit, File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 819, in batchDatouExec output, datou_failed_to_relaunch = datou_exec(datou, input, cache, context, map_info, save, list_pids, verbose, mtr_user_id, is_last_batch, end_time) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2368, in datou_exec context.update_current_state(map_info["datou_cur_ids"], 0, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 1875, in update_current_state self.DQ.update_current_state(map_info_datou_cur_ids, status, verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/datou_queries.py", line 170, in update_current_state self.gq.insert(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 110, in insert self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 46, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") Command exited with non-zero status 1 1.81user 1.76system 0:07.69elapsed 46%CPU (0avgtext+0avgdata 150940maxresident)k 3488inputs+7952outputs (67major+58731minor)pagefaults 0swaps