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 : 2251236 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 (2722958) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2722958) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051688 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2722958'] with mtr_portfolio_ids : ['22051688'] and first list_photo_ids : [] new path : /proc/2251236/ Name: python3 Umask: 0002 State: R (running) Tgid: 2251236 Ngid: 0 Pid: 2251236 PPid: 2251235 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2251236 NSpid: 2251236 NSpgid: 2247434 NSsid: 2247434 VmPeak: 1106848 kB VmSize: 1106848 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97660 kB VmRSS: 97660 kB RssAnon: 59800 kB RssFile: 37860 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 53 nonvoluntary_ctxt_switches: 169 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2251236', 'Ngid': '0', 'Pid': '2251236', 'PPid': '2251235', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2251236', 'NSpid': '2251236', 'NSpgid': '2247434', 'NSsid': '2247434', 'VmPeak': '1106848 kB', 'VmSize': '1106848 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97660 kB', 'VmRSS': '97660 kB', 'RssAnon': '59800 kB', 'RssFile': '37860 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '53', 'nonvoluntary_ctxt_switches': '169'} ('datou_batch_current', '2251236', '1106848', '0', '1106848', '865596', '97660', b'', 'marlene', '2722958') 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 (22051688) 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 (2722958 ) ) 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 (22051688) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349962454, 'portfolio_id': 22051688}, {'photo_id': 1349962446, 'portfolio_id': 22051688}, {'photo_id': 1349962434, 'portfolio_id': 22051688}, {'photo_id': 1349962424, 'portfolio_id': 22051688}, {'photo_id': 1349962398, 'portfolio_id': 22051688}, {'photo_id': 1349962394, 'portfolio_id': 22051688}, {'photo_id': 1349962390, 'portfolio_id': 22051688}, {'photo_id': 1349962386, 'portfolio_id': 22051688}, {'photo_id': 1349962382, 'portfolio_id': 22051688}, {'photo_id': 1349962377, 'portfolio_id': 22051688}, {'photo_id': 1349962350, 'portfolio_id': 22051688}, {'photo_id': 1349962330, 'portfolio_id': 22051688}, {'photo_id': 1349962326, 'portfolio_id': 22051688}, {'photo_id': 1349962322, 'portfolio_id': 22051688}, {'photo_id': 1349962318, 'portfolio_id': 22051688}, {'photo_id': 1349962239, 'portfolio_id': 22051688}, {'photo_id': 1349962234, 'portfolio_id': 22051688}, {'photo_id': 1349962230, 'portfolio_id': 22051688}, {'photo_id': 1349962228, 'portfolio_id': 22051688}, {'photo_id': 1349962187, 'portfolio_id': 22051688}, {'photo_id': 1349962103, 'portfolio_id': 22051688}, {'photo_id': 1349962071, 'portfolio_id': 22051688}, {'photo_id': 1349962065, 'portfolio_id': 22051688}, {'photo_id': 1349962053, 'portfolio_id': 22051688}, {'photo_id': 1349962050, 'portfolio_id': 22051688}, {'photo_id': 1349962045, 'portfolio_id': 22051688}, {'photo_id': 1349962037, 'portfolio_id': 22051688}, {'photo_id': 1349961950, 'portfolio_id': 22051688}, {'photo_id': 1349961920, 'portfolio_id': 22051688}, {'photo_id': 1349961910, 'portfolio_id': 22051688}, {'photo_id': 1349961761, 'portfolio_id': 22051688}, {'photo_id': 1349961713, 'portfolio_id': 22051688}, {'photo_id': 1349961711, 'portfolio_id': 22051688}, {'photo_id': 1349961702, 'portfolio_id': 22051688}, {'photo_id': 1349961692, 'portfolio_id': 22051688}, {'photo_id': 1349961689, 'portfolio_id': 22051688}, {'photo_id': 1349961587, 'portfolio_id': 22051688}, {'photo_id': 1349961551, 'portfolio_id': 22051688}, {'photo_id': 1349961517, 'portfolio_id': 22051688}, {'photo_id': 1349961483, 'portfolio_id': 22051688}, {'photo_id': 1349961475, 'portfolio_id': 22051688}, {'photo_id': 1349961470, 'portfolio_id': 22051688}, {'photo_id': 1349961386, 'portfolio_id': 22051688}, {'photo_id': 1349961383, 'portfolio_id': 22051688}, {'photo_id': 1349961375, 'portfolio_id': 22051688}, {'photo_id': 1349961369, 'portfolio_id': 22051688}, {'photo_id': 1349961352, 'portfolio_id': 22051688}, {'photo_id': 1349961292, 'portfolio_id': 22051688}, {'photo_id': 1349961287, 'portfolio_id': 22051688}] map_portfolio_id_photo_id: {22051688: [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318, 1349962239, 1349962234, 1349962230, 1349962228, 1349962187, 1349962103, 1349962071, 1349962065, 1349962053, 1349962050, 1349962045, 1349962037, 1349961950, 1349961920, 1349961910, 1349961761, 1349961713, 1349961711, 1349961702, 1349961692, 1349961689, 1349961587, 1349961551, 1349961517, 1349961483, 1349961475, 1349961470, 1349961386, 1349961383, 1349961375, 1349961369, 1349961352, 1349961292, 1349961287]} ##### 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.015516519546508789 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Apr 4 03:56:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22051688) 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 : 22051688 get user id for portfolio 22051688 get sub ptf for main ptf 22051688, type 3726 and hashtags ['Teint_Dans_La_Masse', 'cartonnette', 'autre_refus', 'flou', 'papier', 'kraft', 'plastique', 'metal', 'Carton_gris', 'mal_croppe', 'Carton_brun', 'environnement'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22051688 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','flou','papier','kraft','plastique','metal','Carton_gris','mal_croppe','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22051688 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','flou','papier','kraft','plastique','metal','Carton_gris','mal_croppe','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22051688, 'sub_port_id': 22051707, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542715, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'environnement': {'main_port_id': 22051688, 'sub_port_id': 22051708, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542716, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'flou': {'main_port_id': 22051688, 'sub_port_id': 22051709, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542717, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'autre_refus': {'main_port_id': 22051688, 'sub_port_id': 22051710, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542718, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'plastique': {'main_port_id': 22051688, 'sub_port_id': 22051711, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542719, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'papier': {'main_port_id': 22051688, 'sub_port_id': 22051712, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542720, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'mal_croppe': {'main_port_id': 22051688, 'sub_port_id': 22051713, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542721, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'cartonnette': {'main_port_id': 22051688, 'sub_port_id': 22051714, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542722, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'kraft': {'main_port_id': 22051688, 'sub_port_id': 22051715, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542723, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'metal': {'main_port_id': 22051688, 'sub_port_id': 22051716, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542724, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'Carton_gris': {'main_port_id': 22051688, 'sub_port_id': 22051717, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542725, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}, 'Teint_Dans_La_Masse': {'main_port_id': 22051688, 'sub_port_id': 22051718, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542726, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22051707 , 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=22051688 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 (22051707) result : ((1349961509,), (1349962038,), (1349962039,), (1349962040,), (1349962049,), (1349962063,), (1349962451,), (1349962452,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051708 , 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=22051688 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 (22051708) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051709 , 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=22051688 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 (22051709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051710 , 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=22051688 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 (22051710) result : ((1349962029,), (1349962030,), (1349962031,), (1349962054,), (1349962055,), (1349962422,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051711 , 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=22051688 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 (22051711) result : ((1349962066,), (1349962426,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051712 , 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=22051688 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 (22051712) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051713 , 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=22051688 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 (22051713) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051714 , 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=22051688 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 (22051714) result : ((1349961498,), (1349961500,), (1349962035,), (1349962036,), (1349962059,), (1349962060,), (1349962061,), (1349962062,), (1349962423,), (1349962439,), (1349962440,), (1349962441,), (1349962442,), (1349962443,), (1349962444,), (1349962445,), (1349962448,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051715 , 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=22051688 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 (22051715) result : ((1349962067,), (1349962453,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051716 , 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=22051688 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 (22051716) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051717 , 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=22051688 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 (22051717) result : ((1349961488,), (1349961489,), (1349961737,), (1349961738,), (1349962034,), (1349962056,), (1349962432,), (1349962435,), (1349962436,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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 22051718 , 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=22051688 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 (22051718) result : ((1349961734,), (1349961735,), (1349961736,), (1349962026,), (1349962027,), (1349962048,), (1349962419,), (1349962429,), (1349962430,), (1349962431,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22051688) result : ((1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) 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`=22051688 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','flou','papier','kraft','plastique','metal','Carton_gris','mal_croppe','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22051688 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','cartonnette','autre_refus','flou','papier','kraft','plastique','metal','Carton_gris','mal_croppe','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22051688, 'sub_port_id': 22051719, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542727, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'environnement': {'main_port_id': 22051688, 'sub_port_id': 22051720, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542728, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'flou': {'main_port_id': 22051688, 'sub_port_id': 22051721, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542729, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'autre_refus': {'main_port_id': 22051688, 'sub_port_id': 22051722, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542730, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'plastique': {'main_port_id': 22051688, 'sub_port_id': 22051723, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542731, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'papier': {'main_port_id': 22051688, 'sub_port_id': 22051724, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542732, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'mal_croppe': {'main_port_id': 22051688, 'sub_port_id': 22051725, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542733, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'cartonnette': {'main_port_id': 22051688, 'sub_port_id': 22051726, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542734, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'kraft': {'main_port_id': 22051688, 'sub_port_id': 22051727, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542735, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'metal': {'main_port_id': 22051688, 'sub_port_id': 22051728, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542736, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'Carton_gris': {'main_port_id': 22051688, 'sub_port_id': 22051729, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542737, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 51, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 22051688, 'sub_port_id': 22051730, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14542738, 'last_updated_at': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 3, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 3, 51, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051714 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051727,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051715 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051728,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051716 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051729,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051717 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22051730,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22051718 lien utilise dans velours : https://www.fotonower.com/velours/22051719,22051720,22051721,22051722,22051723,22051724,22051725,22051726,22051727,22051728,22051729,22051730?tags=Carton_brun,environnement,flou,autre_refus,plastique,papier,mal_croppe,cartonnette,kraft,metal,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22051688]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] map_info['map_portfolio_photo'] : {22051688: [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318, 1349962239, 1349962234, 1349962230, 1349962228, 1349962187, 1349962103, 1349962071, 1349962065, 1349962053, 1349962050, 1349962045, 1349962037, 1349961950, 1349961920, 1349961910, 1349961761, 1349961713, 1349961711, 1349961702, 1349961692, 1349961689, 1349961587, 1349961551, 1349961517, 1349961483, 1349961475, 1349961470, 1349961386, 1349961383, 1349961375, 1349961369, 1349961352, 1349961292, 1349961287]} final : False mtd_id 4302 list_pids : [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] Looping around the photos to save general results len do output : 1 /22051688. 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, '2722958') ('4302', '22051688', '1349962454', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22051688', "{'Carton_brun': 22051707, 'environnement': 22051708, 'flou': 22051709, 'autre_refus': 22051710, 'plastique': 22051711, 'papier': 22051712, 'mal_croppe': 22051713, 'cartonnette': 22051714, 'kraft': 22051715, 'metal': 22051716, 'Carton_gris': 22051717, 'Teint_Dans_La_Masse': 22051718}", None, None, None, None, '2722958'), ('4302', '22051688', '1349962454', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958')] time used for this insertion : 0.028859853744506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6121597290039062 time spend to save output : 0.029145240783691406 total time spend for step 1 : 1.6413049697875977 step2:final Fri Apr 4 03:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22051688) 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 22051688 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349961292,1349961287,1349961386,1349961383,1349961375,1349961369,1349961352,1349961587,1349961551,1349961517,1349961483,1349961475,1349961470,1349961713,1349961711,1349961702,1349961692,1349961689,1349961761,1349961950,1349961920,1349961910,1349962071,1349962065,1349962053,1349962050,1349962045,1349962037,1349962239,1349962234,1349962230,1349962228,1349962187,1349962103,1349962350,1349962330,1349962326,1349962322,1349962318,1349962398,1349962394,1349962390,1349962386,1349962382,1349962377,1349962454,1349962446,1349962434,1349962424); 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([22051688]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} new output for save of step final : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] map_info['map_portfolio_photo'] : {22051688: [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318, 1349962239, 1349962234, 1349962230, 1349962228, 1349962187, 1349962103, 1349962071, 1349962065, 1349962053, 1349962050, 1349962045, 1349962037, 1349961950, 1349961920, 1349961910, 1349961761, 1349961713, 1349961711, 1349961702, 1349961692, 1349961689, 1349961587, 1349961551, 1349961517, 1349961483, 1349961475, 1349961470, 1349961386, 1349961383, 1349961375, 1349961369, 1349961352, 1349961292, 1349961287]} final : False mtd_id 4302 list_pids : [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] Looping around the photos to save general results len do output : 15 /1349962454.Didn't retrieve data . /1349962446.Didn't retrieve data . /1349962434.Didn't retrieve data . /1349962424.Didn't retrieve data . /1349962398.Didn't retrieve data . /1349962394.Didn't retrieve data . /1349962390.Didn't retrieve data . /1349962386.Didn't retrieve data . /1349962382.Didn't retrieve data . /1349962377.Didn't retrieve data . /1349962350.Didn't retrieve data . /1349962330.Didn't retrieve data . /1349962326.Didn't retrieve data . /1349962322.Didn't retrieve data . /1349962318.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, '2722958') ('4302', '22051688', '1349962454', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22051688', '1349962454', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962446', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962434', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962424', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962398', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962394', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962390', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962386', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962382', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962377', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962350', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962330', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962326', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962322', '0.04782439750636587', None, None, None, None, '2722958'), ('4302', '22051688', '1349962318', '0.04782439750636587', None, None, None, None, '2722958')] time used for this insertion : 0.024037599563598633 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08952641487121582 time spend to save output : 0.024640798568725586 total time spend for step 2 : 0.1141672134399414 step3:velours_tree Fri Apr 4 03:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22051688: [{'Carton_brun': 22051707, 'environnement': 22051708, 'flou': 22051709, 'autre_refus': 22051710, 'plastique': 22051711, 'papier': 22051712, 'mal_croppe': 22051713, 'cartonnette': 22051714, 'kraft': 22051715, 'metal': 22051716, 'Carton_gris': 22051717, 'Teint_Dans_La_Masse': 22051718}]} input_args_next_step : {22051688: ()} output_args : {22051688: [{'Carton_brun': 22051707, 'environnement': 22051708, 'flou': 22051709, 'autre_refus': 22051710, 'plastique': 22051711, 'papier': 22051712, 'mal_croppe': 22051713, 'cartonnette': 22051714, 'kraft': 22051715, 'metal': 22051716, 'Carton_gris': 22051717, 'Teint_Dans_La_Masse': 22051718}]} args : 22051688 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22051707, 'environnement': 22051708, 'flou': 22051709, 'autre_refus': 22051710, 'plastique': 22051711, 'papier': 22051712, 'mal_croppe': 22051713, 'cartonnette': 22051714, 'kraft': 22051715, 'metal': 22051716, 'Carton_gris': 22051717, 'Teint_Dans_La_Masse': 22051718},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22051688) 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([22051688]) 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.4397249221801758 time spend to save output : 7.963180541992188e-05 total time spend for step 3 : 0.4398045539855957 step4:send_mail_cod Fri Apr 4 03:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} input_args_next_step : {1349962454: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962454 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962446 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962434 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962424 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962398 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962394 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962390 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962386 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962382 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962377 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962350 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962330 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962326 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962322 depend.output_id : 0 input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ()} output_args : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',)} args : 1349962318 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 : {22051688: [{'Carton_brun': 22051707, 'environnement': 22051708, 'flou': 22051709, 'autre_refus': 22051710, 'plastique': 22051711, 'papier': 22051712, 'mal_croppe': 22051713, 'cartonnette': 22051714, 'kraft': 22051715, 'metal': 22051716, 'Carton_gris': 22051717, 'Teint_Dans_La_Masse': 22051718}]} input_args_next_step : {1349962454: ('0.04782439750636587',), 1349962446: ('0.04782439750636587',), 1349962434: ('0.04782439750636587',), 1349962424: ('0.04782439750636587',), 1349962398: ('0.04782439750636587',), 1349962394: ('0.04782439750636587',), 1349962390: ('0.04782439750636587',), 1349962386: ('0.04782439750636587',), 1349962382: ('0.04782439750636587',), 1349962377: ('0.04782439750636587',), 1349962350: ('0.04782439750636587',), 1349962330: ('0.04782439750636587',), 1349962326: ('0.04782439750636587',), 1349962322: ('0.04782439750636587',), 1349962318: ('0.04782439750636587',), 22051688: ()} output_args : {22051688: [{'Carton_brun': 22051707, 'environnement': 22051708, 'flou': 22051709, 'autre_refus': 22051710, 'plastique': 22051711, 'papier': 22051712, 'mal_croppe': 22051713, 'cartonnette': 22051714, 'kraft': 22051715, 'metal': 22051716, 'Carton_gris': 22051717, 'Teint_Dans_La_Masse': 22051718}]} args : 22051688 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 :16, first value : ('0.04782439750636587',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22051688) 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 (1349962454,1349962446,1349962434,1349962424,1349962398,1349962394,1349962390,1349962386,1349962382,1349962377,1349962350,1349962330,1349962326,1349962322,1349962318) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349962318 begin to download photo : 1349962350 begin to download photo : 1349962390 begin to download photo : 1349962434 download finish for photo 1349962350 begin to download photo : 1349962377 download finish for photo 1349962390 begin to download photo : 1349962394 download finish for photo 1349962434 begin to download photo : 1349962446 download finish for photo 1349962318 begin to download photo : 1349962322 download finish for photo 1349962377 begin to download photo : 1349962382 download finish for photo 1349962394 begin to download photo : 1349962398 download finish for photo 1349962446 begin to download photo : 1349962454 download finish for photo 1349962322 begin to download photo : 1349962326 download finish for photo 1349962382 begin to download photo : 1349962386 download finish for photo 1349962326 begin to download photo : 1349962330 download finish for photo 1349962454 download finish for photo 1349962398 begin to download photo : 1349962424 download finish for photo 1349962330 download finish for photo 1349962386 download finish for photo 1349962424 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220517091743731819/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22051688_04-04-2025_03_56_59.pdf 22051709 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=22051709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220517091743731819 22051710 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=22051710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349962029: '1743731487_1526613_1349961761_6b19b4e6d2503e8ac3c0445237c55155_rle_crop_3747248178_0.png', 1349962030: '1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248574_0.png', 1349962031: '1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248581_0.png', 1349962054: '1743731492_2925411_1349961483_da01f9da298a9a00935f24b6e6e5d22a_rle_crop_3747248685_0.png', 1349962055: '1743731492_2925411_1349961470_69b54a86cbabcf6a70cc5a7fb226ac4b_rle_crop_3747248723_0.png', 1349962422: '1743731727_1530342_1349962228_a03f7256d3dafaf0c76d2e4f2686cd3a_rle_crop_3747252849_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4ef5728653ffd6a5a013da4703de3901_42526501.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c47cf645a39665e2ce9b522cdd65cca4_39832525.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3cbf3be45a102f6f07e9e7aee3b63130_31314892.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/55260e91754b8b92a38250b1989e4a09_78423403.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0cf001c9a4686ad0923a6847718a30d4_49080272.png change filename to text .imagette220517101743731819/ imagette220517101743731819/1743731492_2925411_1349961483_da01f9da298a9a00935f24b6e6e5d22a_rle_crop_3747248685_0.png.png imagette220517101743731819/1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248581_0.png.png imagette220517101743731819/1743731487_1526613_1349961761_6b19b4e6d2503e8ac3c0445237c55155_rle_crop_3747248178_0.png.png imagette220517101743731819/1743731727_1530342_1349962228_a03f7256d3dafaf0c76d2e4f2686cd3a_rle_crop_3747252849_0.png.png imagette220517101743731819/1743731492_2925411_1349961470_69b54a86cbabcf6a70cc5a7fb226ac4b_rle_crop_3747248723_0.png.png imagette220517101743731819/1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248574_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a07cba135bf92b23d5523f374afdad8b_21416184.png imagette220517101743731819 22051711 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=22051711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349962066: '1743731492_2925411_1349961483_da01f9da298a9a00935f24b6e6e5d22a_rle_crop_3747248692_0.png', 1349962426: '1743731727_1530342_1349962187_711b3454165f364378d7a5904403eaff_rle_crop_3747252879_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/72323a1c0c8e659eaafbfabf3d56e84d_28723872.png change filename to text .imagette220517111743731820/ imagette220517111743731820/1743731727_1530342_1349962187_711b3454165f364378d7a5904403eaff_rle_crop_3747252879_0.png.png imagette220517111743731820/1743731492_2925411_1349961483_da01f9da298a9a00935f24b6e6e5d22a_rle_crop_3747248692_0.png.png imagette220517131743731820/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c7330f21ce7f555ff670cbafe5acb63f_39920232.png imagette220517111743731820 22051713 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=22051713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220517131743731820 22051714 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=22051714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349962423: '1743731727_1530342_1349962187_711b3454165f364378d7a5904403eaff_rle_crop_3747252877_0.png', 1349962448: '1743731727_3176881_1349962037_3a0ab255234de07b634beae72d4f9d94_rle_crop_3747255010_0.png', 1349962445: '1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747254994_0.png', 1349962444: '1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747254991_0.png', 1349962443: '1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254958_0.png', 1349962442: '1743731727_3176881_1349962053_a5d11b872370c4a6055da4ae332330e7_rle_crop_3747252894_0.png', 1349962441: '1743731727_3176881_1349962053_a5d11b872370c4a6055da4ae332330e7_rle_crop_3747252896_0.png', 1349962440: '1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252833_0.png', 1349962439: '1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252839_0.png', 1349961498: '1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246340_0.png', 1349962062: '1743731492_2925411_1349961470_69b54a86cbabcf6a70cc5a7fb226ac4b_rle_crop_3747248725_0.png', 1349962061: '1743731492_2925411_1349961475_f97a003c65c2692a709b4434bea55ba1_rle_crop_3747248706_0.png', 1349962060: '1743731492_2925411_1349961475_f97a003c65c2692a709b4434bea55ba1_rle_crop_3747248704_0.png', 1349962059: '1743731492_2925411_1349961483_da01f9da298a9a00935f24b6e6e5d22a_rle_crop_3747248684_0.png', 1349962036: '1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248587_0.png', 1349962035: '1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248570_0.png', 1349961500: '1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ab510cbe3108ddebed3dad90be855cb9_12497924.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/069b02a2598f44fc5df365e98a418f57_82940457.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/007e95bf28c04c770f8576f82ac76970_12564547.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9f6a599cf73ed86712edcf5b3c49553b_17948206.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/77241011e82945548a6c008e0873a731_35520863.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/34ddaa22685b4415861466ae97c53c08_2753200.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/100d78160260192f1af68eb927279e6b_79083492.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c33e9c719d133a6326a1687ac9b3e5d9_57723718.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5baad30bfa10cf85fe05824186e2a940_80364469.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/496330e629ea08e172bcfff22ae28455_62976875.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/adbdf9e242e26d583c931fef47f4b7e4_26272003.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9ae13c709df9745133a982e819404ce1_91460372.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6bb1ce043bcf84c6e12dd94b18547c5a_58124038.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/acd30786e53a7ee627e6eebb8d68a97b_34742762.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/aae21028e08942d20b18509bb4890e21_75466027.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e64088cede4f07a1079cbf0820bbcc48_34554151.png change filename to text .imagette220517141743731820/ imagette220517141743731820/1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246340_0.png.png imagette220517141743731820/1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252833_0.png.png imagette220517141743731820/1743731492_2925411_1349961483_da01f9da298a9a00935f24b6e6e5d22a_rle_crop_3747248684_0.png.png imagette220517141743731820/1743731492_2925411_1349961470_69b54a86cbabcf6a70cc5a7fb226ac4b_rle_crop_3747248725_0.png.png imagette220517141743731820/1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254958_0.png.png imagette220517141743731820/1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248587_0.png.png imagette220517141743731820/1743731727_3176881_1349962037_3a0ab255234de07b634beae72d4f9d94_rle_crop_3747255010_0.png.png imagette220517141743731820/1743731492_2925411_1349961475_f97a003c65c2692a709b4434bea55ba1_rle_crop_3747248706_0.png.png imagette220517141743731820/1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246347_0.png.png imagette220517141743731820/1743731727_1530342_1349962187_711b3454165f364378d7a5904403eaff_rle_crop_3747252877_0.png.png imagette220517141743731820/1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747254991_0.png.png imagette220517141743731820/1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248570_0.png.png imagette220517141743731820/1743731492_2925411_1349961475_f97a003c65c2692a709b4434bea55ba1_rle_crop_3747248704_0.png.png imagette220517141743731820/1743731727_3176881_1349962053_a5d11b872370c4a6055da4ae332330e7_rle_crop_3747252896_0.png.png imagette220517141743731820/1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252839_0.png.png imagette220517141743731820/1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747254994_0.png.png imagette220517141743731820/1743731727_3176881_1349962053_a5d11b872370c4a6055da4ae332330e7_rle_crop_3747252894_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9fe2a23ce9cc94d3d8a2a7f1a8e7b062_75132148.png imagette220517141743731820 22051715 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=22051715 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349962067: '1743731492_2925411_1349961475_f97a003c65c2692a709b4434bea55ba1_rle_crop_3747248712_0.png', 1349962453: '1743731727_3176881_1349962065_6500882e1c3ffac1a646c9e20d67a3e6_rle_crop_3747252864_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/963034c00dedcc4a924e0a04c03916c7_11600358.png change filename to text .imagette220517151743731821/ imagette220517151743731821/1743731492_2925411_1349961475_f97a003c65c2692a709b4434bea55ba1_rle_crop_3747248712_0.png.png imagette220517151743731821/1743731727_3176881_1349962065_6500882e1c3ffac1a646c9e20d67a3e6_rle_crop_3747252864_0.png.png imagette220517161743731821/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/309a1816b5f6e2fc0e82741b0d5b0f5c_76212337.png imagette220517151743731821 22051716 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=22051716 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220517161743731821 22051707 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=22051707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349961509: '1743731270_2922539_1349961292_dd42b97e56a80656ecd228826a8042ce_rle_crop_3747246327_0.png', 1349962038: '1743731487_1526613_1349961711_7f24ac91c3064b8d37b64301dbf0f4a4_rle_crop_3747248190_0.png', 1349962039: '1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248572_0.png', 1349962040: '1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248592_0.png', 1349962049: '1743731511_2925599_1349961587_1476d01b3f5683aec77e7e70594e2b36_rle_crop_3747248640_0.png', 1349962063: '1743731492_2925411_1349961713_82a129d43af84d266fec5c7204b21534_rle_crop_3747248624_0.png', 1349962451: '1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252836_0.png', 1349962452: '1743731727_3176881_1349962037_3a0ab255234de07b634beae72d4f9d94_rle_crop_3747255008_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ed9293c9a7f94de52c75510336f0422c_217993.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/29deb7bd4ea95f40c245484d16c2b312_49782733.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/95b3078ec3710c51fec787a406dc7c87_37902637.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/eb7e05a4a7e3bdb587f9296fe76aacc4_57969448.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/afe8896aedc0c9ffb025d679c6e1958c_44026809.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f6845ade5c326f218099005846c4feb4_70675341.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/babff6ce34ebbc49a2b31f776b3d92be_24905832.png change filename to text .imagette220517071743731821/ imagette220517071743731821/1743731487_1526613_1349961711_7f24ac91c3064b8d37b64301dbf0f4a4_rle_crop_3747248190_0.png.png imagette220517071743731821/1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248572_0.png.png imagette220517071743731821/1743731270_2922539_1349961292_dd42b97e56a80656ecd228826a8042ce_rle_crop_3747246327_0.png.png imagette220517071743731821/1743731511_2925599_1349961587_1476d01b3f5683aec77e7e70594e2b36_rle_crop_3747248640_0.png.png imagette220517071743731821/1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252836_0.png.png imagette220517071743731821/1743731727_3176881_1349962037_3a0ab255234de07b634beae72d4f9d94_rle_crop_3747255008_0.png.png imagette220517071743731821/1743731492_2925411_1349961713_82a129d43af84d266fec5c7204b21534_rle_crop_3747248624_0.png.png imagette220517071743731821/1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248592_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/6d9b6abe411642e21c6dded53f6c0914_94292258.png imagette220517071743731821 22051717 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=22051717 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349961488: '1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246344_0.png', 1349961489: '1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246341_0.png', 1349961737: '1743731352_2923987_1349961375_3be6589848178b6dbacc5242588118a7_rle_crop_3747247296_0.png', 1349961738: '1743731352_2923987_1349961369_6572d568f3f988f9e96eec78d237c2f8_rle_crop_3747247311_0.png', 1349962034: '1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248586_0.png', 1349962056: '1743731492_2925411_1349961713_82a129d43af84d266fec5c7204b21534_rle_crop_3747248626_0.png', 1349962432: '1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252831_0.png', 1349962435: '1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254955_0.png', 1349962436: '1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747254996_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/086c38030d87014dde4065484498e926_66459540.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d72f06fd1d144b8605388867e5953fcf_42826683.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f7065fdcb60c63b8b03e84324c9cd853_89511916.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/805538ca55d9126d202a12a87284d97f_54674127.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a69fa06410cadd5f3debc88cea1b6d15_98882376.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f1290767dc8e4c709553edbb8e9b10a6_67009719.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/385f8ce20194a7f71fca79b9c76aeb44_24738622.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1d61a2c8763c310ff4ded18ed9656ef9_71783416.png change filename to text .imagette220517171743731822/ imagette220517171743731822/1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248586_0.png.png imagette220517171743731822/1743731727_3176881_1349962239_ff8cd740fd5f7812f72e54eccb220738_rle_crop_3747252831_0.png.png imagette220517171743731822/1743731492_2925411_1349961713_82a129d43af84d266fec5c7204b21534_rle_crop_3747248626_0.png.png imagette220517171743731822/1743731352_2923987_1349961369_6572d568f3f988f9e96eec78d237c2f8_rle_crop_3747247311_0.png.png imagette220517171743731822/1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747254996_0.png.png imagette220517171743731822/1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254955_0.png.png imagette220517171743731822/1743731352_2923987_1349961375_3be6589848178b6dbacc5242588118a7_rle_crop_3747247296_0.png.png imagette220517171743731822/1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246341_0.png.png imagette220517171743731822/1743731270_2922539_1349961287_c9026b563aaf73a4ece8d5e7fdc154c7_rle_crop_3747246344_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/59afdf295dcd8474fb765fdd0792a744_44896688.png imagette220517171743731822 22051718 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=22051718 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349961734: '1743731352_2923987_1349961369_6572d568f3f988f9e96eec78d237c2f8_rle_crop_3747247312_0.png', 1349961735: '1743731352_2923987_1349961369_6572d568f3f988f9e96eec78d237c2f8_rle_crop_3747247307_0.png', 1349961736: '1743731352_2923987_1349961352_6c173bc32600538586cffcb88da55336_rle_crop_3747247322_0.png', 1349962026: '1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248573_0.png', 1349962027: '1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248584_0.png', 1349962048: '1743731511_2925599_1349961587_1476d01b3f5683aec77e7e70594e2b36_rle_crop_3747248642_0.png', 1349962419: '1743731727_1530342_1349962103_3e4ee9d0320b9dbacbcac6d862e05524_rle_crop_3747254974_0.png', 1349962429: '1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254961_0.png', 1349962430: '1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254954_0.png', 1349962431: '1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747255001_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f55b3bf0b45240ec2ccb53f1d0e26588_30269369.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ed7cc5b270b9a2fa155b0a09d64810cf_27278414.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/23f16210478653840e7106e0c1e3de1a_85466956.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f8c146951645e2c3bb8a22d2db204de4_74940315.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f0145f42f1ae528dc8c0bccae3623dfe_67680596.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b07beeaf4500f527adbdbe2625c8c76b_7655766.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f096487fd9bbc194324868540ad50db9_15337544.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0278ae2745c389451df3ed139b74eeae_92123634.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c47b9d09df9e73b2bf6ec507850846e1_43275459.png change filename to text .imagette220517181743731822/ imagette220517181743731822/1743731487_1526613_1349961692_602fd46cefba9caa702d604abef72b1f_rle_crop_3747248573_0.png.png imagette220517181743731822/1743731352_2923987_1349961369_6572d568f3f988f9e96eec78d237c2f8_rle_crop_3747247307_0.png.png imagette220517181743731822/1743731727_3176881_1349962045_609f1e968499ca048d55d1d40ff122d2_rle_crop_3747255001_0.png.png imagette220517181743731822/1743731487_1526613_1349961689_471da64e40e0b8f3ccd540b54b16b999_rle_crop_3747248584_0.png.png imagette220517181743731822/1743731352_2923987_1349961352_6c173bc32600538586cffcb88da55336_rle_crop_3747247322_0.png.png imagette220517181743731822/1743731727_1530342_1349962103_3e4ee9d0320b9dbacbcac6d862e05524_rle_crop_3747254974_0.png.png imagette220517181743731822/1743731511_2925599_1349961587_1476d01b3f5683aec77e7e70594e2b36_rle_crop_3747248642_0.png.png imagette220517181743731822/1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254961_0.png.png imagette220517181743731822/1743731352_2923987_1349961369_6572d568f3f988f9e96eec78d237c2f8_rle_crop_3747247312_0.png.png imagette220517181743731822/1743731727_3176881_1349962050_ed70296db470e71adfd6f15bbd07efef_rle_crop_3747254954_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d5197a399e1936b56a5fce01f642bfca_96250743.png imagette220517181743731822 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22051688 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22051719,22051720,22051721,22051722,22051723,22051724,22051725,22051726,22051727,22051728,22051729,22051730?tags=Carton_brun,environnement,flou,autre_refus,plastique,papier,mal_croppe,cartonnette,kraft,metal,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1349962454] : ('0.04782439750636587',) no score found for photo 1349962454 We are sending mail with results at report@fotonower.com args[1349962446] : ('0.04782439750636587',) no score found for photo 1349962446 We are sending mail with results at report@fotonower.com args[1349962434] : ('0.04782439750636587',) no score found for photo 1349962434 We are sending mail with results at report@fotonower.com args[1349962424] : ('0.04782439750636587',) no score found for photo 1349962424 We are sending mail with results at report@fotonower.com args[1349962398] : ('0.04782439750636587',) no score found for photo 1349962398 We are sending mail with results at report@fotonower.com args[1349962394] : ('0.04782439750636587',) no score found for photo 1349962394 We are sending mail with results at report@fotonower.com args[1349962390] : ('0.04782439750636587',) no score found for photo 1349962390 We are sending mail with results at report@fotonower.com args[1349962386] : ('0.04782439750636587',) no score found for photo 1349962386 We are sending mail with results at report@fotonower.com args[1349962382] : ('0.04782439750636587',) no score found for photo 1349962382 We are sending mail with results at report@fotonower.com args[1349962377] : ('0.04782439750636587',) no score found for photo 1349962377 We are sending mail with results at report@fotonower.com args[1349962350] : ('0.04782439750636587',) no score found for photo 1349962350 We are sending mail with results at report@fotonower.com args[1349962330] : ('0.04782439750636587',) no score found for photo 1349962330 We are sending mail with results at report@fotonower.com args[1349962326] : ('0.04782439750636587',) no score found for photo 1349962326 We are sending mail with results at report@fotonower.com args[1349962322] : ('0.04782439750636587',) no score found for photo 1349962322 We are sending mail with results at report@fotonower.com args[1349962318] : ('0.04782439750636587',) no score found for photo 1349962318 We are sending mail with results at report@fotonower.com refus_total : 0.04782439750636587 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22051688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_56_59.pdf results_Auto_P22051688_04-04-2025_03_56_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_56_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22051688','results_Auto_P22051688_04-04-2025_03_56_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_56_59.pdf','pdf','','0.25','0.04782439750636587') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22051688]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] map_info['map_portfolio_photo'] : {22051688: [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318, 1349962239, 1349962234, 1349962230, 1349962228, 1349962187, 1349962103, 1349962071, 1349962065, 1349962053, 1349962050, 1349962045, 1349962037, 1349961950, 1349961920, 1349961910, 1349961761, 1349961713, 1349961711, 1349961702, 1349961692, 1349961689, 1349961587, 1349961551, 1349961517, 1349961483, 1349961475, 1349961470, 1349961386, 1349961383, 1349961375, 1349961369, 1349961352, 1349961292, 1349961287]} final : False mtd_id 4302 list_pids : [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962454', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22051688', '1349962454', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958')] time used for this insertion : 0.0276641845703125 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.016486406326294 time spend to save output : 0.02802443504333496 total time spend for step 4 : 5.044510841369629 step5:split_time_score Fri Apr 4 03:57:04 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 : ['22051688'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('22051688',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22051688) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349962434: {'path': 'temp/1743731819_2251236_1349962434_2b4f0a400c2083d2960219ae4664a943.jpg', 'extension': 'jpg'}, 1349962446: {'path': 'temp/1743731819_2251236_1349962446_356cf5390785e4e6812c9e1c424b4c9e.jpg', 'extension': 'jpg'}, 1349962454: {'path': 'temp/1743731819_2251236_1349962454_8a10b9139e1861b43d49a068c371fdd1.jpg', 'extension': 'jpg'}, 1349962318: {'path': 'temp/1743731819_2251236_1349962318_cb67a2fa2f5546cc743d8a672c97e867.jpg', 'extension': 'jpg'}, 1349962322: {'path': 'temp/1743731819_2251236_1349962322_b844d139a666a3ef348f7ec553c0ce27.jpg', 'extension': 'jpg'}, 1349962326: {'path': 'temp/1743731819_2251236_1349962326_5bac260e3daf22958c7d56e710289436.jpg', 'extension': 'jpg'}, 1349962330: {'path': 'temp/1743731819_2251236_1349962330_e2214a9b99b5ed4f0178bfcf23cfb803.jpg', 'extension': 'jpg'}, 1349962350: {'path': 'temp/1743731819_2251236_1349962350_0084d04358b888c9cd8acb1f75908d0f.jpg', 'extension': 'jpg'}, 1349962377: {'path': 'temp/1743731819_2251236_1349962377_32ae3370f387761852ae1252da463055.jpg', 'extension': 'jpg'}, 1349962382: {'path': 'temp/1743731819_2251236_1349962382_06a506b42eb88c79d139b6e42763a0aa.jpg', 'extension': 'jpg'}, 1349962386: {'path': 'temp/1743731819_2251236_1349962386_686f24dc1508a150d1e836c4a96cad1e.jpg', 'extension': 'jpg'}, 1349962390: {'path': 'temp/1743731819_2251236_1349962390_feb7375bdc7136a48331a9f31df422c5.jpg', 'extension': 'jpg'}, 1349962394: {'path': 'temp/1743731819_2251236_1349962394_e773a003a435ff6c7cc1c80c056a5d06.jpg', 'extension': 'jpg'}, 1349962398: {'path': 'temp/1743731819_2251236_1349962398_28bf108e147154f6e8dcbf75770c7181.jpg', 'extension': 'jpg'}, 1349962424: {'path': 'temp/1743731819_2251236_1349962424_87ab580d3bd81a2d121ba8f5205e221d.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 22051688; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22051688 group by h (('03', 49),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22051688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22051688) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22051688) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22051688 Nombre de photos uploadées : 49 / 23040 (0%) 04042025 22051688 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 04042025 22051688 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1349961292, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/dd42b97e56a80656ecd228826a8042ce.jpg', 'username': None, 'uploaded_at': 1743731167, 'text': 'image_04042025_03_45_03_10143.jpg'}, {'photo_id': 1349961287, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c9026b563aaf73a4ece8d5e7fdc154c7.jpg', 'username': None, 'uploaded_at': 1743731167, 'text': 'image_04042025_03_45_14_10141.jpg'}, {'photo_id': 1349961386, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/52acd5edf4103c9f08eda1e2fa10043b.jpg', 'username': None, 'uploaded_at': 1743731227, 'text': 'image_04042025_03_45_24_10136.jpg'}, {'photo_id': 1349961383, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/98bdf0d326e15379e021cde5e43a410b.jpg', 'username': None, 'uploaded_at': 1743731227, 'text': 'image_04042025_03_46_03_10155.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014257431030273438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22051688, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02750372886657715 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723683, 'mtr_portfolio_id': 22049735, 'dashboard_result_id': 9869978, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22049735_04-04-2025_03_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22049763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22049764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22049765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22049766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22049767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22049768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22049769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22049770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22049771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22049772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22049773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22049774, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723683, 'mtr_portfolio_id': 22050459, 'dashboard_result_id': 9869979, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22050459_04-04-2025_03_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22050480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22050481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22050482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22050483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22050484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22050485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22050486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22050487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22050488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22050490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22050491, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723683, 'mtr_portfolio_id': 22051121, 'dashboard_result_id': 9869980, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051121_04-04-2025_03_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22051147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22051148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22051149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22051150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22051151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22051152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22051153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22051154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22051155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22051156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22051157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22051158, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723683, 'mtr_portfolio_id': 22051688, 'dashboard_result_id': 9869981, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_55_04.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22051707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22051708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22051709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22051710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22051711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22051712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22051713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22051714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22051715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22051716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22051717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22051718, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22049735 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2722845, 'mtr_portfolio_id': 22049735, 'created_at': datetime.datetime(2025, 4, 4, 3, 17), 'result': '0.061205129124348404', 'result_long': None, 'result_double': None}] Qualite : 0.061205129124348404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22049735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22049735_04-04-2025_03_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22049735 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22049735_04-04-2025_03_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22049763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22049764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22049765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22049766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22049767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22049768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22049769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22049770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22049771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22049772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22049773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22049774, 'pht': 3726}}" where mtr_portfolio_id = 22049735 and dashboard_run_id = 1723683 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22049735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9869978, 0.061205129124348404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22049735_04-04-2025_03_17_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22049763, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22049764, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22049765, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22049766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22049767, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22049768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22049769, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22049770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22049771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22049772, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22049773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22049774, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22050459 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2722888, 'mtr_portfolio_id': 22050459, 'created_at': datetime.datetime(2025, 4, 4, 3, 32, 56), 'result': '0.05151196762211808', 'result_long': None, 'result_double': None}] Qualite : 0.05151196762211808 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22050459 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22050459_04-04-2025_03_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22050459 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22050459_04-04-2025_03_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22050480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22050481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22050482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22050483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22050484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22050485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22050486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22050487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22050488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22050490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22050491, 'pht': 3726}}" where mtr_portfolio_id = 22050459 and dashboard_run_id = 1723683 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22050459 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9869979, 0.05151196762211808, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22050459_04-04-2025_03_32_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22050480, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22050481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22050482, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22050483, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22050484, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22050485, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22050486, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22050487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22050488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22050489, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22050490, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22050491, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22051121 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2722922, 'mtr_portfolio_id': 22051121, 'created_at': datetime.datetime(2025, 4, 4, 3, 46, 57), 'result': '0.05028318199475616', 'result_long': None, 'result_double': None}] Qualite : 0.05028318199475616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22051121 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051121_04-04-2025_03_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22051121 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051121_04-04-2025_03_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22051147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22051148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22051149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22051150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22051151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22051152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22051153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22051154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22051155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22051156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22051157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22051158, 'pht': 3726}}" where mtr_portfolio_id = 22051121 and dashboard_run_id = 1723683 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22051121 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9869980, 0.05028318199475616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051121_04-04-2025_03_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22051147, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22051148, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22051149, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22051150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22051151, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22051152, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22051153, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22051154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22051155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22051156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22051157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22051158, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22051688 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2722958, 'mtr_portfolio_id': 22051688, 'created_at': datetime.datetime(2025, 4, 4, 3, 56, 59), 'result': '0.04782439750636587', 'result_long': None, 'result_double': None}] Qualite : 0.04782439750636587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22051688 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22051688 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22051707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22051708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22051709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22051710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22051711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22051712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22051713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22051714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22051715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22051716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22051717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22051718, 'pht': 3726}}" where mtr_portfolio_id = 22051688 and dashboard_run_id = 1723683 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22051688 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9869981, 0.04782439750636587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22051688_04-04-2025_03_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22051707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22051708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22051709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22051710, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22051711, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22051712, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22051713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22051714, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22051715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22051716, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22051717, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22051718, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22049735,22050459,22051121,22051688) result : ((1349951247,), (1349951268,), (1349951287,), (1349951297,), (1349954072,), (1349954110,), (1349954148,), (1349954154,), (1349954158,), (1349954162,), (1349954201,), (1349954208,), (1349954215,), (1349954220,), (1349954225,), (1349954231,), (1349954251,), (1349954257,), (1349954261,), (1349954265,), (1349954269,), (1349954279,), (1349954305,), (1349954308,), (1349954312,), (1349954316,), (1349954322,), (1349954375,), (1349954378,), (1349954460,), (1349954465,), (1349954470,), (1349954475,), (1349954479,), (1349954537,), (1349954541,), (1349954544,), (1349954553,), (1349954564,), (1349954570,), (1349955212,), (1349955217,), (1349955228,), (1349955233,), (1349955295,), (1349955304,), (1349955311,), (1349955346,), (1349955375,), (1349955379,), (1349955432,), (1349955427,), (1349955550,), (1349955558,), (1349955722,), (1349955728,), (1349955730,), (1349955733,), (1349955763,), (1349955778,), (1349955828,), (1349955835,), (1349955884,), (1349955900,), (1349955906,), (1349955926,), (1349956298,), (1349956368,), (1349956462,), (1349956746,), (1349956774,), (1349956805,), (1349956858,), (1349956931,), (1349957225,), (1349957252,), (1349957268,), (1349957284,), (1349957399,), (1349957405,), (1349957411,), (1349957419,), (1349957430,), (1349957435,), (1349957477,), (1349957480,), (1349957508,), (1349957520,), (1349957530,), (1349957703,), (1349957729,), (1349957742,), (1349957747,), (1349957755,), (1349957786,), (1349957790,), (1349957795,), (1349957799,), (1349957804,), (1349957981,), (1349958006,), (1349958022,), (1349958052,), (1349958254,), (1349958279,), (1349958314,), (1349958338,), (1349958356,), (1349958569,), (1349958600,), (1349958646,), (1349958682,), (1349958697,), (1349958725,), (1349958964,), (1349958997,), (1349959022,), (1349959459,), (1349959438,), (1349959447,), (1349959451,), (1349959455,), (1349959505,), (1349959514,), (1349959520,), (1349959537,), (1349959560,), (1349959668,), (1349959674,), (1349959679,), (1349959684,), (1349959769,), (1349959800,), (1349959827,), (1349959854,), (1349959890,), (1349959917,), (1349960023,), (1349960035,), (1349960069,), (1349960075,), (1349960079,), (1349960110,), (1349960114,), (1349960118,), (1349960147,), (1349960166,), (1349960171,), (1349960196,), (1349960202,), (1349960208,), (1349960212,), (1349960216,), (1349960218,), (1349960259,), (1349960269,), (1349960277,), (1349960286,), (1349960294,), (1349960365,), (1349960369,), (1349960391,), (1349960397,), (1349960433,), (1349960437,), (1349960486,), (1349960509,), (1349960519,), (1349960534,), (1349960617,), (1349960655,), (1349960686,), (1349960729,), (1349960918,), (1349960924,), (1349960931,), (1349960937,), (1349960942,), (1349960985,), (1349960992,), (1349960994,), (1349960998,), (1349961002,), (1349961116,), (1349961163,), (1349961166,), (1349961171,), (1349961174,), (1349961178,), (1349961222,), (1349961227,), (1349961231,), (1349961233,), (1349961238,), (1349961301,), (1349961287,), (1349961292,), (1349961352,), (1349961369,), (1349961375,), (1349961383,), (1349961386,), (1349961470,), (1349961475,), (1349961483,), (1349961517,), (1349961551,), (1349961587,), (1349961689,), (1349961692,), (1349961702,), (1349961711,), (1349961713,), (1349961761,), (1349961910,), (1349961920,), (1349961950,), (1349962037,), (1349962045,), (1349962050,), (1349962053,), (1349962065,), (1349962071,), (1349962103,), (1349962187,), (1349962228,), (1349962230,), (1349962234,), (1349962239,), (1349962318,), (1349962322,), (1349962326,), (1349962330,), (1349962350,), (1349962377,), (1349962382,), (1349962386,), (1349962390,), (1349962394,), (1349962398,), (1349962424,), (1349962434,), (1349962446,), (1349962454,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22051688]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] map_info['map_portfolio_photo'] : {22051688: [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318, 1349962239, 1349962234, 1349962230, 1349962228, 1349962187, 1349962103, 1349962071, 1349962065, 1349962053, 1349962050, 1349962045, 1349962037, 1349961950, 1349961920, 1349961910, 1349961761, 1349961713, 1349961711, 1349961702, 1349961692, 1349961689, 1349961587, 1349961551, 1349961517, 1349961483, 1349961475, 1349961470, 1349961386, 1349961383, 1349961375, 1349961369, 1349961352, 1349961292, 1349961287]} final : True mtd_id 4302 list_pids : [1349962454, 1349962446, 1349962434, 1349962424, 1349962398, 1349962394, 1349962390, 1349962386, 1349962382, 1349962377, 1349962350, 1349962330, 1349962326, 1349962322, 1349962318] Looping around the photos to save general results len do output : 1 /22051688Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962454', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958') ('4302', None, None, None, None, None, None, None, '2722958') ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22051688', 'None', None, None, None, None, '2722958'), ('4302', '22051688', '1349962454', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962446', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962434', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962424', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962398', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962394', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962390', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962386', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962382', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962377', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962350', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962330', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962326', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962322', None, None, None, None, None, '2722958'), ('4302', '22051688', '1349962318', None, None, None, None, None, '2722958')] time used for this insertion : 0.017950057983398438 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3473227024078369 time spend to save output : 0.018242835998535156 total time spend for step 5 : 0.36556553840637207 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2722958) 2.49user 2.83system 0:10.75elapsed 49%CPU (0avgtext+0avgdata 158648maxresident)k 23360inputs+13656outputs (156major+74371minor)pagefaults 0swaps