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 : 271654 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 (2744884) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2744884) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278867 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2744884'] with mtr_portfolio_ids : ['22278867'] and first list_photo_ids : [] new path : /proc/271654/ Name: python3 Umask: 0002 State: R (running) Tgid: 271654 Ngid: 0 Pid: 271654 PPid: 271653 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 271654 NSpid: 271654 NSpgid: 268105 NSsid: 268105 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98672 kB VmRSS: 98672 kB RssAnon: 59796 kB RssFile: 38876 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 632 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: 46 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '271654', 'Ngid': '0', 'Pid': '271654', 'PPid': '271653', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '271654', 'NSpid': '271654', 'NSpgid': '268105', 'NSsid': '268105', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98672 kB', 'VmRSS': '98672 kB', 'RssAnon': '59796 kB', 'RssFile': '38876 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '632 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': '46', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '271654', '1106932', '0', '1106932', '865680', '98672', b'', 'marlene', '2744884') 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 (22278867) 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 (2744884 ) ) 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 (22278867) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1351697245, 'portfolio_id': 22278867}, {'photo_id': 1351697236, 'portfolio_id': 22278867}, {'photo_id': 1351697230, 'portfolio_id': 22278867}, {'photo_id': 1351697214, 'portfolio_id': 22278867}, {'photo_id': 1351697184, 'portfolio_id': 22278867}, {'photo_id': 1351697147, 'portfolio_id': 22278867}, {'photo_id': 1351697040, 'portfolio_id': 22278867}, {'photo_id': 1351697013, 'portfolio_id': 22278867}, {'photo_id': 1351696982, 'portfolio_id': 22278867}, {'photo_id': 1351696910, 'portfolio_id': 22278867}, {'photo_id': 1351696559, 'portfolio_id': 22278867}, {'photo_id': 1351696532, 'portfolio_id': 22278867}, {'photo_id': 1351696515, 'portfolio_id': 22278867}, {'photo_id': 1351696472, 'portfolio_id': 22278867}, {'photo_id': 1351696420, 'portfolio_id': 22278867}, {'photo_id': 1351696099, 'portfolio_id': 22278867}, {'photo_id': 1351696097, 'portfolio_id': 22278867}, {'photo_id': 1351696075, 'portfolio_id': 22278867}, {'photo_id': 1351695668, 'portfolio_id': 22278867}, {'photo_id': 1351695663, 'portfolio_id': 22278867}, {'photo_id': 1351695660, 'portfolio_id': 22278867}, {'photo_id': 1351695656, 'portfolio_id': 22278867}, {'photo_id': 1351695578, 'portfolio_id': 22278867}, {'photo_id': 1351695559, 'portfolio_id': 22278867}, {'photo_id': 1351694413, 'portfolio_id': 22278867}, {'photo_id': 1351693029, 'portfolio_id': 22278867}, {'photo_id': 1351692994, 'portfolio_id': 22278867}, {'photo_id': 1351692943, 'portfolio_id': 22278867}, {'photo_id': 1351692892, 'portfolio_id': 22278867}, {'photo_id': 1351692346, 'portfolio_id': 22278867}, {'photo_id': 1351692317, 'portfolio_id': 22278867}, {'photo_id': 1351692271, 'portfolio_id': 22278867}, {'photo_id': 1351692228, 'portfolio_id': 22278867}, {'photo_id': 1351692183, 'portfolio_id': 22278867}, {'photo_id': 1351692126, 'portfolio_id': 22278867}, {'photo_id': 1351692038, 'portfolio_id': 22278867}, {'photo_id': 1351692029, 'portfolio_id': 22278867}, {'photo_id': 1351692024, 'portfolio_id': 22278867}, {'photo_id': 1351691987, 'portfolio_id': 22278867}, {'photo_id': 1351691538, 'portfolio_id': 22278867}, {'photo_id': 1351691514, 'portfolio_id': 22278867}, {'photo_id': 1351691476, 'portfolio_id': 22278867}, {'photo_id': 1351691443, 'portfolio_id': 22278867}, {'photo_id': 1351691420, 'portfolio_id': 22278867}, {'photo_id': 1351691312, 'portfolio_id': 22278867}, {'photo_id': 1351690556, 'portfolio_id': 22278867}, {'photo_id': 1351690512, 'portfolio_id': 22278867}, {'photo_id': 1351690447, 'portfolio_id': 22278867}, {'photo_id': 1351690398, 'portfolio_id': 22278867}, {'photo_id': 1351690348, 'portfolio_id': 22278867}] map_portfolio_id_photo_id: {22278867: [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420, 1351696099, 1351696097, 1351696075, 1351695668, 1351695663, 1351695660, 1351695656, 1351695578, 1351695559, 1351694413, 1351693029, 1351692994, 1351692943, 1351692892, 1351692346, 1351692317, 1351692271, 1351692228, 1351692183, 1351692126, 1351692038, 1351692029, 1351692024, 1351691987, 1351691538, 1351691514, 1351691476, 1351691443, 1351691420, 1351691312, 1351690556, 1351690512, 1351690447, 1351690398, 1351690348]} ##### 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.015690088272094727 #### 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 11 14:58: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22278867) 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 : 22278867 get user id for portfolio 22278867 get sub ptf for main ptf 22278867, type 3726 and hashtags ['kraft', 'Carton_gris', 'cartonnette', 'Carton_brun', 'metal', 'environnement', 'autre_refus', 'plastique', 'mal_croppe', 'flou', 'papier', 'Teint_Dans_La_Masse'] 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`=22278867 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','Carton_brun','metal','environnement','autre_refus','plastique','mal_croppe','flou','papier','Teint_Dans_La_Masse')) 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`=22278867 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','Carton_brun','metal','environnement','autre_refus','plastique','mal_croppe','flou','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22278867, 'sub_port_id': 22278898, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744610, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'kraft': {'main_port_id': 22278867, 'sub_port_id': 22278899, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744611, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'Carton_gris': {'main_port_id': 22278867, 'sub_port_id': 22278900, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744612, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'metal': {'main_port_id': 22278867, 'sub_port_id': 22278901, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744613, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'environnement': {'main_port_id': 22278867, 'sub_port_id': 22278902, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744614, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'flou': {'main_port_id': 22278867, 'sub_port_id': 22278903, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744615, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'plastique': {'main_port_id': 22278867, 'sub_port_id': 22278904, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744616, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22278867, 'sub_port_id': 22278905, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744617, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'cartonnette': {'main_port_id': 22278867, 'sub_port_id': 22278906, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744618, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'mal_croppe': {'main_port_id': 22278867, 'sub_port_id': 22278907, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744619, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'papier': {'main_port_id': 22278867, 'sub_port_id': 22278908, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744620, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}, 'Carton_brun': {'main_port_id': 22278867, 'sub_port_id': 22278909, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744621, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22278898 , 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=22278867 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 (22278898) result : ((1351695680,), (1351695681,), (1351696389,), (1351696390,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278899 , 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=22278867 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 (22278899) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278900 , 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=22278867 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 (22278900) result : ((1351695682,), (1351696393,), (1351696394,), (1351697206,), (1351697207,), (1351697208,), (1351697217,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278901 , 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=22278867 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 (22278901) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278902 , 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=22278867 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 (22278902) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278903 , 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=22278867 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 (22278903) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278904 , 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=22278867 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 (22278904) result : ((1351696414,), (1351696415,), (1351697237,), (1351697271,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278905 , 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=22278867 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 (22278905) result : ((1351695676,), (1351695677,), (1351695678,), (1351695679,), (1351696386,), (1351696387,), (1351696388,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278906 , 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=22278867 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 (22278906) result : ((1351695684,), (1351696400,), (1351697220,), (1351697221,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278907 , 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=22278867 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 (22278907) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278908 , 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=22278867 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 (22278908) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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 22278909 , 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=22278867 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 (22278909) result : ((1351695687,), (1351697223,), (1351697224,), (1351697261,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22278867) result : ((1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) 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`=22278867 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','Carton_brun','metal','environnement','autre_refus','plastique','mal_croppe','flou','papier','Teint_Dans_La_Masse')) 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`=22278867 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','cartonnette','Carton_brun','metal','environnement','autre_refus','plastique','mal_croppe','flou','papier','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22278867, 'sub_port_id': 22278910, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744622, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'kraft': {'main_port_id': 22278867, 'sub_port_id': 22278911, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744623, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'Carton_gris': {'main_port_id': 22278867, 'sub_port_id': 22278912, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744624, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'metal': {'main_port_id': 22278867, 'sub_port_id': 22278913, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744625, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'environnement': {'main_port_id': 22278867, 'sub_port_id': 22278914, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744626, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'flou': {'main_port_id': 22278867, 'sub_port_id': 22278915, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744627, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'plastique': {'main_port_id': 22278867, 'sub_port_id': 22278916, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744628, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 22278867, 'sub_port_id': 22278917, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744629, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'cartonnette': {'main_port_id': 22278867, 'sub_port_id': 22278918, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744630, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'mal_croppe': {'main_port_id': 22278867, 'sub_port_id': 22278919, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744631, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'papier': {'main_port_id': 22278867, 'sub_port_id': 22278920, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744632, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 49, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}, 'Carton_brun': {'main_port_id': 22278867, 'sub_port_id': 22278921, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14744633, 'last_updated_at': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 14, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 14, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278910,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278898 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278911,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278899 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278912,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278900 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278913,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278901 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278914,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278902 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278915,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22278921,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22278909 lien utilise dans velours : https://www.fotonower.com/velours/22278910,22278911,22278912,22278913,22278914,22278915,22278916,22278917,22278918,22278919,22278920,22278921?tags=autre_refus,kraft,Carton_gris,metal,environnement,flou,plastique,Teint_Dans_La_Masse,cartonnette,mal_croppe,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22278867]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] map_info['map_portfolio_photo'] : {22278867: [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420, 1351696099, 1351696097, 1351696075, 1351695668, 1351695663, 1351695660, 1351695656, 1351695578, 1351695559, 1351694413, 1351693029, 1351692994, 1351692943, 1351692892, 1351692346, 1351692317, 1351692271, 1351692228, 1351692183, 1351692126, 1351692038, 1351692029, 1351692024, 1351691987, 1351691538, 1351691514, 1351691476, 1351691443, 1351691420, 1351691312, 1351690556, 1351690512, 1351690447, 1351690398, 1351690348]} final : False mtd_id 4302 list_pids : [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] Looping around the photos to save general results len do output : 1 /22278867. 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, '2744884') ('4302', '22278867', '1351697245', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884') 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, '22278867', "{'autre_refus': 22278898, 'kraft': 22278899, 'Carton_gris': 22278900, 'metal': 22278901, 'environnement': 22278902, 'flou': 22278903, 'plastique': 22278904, 'Teint_Dans_La_Masse': 22278905, 'cartonnette': 22278906, 'mal_croppe': 22278907, 'papier': 22278908, 'Carton_brun': 22278909}", None, None, None, None, '2744884'), ('4302', '22278867', '1351697245', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884')] time used for this insertion : 0.015877723693847656 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9033715724945068 time spend to save output : 0.016209840774536133 total time spend for step 1 : 1.919581413269043 step2:final Fri Apr 11 14:59:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22278867) 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 22278867 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351690556,1351690512,1351690447,1351690398,1351690348,1351691538,1351691514,1351691476,1351691443,1351691420,1351691312,1351692038,1351692029,1351692024,1351691987,1351692346,1351692317,1351692271,1351692228,1351692183,1351692126,1351693029,1351692994,1351692943,1351692892,1351695578,1351694413,1351695559,1351695668,1351695663,1351695660,1351695656,1351696099,1351696097,1351696075,1351696559,1351696532,1351696515,1351696472,1351696420,1351697040,1351697013,1351696982,1351696910,1351697245,1351697236,1351697230,1351697214,1351697184,1351697147); 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([22278867]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} new output for save of step final : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] map_info['map_portfolio_photo'] : {22278867: [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420, 1351696099, 1351696097, 1351696075, 1351695668, 1351695663, 1351695660, 1351695656, 1351695578, 1351695559, 1351694413, 1351693029, 1351692994, 1351692943, 1351692892, 1351692346, 1351692317, 1351692271, 1351692228, 1351692183, 1351692126, 1351692038, 1351692029, 1351692024, 1351691987, 1351691538, 1351691514, 1351691476, 1351691443, 1351691420, 1351691312, 1351690556, 1351690512, 1351690447, 1351690398, 1351690348]} final : False mtd_id 4302 list_pids : [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] Looping around the photos to save general results len do output : 15 /1351697245.Didn't retrieve data . /1351697236.Didn't retrieve data . /1351697230.Didn't retrieve data . /1351697214.Didn't retrieve data . /1351697184.Didn't retrieve data . /1351697147.Didn't retrieve data . /1351697040.Didn't retrieve data . /1351697013.Didn't retrieve data . /1351696982.Didn't retrieve data . /1351696910.Didn't retrieve data . /1351696559.Didn't retrieve data . /1351696532.Didn't retrieve data . /1351696515.Didn't retrieve data . /1351696472.Didn't retrieve data . /1351696420.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, '2744884') ('4302', '22278867', '1351697245', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884') 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', '22278867', '1351697245', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697236', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697230', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697214', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697184', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697147', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697040', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351697013', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696982', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696910', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696559', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696532', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696515', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696472', '0.03196123272699239', None, None, None, None, '2744884'), ('4302', '22278867', '1351696420', '0.03196123272699239', None, None, None, None, '2744884')] time used for this insertion : 0.01715564727783203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07398653030395508 time spend to save output : 0.017953872680664062 total time spend for step 2 : 0.09194040298461914 step3:velours_tree Fri Apr 11 14:59:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22278867: [{'autre_refus': 22278898, 'kraft': 22278899, 'Carton_gris': 22278900, 'metal': 22278901, 'environnement': 22278902, 'flou': 22278903, 'plastique': 22278904, 'Teint_Dans_La_Masse': 22278905, 'cartonnette': 22278906, 'mal_croppe': 22278907, 'papier': 22278908, 'Carton_brun': 22278909}]} input_args_next_step : {22278867: ()} output_args : {22278867: [{'autre_refus': 22278898, 'kraft': 22278899, 'Carton_gris': 22278900, 'metal': 22278901, 'environnement': 22278902, 'flou': 22278903, 'plastique': 22278904, 'Teint_Dans_La_Masse': 22278905, 'cartonnette': 22278906, 'mal_croppe': 22278907, 'papier': 22278908, 'Carton_brun': 22278909}]} args : 22278867 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 : ({'autre_refus': 22278898, 'kraft': 22278899, 'Carton_gris': 22278900, 'metal': 22278901, 'environnement': 22278902, 'flou': 22278903, 'plastique': 22278904, 'Teint_Dans_La_Masse': 22278905, 'cartonnette': 22278906, 'mal_croppe': 22278907, 'papier': 22278908, 'Carton_brun': 22278909},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22278867) 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([22278867]) 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.4763824939727783 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.47643184661865234 step4:send_mail_cod Fri Apr 11 14:59:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} input_args_next_step : {1351697245: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697245 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697236 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697230 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697214 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697184 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697147 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697040 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351697013 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696982 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696910 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696559 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696532 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696515 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696472 depend.output_id : 0 input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ()} output_args : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',)} args : 1351696420 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 : {22278867: [{'autre_refus': 22278898, 'kraft': 22278899, 'Carton_gris': 22278900, 'metal': 22278901, 'environnement': 22278902, 'flou': 22278903, 'plastique': 22278904, 'Teint_Dans_La_Masse': 22278905, 'cartonnette': 22278906, 'mal_croppe': 22278907, 'papier': 22278908, 'Carton_brun': 22278909}]} input_args_next_step : {1351697245: ('0.03196123272699239',), 1351697236: ('0.03196123272699239',), 1351697230: ('0.03196123272699239',), 1351697214: ('0.03196123272699239',), 1351697184: ('0.03196123272699239',), 1351697147: ('0.03196123272699239',), 1351697040: ('0.03196123272699239',), 1351697013: ('0.03196123272699239',), 1351696982: ('0.03196123272699239',), 1351696910: ('0.03196123272699239',), 1351696559: ('0.03196123272699239',), 1351696532: ('0.03196123272699239',), 1351696515: ('0.03196123272699239',), 1351696472: ('0.03196123272699239',), 1351696420: ('0.03196123272699239',), 22278867: ()} output_args : {22278867: [{'autre_refus': 22278898, 'kraft': 22278899, 'Carton_gris': 22278900, 'metal': 22278901, 'environnement': 22278902, 'flou': 22278903, 'plastique': 22278904, 'Teint_Dans_La_Masse': 22278905, 'cartonnette': 22278906, 'mal_croppe': 22278907, 'papier': 22278908, 'Carton_brun': 22278909}]} args : 22278867 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.03196123272699239',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22278867) 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 (1351697245,1351697236,1351697230,1351697214,1351697184,1351697147,1351697040,1351697013,1351696982,1351696910,1351696559,1351696532,1351696515,1351696472,1351696420) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351696420 begin to download photo : 1351696559 begin to download photo : 1351697040 begin to download photo : 1351697230 download finish for photo 1351696559 begin to download photo : 1351696910 download finish for photo 1351697230 begin to download photo : 1351697236 download finish for photo 1351696420 begin to download photo : 1351696472 download finish for photo 1351697040 begin to download photo : 1351697147 download finish for photo 1351696910 begin to download photo : 1351696982 download finish for photo 1351697236 begin to download photo : 1351697245 download finish for photo 1351696472 begin to download photo : 1351696515 download finish for photo 1351697147 begin to download photo : 1351697184 download finish for photo 1351697245 download finish for photo 1351696982 begin to download photo : 1351697013 download finish for photo 1351697184 begin to download photo : 1351697214 download finish for photo 1351697013 download finish for photo 1351697214 download finish for photo 1351696515 begin to download photo : 1351696532 download finish for photo 1351696532 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22278867_11-04-2025_14_59_05.pdf 22278898 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=22278898 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351695680: '1744375932_1822737_1351692271_14422413c16f580d0f170b558e3bdc13_rle_crop_3757528753_0.png', 1351695681: '1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529836_0.png', 1351696389: '1744375991_1823441_1351691476_c9d4317db8d37e63cd3bec843423954e_rle_crop_3757532018_0.png', 1351696390: '1744375991_1823441_1351691420_7b48d83a8f60e2a319a49669ecfdbaa7_rle_crop_3757532378_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/259faa9f088b7d34949f5b311a89cfa6_17428183.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f520398cdb21f919097e54b669e9ea63_66715927.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5aea837270e327dc5dee436edb100efa_16667856.png change filename to text .imagette222788981744376345/ imagette222788981744376345/1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529836_0.png.png imagette222788981744376345/1744375932_1822737_1351692271_14422413c16f580d0f170b558e3bdc13_rle_crop_3757528753_0.png.png imagette222788981744376345/1744375991_1823441_1351691476_c9d4317db8d37e63cd3bec843423954e_rle_crop_3757532018_0.png.png imagette222788981744376345/1744375991_1823441_1351691420_7b48d83a8f60e2a319a49669ecfdbaa7_rle_crop_3757532378_0.png.png imagette222788991744376345/ imagette222789011744376345/ imagette222789031744376345/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/21e76427c5cdf5aa1ee8b7e7401ac3ab_49459502.png imagette222788981744376345 22278899 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=22278899 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222788991744376345 22278901 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=22278901 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222789011744376345 22278903 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=22278903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222789031744376345 22278904 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=22278904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351696414: '1744375991_1823441_1351692038_d7d3b289ea92ac068812ea6217d3320a_rle_crop_3757531648_0.png', 1351696415: '1744375991_1823441_1351691476_c9d4317db8d37e63cd3bec843423954e_rle_crop_3757532023_0.png', 1351697237: '1744376224_1825926_1351695663_4e43c4d37642214159bd2f17c3695f56_rle_crop_3757548502_0.png', 1351697271: '1744376035_8870_1351692346_415827404324691c827170fbbb87f85f_rle_crop_3757548513_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2c4aa874d1f648d3938ef2f3b8777ee7_14624529.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cbb8687221de99dc7a53d799b9319f6b_30794764.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d68033c9c2292630b94b91b7f6f6b5a0_20002633.png change filename to text .imagette222789041744376345/ imagette222789041744376345/1744376224_1825926_1351695663_4e43c4d37642214159bd2f17c3695f56_rle_crop_3757548502_0.png.png imagette222789041744376345/1744376035_8870_1351692346_415827404324691c827170fbbb87f85f_rle_crop_3757548513_0.png.png imagette222789041744376345/1744375991_1823441_1351691476_c9d4317db8d37e63cd3bec843423954e_rle_crop_3757532023_0.png.png imagette222789041744376345/1744375991_1823441_1351692038_d7d3b289ea92ac068812ea6217d3320a_rle_crop_3757531648_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/107f680ffae45bc7fd2b51a79b91f6b5_3647998.png imagette222789041744376345 22278906 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=22278906 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351695684: '1744375932_1822737_1351692317_adc7e3dbfffb6927ccd3f73c5572dc4f_rle_crop_3757528610_0.png', 1351696400: '1744375991_1823441_1351691312_b72e828513678e7e31ebe922a86c393c_rle_crop_3757532637_0.png', 1351697220: '1744376174_1825337_1351691538_9576c2591d1c5b47c5a2bc67851dea7c_rle_crop_3757543520_0.png', 1351697221: '1744376174_1825337_1351690447_a08318fd08a566fa14d3bd65d9a3066f_rle_crop_3757548475_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/aa62cc752d0d570cbfb53f9939adb19d_82282087.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a51e59d56546e3304db219e572560501_32905512.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ff4ffa899ae651261f926fc5d6560376_5823283.png change filename to text .imagette222789061744376346/ imagette222789061744376346/1744375991_1823441_1351691312_b72e828513678e7e31ebe922a86c393c_rle_crop_3757532637_0.png.png imagette222789061744376346/1744375932_1822737_1351692317_adc7e3dbfffb6927ccd3f73c5572dc4f_rle_crop_3757528610_0.png.png imagette222789061744376346/1744376174_1825337_1351690447_a08318fd08a566fa14d3bd65d9a3066f_rle_crop_3757548475_0.png.png imagette222789061744376346/1744376174_1825337_1351691538_9576c2591d1c5b47c5a2bc67851dea7c_rle_crop_3757543520_0.png.png imagette222789071744376346/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ef3fcea58e471c586685b843ea9c6aad_35023748.png imagette222789061744376346 22278907 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=22278907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222789071744376346 22278900 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=22278900 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351695682: '1744375932_1822737_1351692228_7740c8a39c091b44a7c19021ece0a95d_rle_crop_3757529135_0.png', 1351696393: '1744375991_1823441_1351692038_d7d3b289ea92ac068812ea6217d3320a_rle_crop_3757531638_0.png', 1351696394: '1744375991_1823441_1351691514_fc33c1c15b9b5ffd88cf7b47d40b7393_rle_crop_3757532003_0.png', 1351697206: '1744376174_1825337_1351691538_9576c2591d1c5b47c5a2bc67851dea7c_rle_crop_3757543519_0.png', 1351697207: '1744376174_1825337_1351690512_18f8d2030e24359c936c0316f1a51219_rle_crop_3757548469_0.png', 1351697208: '1744376174_1825337_1351690398_bf1e851782a373329d0d193317be2f06_rle_crop_3757548489_0.png', 1351697217: '1744376231_1826048_1351695559_695b44186dd89859306f49deb169773e_rle_crop_3757548532_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bf2fa8791b7dae8617ff8a08e41021c1_49665712.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/15692f0efd72eb14973dbd43477b717c_6086506.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/85e0f40152760ead48459e6493836225_75906832.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/4994f82262b520e48270545fd77b34c1_30560017.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/75c1a50d905a8efdff2e06d03dc5fb09_53465014.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8a492a6f7318e98c4a032cb0dda7233b_4187694.png change filename to text .imagette222789001744376346/ imagette222789001744376346/1744375991_1823441_1351691514_fc33c1c15b9b5ffd88cf7b47d40b7393_rle_crop_3757532003_0.png.png imagette222789001744376346/1744376174_1825337_1351690398_bf1e851782a373329d0d193317be2f06_rle_crop_3757548489_0.png.png imagette222789001744376346/1744376174_1825337_1351690512_18f8d2030e24359c936c0316f1a51219_rle_crop_3757548469_0.png.png imagette222789001744376346/1744375932_1822737_1351692228_7740c8a39c091b44a7c19021ece0a95d_rle_crop_3757529135_0.png.png imagette222789001744376346/1744376231_1826048_1351695559_695b44186dd89859306f49deb169773e_rle_crop_3757548532_0.png.png imagette222789001744376346/1744376174_1825337_1351691538_9576c2591d1c5b47c5a2bc67851dea7c_rle_crop_3757543519_0.png.png imagette222789001744376346/1744375991_1823441_1351692038_d7d3b289ea92ac068812ea6217d3320a_rle_crop_3757531638_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e1600b13ee36656742919ae986897011_141610.png imagette222789001744376346 22278905 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=22278905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351695676: '1744375932_1822737_1351692271_14422413c16f580d0f170b558e3bdc13_rle_crop_3757528757_0.png', 1351695677: '1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529840_0.png', 1351695678: '1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529838_0.png', 1351695679: '1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529839_0.png', 1351696386: '1744375991_1823441_1351692038_d7d3b289ea92ac068812ea6217d3320a_rle_crop_3757531651_0.png', 1351696387: '1744375991_1823441_1351691420_7b48d83a8f60e2a319a49669ecfdbaa7_rle_crop_3757532384_0.png', 1351696388: '1744375991_1823441_1351691312_b72e828513678e7e31ebe922a86c393c_rle_crop_3757532641_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/00802157b0b3f463e7fb811397d322dd_89665187.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f777270e481658cf57c7f97f8b74e5be_83937168.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/cb2801f9805c8eb91a072ae2d8fcb7fe_61559772.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/8836b9568eff24720e00138819f51557_4679874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/afa8a8ee54cdc2d1850583c7ddf995a4_93606052.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9d8ca9dbd1572ae934132e9f7fcc7b20_97869335.png change filename to text .imagette222789051744376346/ imagette222789051744376346/1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529838_0.png.png imagette222789051744376346/1744375932_1822737_1351692271_14422413c16f580d0f170b558e3bdc13_rle_crop_3757528757_0.png.png imagette222789051744376346/1744375991_1823441_1351691420_7b48d83a8f60e2a319a49669ecfdbaa7_rle_crop_3757532384_0.png.png imagette222789051744376346/1744375991_1823441_1351692038_d7d3b289ea92ac068812ea6217d3320a_rle_crop_3757531651_0.png.png imagette222789051744376346/1744375991_1823441_1351691312_b72e828513678e7e31ebe922a86c393c_rle_crop_3757532641_0.png.png imagette222789051744376346/1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529840_0.png.png imagette222789051744376346/1744375932_1822737_1351692126_0c1b6f89cca8705bffb9fd66a94a69a9_rle_crop_3757529839_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6d3577c86cdd78b8de1f5d809840974b_20005440.png imagette222789051744376346 22278909 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=22278909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351695687: '1744375932_1822737_1351692183_9a37037754974ce77a292b23a0d2606b_rle_crop_3757529304_0.png', 1351697223: '1744376174_1825337_1351690447_a08318fd08a566fa14d3bd65d9a3066f_rle_crop_3757548479_0.png', 1351697224: '1744376174_1825337_1351690398_bf1e851782a373329d0d193317be2f06_rle_crop_3757548491_0.png', 1351697261: '1744376035_8870_1351692346_415827404324691c827170fbbb87f85f_rle_crop_3757548514_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/799baccfed0387e660cb606862bf5fe0_1750877.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a48ccf67b18683a4062aa31fb31036b2_79309979.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e60d9dd68cac20cd8996124596b85f91_36273626.png change filename to text .imagette222789091744376347/ imagette222789091744376347/1744376174_1825337_1351690447_a08318fd08a566fa14d3bd65d9a3066f_rle_crop_3757548479_0.png.png imagette222789091744376347/1744376174_1825337_1351690398_bf1e851782a373329d0d193317be2f06_rle_crop_3757548491_0.png.png imagette222789091744376347/1744375932_1822737_1351692183_9a37037754974ce77a292b23a0d2606b_rle_crop_3757529304_0.png.png imagette222789091744376347/1744376035_8870_1351692346_415827404324691c827170fbbb87f85f_rle_crop_3757548514_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e28e67a72f353a21451fec02bab70ab7_58105433.png imagette222789091744376347 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22278867 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22278910,22278911,22278912,22278913,22278914,22278915,22278916,22278917,22278918,22278919,22278920,22278921?tags=autre_refus,kraft,Carton_gris,metal,environnement,flou,plastique,Teint_Dans_La_Masse,cartonnette,mal_croppe,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1351697245] : ('0.03196123272699239',) no score found for photo 1351697245 We are sending mail with results at report@fotonower.com args[1351697236] : ('0.03196123272699239',) no score found for photo 1351697236 We are sending mail with results at report@fotonower.com args[1351697230] : ('0.03196123272699239',) no score found for photo 1351697230 We are sending mail with results at report@fotonower.com args[1351697214] : ('0.03196123272699239',) no score found for photo 1351697214 We are sending mail with results at report@fotonower.com args[1351697184] : ('0.03196123272699239',) no score found for photo 1351697184 We are sending mail with results at report@fotonower.com args[1351697147] : ('0.03196123272699239',) no score found for photo 1351697147 We are sending mail with results at report@fotonower.com args[1351697040] : ('0.03196123272699239',) no score found for photo 1351697040 We are sending mail with results at report@fotonower.com args[1351697013] : ('0.03196123272699239',) no score found for photo 1351697013 We are sending mail with results at report@fotonower.com args[1351696982] : ('0.03196123272699239',) no score found for photo 1351696982 We are sending mail with results at report@fotonower.com args[1351696910] : ('0.03196123272699239',) no score found for photo 1351696910 We are sending mail with results at report@fotonower.com args[1351696559] : ('0.03196123272699239',) no score found for photo 1351696559 We are sending mail with results at report@fotonower.com args[1351696532] : ('0.03196123272699239',) no score found for photo 1351696532 We are sending mail with results at report@fotonower.com args[1351696515] : ('0.03196123272699239',) no score found for photo 1351696515 We are sending mail with results at report@fotonower.com args[1351696472] : ('0.03196123272699239',) no score found for photo 1351696472 We are sending mail with results at report@fotonower.com args[1351696420] : ('0.03196123272699239',) no score found for photo 1351696420 We are sending mail with results at report@fotonower.com refus_total : 0.03196123272699239 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=22278867 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_P22278867_11-04-2025_14_59_05.pdf results_Auto_P22278867_11-04-2025_14_59_05.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_11-04-2025_14_59_05.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','22278867','results_Auto_P22278867_11-04-2025_14_59_05.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_11-04-2025_14_59_05.pdf','pdf','','0.21','0.03196123272699239') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22278867]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] map_info['map_portfolio_photo'] : {22278867: [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420, 1351696099, 1351696097, 1351696075, 1351695668, 1351695663, 1351695660, 1351695656, 1351695578, 1351695559, 1351694413, 1351693029, 1351692994, 1351692943, 1351692892, 1351692346, 1351692317, 1351692271, 1351692228, 1351692183, 1351692126, 1351692038, 1351692029, 1351692024, 1351691987, 1351691538, 1351691514, 1351691476, 1351691443, 1351691420, 1351691312, 1351690556, 1351690512, 1351690447, 1351690398, 1351690348]} final : False mtd_id 4302 list_pids : [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] 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, '2744884') ('4302', '22278867', '1351697245', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884') 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', '22278867', '1351697245', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884')] time used for this insertion : 0.014556646347045898 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.388253211975098 time spend to save output : 0.014815807342529297 total time spend for step 4 : 7.403069019317627 step5:split_time_score Fri Apr 11 14:59:09 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22278867'] 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 : [('22278867',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22278867) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351697230: {'path': 'temp/1744376341_271654_1351697230_a1686150bc33f437b3cf59740c921413.jpg', 'extension': 'jpg'}, 1351697236: {'path': 'temp/1744376341_271654_1351697236_488bdf5a88d9e55e4e66a458d8400f1f.jpg', 'extension': 'jpg'}, 1351697245: {'path': 'temp/1744376341_271654_1351697245_e9fc4fd3a391c9a97fb853c07a1361e3.jpg', 'extension': 'jpg'}, 1351696559: {'path': 'temp/1744376341_271654_1351696559_e8789c580c1e5159e073646bcfcfcfce.jpg', 'extension': 'jpg'}, 1351696910: {'path': 'temp/1744376341_271654_1351696910_cc5ad857c5c29cedeb33263aef4573e5.jpg', 'extension': 'jpg'}, 1351696982: {'path': 'temp/1744376341_271654_1351696982_675567e7f8063fa4a3452416840f437c.jpg', 'extension': 'jpg'}, 1351697013: {'path': 'temp/1744376341_271654_1351697013_beba4b728fc6ee43269ffff405b8e26a.jpg', 'extension': 'jpg'}, 1351697040: {'path': 'temp/1744376341_271654_1351697040_4746ace6efd280a6acd0361ca012b0e5.jpg', 'extension': 'jpg'}, 1351697147: {'path': 'temp/1744376341_271654_1351697147_5ea5a61049c913d9ad06298ada5a7fc7.jpg', 'extension': 'jpg'}, 1351697184: {'path': 'temp/1744376341_271654_1351697184_9d239a26ea5ac943d0e6c49a9c590dc4.jpg', 'extension': 'jpg'}, 1351697214: {'path': 'temp/1744376341_271654_1351697214_596414493a7bf611789d03d28fa95db9.jpg', 'extension': 'jpg'}, 1351696420: {'path': 'temp/1744376341_271654_1351696420_9337b0e0a3ffc562600bda1cd78214c6.jpg', 'extension': 'jpg'}, 1351696472: {'path': 'temp/1744376341_271654_1351696472_2313715cbb05a776639b74ff31756f0a.jpg', 'extension': 'jpg'}, 1351696515: {'path': 'temp/1744376341_271654_1351696515_bd12d85c26ce412c22573c69c0459000.jpg', 'extension': 'jpg'}, 1351696532: {'path': 'temp/1744376341_271654_1351696532_951b2113e05c8a5971596765359a049a.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 = 22278867; (('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 = 22278867 group by h (('14', 50),) 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=22278867 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 (22278867) 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 (22278867) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22278867 Nombre de photos uploadées : 50 / 23040 (0%) 11042025 22278867 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 11042025 22278867 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1351690556, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/94a7ea6a975fe5b97f10ef1aaffebce0.jpg', 'username': None, 'uploaded_at': 1744375568, 'text': 'image_11042025_14_45_04_10153.jpg'}, {'photo_id': 1351690512, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/18f8d2030e24359c936c0316f1a51219.jpg', 'username': None, 'uploaded_at': 1744375568, 'text': 'image_11042025_14_45_14_10135.jpg'}, {'photo_id': 1351690447, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/a08318fd08a566fa14d3bd65d9a3066f.jpg', 'username': None, 'uploaded_at': 1744375568, 'text': 'image_11042025_14_45_24_10133.jpg'}, {'photo_id': 1351690398, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bf1e851782a373329d0d193317be2f06.jpg', 'username': None, 'uploaded_at': 1744375568, 'text': 'image_11042025_14_45_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00139617919921875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22278867, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0249021053314209 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743622, 'mtr_portfolio_id': 22277278, 'dashboard_result_id': 10025875, '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_P22277278_11-04-2025_14_17_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22277302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277313, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743622, 'mtr_portfolio_id': 22277722, 'dashboard_result_id': 10025876, '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_P22277722_11-04-2025_14_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22277733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277740, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743622, 'mtr_portfolio_id': 22278478, 'dashboard_result_id': 10025877, '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_P22278478_11-04-2025_14_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1743622, 'mtr_portfolio_id': 22278867, 'dashboard_result_id': 10025878, '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_P22278867_11-04-2025_14_57_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, '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 = 22277278 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': 2744555, 'mtr_portfolio_id': 22277278, 'created_at': datetime.datetime(2025, 4, 11, 14, 17, 28), 'result': '0.03861512163307405', 'result_long': None, 'result_double': None}] Qualite : 0.03861512163307405 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22277278 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277278_11-04-2025_14_17_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22277278 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_P22277278_11-04-2025_14_17_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22277302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277313, 'pht': 3726}}" where mtr_portfolio_id = 22277278 and dashboard_run_id = 1743622 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`=22277278 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10025875, 0.03861512163307405, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277278_11-04-2025_14_17_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22277302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277303, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277306, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277307, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277308, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277309, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277311, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277312, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277313, '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 = 22277722 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': 2744631, 'mtr_portfolio_id': 22277722, 'created_at': datetime.datetime(2025, 4, 11, 14, 34, 58), 'result': '0.06743925810814043', 'result_long': None, 'result_double': None}] Qualite : 0.06743925810814043 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22277722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277722_11-04-2025_14_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22277722 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_P22277722_11-04-2025_14_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22277733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277740, 'pht': 3726}}" where mtr_portfolio_id = 22277722 and dashboard_run_id = 1743622 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`=22277722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10025876, 0.06743925810814043, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22277722_11-04-2025_14_34_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22277728, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22277729, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22277730, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22277732, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22277733, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22277734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22277735, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22277736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22277737, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22277738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22277739, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22277740, '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 = 22278478 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': 2744808, 'mtr_portfolio_id': 22278478, 'created_at': datetime.datetime(2025, 4, 11, 14, 48, 59), 'result': '0.04746497418787983', 'result_long': None, 'result_double': None}] Qualite : 0.04746497418787983 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22278478 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278478_11-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22278478 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_P22278478_11-04-2025_14_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, 'pht': 3726}}" where mtr_portfolio_id = 22278478 and dashboard_run_id = 1743622 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`=22278478 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10025877, 0.04746497418787983, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278478_11-04-2025_14_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22278510, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278511, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278518, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278519, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278521, '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 = 22278867 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': 2744884, 'mtr_portfolio_id': 22278867, 'created_at': datetime.datetime(2025, 4, 11, 14, 59, 1), 'result': '0.03196123272699239', 'result_long': None, 'result_double': None}] Qualite : 0.03196123272699239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22278867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_11-04-2025_14_59_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22278867 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_P22278867_11-04-2025_14_59_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, 'pht': 3726}}" where mtr_portfolio_id = 22278867 and dashboard_run_id = 1743622 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`=22278867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10025878, 0.03196123272699239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22278867_11-04-2025_14_59_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22278898, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22278899, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22278900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22278901, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22278902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22278903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22278904, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22278905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22278906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22278907, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22278908, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22278909, '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 (22277278,22277722,22278478,22278867) result : ((1351670461,), (1351670516,), (1351670562,), (1351670832,), (1351670859,), (1351670895,), (1351671218,), (1351671264,), (1351671294,), (1351671338,), (1351671375,), (1351671579,), (1351671609,), (1351671634,), (1351671673,), (1351672180,), (1351672230,), (1351672277,), (1351672329,), (1351672698,), (1351672726,), (1351672767,), (1351672807,), (1351672868,), (1351673424,), (1351673475,), (1351673544,), (1351673619,), (1351673659,), (1351674031,), (1351674065,), (1351674091,), (1351674323,), (1351674329,), (1351674332,), (1351674518,), (1351674551,), (1351674582,), (1351674614,), (1351674897,), (1351674902,), (1351674906,), (1351674910,), (1351675080,), (1351675114,), (1351675135,), (1351675206,), (1351675309,), (1351675612,), (1351675642,), (1351675681,), (1351675714,), (1351676790,), (1351676924,), (1351676946,), (1351676980,), (1351677002,), (1351677383,), (1351677400,), (1351677405,), (1351677440,), (1351677511,), (1351677518,), (1351677637,), (1351677626,), (1351677631,), (1351677839,), (1351677856,), (1351677876,), (1351677910,), (1351677942,), (1351677971,), (1351678104,), (1351678131,), (1351678144,), (1351678148,), (1351678155,), (1351678160,), (1351678288,), (1351678296,), (1351678310,), (1351678384,), (1351678595,), (1351678616,), (1351678635,), (1351678661,), (1351678687,), (1351678955,), (1351678981,), (1351679007,), (1351679035,), (1351679065,), (1351679118,), (1351679256,), (1351679276,), (1351679279,), (1351679283,), (1351679317,), (1351679321,), (1351679352,), (1351679376,), (1351680183,), (1351681224,), (1351681311,), (1351681387,), (1351681415,), (1351681615,), (1351681640,), (1351681686,), (1351681693,), (1351681739,), (1351682480,), (1351682539,), (1351682620,), (1351682871,), (1351682924,), (1351682933,), (1351682955,), (1351682980,), (1351683007,), (1351684076,), (1351684049,), (1351684368,), (1351685083,), (1351685105,), (1351685208,), (1351685213,), (1351685217,), (1351685227,), (1351685332,), (1351685337,), (1351685340,), (1351685346,), (1351685356,), (1351685465,), (1351685470,), (1351685476,), (1351685481,), (1351685729,), (1351685780,), (1351685818,), (1351685860,), (1351686426,), (1351686501,), (1351686548,), (1351686594,), (1351686643,), (1351686685,), (1351687016,), (1351687073,), (1351687080,), (1351687111,), (1351687135,), (1351687217,), (1351687500,), (1351687852,), (1351687905,), (1351687961,), (1351688978,), (1351689083,), (1351689112,), (1351689137,), (1351689167,), (1351689404,), (1351689473,), (1351689529,), (1351689607,), (1351689668,), (1351690598,), (1351690348,), (1351690398,), (1351690447,), (1351690512,), (1351690556,), (1351691312,), (1351691420,), (1351691443,), (1351691476,), (1351691514,), (1351691538,), (1351691987,), (1351692024,), (1351692029,), (1351692038,), (1351692126,), (1351692183,), (1351692228,), (1351692271,), (1351692317,), (1351692346,), (1351692892,), (1351692943,), (1351692994,), (1351693029,), (1351694413,), (1351695559,), (1351695578,), (1351695656,), (1351695660,), (1351695663,), (1351695668,), (1351696075,), (1351696097,), (1351696099,), (1351696420,), (1351696472,), (1351696515,), (1351696532,), (1351696559,), (1351696910,), (1351696982,), (1351697013,), (1351697040,), (1351697147,), (1351697184,), (1351697214,), (1351697230,), (1351697236,), (1351697245,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22278867]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] map_info['map_portfolio_photo'] : {22278867: [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420, 1351696099, 1351696097, 1351696075, 1351695668, 1351695663, 1351695660, 1351695656, 1351695578, 1351695559, 1351694413, 1351693029, 1351692994, 1351692943, 1351692892, 1351692346, 1351692317, 1351692271, 1351692228, 1351692183, 1351692126, 1351692038, 1351692029, 1351692024, 1351691987, 1351691538, 1351691514, 1351691476, 1351691443, 1351691420, 1351691312, 1351690556, 1351690512, 1351690447, 1351690398, 1351690348]} final : True mtd_id 4302 list_pids : [1351697245, 1351697236, 1351697230, 1351697214, 1351697184, 1351697147, 1351697040, 1351697013, 1351696982, 1351696910, 1351696559, 1351696532, 1351696515, 1351696472, 1351696420] Looping around the photos to save general results len do output : 1 /22278867Didn'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, '2744884') ('4302', '22278867', '1351697245', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884') ('4302', None, None, None, None, None, None, None, '2744884') ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884') 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, '22278867', 'None', None, None, None, None, '2744884'), ('4302', '22278867', '1351697245', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697236', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697230', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697214', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697184', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697147', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697040', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351697013', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696982', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696910', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696559', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696532', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696515', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696472', None, None, None, None, None, '2744884'), ('4302', '22278867', '1351696420', None, None, None, None, None, '2744884')] time used for this insertion : 0.015349149703979492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7250258922576904 time spend to save output : 0.015602350234985352 total time spend for step 5 : 0.7406282424926758 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 (2744884) 2.41user 2.29system 0:14.27elapsed 32%CPU (0avgtext+0avgdata 161076maxresident)k 42864inputs+12216outputs (187major+74752minor)pagefaults 0swaps