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 : 2683236 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 (4274926) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4274926) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714661 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4274926'] with mtr_portfolio_ids : ['29714661'] and first list_photo_ids : [] new path : /proc/2683236/ Name: python3 Umask: 0002 State: R (running) Tgid: 2683236 Ngid: 0 Pid: 2683236 PPid: 2683235 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2683236 NSpid: 2683236 NSpgid: 2680805 NSsid: 2680805 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105796 kB VmRSS: 105796 kB RssAnon: 66292 kB RssFile: 39504 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 624 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 43 nonvoluntary_ctxt_switches: 132 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2683236', 'Ngid': '0', 'Pid': '2683236', 'PPid': '2683235', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2683236', 'NSpid': '2683236', 'NSpgid': '2680805', 'NSsid': '2680805', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105796 kB', 'VmRSS': '105796 kB', 'RssAnon': '66292 kB', 'RssFile': '39504 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '624 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '43', 'nonvoluntary_ctxt_switches': '132'} ('datou_batch_current', '2683236', '1113364', '0', '1113364', '872092', '105796', b'', 'marlene', '4274926') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29714661) 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 (4274926 ) ) 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 (29714661) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401116173, 'portfolio_id': 29714661}, {'photo_id': 1401116172, 'portfolio_id': 29714661}, {'photo_id': 1401116170, 'portfolio_id': 29714661}, {'photo_id': 1401116136, 'portfolio_id': 29714661}, {'photo_id': 1401116134, 'portfolio_id': 29714661}, {'photo_id': 1401116132, 'portfolio_id': 29714661}, {'photo_id': 1401115981, 'portfolio_id': 29714661}, {'photo_id': 1401115953, 'portfolio_id': 29714661}, {'photo_id': 1401115949, 'portfolio_id': 29714661}, {'photo_id': 1401115944, 'portfolio_id': 29714661}, {'photo_id': 1401115941, 'portfolio_id': 29714661}, {'photo_id': 1401115937, 'portfolio_id': 29714661}, {'photo_id': 1401115927, 'portfolio_id': 29714661}, {'photo_id': 1401115921, 'portfolio_id': 29714661}, {'photo_id': 1401115899, 'portfolio_id': 29714661}, {'photo_id': 1401115864, 'portfolio_id': 29714661}, {'photo_id': 1401115839, 'portfolio_id': 29714661}, {'photo_id': 1401115837, 'portfolio_id': 29714661}, {'photo_id': 1401115697, 'portfolio_id': 29714661}, {'photo_id': 1401115692, 'portfolio_id': 29714661}, {'photo_id': 1401115689, 'portfolio_id': 29714661}, {'photo_id': 1401115686, 'portfolio_id': 29714661}, {'photo_id': 1401115685, 'portfolio_id': 29714661}, {'photo_id': 1401115684, 'portfolio_id': 29714661}, {'photo_id': 1401115484, 'portfolio_id': 29714661}, {'photo_id': 1401115481, 'portfolio_id': 29714661}, {'photo_id': 1401115478, 'portfolio_id': 29714661}, {'photo_id': 1401115475, 'portfolio_id': 29714661}, {'photo_id': 1401115413, 'portfolio_id': 29714661}, {'photo_id': 1401115410, 'portfolio_id': 29714661}, {'photo_id': 1401115408, 'portfolio_id': 29714661}, {'photo_id': 1401115406, 'portfolio_id': 29714661}, {'photo_id': 1401115371, 'portfolio_id': 29714661}, {'photo_id': 1401115367, 'portfolio_id': 29714661}, {'photo_id': 1401115340, 'portfolio_id': 29714661}, {'photo_id': 1401115299, 'portfolio_id': 29714661}, {'photo_id': 1401115296, 'portfolio_id': 29714661}, {'photo_id': 1401115280, 'portfolio_id': 29714661}, {'photo_id': 1401115276, 'portfolio_id': 29714661}, {'photo_id': 1401115273, 'portfolio_id': 29714661}, {'photo_id': 1401115271, 'portfolio_id': 29714661}, {'photo_id': 1401115268, 'portfolio_id': 29714661}, {'photo_id': 1401115234, 'portfolio_id': 29714661}, {'photo_id': 1401115231, 'portfolio_id': 29714661}, {'photo_id': 1401115229, 'portfolio_id': 29714661}, {'photo_id': 1401115227, 'portfolio_id': 29714661}, {'photo_id': 1401115225, 'portfolio_id': 29714661}, {'photo_id': 1401115196, 'portfolio_id': 29714661}, {'photo_id': 1401115194, 'portfolio_id': 29714661}, {'photo_id': 1401115191, 'portfolio_id': 29714661}, {'photo_id': 1401115162, 'portfolio_id': 29714661}, {'photo_id': 1401115160, 'portfolio_id': 29714661}, {'photo_id': 1401115157, 'portfolio_id': 29714661}, {'photo_id': 1401115154, 'portfolio_id': 29714661}, {'photo_id': 1401115151, 'portfolio_id': 29714661}, {'photo_id': 1401115129, 'portfolio_id': 29714661}, {'photo_id': 1401115124, 'portfolio_id': 29714661}, {'photo_id': 1401115119, 'portfolio_id': 29714661}, {'photo_id': 1401115115, 'portfolio_id': 29714661}, {'photo_id': 1401115112, 'portfolio_id': 29714661}, {'photo_id': 1401115009, 'portfolio_id': 29714661}, {'photo_id': 1401114993, 'portfolio_id': 29714661}, {'photo_id': 1401114965, 'portfolio_id': 29714661}, {'photo_id': 1401114963, 'portfolio_id': 29714661}, {'photo_id': 1401114961, 'portfolio_id': 29714661}, {'photo_id': 1401114790, 'portfolio_id': 29714661}] map_portfolio_id_photo_id: {29714661: [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837, 1401115697, 1401115692, 1401115689, 1401115686, 1401115685, 1401115684, 1401115484, 1401115481, 1401115478, 1401115475, 1401115413, 1401115410, 1401115408, 1401115406, 1401115371, 1401115367, 1401115340, 1401115299, 1401115296, 1401115280, 1401115276, 1401115273, 1401115271, 1401115268, 1401115234, 1401115231, 1401115229, 1401115227, 1401115225, 1401115196, 1401115194, 1401115191, 1401115162, 1401115160, 1401115157, 1401115154, 1401115151, 1401115129, 1401115124, 1401115119, 1401115115, 1401115112, 1401115009, 1401114993, 1401114965, 1401114963, 1401114961, 1401114790]} ##### 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.019910335540771484 #### 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 Dec 26 11:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29714661) 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 : 29714661 get user id for portfolio 29714661 get sub ptf for main ptf 29714661, type 3726 and hashtags ['Carton_brun', 'Carton_gris', 'autre_refus', 'environnement', 'papier', 'plastique', 'mal_croppe', 'cartonnette', 'metal', 'kraft', 'flou', '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`=29714661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','autre_refus','environnement','papier','plastique','mal_croppe','cartonnette','metal','kraft','flou','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`=29714661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','autre_refus','environnement','papier','plastique','mal_croppe','cartonnette','metal','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29714661, 'sub_port_id': 29714666, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302882, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'environnement': {'main_port_id': 29714661, 'sub_port_id': 29714667, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302883, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'plastique': {'main_port_id': 29714661, 'sub_port_id': 29714668, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302884, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'flou': {'main_port_id': 29714661, 'sub_port_id': 29714669, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302885, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'mal_croppe': {'main_port_id': 29714661, 'sub_port_id': 29714670, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302886, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'cartonnette': {'main_port_id': 29714661, 'sub_port_id': 29714671, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302887, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'kraft': {'main_port_id': 29714661, 'sub_port_id': 29714672, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302888, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'autre_refus': {'main_port_id': 29714661, 'sub_port_id': 29714673, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302889, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'Carton_brun': {'main_port_id': 29714661, 'sub_port_id': 29714674, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302890, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'metal': {'main_port_id': 29714661, 'sub_port_id': 29714675, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302891, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29714661, 'sub_port_id': 29714676, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302892, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}, 'Carton_gris': {'main_port_id': 29714661, 'sub_port_id': 29714677, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302893, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 57), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29714666 , 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=29714661 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 (29714666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714667 , 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=29714661 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 (29714667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714668 , 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=29714661 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 (29714668) result : ((1401115264,), (1401115335,), (1401115336,), (1401115337,), (1401115443,), (1401115474,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714669 , 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=29714661 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 (29714669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714670 , 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=29714661 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 (29714670) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714671 , 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=29714661 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 (29714671) result : ((1401115199,), (1401115200,), (1401115201,), (1401115332,), (1401115432,), (1401115434,), (1401115947,), (1401115948,), (1401116129,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714672 , 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=29714661 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 (29714672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714673 , 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=29714661 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 (29714673) result : ((1401115428,), (1401115429,), (1401115463,), (1401115464,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714674 , 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=29714661 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 (29714674) result : ((1401115203,), (1401115440,), (1401115441,), (1401115442,), (1401115469,), (1401115470,), (1401115471,), (1401115472,), (1401115693,), (1401115737,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714675 , 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=29714661 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 (29714675) result : ((1401115447,), (1401115950,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714676 , 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=29714661 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 (29714676) result : ((1401115197,), (1401115198,), (1401115459,), (1401115460,), (1401115461,), (1401115462,), (1401115724,), (1401116128,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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 29714677 , 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=29714661 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 (29714677) result : ((1401115430,), (1401115465,), (1401115466,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29714661) result : ((1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) 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`=29714661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','autre_refus','environnement','papier','plastique','mal_croppe','cartonnette','metal','kraft','flou','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`=29714661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','autre_refus','environnement','papier','plastique','mal_croppe','cartonnette','metal','kraft','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 29714661, 'sub_port_id': 29714678, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302894, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'environnement': {'main_port_id': 29714661, 'sub_port_id': 29714679, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302895, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'plastique': {'main_port_id': 29714661, 'sub_port_id': 29714680, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302896, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'flou': {'main_port_id': 29714661, 'sub_port_id': 29714681, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302897, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'mal_croppe': {'main_port_id': 29714661, 'sub_port_id': 29714682, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302898, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'cartonnette': {'main_port_id': 29714661, 'sub_port_id': 29714683, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302899, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'kraft': {'main_port_id': 29714661, 'sub_port_id': 29714684, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302900, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'autre_refus': {'main_port_id': 29714661, 'sub_port_id': 29714685, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302901, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'Carton_brun': {'main_port_id': 29714661, 'sub_port_id': 29714686, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302902, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'metal': {'main_port_id': 29714661, 'sub_port_id': 29714687, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302903, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29714661, 'sub_port_id': 29714688, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302904, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}, 'Carton_gris': {'main_port_id': 29714661, 'sub_port_id': 29714689, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20302905, 'last_updated_at': datetime.datetime(2025, 12, 26, 11, 28, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 26, 11, 28, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 26, 11, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29714689,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29714677 lien utilise dans velours : https://marlene.fotonower.com/velours/29714678,29714679,29714680,29714681,29714682,29714683,29714684,29714685,29714686,29714687,29714688,29714689?tags=papier,environnement,plastique,flou,mal_croppe,cartonnette,kraft,autre_refus,Carton_brun,metal,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29714661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] map_info['map_portfolio_photo'] : {29714661: [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837, 1401115697, 1401115692, 1401115689, 1401115686, 1401115685, 1401115684, 1401115484, 1401115481, 1401115478, 1401115475, 1401115413, 1401115410, 1401115408, 1401115406, 1401115371, 1401115367, 1401115340, 1401115299, 1401115296, 1401115280, 1401115276, 1401115273, 1401115271, 1401115268, 1401115234, 1401115231, 1401115229, 1401115227, 1401115225, 1401115196, 1401115194, 1401115191, 1401115162, 1401115160, 1401115157, 1401115154, 1401115151, 1401115129, 1401115124, 1401115119, 1401115115, 1401115112, 1401115009, 1401114993, 1401114965, 1401114963, 1401114961, 1401114790]} final : False mtd_id 4302 list_pids : [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] Looping around the photos to save general results len do output : 1 /29714661. 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, '4274926') ('4302', '29714661', '1401116173', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29714661', "{'papier': 29714666, 'environnement': 29714667, 'plastique': 29714668, 'flou': 29714669, 'mal_croppe': 29714670, 'cartonnette': 29714671, 'kraft': 29714672, 'autre_refus': 29714673, 'Carton_brun': 29714674, 'metal': 29714675, 'Teint_Dans_La_Masse': 29714676, 'Carton_gris': 29714677}", None, None, None, None, '4274926'), ('4302', '29714661', '1401116173', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926')] time used for this insertion : 0.020850181579589844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9807753562927246 time spend to save output : 0.021421432495117188 total time spend for step 1 : 2.002196788787842 step2:final Fri Dec 26 11:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (29714661) 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 29714661 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401114790,1401115009,1401114993,1401114965,1401114963,1401114961,1401115129,1401115124,1401115119,1401115115,1401115112,1401115162,1401115160,1401115157,1401115154,1401115151,1401115196,1401115194,1401115191,1401115234,1401115231,1401115229,1401115227,1401115225,1401115280,1401115276,1401115273,1401115271,1401115268,1401115299,1401115296,1401115371,1401115367,1401115340,1401115413,1401115410,1401115408,1401115406,1401115484,1401115697,1401115481,1401116173,1401115692,1401115478,1401115475,1401115689,1401116172,1401115927,1401115686,1401116170,1401115921,1401115899,1401116136,1401115685,1401115864,1401116134,1401115684,1401115839,1401116132,1401115981,1401115837,1401115953,1401115949,1401115944,1401115941,1401115937); 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([29714661]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} new output for save of step final : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] map_info['map_portfolio_photo'] : {29714661: [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837, 1401115697, 1401115692, 1401115689, 1401115686, 1401115685, 1401115684, 1401115484, 1401115481, 1401115478, 1401115475, 1401115413, 1401115410, 1401115408, 1401115406, 1401115371, 1401115367, 1401115340, 1401115299, 1401115296, 1401115280, 1401115276, 1401115273, 1401115271, 1401115268, 1401115234, 1401115231, 1401115229, 1401115227, 1401115225, 1401115196, 1401115194, 1401115191, 1401115162, 1401115160, 1401115157, 1401115154, 1401115151, 1401115129, 1401115124, 1401115119, 1401115115, 1401115112, 1401115009, 1401114993, 1401114965, 1401114963, 1401114961, 1401114790]} final : False mtd_id 4302 list_pids : [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] Looping around the photos to save general results len do output : 18 /1401116173.Didn't retrieve data . /1401116172.Didn't retrieve data . /1401116170.Didn't retrieve data . /1401116136.Didn't retrieve data . /1401116134.Didn't retrieve data . /1401116132.Didn't retrieve data . /1401115981.Didn't retrieve data . /1401115953.Didn't retrieve data . /1401115949.Didn't retrieve data . /1401115944.Didn't retrieve data . /1401115941.Didn't retrieve data . /1401115937.Didn't retrieve data . /1401115927.Didn't retrieve data . /1401115921.Didn't retrieve data . /1401115899.Didn't retrieve data . /1401115864.Didn't retrieve data . /1401115839.Didn't retrieve data . /1401115837.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, '4274926') ('4302', '29714661', '1401116173', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '29714661', '1401116173', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401116172', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401116170', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401116136', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401116134', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401116132', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115981', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115953', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115949', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115944', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115941', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115937', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115927', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115921', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115899', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115864', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115839', '0.02584847479444482', None, None, None, None, '4274926'), ('4302', '29714661', '1401115837', '0.02584847479444482', None, None, None, None, '4274926')] time used for this insertion : 0.020162582397460938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0855870246887207 time spend to save output : 0.021161794662475586 total time spend for step 2 : 0.10674881935119629 step3:velours_tree Fri Dec 26 11:31:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29714661: [{'papier': 29714666, 'environnement': 29714667, 'plastique': 29714668, 'flou': 29714669, 'mal_croppe': 29714670, 'cartonnette': 29714671, 'kraft': 29714672, 'autre_refus': 29714673, 'Carton_brun': 29714674, 'metal': 29714675, 'Teint_Dans_La_Masse': 29714676, 'Carton_gris': 29714677}]} input_args_next_step : {29714661: ()} output_args : {29714661: [{'papier': 29714666, 'environnement': 29714667, 'plastique': 29714668, 'flou': 29714669, 'mal_croppe': 29714670, 'cartonnette': 29714671, 'kraft': 29714672, 'autre_refus': 29714673, 'Carton_brun': 29714674, 'metal': 29714675, 'Teint_Dans_La_Masse': 29714676, 'Carton_gris': 29714677}]} args : 29714661 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 : ({'papier': 29714666, 'environnement': 29714667, 'plastique': 29714668, 'flou': 29714669, 'mal_croppe': 29714670, 'cartonnette': 29714671, 'kraft': 29714672, 'autre_refus': 29714673, 'Carton_brun': 29714674, 'metal': 29714675, 'Teint_Dans_La_Masse': 29714676, 'Carton_gris': 29714677},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29714661) 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([29714661]) 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.32683467864990234 time spend to save output : 0.00010061264038085938 total time spend for step 3 : 0.3269352912902832 step4:send_mail_cod Fri Dec 26 11:31: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 : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} input_args_next_step : {1401116173: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401116173 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401116172 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401116170 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401116136 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401116134 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401116132 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115981 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115953 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115949 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115944 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115941 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115937 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115927 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115921 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115899 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115864 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115839 depend.output_id : 0 input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ()} output_args : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',)} args : 1401115837 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 : {29714661: [{'papier': 29714666, 'environnement': 29714667, 'plastique': 29714668, 'flou': 29714669, 'mal_croppe': 29714670, 'cartonnette': 29714671, 'kraft': 29714672, 'autre_refus': 29714673, 'Carton_brun': 29714674, 'metal': 29714675, 'Teint_Dans_La_Masse': 29714676, 'Carton_gris': 29714677}]} input_args_next_step : {1401116173: ('0.02584847479444482',), 1401116172: ('0.02584847479444482',), 1401116170: ('0.02584847479444482',), 1401116136: ('0.02584847479444482',), 1401116134: ('0.02584847479444482',), 1401116132: ('0.02584847479444482',), 1401115981: ('0.02584847479444482',), 1401115953: ('0.02584847479444482',), 1401115949: ('0.02584847479444482',), 1401115944: ('0.02584847479444482',), 1401115941: ('0.02584847479444482',), 1401115937: ('0.02584847479444482',), 1401115927: ('0.02584847479444482',), 1401115921: ('0.02584847479444482',), 1401115899: ('0.02584847479444482',), 1401115864: ('0.02584847479444482',), 1401115839: ('0.02584847479444482',), 1401115837: ('0.02584847479444482',), 29714661: ()} output_args : {29714661: [{'papier': 29714666, 'environnement': 29714667, 'plastique': 29714668, 'flou': 29714669, 'mal_croppe': 29714670, 'cartonnette': 29714671, 'kraft': 29714672, 'autre_refus': 29714673, 'Carton_brun': 29714674, 'metal': 29714675, 'Teint_Dans_La_Masse': 29714676, 'Carton_gris': 29714677}]} args : 29714661 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 :19, first value : ('0.02584847479444482',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29714661) 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_view ph WHERE photo_id IN (1401116173,1401116172,1401116170,1401116136,1401116134,1401116132,1401115981,1401115953,1401115949,1401115944,1401115941,1401115937,1401115927,1401115921,1401115899,1401115864,1401115839,1401115837) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401115837 begin to download photo : 1401115921 begin to download photo : 1401115944 begin to download photo : 1401116132 begin to download photo : 1401116172 download finish for photo 1401116132 begin to download photo : 1401116134 download finish for photo 1401115921 begin to download photo : 1401115927 download finish for photo 1401115837 begin to download photo : 1401115839 download finish for photo 1401115944 begin to download photo : 1401115949 download finish for photo 1401116172 begin to download photo : 1401116173 download finish for photo 1401116134 begin to download photo : 1401116136 download finish for photo 1401115927 begin to download photo : 1401115937 download finish for photo 1401115839 begin to download photo : 1401115864 download finish for photo 1401115949 begin to download photo : 1401115953 download finish for photo 1401116173 download finish for photo 1401116136 begin to download photo : 1401116170 download finish for photo 1401115953 begin to download photo : 1401115981 download finish for photo 1401115937 begin to download photo : 1401115941 download finish for photo 1401115864 begin to download photo : 1401115899 download finish for photo 1401116170 download finish for photo 1401115981 download finish for photo 1401115941 download finish for photo 1401115899 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 : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P29714661_26-12-2025_11_31_01.pdf 29714668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115264: '1766744486_591158_1401115009_fa0e3af17bedcd04927061f4d121afbb_rle_crop_4081955930_0.png', 1401115335: '1766744607_597395_1401115160_0cf044afabf98ed06ded23129a57affa_rle_crop_4081956311_0.png', 1401115336: '1766744607_597395_1401115160_0cf044afabf98ed06ded23129a57affa_rle_crop_4081956323_0.png', 1401115337: '1766744607_597395_1401115157_e16eb8fd9339e1bc1d61637e0bd02308_rle_crop_4081956335_0.png', 1401115443: '1766744707_602515_1401115271_bf7ef67ed89ff20d11e8a664ee4ab7d0_rle_crop_4081957806_0.png', 1401115474: '1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958053_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/2d2f410a88a90beb86e5a8cb1d2e0b87_37605148.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/52c98e83cb140397280f31a37306077f_45383073.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/0e6574e27ef1e7fd8afd37675a53e5e7_45200953.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/bcfa3d56ba2cc0ea41a0a3f004e61c1e_88383379.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/5b9c64aa536a2b8934eaf02588892e5e_31551574.png change filename to text .imagette297146681766745061/ imagette297146681766745061/1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958053_0.png.png imagette297146681766745061/1766744607_597395_1401115160_0cf044afabf98ed06ded23129a57affa_rle_crop_4081956323_0.png.png imagette297146681766745061/1766744607_597395_1401115157_e16eb8fd9339e1bc1d61637e0bd02308_rle_crop_4081956335_0.png.png imagette297146681766745061/1766744607_597395_1401115160_0cf044afabf98ed06ded23129a57affa_rle_crop_4081956311_0.png.png imagette297146681766745061/1766744486_591158_1401115009_fa0e3af17bedcd04927061f4d121afbb_rle_crop_4081955930_0.png.png imagette297146681766745061/1766744707_602515_1401115271_bf7ef67ed89ff20d11e8a664ee4ab7d0_rle_crop_4081957806_0.png.png imagette297146691766745062/ imagette297146701766745062/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/31e3aca040c557b05e577db6b6191f72_34733131.png imagette297146681766745061 29714669 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297146691766745062 29714670 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297146701766745062 29714671 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115199: '1766744366_585182_1401114965_fc257066183cf2a82f927791da0aabcc_rle_crop_4081954416_0.png', 1401115200: '1766744366_585182_1401114965_fc257066183cf2a82f927791da0aabcc_rle_crop_4081954418_0.png', 1401115201: '1766744366_585182_1401114963_b3aaabb61c4ec5625752050bc1812276_rle_crop_4081954436_0.png', 1401115332: '1766744607_597395_1401115151_329bc67575265defb3979c4ae8fcf72b_rle_crop_4081956410_0.png', 1401115432: '1766744707_602515_1401115276_a24fea8ef972f0d3ef2de7607b49ec2f_rle_crop_4081957742_0.png', 1401115434: '1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957779_0.png', 1401115947: '1766744945_614379_1401115408_72c20734dbf18de5a023161d212865e1_rle_crop_4081958559_0.png', 1401115948: '1766744945_614379_1401115406_ceb6be202ea3305810413a562be0bbcd_rle_crop_4081958574_0.png', 1401116129: '1766744964_614745_1401115475_d54d0d089db0f9c97d52b2c72072cc48_rle_crop_4081958677_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/427f4d2cd8c13190eb7e7b35e18e08e3_36331576.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/e3910f706ef39f0947de7e92b20f43e8_57352356.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/9f5ca40fc9fa6a75ed1c05f494c96283_91835367.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/cdd1184b6d8564d9d8ced4a4f9420e80_5123330.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/c57bf8ddbbda709294452cb29fd22655_49892708.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/f65b4f490ce3e3cef183db0cb4cb1e73_52252097.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/f3a8b24ceb6447d62617fa57bd2a9ca2_83050040.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/36302fb142911080d3efca08245779ed_28651625.png change filename to text .imagette297146711766745062/ imagette297146711766745062/1766744366_585182_1401114965_fc257066183cf2a82f927791da0aabcc_rle_crop_4081954418_0.png.png imagette297146711766745062/1766744366_585182_1401114965_fc257066183cf2a82f927791da0aabcc_rle_crop_4081954416_0.png.png imagette297146711766745062/1766744707_602515_1401115276_a24fea8ef972f0d3ef2de7607b49ec2f_rle_crop_4081957742_0.png.png imagette297146711766745062/1766744945_614379_1401115408_72c20734dbf18de5a023161d212865e1_rle_crop_4081958559_0.png.png imagette297146711766745062/1766744945_614379_1401115406_ceb6be202ea3305810413a562be0bbcd_rle_crop_4081958574_0.png.png imagette297146711766745062/1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957779_0.png.png imagette297146711766745062/1766744964_614745_1401115475_d54d0d089db0f9c97d52b2c72072cc48_rle_crop_4081958677_0.png.png imagette297146711766745062/1766744607_597395_1401115151_329bc67575265defb3979c4ae8fcf72b_rle_crop_4081956410_0.png.png imagette297146711766745062/1766744366_585182_1401114963_b3aaabb61c4ec5625752050bc1812276_rle_crop_4081954436_0.png.png imagette297146721766745063/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/69347350fc85b52c6cc7abe5ce242109_20931397.png imagette297146711766745062 29714672 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette297146721766745063 29714673 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115428: '1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957780_0.png', 1401115429: '1766744707_602515_1401115268_e9894853a60b4828a5725f66a172b96f_rle_crop_4081957823_0.png', 1401115463: '1766744724_602936_1401115280_8d251b5636e9730fbd99a7cd5f221641_rle_crop_4081958035_0.png', 1401115464: '1766744724_602936_1401115280_8d251b5636e9730fbd99a7cd5f221641_rle_crop_4081958038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/564ab98d896e2b9bf3b52e0b45e2ad08_7465107.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/7f7683ed43b9464acab50a16f9541fdf_23617603.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/e005491d1c308299ac845d503d443193_24377873.png change filename to text .imagette297146731766745063/ imagette297146731766745063/1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957780_0.png.png imagette297146731766745063/1766744724_602936_1401115280_8d251b5636e9730fbd99a7cd5f221641_rle_crop_4081958035_0.png.png imagette297146731766745063/1766744707_602515_1401115268_e9894853a60b4828a5725f66a172b96f_rle_crop_4081957823_0.png.png imagette297146731766745063/1766744724_602936_1401115280_8d251b5636e9730fbd99a7cd5f221641_rle_crop_4081958038_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/e26301a9479ac76e6ac077dbbdcc6cbf_80475672.png imagette297146731766745063 29714675 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115447: '1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957785_0.png', 1401115950: '1766744945_614379_1401115408_72c20734dbf18de5a023161d212865e1_rle_crop_4081958564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/a44fcf1ddfd2ca69aa47ff3be17b1666_73104756.png change filename to text .imagette297146751766745063/ imagette297146751766745063/1766744945_614379_1401115408_72c20734dbf18de5a023161d212865e1_rle_crop_4081958564_0.png.png imagette297146751766745063/1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957785_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/2eba9dc102a76be34d85eff0486b5659_12990463.png imagette297146751766745063 29714674 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115203: '1766744366_585182_1401114993_cc5e733ffead7ab9a831c442ea26d7e0_rle_crop_4081954410_0.png', 1401115440: '1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957783_0.png', 1401115441: '1766744707_602515_1401115271_bf7ef67ed89ff20d11e8a664ee4ab7d0_rle_crop_4081957800_0.png', 1401115442: '1766744707_602515_1401115268_e9894853a60b4828a5725f66a172b96f_rle_crop_4081957828_0.png', 1401115469: '1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958051_0.png', 1401115470: '1766744724_602936_1401115229_e31580c34cd7855733e114bbd0572225_rle_crop_4081958071_0.png', 1401115471: '1766744724_602936_1401115229_e31580c34cd7855733e114bbd0572225_rle_crop_4081958073_0.png', 1401115472: '1766744724_602936_1401115227_12d8695797298c28991854d279cf280b_rle_crop_4081958086_0.png', 1401115693: '1766744827_608778_1401115340_1aba5dfb9c961e587b1cb9654093cd38_rle_crop_4081958273_0.png', 1401115737: '1766744845_609138_1401115296_fbc5e191dcb4565551e2346b293ea447_rle_crop_4081958336_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/3743617692f8ea184f2ec7a155e8fb47_86388994.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/c6b78341cf8441a8f29da35ac509af18_5006418.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/8df080bee020c16678612e7a7e6cb27d_34404904.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/affcac207223f3a9af1973b74c5b1a3c_48193754.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/e9c4c93f106c4ec99e3d7c0f8a8de1cd_95221709.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/139eaac894412f6607d3fb4dc02f0b4a_61125776.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/f4195a8a6b16f2c3490055c146f0c572_71362435.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/78f62b399dc0527d3908723f15570ddd_35306108.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/67c66170049ddb0a0d667f4a259e6c44_99012012.png change filename to text .imagette297146741766745063/ imagette297146741766745063/1766744724_602936_1401115229_e31580c34cd7855733e114bbd0572225_rle_crop_4081958073_0.png.png imagette297146741766745063/1766744827_608778_1401115340_1aba5dfb9c961e587b1cb9654093cd38_rle_crop_4081958273_0.png.png imagette297146741766745063/1766744707_602515_1401115268_e9894853a60b4828a5725f66a172b96f_rle_crop_4081957828_0.png.png imagette297146741766745063/1766744366_585182_1401114993_cc5e733ffead7ab9a831c442ea26d7e0_rle_crop_4081954410_0.png.png imagette297146741766745063/1766744724_602936_1401115227_12d8695797298c28991854d279cf280b_rle_crop_4081958086_0.png.png imagette297146741766745063/1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958051_0.png.png imagette297146741766745063/1766744707_602515_1401115273_9896381b39b5988a5939b0232bf51cb0_rle_crop_4081957783_0.png.png imagette297146741766745063/1766744845_609138_1401115296_fbc5e191dcb4565551e2346b293ea447_rle_crop_4081958336_0.png.png imagette297146741766745063/1766744707_602515_1401115271_bf7ef67ed89ff20d11e8a664ee4ab7d0_rle_crop_4081957800_0.png.png imagette297146741766745063/1766744724_602936_1401115229_e31580c34cd7855733e114bbd0572225_rle_crop_4081958071_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/d95f0c671350774b5249ccb6a2ee0629_7632759.png imagette297146741766745063 29714676 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115197: '1766744366_585182_1401114993_cc5e733ffead7ab9a831c442ea26d7e0_rle_crop_4081954405_0.png', 1401115198: '1766744366_585182_1401114965_fc257066183cf2a82f927791da0aabcc_rle_crop_4081954425_0.png', 1401115459: '1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958056_0.png', 1401115460: '1766744724_602936_1401115227_12d8695797298c28991854d279cf280b_rle_crop_4081958085_0.png', 1401115461: '1766744724_602936_1401115225_a749bb107ef8ba7896ebab8ab918b278_rle_crop_4081958100_0.png', 1401115462: '1766744724_602936_1401115225_a749bb107ef8ba7896ebab8ab918b278_rle_crop_4081958097_0.png', 1401115724: '1766744845_609138_1401115296_fbc5e191dcb4565551e2346b293ea447_rle_crop_4081958340_0.png', 1401116128: '1766744964_614745_1401115481_bf780eb231d65aac815d8b19f2020c96_rle_crop_4081958659_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/abd0d90438ee6a117c2468590b3a95fe_6200243.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/5a3ca1fad853d532e72698a93f87571e_83693645.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/e7c6ba0dc78959bb2af2e5c0a4097735_99293449.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/a8e143e2e01167470b7fc213bafd0b36_4995460.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/d20223c87f6f5c1b1bd6622000a48def_74285472.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/99df9d7e3b3cb78e327df6f8b6376a6f_24866282.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/622c45151b3deeed946e657735922045_99139747.png change filename to text .imagette297146761766745064/ imagette297146761766745064/1766744845_609138_1401115296_fbc5e191dcb4565551e2346b293ea447_rle_crop_4081958340_0.png.png imagette297146761766745064/1766744964_614745_1401115481_bf780eb231d65aac815d8b19f2020c96_rle_crop_4081958659_0.png.png imagette297146761766745064/1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958056_0.png.png imagette297146761766745064/1766744724_602936_1401115227_12d8695797298c28991854d279cf280b_rle_crop_4081958085_0.png.png imagette297146761766745064/1766744724_602936_1401115225_a749bb107ef8ba7896ebab8ab918b278_rle_crop_4081958100_0.png.png imagette297146761766745064/1766744366_585182_1401114993_cc5e733ffead7ab9a831c442ea26d7e0_rle_crop_4081954405_0.png.png imagette297146761766745064/1766744366_585182_1401114965_fc257066183cf2a82f927791da0aabcc_rle_crop_4081954425_0.png.png imagette297146761766745064/1766744724_602936_1401115225_a749bb107ef8ba7896ebab8ab918b278_rle_crop_4081958097_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/2631274e2177b162602c1890853a0db4_86609544.png imagette297146761766745064 29714677 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714677 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1401115430: '1766744707_602515_1401115271_bf7ef67ed89ff20d11e8a664ee4ab7d0_rle_crop_4081957801_0.png', 1401115465: '1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958054_0.png', 1401115466: '1766744724_602936_1401115225_a749bb107ef8ba7896ebab8ab918b278_rle_crop_4081958098_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/c1d28e7346b1f2437bf334d3d5187351_13601533.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/eae5af7b3c013b771186da8f48a35bd3_57595871.png change filename to text .imagette297146771766745064/ imagette297146771766745064/1766744724_602936_1401115231_26de7887aeb2b9159bf856bb995e794b_rle_crop_4081958054_0.png.png imagette297146771766745064/1766744724_602936_1401115225_a749bb107ef8ba7896ebab8ab918b278_rle_crop_4081958098_0.png.png imagette297146771766745064/1766744707_602515_1401115271_bf7ef67ed89ff20d11e8a664ee4ab7d0_rle_crop_4081957801_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/755ab900a730d6cec07ec278c1b335c1_13266692.png imagette297146771766745064 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29714661 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29714678,29714679,29714680,29714681,29714682,29714683,29714684,29714685,29714686,29714687,29714688,29714689?tags=papier,environnement,plastique,flou,mal_croppe,cartonnette,kraft,autre_refus,Carton_brun,metal,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1401116173] : ('0.02584847479444482',) no score found for photo 1401116173 We are sending mail with results at report@fotonower.com args[1401116172] : ('0.02584847479444482',) no score found for photo 1401116172 We are sending mail with results at report@fotonower.com args[1401116170] : ('0.02584847479444482',) no score found for photo 1401116170 We are sending mail with results at report@fotonower.com args[1401116136] : ('0.02584847479444482',) no score found for photo 1401116136 We are sending mail with results at report@fotonower.com args[1401116134] : ('0.02584847479444482',) no score found for photo 1401116134 We are sending mail with results at report@fotonower.com args[1401116132] : ('0.02584847479444482',) no score found for photo 1401116132 We are sending mail with results at report@fotonower.com args[1401115981] : ('0.02584847479444482',) no score found for photo 1401115981 We are sending mail with results at report@fotonower.com args[1401115953] : ('0.02584847479444482',) no score found for photo 1401115953 We are sending mail with results at report@fotonower.com args[1401115949] : ('0.02584847479444482',) no score found for photo 1401115949 We are sending mail with results at report@fotonower.com args[1401115944] : ('0.02584847479444482',) no score found for photo 1401115944 We are sending mail with results at report@fotonower.com args[1401115941] : ('0.02584847479444482',) no score found for photo 1401115941 We are sending mail with results at report@fotonower.com args[1401115937] : ('0.02584847479444482',) no score found for photo 1401115937 We are sending mail with results at report@fotonower.com args[1401115927] : ('0.02584847479444482',) no score found for photo 1401115927 We are sending mail with results at report@fotonower.com args[1401115921] : ('0.02584847479444482',) no score found for photo 1401115921 We are sending mail with results at report@fotonower.com args[1401115899] : ('0.02584847479444482',) no score found for photo 1401115899 We are sending mail with results at report@fotonower.com args[1401115864] : ('0.02584847479444482',) no score found for photo 1401115864 We are sending mail with results at report@fotonower.com args[1401115839] : ('0.02584847479444482',) no score found for photo 1401115839 We are sending mail with results at report@fotonower.com args[1401115837] : ('0.02584847479444482',) no score found for photo 1401115837 We are sending mail with results at report@fotonower.com refus_total : 0.02584847479444482 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714661 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_P29714661_26-12-2025_11_31_01.pdf results_Auto_P29714661_26-12-2025_11_31_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29714661_26-12-2025_11_31_01.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','29714661','results_Auto_P29714661_26-12-2025_11_31_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29714661_26-12-2025_11_31_01.pdf','pdf','','0.25','0.02584847479444482') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29714661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] map_info['map_portfolio_photo'] : {29714661: [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837, 1401115697, 1401115692, 1401115689, 1401115686, 1401115685, 1401115684, 1401115484, 1401115481, 1401115478, 1401115475, 1401115413, 1401115410, 1401115408, 1401115406, 1401115371, 1401115367, 1401115340, 1401115299, 1401115296, 1401115280, 1401115276, 1401115273, 1401115271, 1401115268, 1401115234, 1401115231, 1401115229, 1401115227, 1401115225, 1401115196, 1401115194, 1401115191, 1401115162, 1401115160, 1401115157, 1401115154, 1401115151, 1401115129, 1401115124, 1401115119, 1401115115, 1401115112, 1401115009, 1401114993, 1401114965, 1401114963, 1401114961, 1401114790]} final : False mtd_id 4302 list_pids : [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] 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, '4274926') ('4302', '29714661', '1401116173', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '29714661', '1401116173', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926')] time used for this insertion : 0.019830942153930664 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.363590717315674 time spend to save output : 0.02012324333190918 total time spend for step 4 : 5.383713960647583 step5:split_time_score Fri Dec 26 11:31:06 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 : ['29714661'] 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 : [('29714661',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29714661) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401116172: {'path': 'temp/1766745061_2683236_1401116172_f62d63c3e134837993497adc7db1f8f3.jpg', 'extension': 'jpg'}, 1401116173: {'path': 'temp/1766745061_2683236_1401116173_eea22bddfa238600f3e088398dd6ad60.jpg', 'extension': 'jpg'}, 1401116132: {'path': 'temp/1766745061_2683236_1401116132_47ba4586ff6bada7464e391321817e6d.jpg', 'extension': 'jpg'}, 1401116134: {'path': 'temp/1766745061_2683236_1401116134_f6ee9f8dd2f8b4784db394d2273ce134.jpg', 'extension': 'jpg'}, 1401116136: {'path': 'temp/1766745061_2683236_1401116136_755d9a6f909d9ece9ddb7fc7f32ab871.jpg', 'extension': 'jpg'}, 1401116170: {'path': 'temp/1766745061_2683236_1401116170_3eeaaa03e4daa99969156d401b926581.jpg', 'extension': 'jpg'}, 1401115944: {'path': 'temp/1766745061_2683236_1401115944_1330790444f4b1cdba4ca7f6740aa1ab.jpg', 'extension': 'jpg'}, 1401115949: {'path': 'temp/1766745061_2683236_1401115949_71d1252d4de81d94709b3a603cfa1114.jpg', 'extension': 'jpg'}, 1401115953: {'path': 'temp/1766745061_2683236_1401115953_3426978a9b3a2127b70ddc9c5c00dccf.jpg', 'extension': 'jpg'}, 1401115981: {'path': 'temp/1766745061_2683236_1401115981_c2921622e6a3541fff2213989067a489.jpg', 'extension': 'jpg'}, 1401115921: {'path': 'temp/1766745061_2683236_1401115921_7c892b134daa667559ff82155313a091.jpg', 'extension': 'jpg'}, 1401115927: {'path': 'temp/1766745061_2683236_1401115927_e1bbc42b266089aa25b4dc90917347b3.jpg', 'extension': 'jpg'}, 1401115937: {'path': 'temp/1766745061_2683236_1401115937_e5aa8bb315fb16febbfbc995f0fa2373.jpg', 'extension': 'jpg'}, 1401115941: {'path': 'temp/1766745061_2683236_1401115941_ec531f8a45d84d6b9b56c3df90329a7d.jpg', 'extension': 'jpg'}, 1401115837: {'path': 'temp/1766745061_2683236_1401115837_c1042c3470d10f6999c15cadabd7ca9e.jpg', 'extension': 'jpg'}, 1401115839: {'path': 'temp/1766745061_2683236_1401115839_fd0522a1f4ca43b6caa7259719b1404e.jpg', 'extension': 'jpg'}, 1401115864: {'path': 'temp/1766745061_2683236_1401115864_978ea3e5ff49d3d9265db5d96b6b7ec0.jpg', 'extension': 'jpg'}, 1401115899: {'path': 'temp/1766745061_2683236_1401115899_58f308b22ec4b16ccf4fe6ffe93ae153.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 = 29714661; (('arc_en_ciel_jrm_live',), ('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29714661 group by h (('11', 66),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29714661 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 (29714661) 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 (29714661) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26122025 29714661 Nombre de photos uploadées : 66 / 23040 (0%) 26122025 29714661 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 26122025 29714661 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1401114790, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/357ad4de87d06e485dd49b3c374e3158.jpg', 'username': None, 'uploaded_at': 1766744167, 'text': 'image_26122025_11_15_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401115009, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/fa0e3af17bedcd04927061f4d121afbb.jpg', 'username': None, 'uploaded_at': 1766744232, 'text': 'image_26122025_11_15_54_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401114993, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/cc5e733ffead7ab9a831c442ea26d7e0.jpg', 'username': None, 'uploaded_at': 1766744232, 'text': 'image_26122025_11_16_04_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1401114965, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/26/fc257066183cf2a82f927791da0aabcc.jpg', 'username': None, 'uploaded_at': 1766744232, 'text': 'image_26122025_11_16_14_010140m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.0067901611328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.8358230590820312e-05 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028281211853027344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29714661, '2025-12-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-26' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2793482,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.28871726989746094 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= 2793482 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29708292, 'dashboard_result_id': 18735119, '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_P29708292_26-12-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29708303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708305, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29708428, 'dashboard_result_id': 18735120, '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_P29708428_26-12-2025_05_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29708430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708441, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29708511, 'dashboard_result_id': 18735121, '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_P29708511_26-12-2025_09_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29708512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708523, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29710295, 'dashboard_result_id': 18735122, '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_P29710295_26-12-2025_08_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29710296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29710297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29710298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29710299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29710300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29710301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29710302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29710303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29710304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29710305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29710306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29710307, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29710780, 'dashboard_result_id': 18735123, '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_P29710780_26-12-2025_09_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29710782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29710783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29710784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29710785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29710786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29710787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29710788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29710789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29710790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29710791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29710792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29710793, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29711649, 'dashboard_result_id': 18735124, '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_P29711649_26-12-2025_09_53_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29711651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29711652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29711653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29711654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29711655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29711656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29711657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29711658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29711659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29711660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29711661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29711662, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29712120, 'dashboard_result_id': 18735125, '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_P29712120_26-12-2025_10_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29712123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29712124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29712125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29712126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29712127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29712128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29712129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29712130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29712131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29712132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29712133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29712134, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29712797, 'dashboard_result_id': 18735126, '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_P29712797_26-12-2025_10_17_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29712800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29712801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29712802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29712803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29712804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29712805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29712806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29712807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29712808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29712809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29712810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29712811, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29713131, 'dashboard_result_id': 18735127, '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_P29713131_26-12-2025_10_31_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29713136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29713137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29713138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29713139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29713140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29713141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29713142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29713143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29713144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29713145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29713146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29713147, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29714009, 'dashboard_result_id': 18735128, '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_P29714009_26-12-2025_11_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29714036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29714037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29714038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29714039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29714040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29714041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29714042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29714043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29714044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29714045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29714046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29714047, 'pht': 3726}}"}, {'dashboat_entry_day': 2793482, 'dashboard_run_id': 2802680, 'mtr_portfolio_id': 29714661, 'dashboard_result_id': 18735129, '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_P29714661_26-12-2025_11_28_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29714666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29714667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29714668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29714669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29714670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29714671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29714672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29714673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29714674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29714675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29714676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29714677, '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 = 29708292 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': 4274022, 'mtr_portfolio_id': 29708292, 'created_at': datetime.datetime(2025, 12, 26, 5, 35, 32), 'result': '0.06247424356177631', 'result_long': None, 'result_double': None}] Qualite : 0.06247424356177631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29708292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29708292_26-12-2025_05_35_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29708292 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_P29708292_26-12-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29708303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708305, 'pht': 3726}}" where mtr_portfolio_id = 29708292 and dashboard_run_id = 2802680 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`=29708292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735119, 0.06247424356177631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29708292_26-12-2025_05_35_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708294, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708295, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708297, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708301, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708302, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29708303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708304, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708305, '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 = 29708428 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': 4274027, 'mtr_portfolio_id': 29708428, 'created_at': datetime.datetime(2025, 12, 26, 5, 48, 58), 'result': '0.07198468613493744', 'result_long': None, 'result_double': None}] Qualite : 0.07198468613493744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29708428 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29708428_26-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29708428 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_P29708428_26-12-2025_05_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29708430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708441, 'pht': 3726}}" where mtr_portfolio_id = 29708428 and dashboard_run_id = 2802680 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`=29708428 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735120, 0.07198468613493744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29708428_26-12-2025_05_48_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29708430, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708431, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708432, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708435, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708438, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708439, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708441, '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 = 29708511 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': 4274048, 'mtr_portfolio_id': 29708511, 'created_at': datetime.datetime(2025, 12, 26, 9, 0, 59), 'result': '0.0479579700716024', 'result_long': None, 'result_double': None}] Qualite : 0.0479579700716024 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29708511 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29708511_26-12-2025_09_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29708511 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_P29708511_26-12-2025_09_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29708512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708523, 'pht': 3726}}" where mtr_portfolio_id = 29708511 and dashboard_run_id = 2802680 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`=29708511 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735121, 0.0479579700716024, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29708511_26-12-2025_09_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29708512, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29708513, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29708514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29708515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29708516, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29708517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29708518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29708519, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29708520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29708521, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29708522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29708523, '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 = 29710295 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': 4274401, 'mtr_portfolio_id': 29710295, 'created_at': datetime.datetime(2025, 12, 26, 8, 48, 56), 'result': '0.0659620370855546', 'result_long': None, 'result_double': None}] Qualite : 0.0659620370855546 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29710295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29710295_26-12-2025_08_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29710295 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_P29710295_26-12-2025_08_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29710296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29710297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29710298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29710299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29710300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29710301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29710302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29710303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29710304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29710305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29710306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29710307, 'pht': 3726}}" where mtr_portfolio_id = 29710295 and dashboard_run_id = 2802680 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`=29710295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735122, 0.0659620370855546, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29710295_26-12-2025_08_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29710296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29710297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29710298, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29710299, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29710300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29710301, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29710302, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29710303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29710304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29710305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29710306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29710307, '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 = 29710780 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': 4274443, 'mtr_portfolio_id': 29710780, 'created_at': datetime.datetime(2025, 12, 26, 9, 2, 30), 'result': '0.08419988646498025', 'result_long': None, 'result_double': None}] Qualite : 0.08419988646498025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29710780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29710780_26-12-2025_09_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29710780 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_P29710780_26-12-2025_09_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29710782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29710783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29710784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29710785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29710786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29710787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29710788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29710789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29710790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29710791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29710792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29710793, 'pht': 3726}}" where mtr_portfolio_id = 29710780 and dashboard_run_id = 2802680 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`=29710780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735123, 0.08419988646498025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29710780_26-12-2025_09_02_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29710782, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29710783, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29710784, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29710785, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29710786, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29710787, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29710788, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29710789, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29710790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29710791, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29710792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29710793, '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 = 29711649 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': 4274561, 'mtr_portfolio_id': 29711649, 'created_at': datetime.datetime(2025, 12, 26, 9, 53), 'result': '0.06899440714326692', 'result_long': None, 'result_double': None}] Qualite : 0.06899440714326692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29711649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29711649_26-12-2025_09_53_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29711649 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_P29711649_26-12-2025_09_53_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29711651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29711652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29711653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29711654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29711655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29711656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29711657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29711658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29711659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29711660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29711661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29711662, 'pht': 3726}}" where mtr_portfolio_id = 29711649 and dashboard_run_id = 2802680 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`=29711649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735124, 0.06899440714326692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29711649_26-12-2025_09_53_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29711651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29711652, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29711653, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29711654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29711655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29711656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29711657, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29711658, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29711659, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29711660, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29711661, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29711662, '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 = 29712120 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': 4274605, 'mtr_portfolio_id': 29712120, 'created_at': datetime.datetime(2025, 12, 26, 10, 6, 59), 'result': '0.059512707455444375', 'result_long': None, 'result_double': None}] Qualite : 0.059512707455444375 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29712120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29712120_26-12-2025_10_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29712120 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_P29712120_26-12-2025_10_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29712123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29712124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29712125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29712126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29712127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29712128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29712129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29712130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29712131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29712132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29712133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29712134, 'pht': 3726}}" where mtr_portfolio_id = 29712120 and dashboard_run_id = 2802680 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`=29712120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735125, 0.059512707455444375, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29712120_26-12-2025_10_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29712123, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29712124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29712125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29712126, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29712127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29712128, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29712129, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29712130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29712131, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29712132, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29712133, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29712134, '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 = 29712797 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': 4274677, 'mtr_portfolio_id': 29712797, 'created_at': datetime.datetime(2025, 12, 26, 10, 17, 30), 'result': '0.04663462481267032', 'result_long': None, 'result_double': None}] Qualite : 0.04663462481267032 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29712797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29712797_26-12-2025_10_17_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29712797 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_P29712797_26-12-2025_10_17_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29712800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29712801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29712802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29712803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29712804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29712805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29712806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29712807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29712808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29712809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29712810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29712811, 'pht': 3726}}" where mtr_portfolio_id = 29712797 and dashboard_run_id = 2802680 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`=29712797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735126, 0.04663462481267032, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29712797_26-12-2025_10_17_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29712800, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29712801, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29712802, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29712803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29712804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29712805, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29712806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29712807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29712808, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29712809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29712810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29712811, '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 = 29713131 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': 4274704, 'mtr_portfolio_id': 29713131, 'created_at': datetime.datetime(2025, 12, 26, 11, 3, 29), 'result': '0.053216546583780014', 'result_long': None, 'result_double': None}] Qualite : 0.053216546583780014 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29713131 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29713131_26-12-2025_11_03_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29713131 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_P29713131_26-12-2025_11_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29713136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29713137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29713138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29713139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29713140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29713141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29713142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29713143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29713144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29713145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29713146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29713147, 'pht': 3726}}" where mtr_portfolio_id = 29713131 and dashboard_run_id = 2802680 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`=29713131 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735127, 0.053216546583780014, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29713131_26-12-2025_11_03_29.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29713136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29713137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29713138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29713139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29713140, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29713141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29713142, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29713143, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29713144, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29713145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29713146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29713147, '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 = 29714009 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': 4274872, 'mtr_portfolio_id': 29714009, 'created_at': datetime.datetime(2025, 12, 26, 11, 16, 59), 'result': '0.05666533030053501', 'result_long': None, 'result_double': None}] Qualite : 0.05666533030053501 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29714009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29714009_26-12-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29714009 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_P29714009_26-12-2025_11_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29714036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29714037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29714038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29714039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29714040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29714041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29714042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29714043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29714044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29714045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29714046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29714047, 'pht': 3726}}" where mtr_portfolio_id = 29714009 and dashboard_run_id = 2802680 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`=29714009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735128, 0.05666533030053501, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29714009_26-12-2025_11_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29714036, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29714037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29714038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29714039, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29714040, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29714041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29714042, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29714043, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29714044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29714045, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29714046, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29714047, '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 = 29714661 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': 4274926, 'mtr_portfolio_id': 29714661, 'created_at': datetime.datetime(2025, 12, 26, 11, 31), 'result': '0.02584847479444482', 'result_long': None, 'result_double': None}] Qualite : 0.02584847479444482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29714661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29714661_26-12-2025_11_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29714661 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_P29714661_26-12-2025_11_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29714666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29714667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29714668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29714669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29714670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29714671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29714672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29714673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29714674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29714675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29714676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29714677, 'pht': 3726}}" where mtr_portfolio_id = 29714661 and dashboard_run_id = 2802680 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`=29714661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18735129, 0.02584847479444482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29714661_26-12-2025_11_31_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29714666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29714667, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29714668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29714669, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29714670, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29714671, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29714672, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29714673, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29714674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29714675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29714676, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29714677, '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 (29708292,29708428,29708511,29710295,29710780,29711649,29712120,29712797,29713131,29714009,29714661) result : ((1401073673,), (1401073798,), (1401073801,), (1401073803,), (1401073825,), (1401073827,), (1401073829,), (1401073832,), (1401073849,), (1401073852,), (1401073854,), (1401073858,), (1401073861,), (1401073883,), (1401073886,), (1401073889,), (1401074239,), (1401074436,), (1401074460,), (1401074484,), (1401074486,), (1401074487,), (1401074488,), (1401074508,), (1401074509,), (1401074511,), (1401074515,), (1401074519,), (1401074523,), (1401074693,), (1401074783,), (1401074778,), (1401074781,), (1401074802,), (1401074803,), (1401074824,), (1401074828,), (1401074831,), (1401074834,), (1401074838,), (1401074853,), (1401074855,), (1401074857,), (1401074859,), (1401074862,), (1401074863,), (1401074886,), (1401074888,), (1401074890,), (1401074910,), (1401074912,), (1401074914,), (1401074916,), (1401074920,), (1401074924,), (1401074943,), (1401074946,), (1401074949,), (1401074951,), (1401074955,), (1401074957,), (1401091734,), (1401091847,), (1401091852,), (1401092121,), (1401092149,), (1401092151,), (1401092153,), (1401092155,), (1401092158,), (1401092179,), (1401092182,), (1401092185,), (1401092188,), (1401092193,), (1401092212,), (1401092215,), (1401092217,), (1401092245,), (1401092248,), (1401092251,), (1401092282,), (1401092286,), (1401092319,), (1401092324,), (1401092329,), (1401092393,), (1401092394,), (1401092396,), (1401092411,), (1401092426,), (1401092593,), (1401092755,), (1401092806,), (1401092814,), (1401092883,), (1401092886,), (1401092889,), (1401092891,), (1401092935,), (1401092939,), (1401092984,), (1401092988,), (1401092990,), (1401092992,), (1401093100,), (1401093096,), (1401093098,), (1401093283,), (1401093317,), (1401093350,), (1401093383,), (1401093419,), (1401093502,), (1401093505,), (1401093507,), (1401093509,), (1401093512,), (1401093634,), (1401093643,), (1401093645,), (1401093660,), (1401093716,), (1401093719,), (1401093745,), (1401093748,), (1401093751,), (1401093755,), (1401093759,), (1401093766,), (1401093789,), (1401093791,), (1401093793,), (1401093824,), (1401093827,), (1401093830,), (1401093890,), (1401093894,), (1401093898,), (1401093902,), (1401093906,), (1401093923,), (1401093926,), (1401093928,), (1401093959,), (1401093961,), (1401093963,), (1401093966,), (1401094008,), (1401094013,), (1401094016,), (1401094040,), (1401099760,), (1401099763,), (1401099766,), (1401099769,), (1401099774,), (1401099798,), (1401099801,), (1401100124,), (1401100126,), (1401100212,), (1401100214,), (1401100217,), (1401100250,), (1401100252,), (1401100254,), (1401100279,), (1401100301,), (1401100304,), (1401100308,), (1401100360,), (1401100363,), (1401100365,), (1401100367,), (1401100370,), (1401100373,), (1401100390,), (1401100393,), (1401100395,), (1401100397,), (1401100417,), (1401100419,), (1401100421,), (1401100424,), (1401100428,), (1401100476,), (1401100478,), (1401100481,), (1401100485,), (1401100522,), (1401100524,), (1401100528,), (1401100530,), (1401100534,), (1401100548,), (1401100551,), (1401100554,), (1401100556,), (1401100559,), (1401100563,), (1401100734,), (1401101367,), (1401100656,), (1401100683,), (1401100696,), (1401100709,), (1401100721,), (1401100853,), (1401100910,), (1401100998,), (1401101059,), (1401101062,), (1401101070,), (1401101249,), (1401101251,), (1401101253,), (1401101256,), (1401101259,), (1401101262,), (1401101278,), (1401101306,), (1401101307,), (1401101309,), (1401101311,), (1401101313,), (1401101322,), (1401101325,), (1401101328,), (1401101332,), (1401101335,), (1401101338,), (1401101356,), (1401101358,), (1401101361,), (1401101364,), (1401101571,), (1401101593,), (1401101595,), (1401101597,), (1401101601,), (1401101604,), (1401101811,), (1401101814,), (1401101817,), (1401101820,), (1401101839,), (1401101842,), (1401101844,), (1401101846,), (1401101849,), (1401101852,), (1401101889,), (1401101891,), (1401101893,), (1401101896,), (1401101900,), (1401101941,), (1401101944,), (1401101947,), (1401101951,), (1401101956,), (1401101980,), (1401101983,), (1401101986,), (1401101989,), (1401101993,), (1401102010,), (1401102013,), (1401102015,), (1401102018,), (1401102020,), (1401102023,), (1401102055,), (1401102058,), (1401102060,), (1401102062,), (1401102065,), (1401102067,), (1401102077,), (1401102078,), (1401102080,), (1401102082,), (1401102084,), (1401102085,), (1401102098,), (1401102102,), (1401102107,), (1401102111,), (1401102115,), (1401102120,), (1401102124,), (1401102138,), (1401102858,), (1401102145,), (1401103027,), (1401103031,), (1401103034,), (1401103036,), (1401103041,), (1401103044,), (1401103120,), (1401103122,), (1401103126,), (1401103130,), (1401103135,), (1401103142,), (1401103276,), (1401103288,), (1401103309,), (1401103313,), (1401103317,), (1401103322,), (1401103328,), (1401103331,), (1401103332,), (1401103334,), (1401103337,), (1401103341,), (1401103382,), (1401103392,), (1401103395,), (1401103397,), (1401103412,), (1401103427,), (1401103429,), (1401103432,), (1401103434,), (1401103436,), (1401103439,), (1401103507,), (1401103543,), (1401103553,), (1401103575,), (1401103580,), (1401103601,), (1401103671,), (1401103673,), (1401103676,), (1401103680,), (1401103683,), (1401103686,), (1401103714,), (1401103715,), (1401103716,), (1401103724,), (1401103727,), (1401103732,), (1401103767,), (1401103803,), (1401103908,), (1401103947,), (1401103968,), (1401103979,), (1401103983,), (1401104165,), (1401104167,), (1401104169,), (1401104264,), (1401104261,), (1401104262,), (1401104284,), (1401104288,), (1401104309,), (1401104312,), (1401104314,), (1401104316,), (1401104319,), (1401104343,), (1401104348,), (1401104351,), (1401104355,), (1401104358,), (1401104376,), (1401104378,), (1401104380,), (1401104441,), (1401104479,), (1401104514,), (1401104545,), (1401104759,), (1401104762,), (1401104765,), (1401104783,), (1401104786,), (1401104788,), (1401104790,), (1401104793,), (1401104810,), (1401104812,), (1401104814,), (1401104817,), (1401104844,), (1401104847,), (1401104850,), (1401104884,), (1401104886,), (1401104887,), (1401104890,), (1401104894,), (1401104914,), (1401104917,), (1401104920,), (1401104923,), (1401104926,), (1401104928,), (1401104964,), (1401104965,), (1401104968,), (1401104970,), (1401104973,), (1401104975,), (1401104983,), (1401104985,), (1401104989,), (1401105014,), (1401108470,), (1401108326,), (1401108400,), (1401108864,), (1401108900,), (1401108936,), (1401108972,), (1401109007,), (1401109584,), (1401109606,), (1401109608,), (1401109612,), (1401109615,), (1401109621,), (1401109822,), (1401109896,), (1401109962,), (1401110151,), (1401110193,), (1401110234,), (1401110305,), (1401111558,), (1401111617,), (1401111620,), (1401111623,), (1401112103,), (1401112179,), (1401112251,), (1401112919,), (1401112957,), (1401113653,), (1401113716,), (1401113781,), (1401113835,), (1401113871,), (1401113956,), (1401113958,), (1401113961,), (1401114009,), (1401114053,), (1401114353,), (1401114378,), (1401114388,), (1401114390,), (1401114393,), (1401114417,), (1401114419,), (1401114654,), (1401114657,), (1401114660,), (1401114693,), (1401114695,), (1401114696,), (1401114697,), (1401114699,), (1401114702,), (1401114718,), (1401114720,), (1401114722,), (1401114724,), (1401114727,), (1401114735,), (1401114797,), (1401114790,), (1401114961,), (1401114963,), (1401114965,), (1401114993,), (1401115009,), (1401115112,), (1401115115,), (1401115119,), (1401115124,), (1401115129,), (1401115151,), (1401115154,), (1401115157,), (1401115160,), (1401115162,), (1401115191,), (1401115194,), (1401115196,), (1401115225,), (1401115227,), (1401115229,), (1401115231,), (1401115234,), (1401115268,), (1401115271,), (1401115273,), (1401115276,), (1401115280,), (1401115296,), (1401115299,), (1401115340,), (1401115367,), (1401115371,), (1401115406,), (1401115408,), (1401115410,), (1401115413,), (1401115475,), (1401115478,), (1401115481,), (1401115484,), (1401115684,), (1401115685,), (1401115686,), (1401115689,), (1401115692,), (1401115697,), (1401115837,), (1401115839,), (1401115864,), (1401115899,), (1401115921,), (1401115927,), (1401115937,), (1401115941,), (1401115944,), (1401115949,), (1401115953,), (1401115981,), (1401116132,), (1401116134,), (1401116136,), (1401116170,), (1401116172,), (1401116173,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26122025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29714661]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] map_info['map_portfolio_photo'] : {29714661: [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837, 1401115697, 1401115692, 1401115689, 1401115686, 1401115685, 1401115684, 1401115484, 1401115481, 1401115478, 1401115475, 1401115413, 1401115410, 1401115408, 1401115406, 1401115371, 1401115367, 1401115340, 1401115299, 1401115296, 1401115280, 1401115276, 1401115273, 1401115271, 1401115268, 1401115234, 1401115231, 1401115229, 1401115227, 1401115225, 1401115196, 1401115194, 1401115191, 1401115162, 1401115160, 1401115157, 1401115154, 1401115151, 1401115129, 1401115124, 1401115119, 1401115115, 1401115112, 1401115009, 1401114993, 1401114965, 1401114963, 1401114961, 1401114790]} final : True mtd_id 4302 list_pids : [1401116173, 1401116172, 1401116170, 1401116136, 1401116134, 1401116132, 1401115981, 1401115953, 1401115949, 1401115944, 1401115941, 1401115937, 1401115927, 1401115921, 1401115899, 1401115864, 1401115839, 1401115837] Looping around the photos to save general results len do output : 1 /29714661Didn'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, '4274926') ('4302', '29714661', '1401116173', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926') ('4302', None, None, None, None, None, None, None, '4274926') ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '29714661', 'None', None, None, None, None, '4274926'), ('4302', '29714661', '1401116173', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116172', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116170', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116136', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116134', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401116132', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115981', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115953', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115949', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115944', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115941', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115937', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115927', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115921', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115899', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115864', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115839', None, None, None, None, None, '4274926'), ('4302', '29714661', '1401115837', None, None, None, None, None, '4274926')] time used for this insertion : 0.016512155532836914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.143573522567749 time spend to save output : 0.016901731491088867 total time spend for step 5 : 1.160475254058838 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 (4274926) 2.79user 2.79system 0:13.21elapsed 42%CPU (0avgtext+0avgdata 168612maxresident)k 520inputs+15728outputs (20major+80932minor)pagefaults 0swaps