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 : 3517584 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 (2800850) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2800850) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750360 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2800850'] with mtr_portfolio_ids : ['22750360'] and first list_photo_ids : [] new path : /proc/3517584/ Name: python3 Umask: 0002 State: R (running) Tgid: 3517584 Ngid: 0 Pid: 3517584 PPid: 3517583 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3517584 NSpid: 3517584 NSpgid: 3516915 NSsid: 3516915 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99212 kB VmRSS: 99212 kB RssAnon: 60204 kB RssFile: 39008 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 137 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3517584', 'Ngid': '0', 'Pid': '3517584', 'PPid': '3517583', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3517584', 'NSpid': '3517584', 'NSpgid': '3516915', 'NSsid': '3516915', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99212 kB', 'VmRSS': '99212 kB', 'RssAnon': '60204 kB', 'RssFile': '39008 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '137'} ('datou_batch_current', '3517584', '1107228', '0', '1107228', '865976', '99212', b'', 'marlene', '2800850') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22750360) 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 (2800850 ) ) 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 (22750360) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1356606987, 'portfolio_id': 22750360}, {'photo_id': 1356606986, 'portfolio_id': 22750360}, {'photo_id': 1356606985, 'portfolio_id': 22750360}, {'photo_id': 1356606983, 'portfolio_id': 22750360}, {'photo_id': 1356606781, 'portfolio_id': 22750360}, {'photo_id': 1356606752, 'portfolio_id': 22750360}, {'photo_id': 1356606721, 'portfolio_id': 22750360}, {'photo_id': 1356606695, 'portfolio_id': 22750360}, {'photo_id': 1356606655, 'portfolio_id': 22750360}, {'photo_id': 1356606631, 'portfolio_id': 22750360}, {'photo_id': 1356606548, 'portfolio_id': 22750360}, {'photo_id': 1356606540, 'portfolio_id': 22750360}, {'photo_id': 1356606538, 'portfolio_id': 22750360}, {'photo_id': 1356606534, 'portfolio_id': 22750360}, {'photo_id': 1356606530, 'portfolio_id': 22750360}, {'photo_id': 1356606518, 'portfolio_id': 22750360}, {'photo_id': 1356606514, 'portfolio_id': 22750360}, {'photo_id': 1356606512, 'portfolio_id': 22750360}, {'photo_id': 1356606510, 'portfolio_id': 22750360}, {'photo_id': 1356606509, 'portfolio_id': 22750360}, {'photo_id': 1356606507, 'portfolio_id': 22750360}, {'photo_id': 1356606496, 'portfolio_id': 22750360}, {'photo_id': 1356606492, 'portfolio_id': 22750360}, {'photo_id': 1356606442, 'portfolio_id': 22750360}, {'photo_id': 1356606388, 'portfolio_id': 22750360}, {'photo_id': 1356606325, 'portfolio_id': 22750360}, {'photo_id': 1356606247, 'portfolio_id': 22750360}, {'photo_id': 1356605917, 'portfolio_id': 22750360}, {'photo_id': 1356605891, 'portfolio_id': 22750360}, {'photo_id': 1356605865, 'portfolio_id': 22750360}, {'photo_id': 1356605822, 'portfolio_id': 22750360}, {'photo_id': 1356605553, 'portfolio_id': 22750360}, {'photo_id': 1356605551, 'portfolio_id': 22750360}, {'photo_id': 1356605548, 'portfolio_id': 22750360}, {'photo_id': 1356605546, 'portfolio_id': 22750360}, {'photo_id': 1356605544, 'portfolio_id': 22750360}, {'photo_id': 1356605541, 'portfolio_id': 22750360}, {'photo_id': 1356605518, 'portfolio_id': 22750360}, {'photo_id': 1356605515, 'portfolio_id': 22750360}, {'photo_id': 1356605513, 'portfolio_id': 22750360}, {'photo_id': 1356605511, 'portfolio_id': 22750360}, {'photo_id': 1356605484, 'portfolio_id': 22750360}, {'photo_id': 1356605480, 'portfolio_id': 22750360}, {'photo_id': 1356605478, 'portfolio_id': 22750360}, {'photo_id': 1356605476, 'portfolio_id': 22750360}, {'photo_id': 1356605474, 'portfolio_id': 22750360}, {'photo_id': 1356605472, 'portfolio_id': 22750360}, {'photo_id': 1356605449, 'portfolio_id': 22750360}, {'photo_id': 1356605447, 'portfolio_id': 22750360}, {'photo_id': 1356605446, 'portfolio_id': 22750360}, {'photo_id': 1356605443, 'portfolio_id': 22750360}, {'photo_id': 1356605415, 'portfolio_id': 22750360}, {'photo_id': 1356605412, 'portfolio_id': 22750360}, {'photo_id': 1356605410, 'portfolio_id': 22750360}, {'photo_id': 1356605408, 'portfolio_id': 22750360}, {'photo_id': 1356605406, 'portfolio_id': 22750360}, {'photo_id': 1356605403, 'portfolio_id': 22750360}, {'photo_id': 1356605332, 'portfolio_id': 22750360}, {'photo_id': 1356605330, 'portfolio_id': 22750360}, {'photo_id': 1356605328, 'portfolio_id': 22750360}, {'photo_id': 1356605326, 'portfolio_id': 22750360}, {'photo_id': 1356605283, 'portfolio_id': 22750360}, {'photo_id': 1356605281, 'portfolio_id': 22750360}, {'photo_id': 1356605279, 'portfolio_id': 22750360}, {'photo_id': 1356605277, 'portfolio_id': 22750360}, {'photo_id': 1356605275, 'portfolio_id': 22750360}, {'photo_id': 1356605272, 'portfolio_id': 22750360}, {'photo_id': 1356605252, 'portfolio_id': 22750360}, {'photo_id': 1356605250, 'portfolio_id': 22750360}, {'photo_id': 1356605247, 'portfolio_id': 22750360}, {'photo_id': 1356605245, 'portfolio_id': 22750360}, {'photo_id': 1356605243, 'portfolio_id': 22750360}, {'photo_id': 1356605241, 'portfolio_id': 22750360}, {'photo_id': 1356605207, 'portfolio_id': 22750360}, {'photo_id': 1356605199, 'portfolio_id': 22750360}, {'photo_id': 1356605195, 'portfolio_id': 22750360}] map_portfolio_id_photo_id: {22750360: [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247, 1356605917, 1356605891, 1356605865, 1356605822, 1356605553, 1356605551, 1356605548, 1356605546, 1356605544, 1356605541, 1356605518, 1356605515, 1356605513, 1356605511, 1356605484, 1356605480, 1356605478, 1356605476, 1356605474, 1356605472, 1356605449, 1356605447, 1356605446, 1356605443, 1356605415, 1356605412, 1356605410, 1356605408, 1356605406, 1356605403, 1356605332, 1356605330, 1356605328, 1356605326, 1356605283, 1356605281, 1356605279, 1356605277, 1356605275, 1356605272, 1356605252, 1356605250, 1356605247, 1356605245, 1356605243, 1356605241, 1356605207, 1356605199, 1356605195]} ##### 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.01746344566345215 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 7 05:44:28 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 (22750360) 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 : 22750360 get user id for portfolio 22750360 get sub ptf for main ptf 22750360, type 3726 and hashtags ['Carton_gris', 'flou', 'autre_refus', 'kraft', 'cartonnette', 'plastique', 'mal_croppe', 'papier', 'Carton_brun', 'environnement', 'metal', '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`=22750360 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','kraft','cartonnette','plastique','mal_croppe','papier','Carton_brun','environnement','metal','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`=22750360 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','kraft','cartonnette','plastique','mal_croppe','papier','Carton_brun','environnement','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22750360, 'sub_port_id': 22750361, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163518, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'environnement': {'main_port_id': 22750360, 'sub_port_id': 22750362, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163519, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'mal_croppe': {'main_port_id': 22750360, 'sub_port_id': 22750363, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163520, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'Carton_gris': {'main_port_id': 22750360, 'sub_port_id': 22750364, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163521, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'cartonnette': {'main_port_id': 22750360, 'sub_port_id': 22750365, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163522, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'papier': {'main_port_id': 22750360, 'sub_port_id': 22750366, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163523, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 22750360, 'sub_port_id': 22750367, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163524, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'kraft': {'main_port_id': 22750360, 'sub_port_id': 22750368, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163525, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'autre_refus': {'main_port_id': 22750360, 'sub_port_id': 22750369, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163526, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'Carton_brun': {'main_port_id': 22750360, 'sub_port_id': 22750370, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163527, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'metal': {'main_port_id': 22750360, 'sub_port_id': 22750371, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163528, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}, 'plastique': {'main_port_id': 22750360, 'sub_port_id': 22750372, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163529, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22750361 , 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=22750360 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 (22750361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750362 , 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=22750360 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 (22750362) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750363 , 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=22750360 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 (22750363) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750364 , 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=22750360 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 (22750364) result : ((1356605422,), (1356605461,), (1356605462,), (1356605504,), (1356605505,), (1356606904,), (1356606906,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750365 , 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=22750360 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 (22750365) result : ((1356605423,), (1356605436,), (1356605437,), (1356605438,), (1356605439,), (1356605463,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750366 , 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=22750360 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 (22750366) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750367 , 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=22750360 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 (22750367) result : ((1356605421,), (1356605433,), (1356605498,), (1356605499,), (1356605500,), (1356605501,), (1356605502,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750368 , 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=22750360 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 (22750368) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750369 , 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=22750360 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 (22750369) result : ((1356605460,), (1356605503,), (1356606795,), (1356606796,), (1356606884,), (1356606886,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750370 , 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=22750360 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 (22750370) result : ((1356605464,), (1356605465,), (1356606914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750371 , 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=22750360 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 (22750371) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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 22750372 , 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=22750360 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 (22750372) result : ((1356605425,), (1356605467,), (1356606808,), (1356606809,), (1356606810,), (1356606811,), (1356606812,), (1356606921,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22750360) result : ((1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) 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`=22750360 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','kraft','cartonnette','plastique','mal_croppe','papier','Carton_brun','environnement','metal','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`=22750360 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','flou','autre_refus','kraft','cartonnette','plastique','mal_croppe','papier','Carton_brun','environnement','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22750360, 'sub_port_id': 22750373, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163530, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'environnement': {'main_port_id': 22750360, 'sub_port_id': 22750374, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163531, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'mal_croppe': {'main_port_id': 22750360, 'sub_port_id': 22750375, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163532, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'Carton_gris': {'main_port_id': 22750360, 'sub_port_id': 22750376, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163533, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'cartonnette': {'main_port_id': 22750360, 'sub_port_id': 22750377, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163534, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'papier': {'main_port_id': 22750360, 'sub_port_id': 22750378, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163535, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 22750360, 'sub_port_id': 22750379, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163536, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'kraft': {'main_port_id': 22750360, 'sub_port_id': 22750380, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163537, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'autre_refus': {'main_port_id': 22750360, 'sub_port_id': 22750381, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163538, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'Carton_brun': {'main_port_id': 22750360, 'sub_port_id': 22750382, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163539, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'metal': {'main_port_id': 22750360, 'sub_port_id': 22750383, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163540, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 33, 32), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}, 'plastique': {'main_port_id': 22750360, 'sub_port_id': 22750384, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15163541, 'last_updated_at': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 5, 41), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 5, 33, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750366 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750367 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750380,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750368 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750381,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750369 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750382,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750370 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750383,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750371 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22750384,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22750372 lien utilise dans velours : https://www.fotonower.com/velours/22750373,22750374,22750375,22750376,22750377,22750378,22750379,22750380,22750381,22750382,22750383,22750384?tags=flou,environnement,mal_croppe,Carton_gris,cartonnette,papier,Teint_Dans_La_Masse,kraft,autre_refus,Carton_brun,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22750360]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] map_info['map_portfolio_photo'] : {22750360: [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247, 1356605917, 1356605891, 1356605865, 1356605822, 1356605553, 1356605551, 1356605548, 1356605546, 1356605544, 1356605541, 1356605518, 1356605515, 1356605513, 1356605511, 1356605484, 1356605480, 1356605478, 1356605476, 1356605474, 1356605472, 1356605449, 1356605447, 1356605446, 1356605443, 1356605415, 1356605412, 1356605410, 1356605408, 1356605406, 1356605403, 1356605332, 1356605330, 1356605328, 1356605326, 1356605283, 1356605281, 1356605279, 1356605277, 1356605275, 1356605272, 1356605252, 1356605250, 1356605247, 1356605245, 1356605243, 1356605241, 1356605207, 1356605199, 1356605195]} final : False mtd_id 4302 list_pids : [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] Looping around the photos to save general results len do output : 1 /22750360. 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, '2800850') ('4302', '22750360', '1356606987', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '22750360', "{'flou': 22750361, 'environnement': 22750362, 'mal_croppe': 22750363, 'Carton_gris': 22750364, 'cartonnette': 22750365, 'papier': 22750366, 'Teint_Dans_La_Masse': 22750367, 'kraft': 22750368, 'autre_refus': 22750369, 'Carton_brun': 22750370, 'metal': 22750371, 'plastique': 22750372}", None, None, None, None, '2800850'), ('4302', '22750360', '1356606987', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850')] time used for this insertion : 0.017312288284301758 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3928804397583008 time spend to save output : 0.01779484748840332 total time spend for step 1 : 1.410675287246704 step2:final Wed May 7 05:44:29 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 (22750360) 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 22750360 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356605207,1356605199,1356605195,1356605252,1356605250,1356605247,1356605245,1356605243,1356605241,1356605283,1356605281,1356605279,1356605277,1356605275,1356605272,1356605332,1356605330,1356605328,1356605326,1356605415,1356605412,1356605410,1356605408,1356605406,1356605403,1356605449,1356605447,1356605446,1356605443,1356605484,1356605480,1356605478,1356605476,1356605474,1356605472,1356605518,1356605515,1356605513,1356605511,1356605553,1356605551,1356605548,1356605546,1356605544,1356605541,1356605917,1356605891,1356605865,1356605822,1356606548,1356606496,1356606540,1356606492,1356606442,1356606538,1356606388,1356606534,1356606325,1356606530,1356606247,1356606518,1356606514,1356606512,1356606510,1356606509,1356606507,1356606781,1356606752,1356606721,1356606695,1356606655,1356606631,1356606987,1356606986,1356606985,1356606983); 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([22750360]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} new output for save of step final : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] map_info['map_portfolio_photo'] : {22750360: [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247, 1356605917, 1356605891, 1356605865, 1356605822, 1356605553, 1356605551, 1356605548, 1356605546, 1356605544, 1356605541, 1356605518, 1356605515, 1356605513, 1356605511, 1356605484, 1356605480, 1356605478, 1356605476, 1356605474, 1356605472, 1356605449, 1356605447, 1356605446, 1356605443, 1356605415, 1356605412, 1356605410, 1356605408, 1356605406, 1356605403, 1356605332, 1356605330, 1356605328, 1356605326, 1356605283, 1356605281, 1356605279, 1356605277, 1356605275, 1356605272, 1356605252, 1356605250, 1356605247, 1356605245, 1356605243, 1356605241, 1356605207, 1356605199, 1356605195]} final : False mtd_id 4302 list_pids : [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] Looping around the photos to save general results len do output : 27 /1356606987.Didn't retrieve data . /1356606986.Didn't retrieve data . /1356606985.Didn't retrieve data . /1356606983.Didn't retrieve data . /1356606781.Didn't retrieve data . /1356606752.Didn't retrieve data . /1356606721.Didn't retrieve data . /1356606695.Didn't retrieve data . /1356606655.Didn't retrieve data . /1356606631.Didn't retrieve data . /1356606548.Didn't retrieve data . /1356606540.Didn't retrieve data . /1356606538.Didn't retrieve data . /1356606534.Didn't retrieve data . /1356606530.Didn't retrieve data . /1356606518.Didn't retrieve data . /1356606514.Didn't retrieve data . /1356606512.Didn't retrieve data . /1356606510.Didn't retrieve data . /1356606509.Didn't retrieve data . /1356606507.Didn't retrieve data . /1356606496.Didn't retrieve data . /1356606492.Didn't retrieve data . /1356606442.Didn't retrieve data . /1356606388.Didn't retrieve data . /1356606325.Didn't retrieve data . /1356606247.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, '2800850') ('4302', '22750360', '1356606987', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 81 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', '22750360', '1356606987', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606986', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606985', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606983', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606781', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606752', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606721', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606695', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606655', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606631', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606548', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606540', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606538', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606534', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606530', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606518', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606514', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606512', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606510', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606509', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606507', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606496', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606492', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606442', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606388', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606325', '0.05404766663996418', None, None, None, None, '2800850'), ('4302', '22750360', '1356606247', '0.05404766663996418', None, None, None, None, '2800850')] time used for this insertion : 0.01578068733215332 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06884121894836426 time spend to save output : 0.01706981658935547 total time spend for step 2 : 0.08591103553771973 step3:velours_tree Wed May 7 05:44:29 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 : {22750360: [{'flou': 22750361, 'environnement': 22750362, 'mal_croppe': 22750363, 'Carton_gris': 22750364, 'cartonnette': 22750365, 'papier': 22750366, 'Teint_Dans_La_Masse': 22750367, 'kraft': 22750368, 'autre_refus': 22750369, 'Carton_brun': 22750370, 'metal': 22750371, 'plastique': 22750372}]} input_args_next_step : {22750360: ()} output_args : {22750360: [{'flou': 22750361, 'environnement': 22750362, 'mal_croppe': 22750363, 'Carton_gris': 22750364, 'cartonnette': 22750365, 'papier': 22750366, 'Teint_Dans_La_Masse': 22750367, 'kraft': 22750368, 'autre_refus': 22750369, 'Carton_brun': 22750370, 'metal': 22750371, 'plastique': 22750372}]} args : 22750360 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 : ({'flou': 22750361, 'environnement': 22750362, 'mal_croppe': 22750363, 'Carton_gris': 22750364, 'cartonnette': 22750365, 'papier': 22750366, 'Teint_Dans_La_Masse': 22750367, 'kraft': 22750368, 'autre_refus': 22750369, 'Carton_brun': 22750370, 'metal': 22750371, 'plastique': 22750372},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22750360) 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([22750360]) 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.2858269214630127 time spend to save output : 5.698204040527344e-05 total time spend for step 3 : 0.28588390350341797 step4:send_mail_cod Wed May 7 05:44:29 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 : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} input_args_next_step : {1356606987: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606987 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606986 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606985 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606983 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606781 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606752 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606721 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606695 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606655 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606631 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606548 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606540 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606538 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606534 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606530 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606518 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606514 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606512 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606510 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606509 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606507 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606496 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606492 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606442 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606388 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606325 depend.output_id : 0 input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ()} output_args : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',)} args : 1356606247 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 : {22750360: [{'flou': 22750361, 'environnement': 22750362, 'mal_croppe': 22750363, 'Carton_gris': 22750364, 'cartonnette': 22750365, 'papier': 22750366, 'Teint_Dans_La_Masse': 22750367, 'kraft': 22750368, 'autre_refus': 22750369, 'Carton_brun': 22750370, 'metal': 22750371, 'plastique': 22750372}]} input_args_next_step : {1356606987: ('0.05404766663996418',), 1356606986: ('0.05404766663996418',), 1356606985: ('0.05404766663996418',), 1356606983: ('0.05404766663996418',), 1356606781: ('0.05404766663996418',), 1356606752: ('0.05404766663996418',), 1356606721: ('0.05404766663996418',), 1356606695: ('0.05404766663996418',), 1356606655: ('0.05404766663996418',), 1356606631: ('0.05404766663996418',), 1356606548: ('0.05404766663996418',), 1356606540: ('0.05404766663996418',), 1356606538: ('0.05404766663996418',), 1356606534: ('0.05404766663996418',), 1356606530: ('0.05404766663996418',), 1356606518: ('0.05404766663996418',), 1356606514: ('0.05404766663996418',), 1356606512: ('0.05404766663996418',), 1356606510: ('0.05404766663996418',), 1356606509: ('0.05404766663996418',), 1356606507: ('0.05404766663996418',), 1356606496: ('0.05404766663996418',), 1356606492: ('0.05404766663996418',), 1356606442: ('0.05404766663996418',), 1356606388: ('0.05404766663996418',), 1356606325: ('0.05404766663996418',), 1356606247: ('0.05404766663996418',), 22750360: ()} output_args : {22750360: [{'flou': 22750361, 'environnement': 22750362, 'mal_croppe': 22750363, 'Carton_gris': 22750364, 'cartonnette': 22750365, 'papier': 22750366, 'Teint_Dans_La_Masse': 22750367, 'kraft': 22750368, 'autre_refus': 22750369, 'Carton_brun': 22750370, 'metal': 22750371, 'plastique': 22750372}]} args : 22750360 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 :28, first value : ('0.05404766663996418',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22750360) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1356606987,1356606986,1356606985,1356606983,1356606781,1356606752,1356606721,1356606695,1356606655,1356606631,1356606548,1356606540,1356606538,1356606534,1356606530,1356606518,1356606514,1356606512,1356606510,1356606509,1356606507,1356606496,1356606492,1356606442,1356606388,1356606325,1356606247) Found this number of photos: 27 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356606247 begin to download photo : 1356606507 begin to download photo : 1356606530 begin to download photo : 1356606655 begin to download photo : 1356606985 download finish for photo 1356606247 begin to download photo : 1356606325 download finish for photo 1356606507 begin to download photo : 1356606509 download finish for photo 1356606985 begin to download photo : 1356606986 download finish for photo 1356606655 begin to download photo : 1356606695 download finish for photo 1356606530 begin to download photo : 1356606534 download finish for photo 1356606325 begin to download photo : 1356606388 download finish for photo 1356606509 begin to download photo : 1356606510 download finish for photo 1356606986 begin to download photo : 1356606987 download finish for photo 1356606534 begin to download photo : 1356606538 download finish for photo 1356606695 begin to download photo : 1356606721 download finish for photo 1356606510 begin to download photo : 1356606512 download finish for photo 1356606388 begin to download photo : 1356606442 download finish for photo 1356606987 download finish for photo 1356606721 begin to download photo : 1356606752 download finish for photo 1356606538 begin to download photo : 1356606540 download finish for photo 1356606442 begin to download photo : 1356606492 download finish for photo 1356606512 begin to download photo : 1356606514 download finish for photo 1356606752 begin to download photo : 1356606781 download finish for photo 1356606540 begin to download photo : 1356606548 download finish for photo 1356606492 begin to download photo : 1356606496 download finish for photo 1356606514 begin to download photo : 1356606518 download finish for photo 1356606781 begin to download photo : 1356606983 download finish for photo 1356606548 begin to download photo : 1356606631 download finish for photo 1356606496 download finish for photo 1356606518 download finish for photo 1356606983 download finish for photo 1356606631 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette227503611746589470/ imagette227503631746589470/ length of list_filenames : 27 ; length of list_pids : 27 ; length of list_args : 27 results_Auto_P22750360_07-05-2025_05_44_30.pdf 22750361 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227503611746589470 22750363 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750363 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227503631746589470 22750365 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356605423: '1746588912_2198916_1356605328_ca92a5abd86c40b7b9e17ed07db9e8dc_rle_crop_3787993217_0.png', 1356605436: '1746588925_206381_1356605281_940c1c256bd7b5499706776bef549c15_rle_crop_3787994364_0.png', 1356605437: '1746588925_206381_1356605279_95cbf798abe6ec6d22fa85493084d6d3_rle_crop_3787994369_0.png', 1356605438: '1746588925_206381_1356605279_95cbf798abe6ec6d22fa85493084d6d3_rle_crop_3787994374_0.png', 1356605439: '1746588925_206381_1356605277_aa9d36fbebdb1d5d6213531f4d8e0ecb_rle_crop_3787994621_0.png', 1356605463: '1746588973_2199539_1356605199_e14860df4b9438c7a9590438e62145d7_rle_crop_3787996345_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3fcbd2e00b40e71430dc03321364c99c_26268716.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/923343a654797e5dab2d5cfb581cee30_42621079.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e731a6fbf9bb59cd04b8db3e7e987ba6_23539270.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/52620b0ffb2ecd883e5eef7c136c7a2f_8912446.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/3964d3c634e6449da50f6eb09e35bd05_35371932.png change filename to text .imagette227503651746589470/ imagette227503651746589470/1746588925_206381_1356605279_95cbf798abe6ec6d22fa85493084d6d3_rle_crop_3787994374_0.png.png imagette227503651746589470/1746588973_2199539_1356605199_e14860df4b9438c7a9590438e62145d7_rle_crop_3787996345_0.png.png imagette227503651746589470/1746588912_2198916_1356605328_ca92a5abd86c40b7b9e17ed07db9e8dc_rle_crop_3787993217_0.png.png imagette227503651746589470/1746588925_206381_1356605279_95cbf798abe6ec6d22fa85493084d6d3_rle_crop_3787994369_0.png.png imagette227503651746589470/1746588925_206381_1356605281_940c1c256bd7b5499706776bef549c15_rle_crop_3787994364_0.png.png imagette227503651746589470/1746588925_206381_1356605277_aa9d36fbebdb1d5d6213531f4d8e0ecb_rle_crop_3787994621_0.png.png imagette227503681746589471/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/31703f8aee797d5939de88cae67878e2_93678600.png imagette227503651746589470 22750368 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750368 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227503681746589471 22750369 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750369 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356605460: '1746588973_2199539_1356605199_e14860df4b9438c7a9590438e62145d7_rle_crop_3787996343_0.png', 1356605503: '1746589032_2200048_1356605283_25fa2347b0e5a819128e06e6df0733ea_rle_crop_3787996496_0.png', 1356606795: '1746589391_2202419_1356606325_abdfaed8498be47366a8303df31acf60_rle_crop_3787996987_0.png', 1356606796: '1746589391_2202419_1356606247_cd06f2441cd3f2b14a9c1ee4fb632037_rle_crop_3787996999_0.png', 1356606884: '1746589406_211898_1356605513_50aea9ec9b3b66a42a8b43043fe1a587_rle_crop_3787997030_0.png', 1356606886: '1746589406_211898_1356605511_6c603455cec37a1c049959b2644c1af9_rle_crop_3787997050_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1060b8cab5a6e9eb036d37781f1d19d2_68677027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/dd1b81a5c642a19c542ce2dee402a6f5_68113527.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c1c121f1825e534f26e44774b3f47ee1_43308301.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/247ced31c644fed508c54186d211bb2b_78909982.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/75f1e5f758f4bf7ec1d59161008f002a_12637828.png change filename to text .imagette227503691746589471/ imagette227503691746589471/1746589406_211898_1356605511_6c603455cec37a1c049959b2644c1af9_rle_crop_3787997050_0.png.png imagette227503691746589471/1746589406_211898_1356605513_50aea9ec9b3b66a42a8b43043fe1a587_rle_crop_3787997030_0.png.png imagette227503691746589471/1746589391_2202419_1356606247_cd06f2441cd3f2b14a9c1ee4fb632037_rle_crop_3787996999_0.png.png imagette227503691746589471/1746588973_2199539_1356605199_e14860df4b9438c7a9590438e62145d7_rle_crop_3787996343_0.png.png imagette227503691746589471/1746589032_2200048_1356605283_25fa2347b0e5a819128e06e6df0733ea_rle_crop_3787996496_0.png.png imagette227503691746589471/1746589391_2202419_1356606325_abdfaed8498be47366a8303df31acf60_rle_crop_3787996987_0.png.png imagette227503711746589471/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/99304a24757c12aac06908677422cb53_72930410.png imagette227503691746589471 22750371 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750371 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227503711746589471 22750372 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750372 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356605425: '1746588912_2198916_1356605326_f8cc380239e3a861b68731808fcaf004_rle_crop_3787993456_0.png', 1356605467: '1746588973_2199539_1356605195_975146bf5ffde0df4ead6470dd5bd526_rle_crop_3787996358_0.png', 1356606808: '1746589391_2202419_1356606442_8cae792764fd05a32ef168ab1e65cc94_rle_crop_3787996970_0.png', 1356606809: '1746589391_2202419_1356606388_c75568de77ed035bc0fa4b8af5079ba3_rle_crop_3787996980_0.png', 1356606810: '1746589391_2202419_1356606388_c75568de77ed035bc0fa4b8af5079ba3_rle_crop_3787996981_0.png', 1356606811: '1746589391_2202419_1356606325_abdfaed8498be47366a8303df31acf60_rle_crop_3787996994_0.png', 1356606812: '1746589391_2202419_1356606247_cd06f2441cd3f2b14a9c1ee4fb632037_rle_crop_3787997008_0.png', 1356606921: '1746589406_211898_1356605511_6c603455cec37a1c049959b2644c1af9_rle_crop_3787997040_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9dca044df2a3dbb6f9a69b3bd6e79435_95749897.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ac207500da2138c5175b3b2c44b485c1_60815368.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f97a2962b830e9dbc9591483686b8b03_85555798.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c9c1eec4d302159fa6781fa14019dc1f_26074040.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/af01b73fbc2c1f29f365440ff9648965_69361318.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ccc5dff68d3aa4df7312ed8da5152529_24205920.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1b50a9276481e3ea850b06aa4661580a_76820911.png change filename to text .imagette227503721746589471/ imagette227503721746589471/1746589391_2202419_1356606388_c75568de77ed035bc0fa4b8af5079ba3_rle_crop_3787996981_0.png.png imagette227503721746589471/1746589406_211898_1356605511_6c603455cec37a1c049959b2644c1af9_rle_crop_3787997040_0.png.png imagette227503721746589471/1746588912_2198916_1356605326_f8cc380239e3a861b68731808fcaf004_rle_crop_3787993456_0.png.png imagette227503721746589471/1746588973_2199539_1356605195_975146bf5ffde0df4ead6470dd5bd526_rle_crop_3787996358_0.png.png imagette227503721746589471/1746589391_2202419_1356606442_8cae792764fd05a32ef168ab1e65cc94_rle_crop_3787996970_0.png.png imagette227503721746589471/1746589391_2202419_1356606247_cd06f2441cd3f2b14a9c1ee4fb632037_rle_crop_3787997008_0.png.png imagette227503721746589471/1746589391_2202419_1356606325_abdfaed8498be47366a8303df31acf60_rle_crop_3787996994_0.png.png imagette227503721746589471/1746589391_2202419_1356606388_c75568de77ed035bc0fa4b8af5079ba3_rle_crop_3787996980_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5a35af3e7ff294419b5a2cce700e758a_66922957.png imagette227503721746589471 22750364 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356605422: '1746588912_2198916_1356605326_f8cc380239e3a861b68731808fcaf004_rle_crop_3787993455_0.png', 1356605461: '1746588973_2199539_1356605207_b96fe407a60654f48eaeeefa59981162_rle_crop_3787996331_0.png', 1356605462: '1746588973_2199539_1356605199_e14860df4b9438c7a9590438e62145d7_rle_crop_3787996344_0.png', 1356605504: '1746589032_2200048_1356605283_25fa2347b0e5a819128e06e6df0733ea_rle_crop_3787996495_0.png', 1356605505: '1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996542_0.png', 1356606904: '1746589406_211898_1356605515_73879cdb84359f58fbe5e28da17bed0a_rle_crop_3787997018_0.png', 1356606906: '1746589406_211898_1356605511_6c603455cec37a1c049959b2644c1af9_rle_crop_3787997055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/83af68d7e16ef6e9c4ea49d22ed2a1bd_49551363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/97077f686b4a83e14442b46d5949d274_71237648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cbcf3f866f53258b49948f5e6d487f8c_78500600.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/14dc482c3030e7cf918e927cf39e9509_71549819.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/81d97e1c9f96be59932483c3bedb2960_90047029.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/67b3a642f325d803b4070580f900d581_29114711.png change filename to text .imagette227503641746589471/ imagette227503641746589471/1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996542_0.png.png imagette227503641746589471/1746589032_2200048_1356605283_25fa2347b0e5a819128e06e6df0733ea_rle_crop_3787996495_0.png.png imagette227503641746589471/1746589406_211898_1356605511_6c603455cec37a1c049959b2644c1af9_rle_crop_3787997055_0.png.png imagette227503641746589471/1746589406_211898_1356605515_73879cdb84359f58fbe5e28da17bed0a_rle_crop_3787997018_0.png.png imagette227503641746589471/1746588912_2198916_1356605326_f8cc380239e3a861b68731808fcaf004_rle_crop_3787993455_0.png.png imagette227503641746589471/1746588973_2199539_1356605207_b96fe407a60654f48eaeeefa59981162_rle_crop_3787996331_0.png.png imagette227503641746589471/1746588973_2199539_1356605199_e14860df4b9438c7a9590438e62145d7_rle_crop_3787996344_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/59949dddfaae9b2a4dc8dd996a159dc8_62004124.png imagette227503641746589471 22750367 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750367 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356605421: '1746588912_2198916_1356605328_ca92a5abd86c40b7b9e17ed07db9e8dc_rle_crop_3787993224_0.png', 1356605433: '1746588925_206381_1356605281_940c1c256bd7b5499706776bef549c15_rle_crop_3787994367_0.png', 1356605498: '1746589032_2200048_1356605283_25fa2347b0e5a819128e06e6df0733ea_rle_crop_3787996502_0.png', 1356605499: '1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996548_0.png', 1356605500: '1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996543_0.png', 1356605501: '1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996545_0.png', 1356605502: '1746589032_2200048_1356605241_f92899114326a872bf20cd0e5c687260_rle_crop_3787996560_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/702db910d7dacab32572faa5be2e7f41_90633828.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ff9098a5f055521d932357a4e01f31b9_10939125.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ddffb8f5e3b1616b9f84bc0502298b79_67187229.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/f6f1ca1ad7338cfc6a0e295063a9681f_23019105.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/20bc18c849fc486354bdf1023d84f46d_2194520.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ebdc20734f33c0297a9b1e93b4e987eb_9710932.png change filename to text .imagette227503671746589472/ imagette227503671746589472/1746588912_2198916_1356605328_ca92a5abd86c40b7b9e17ed07db9e8dc_rle_crop_3787993224_0.png.png imagette227503671746589472/1746589032_2200048_1356605241_f92899114326a872bf20cd0e5c687260_rle_crop_3787996560_0.png.png imagette227503671746589472/1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996548_0.png.png imagette227503671746589472/1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996545_0.png.png imagette227503671746589472/1746589032_2200048_1356605283_25fa2347b0e5a819128e06e6df0733ea_rle_crop_3787996502_0.png.png imagette227503671746589472/1746588925_206381_1356605281_940c1c256bd7b5499706776bef549c15_rle_crop_3787994367_0.png.png imagette227503671746589472/1746589032_2200048_1356605243_e391bb1a23796a9a469a8fa07de1273d_rle_crop_3787996543_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d54740118595db71ee54fd779afb0dee_89861143.png imagette227503671746589472 22750370 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750370 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356605464: '1746588973_2199539_1356605207_b96fe407a60654f48eaeeefa59981162_rle_crop_3787996332_0.png', 1356605465: '1746588973_2199539_1356605207_b96fe407a60654f48eaeeefa59981162_rle_crop_3787996336_0.png', 1356606914: '1746589406_211898_1356605553_437c26d7d25bf4da69445a53ffad555b_rle_crop_3787997012_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0ba7d48e4cd572bb89be95fa99f34330_16145753.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/22c7fa33b9db3cf4cb89583c5c26dd9d_54590121.png change filename to text .imagette227503701746589472/ imagette227503701746589472/1746588973_2199539_1356605207_b96fe407a60654f48eaeeefa59981162_rle_crop_3787996332_0.png.png imagette227503701746589472/1746589406_211898_1356605553_437c26d7d25bf4da69445a53ffad555b_rle_crop_3787997012_0.png.png imagette227503701746589472/1746588973_2199539_1356605207_b96fe407a60654f48eaeeefa59981162_rle_crop_3787996336_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e108dbc8bf8f00b4df147b94006cf8d4_46338806.png imagette227503701746589472 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22750360 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22750373,22750374,22750375,22750376,22750377,22750378,22750379,22750380,22750381,22750382,22750383,22750384?tags=flou,environnement,mal_croppe,Carton_gris,cartonnette,papier,Teint_Dans_La_Masse,kraft,autre_refus,Carton_brun,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1356606987] : ('0.05404766663996418',) no score found for photo 1356606987 We are sending mail with results at report@fotonower.com args[1356606986] : ('0.05404766663996418',) no score found for photo 1356606986 We are sending mail with results at report@fotonower.com args[1356606985] : ('0.05404766663996418',) no score found for photo 1356606985 We are sending mail with results at report@fotonower.com args[1356606983] : ('0.05404766663996418',) no score found for photo 1356606983 We are sending mail with results at report@fotonower.com args[1356606781] : ('0.05404766663996418',) no score found for photo 1356606781 We are sending mail with results at report@fotonower.com args[1356606752] : ('0.05404766663996418',) no score found for photo 1356606752 We are sending mail with results at report@fotonower.com args[1356606721] : ('0.05404766663996418',) no score found for photo 1356606721 We are sending mail with results at report@fotonower.com args[1356606695] : ('0.05404766663996418',) no score found for photo 1356606695 We are sending mail with results at report@fotonower.com args[1356606655] : ('0.05404766663996418',) no score found for photo 1356606655 We are sending mail with results at report@fotonower.com args[1356606631] : ('0.05404766663996418',) no score found for photo 1356606631 We are sending mail with results at report@fotonower.com args[1356606548] : ('0.05404766663996418',) no score found for photo 1356606548 We are sending mail with results at report@fotonower.com args[1356606540] : ('0.05404766663996418',) no score found for photo 1356606540 We are sending mail with results at report@fotonower.com args[1356606538] : ('0.05404766663996418',) no score found for photo 1356606538 We are sending mail with results at report@fotonower.com args[1356606534] : ('0.05404766663996418',) no score found for photo 1356606534 We are sending mail with results at report@fotonower.com args[1356606530] : ('0.05404766663996418',) no score found for photo 1356606530 We are sending mail with results at report@fotonower.com args[1356606518] : ('0.05404766663996418',) no score found for photo 1356606518 We are sending mail with results at report@fotonower.com args[1356606514] : ('0.05404766663996418',) no score found for photo 1356606514 We are sending mail with results at report@fotonower.com args[1356606512] : ('0.05404766663996418',) no score found for photo 1356606512 We are sending mail with results at report@fotonower.com args[1356606510] : ('0.05404766663996418',) no score found for photo 1356606510 We are sending mail with results at report@fotonower.com args[1356606509] : ('0.05404766663996418',) no score found for photo 1356606509 We are sending mail with results at report@fotonower.com args[1356606507] : ('0.05404766663996418',) no score found for photo 1356606507 We are sending mail with results at report@fotonower.com args[1356606496] : ('0.05404766663996418',) no score found for photo 1356606496 We are sending mail with results at report@fotonower.com args[1356606492] : ('0.05404766663996418',) no score found for photo 1356606492 We are sending mail with results at report@fotonower.com args[1356606442] : ('0.05404766663996418',) no score found for photo 1356606442 We are sending mail with results at report@fotonower.com args[1356606388] : ('0.05404766663996418',) no score found for photo 1356606388 We are sending mail with results at report@fotonower.com args[1356606325] : ('0.05404766663996418',) no score found for photo 1356606325 We are sending mail with results at report@fotonower.com args[1356606247] : ('0.05404766663996418',) no score found for photo 1356606247 We are sending mail with results at report@fotonower.com refus_total : 0.05404766663996418 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750360 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_P22750360_07-05-2025_05_44_30.pdf results_Auto_P22750360_07-05-2025_05_44_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_44_30.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','22750360','results_Auto_P22750360_07-05-2025_05_44_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_44_30.pdf','pdf','','0.36','0.05404766663996418') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22750360]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] map_info['map_portfolio_photo'] : {22750360: [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247, 1356605917, 1356605891, 1356605865, 1356605822, 1356605553, 1356605551, 1356605548, 1356605546, 1356605544, 1356605541, 1356605518, 1356605515, 1356605513, 1356605511, 1356605484, 1356605480, 1356605478, 1356605476, 1356605474, 1356605472, 1356605449, 1356605447, 1356605446, 1356605443, 1356605415, 1356605412, 1356605410, 1356605408, 1356605406, 1356605403, 1356605332, 1356605330, 1356605328, 1356605326, 1356605283, 1356605281, 1356605279, 1356605277, 1356605275, 1356605272, 1356605252, 1356605250, 1356605247, 1356605245, 1356605243, 1356605241, 1356605207, 1356605199, 1356605195]} final : False mtd_id 4302 list_pids : [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] 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, '2800850') ('4302', '22750360', '1356606987', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22750360', '1356606987', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850')] time used for this insertion : 0.02175450325012207 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.3939290046691895 time spend to save output : 0.02209639549255371 total time spend for step 4 : 4.416025400161743 step5:split_time_score Wed May 7 05:44:34 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 : ['22750360'] 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 : [('22750360',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22750360) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356606985: {'path': 'temp/1746589470_3517584_1356606985_0e42bf945e755b58a7a48e37b966abc4.jpg', 'extension': 'jpg'}, 1356606986: {'path': 'temp/1746589470_3517584_1356606986_4cbaf8bff6858db7bcda280dc76e23c5.jpg', 'extension': 'jpg'}, 1356606987: {'path': 'temp/1746589470_3517584_1356606987_973497726dbf8a3a36a9ac335d1f2376.jpg', 'extension': 'jpg'}, 1356606247: {'path': 'temp/1746589470_3517584_1356606247_cd06f2441cd3f2b14a9c1ee4fb632037.jpg', 'extension': 'jpg'}, 1356606325: {'path': 'temp/1746589470_3517584_1356606325_abdfaed8498be47366a8303df31acf60.jpg', 'extension': 'jpg'}, 1356606388: {'path': 'temp/1746589470_3517584_1356606388_c75568de77ed035bc0fa4b8af5079ba3.jpg', 'extension': 'jpg'}, 1356606442: {'path': 'temp/1746589470_3517584_1356606442_8cae792764fd05a32ef168ab1e65cc94.jpg', 'extension': 'jpg'}, 1356606492: {'path': 'temp/1746589470_3517584_1356606492_31d4c534c4514957cd8c931ba4ad6956.jpg', 'extension': 'jpg'}, 1356606496: {'path': 'temp/1746589470_3517584_1356606496_9635235f71d09d6481b2f57fcff5ac21.jpg', 'extension': 'jpg'}, 1356606507: {'path': 'temp/1746589470_3517584_1356606507_0270ff0e7d5b106c8e36ba8af7654120.jpg', 'extension': 'jpg'}, 1356606509: {'path': 'temp/1746589470_3517584_1356606509_73b3ce32591054bf0fd5b3ec83341d09.jpg', 'extension': 'jpg'}, 1356606510: {'path': 'temp/1746589470_3517584_1356606510_cedaf874b659fcfa5cd4628872d8fd39.jpg', 'extension': 'jpg'}, 1356606512: {'path': 'temp/1746589470_3517584_1356606512_519ebbb3f51acdc7783fa88c83e821f9.jpg', 'extension': 'jpg'}, 1356606514: {'path': 'temp/1746589470_3517584_1356606514_4c4d1115f6b519621e447f613a719ab5.jpg', 'extension': 'jpg'}, 1356606518: {'path': 'temp/1746589470_3517584_1356606518_6f870fd3976830c4328d83aef1bc1a8b.jpg', 'extension': 'jpg'}, 1356606655: {'path': 'temp/1746589470_3517584_1356606655_5b3f2dba3979a29980440f0a2ac4d92e.jpg', 'extension': 'jpg'}, 1356606695: {'path': 'temp/1746589470_3517584_1356606695_5b0096f49a8f1f71fda3d8a6d61b1ea3.jpg', 'extension': 'jpg'}, 1356606721: {'path': 'temp/1746589470_3517584_1356606721_40b7274a1885d8ec923b5835a9788144.jpg', 'extension': 'jpg'}, 1356606752: {'path': 'temp/1746589470_3517584_1356606752_fd057674714a1ad77c7509692ef562dd.jpg', 'extension': 'jpg'}, 1356606781: {'path': 'temp/1746589470_3517584_1356606781_96eee4e49dfb9e5ed3b1e22dc1061e41.jpg', 'extension': 'jpg'}, 1356606983: {'path': 'temp/1746589470_3517584_1356606983_dd22137dce54530f4827583c6ccf618a.jpg', 'extension': 'jpg'}, 1356606530: {'path': 'temp/1746589470_3517584_1356606530_249ce970fe9224c5c95000c7ca42e5e9.jpg', 'extension': 'jpg'}, 1356606534: {'path': 'temp/1746589470_3517584_1356606534_2ef434a8a88bd552673f3f05821ff762.jpg', 'extension': 'jpg'}, 1356606538: {'path': 'temp/1746589470_3517584_1356606538_cd8e8cc5e5120731b17e101c73c0de9c.jpg', 'extension': 'jpg'}, 1356606540: {'path': 'temp/1746589470_3517584_1356606540_b5b0c48640d621fb92a9e4046197f5cf.jpg', 'extension': 'jpg'}, 1356606548: {'path': 'temp/1746589470_3517584_1356606548_ee784a1850d9bde3729b9201b5e57710.jpg', 'extension': 'jpg'}, 1356606631: {'path': 'temp/1746589470_3517584_1356606631_59b046c1d4cb4526d1dd6b6a6299308c.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 = 22750360; (('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 ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22750360 group by h (('05', 76),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22750360 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 (22750360) 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 (22750360) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22750360 Nombre de photos uploadées : 76 / 23040 (0%) 07052025 22750360 Nombre de photos taguées (types de déchets): 0 / 76 (0%) 07052025 22750360 Nombre de photos taguées (volume) : 0 / 76 (0%) [{'photo_id': 1356605207, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b96fe407a60654f48eaeeefa59981162.jpg', 'username': None, 'uploaded_at': 1746588667, 'text': 'image_07052025_05_30_04_010579m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1356605199, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e14860df4b9438c7a9590438e62145d7.jpg', 'username': None, 'uploaded_at': 1746588667, 'text': 'image_07052025_05_30_14_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356605195, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/975146bf5ffde0df4ead6470dd5bd526.jpg', 'username': None, 'uploaded_at': 1746588667, 'text': 'image_07052025_05_30_23_009123m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1356605252, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c8e441e6802a536485f8644a7be89d55.jpg', 'username': None, 'uploaded_at': 1746588728, 'text': 'image_07052025_05_30_34_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ???????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002645730972290039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22750360, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1781050,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.033229827880859375 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= 1781050 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10364620, '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_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22741189, 'dashboard_result_id': 10364621, '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_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22741710, 'dashboard_result_id': 10364622, '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_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22742314, 'dashboard_result_id': 10364623, '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_P22742314_07-05-2025_01_36_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22743939, 'dashboard_result_id': 10364624, '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_P22743939_07-05-2025_01_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22744354, 'dashboard_result_id': 10364625, '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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22744792, 'dashboard_result_id': 10364626, '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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22745552, 'dashboard_result_id': 10364627, '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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22745924, 'dashboard_result_id': 10364628, '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_P22745924_07-05-2025_02_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22746301, 'dashboard_result_id': 10364629, '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_P22746301_07-05-2025_03_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22746900, 'dashboard_result_id': 10364630, '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_P22746900_07-05-2025_03_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22747363, 'dashboard_result_id': 10364631, '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_P22747363_07-05-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22747808, 'dashboard_result_id': 10364632, '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_P22747808_07-05-2025_03_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22748285, 'dashboard_result_id': 10364633, '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_P22748285_07-05-2025_04_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22748931, 'dashboard_result_id': 10364634, '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_P22748931_07-05-2025_04_10_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22749585, 'dashboard_result_id': 10364635, '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_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22750050, 'dashboard_result_id': 10364636, '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_P22750050_07-05-2025_05_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}"}, {'dashboat_entry_day': 1781050, 'dashboard_run_id': 1789162, 'mtr_portfolio_id': 22750360, 'dashboard_result_id': 10364637, '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_P22750360_07-05-2025_05_41_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, '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 = 22740041 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': 2799894, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 0, 20, 59), 'result': '0.04471122665630952', 'result_long': None, 'result_double': None}] Qualite : 0.04471122665630952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 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_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1789162 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`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364620, 0.04471122665630952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, '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 = 22741189 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': 2799947, 'mtr_portfolio_id': 22741189, 'created_at': datetime.datetime(2025, 5, 7, 0, 32, 59), 'result': '0.051507258021020234', 'result_long': None, 'result_double': None}] Qualite : 0.051507258021020234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741189 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_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}" where mtr_portfolio_id = 22741189 and dashboard_run_id = 1789162 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`=22741189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364621, 0.051507258021020234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, '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 = 22741710 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': 2799979, 'mtr_portfolio_id': 22741710, 'created_at': datetime.datetime(2025, 5, 7, 0, 47, 27), 'result': '0.062164212888669274', 'result_long': None, 'result_double': None}] Qualite : 0.062164212888669274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_00_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741710 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_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}" where mtr_portfolio_id = 22741710 and dashboard_run_id = 1789162 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`=22741710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364622, 0.062164212888669274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, '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 = 22742314 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': 2800017, 'mtr_portfolio_id': 22742314, 'created_at': datetime.datetime(2025, 5, 7, 1, 36, 57), 'result': '0.045077702374708616', 'result_long': None, 'result_double': None}] Qualite : 0.045077702374708616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22742314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_01_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22742314 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_P22742314_07-05-2025_01_36_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}" where mtr_portfolio_id = 22742314 and dashboard_run_id = 1789162 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`=22742314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364623, 0.045077702374708616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_01_36_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, '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 = 22743939 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': 2800155, 'mtr_portfolio_id': 22743939, 'created_at': datetime.datetime(2025, 5, 7, 1, 49), 'result': '0.04629135982946475', 'result_long': None, 'result_double': None}] Qualite : 0.04629135982946475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22743939 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22743939 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_P22743939_07-05-2025_01_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, 'pht': 3726}}" where mtr_portfolio_id = 22743939 and dashboard_run_id = 1789162 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`=22743939 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364624, 0.04629135982946475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22743939_07-05-2025_01_49_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22743958, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22743959, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22743960, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22743961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22743962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22743963, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22743964, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22743965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22743966, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22743967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22743968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22743969, '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 = 22744354 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': 2800188, 'mtr_portfolio_id': 22744354, 'created_at': datetime.datetime(2025, 5, 7, 2, 5), 'result': '0.035308623964605136', 'result_long': None, 'result_double': None}] Qualite : 0.035308623964605136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_02_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744354 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_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, 'pht': 3726}}" where mtr_portfolio_id = 22744354 and dashboard_run_id = 1789162 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`=22744354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364625, 0.035308623964605136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744354_07-05-2025_02_05_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744357, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744358, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744360, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744366, '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 = 22744792 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': 2800250, 'mtr_portfolio_id': 22744792, 'created_at': datetime.datetime(2025, 5, 7, 2, 21, 5), 'result': '0.05543965668093365', 'result_long': None, 'result_double': None}] Qualite : 0.05543965668093365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22744792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_02_21_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22744792 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_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, 'pht': 3726}}" where mtr_portfolio_id = 22744792 and dashboard_run_id = 1789162 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`=22744792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364626, 0.05543965668093365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22744792_07-05-2025_02_21_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22744867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22744868, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22744869, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22744870, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22744871, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22744872, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22744873, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22744874, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22744875, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22744876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22744877, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22744878, '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 = 22745552 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': 2800294, 'mtr_portfolio_id': 22745552, 'created_at': datetime.datetime(2025, 5, 7, 2, 34, 58), 'result': '0.04177400860934052', 'result_long': None, 'result_double': None}] Qualite : 0.04177400860934052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_02_34_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745552 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_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, 'pht': 3726}}" where mtr_portfolio_id = 22745552 and dashboard_run_id = 1789162 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`=22745552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364627, 0.04177400860934052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745552_07-05-2025_02_34_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745553, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745554, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745556, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745558, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745559, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745560, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745561, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745563, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745564, '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 = 22745924 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': 2800347, 'mtr_portfolio_id': 22745924, 'created_at': datetime.datetime(2025, 5, 7, 2, 46, 58), 'result': '0.04019100324960628', 'result_long': None, 'result_double': None}] Qualite : 0.04019100324960628 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22745924 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22745924 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_P22745924_07-05-2025_02_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, 'pht': 3726}}" where mtr_portfolio_id = 22745924 and dashboard_run_id = 1789162 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`=22745924 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364628, 0.04019100324960628, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22745924_07-05-2025_02_46_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22745932, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22745933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22745934, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22745935, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22745936, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22745937, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22745938, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22745939, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22745940, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22745941, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22745942, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22745943, '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 = 22746301 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': 2800388, 'mtr_portfolio_id': 22746301, 'created_at': datetime.datetime(2025, 5, 7, 3, 4, 56), 'result': '0.04715954188841638', 'result_long': None, 'result_double': None}] Qualite : 0.04715954188841638 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_03_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746301 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_P22746301_07-05-2025_03_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, 'pht': 3726}}" where mtr_portfolio_id = 22746301 and dashboard_run_id = 1789162 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`=22746301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364629, 0.04715954188841638, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746301_07-05-2025_03_04_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746326, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746327, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746330, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746333, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746334, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746335, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746337, '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 = 22746900 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': 2800456, 'mtr_portfolio_id': 22746900, 'created_at': datetime.datetime(2025, 5, 7, 3, 16, 29), 'result': '0.044890060638735914', 'result_long': None, 'result_double': None}] Qualite : 0.044890060638735914 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22746900 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_03_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22746900 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_P22746900_07-05-2025_03_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, 'pht': 3726}}" where mtr_portfolio_id = 22746900 and dashboard_run_id = 1789162 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`=22746900 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364630, 0.044890060638735914, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22746900_07-05-2025_03_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22746902, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22746903, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22746904, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22746905, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22746906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22746907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22746908, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22746909, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22746910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22746911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22746912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22746913, '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 = 22747363 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': 2800490, 'mtr_portfolio_id': 22747363, 'created_at': datetime.datetime(2025, 5, 7, 3, 32, 58), 'result': '0.05722222391483031', 'result_long': None, 'result_double': None}] Qualite : 0.05722222391483031 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_03_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747363 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_P22747363_07-05-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, 'pht': 3726}}" where mtr_portfolio_id = 22747363 and dashboard_run_id = 1789162 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`=22747363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364631, 0.05722222391483031, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747363_07-05-2025_03_32_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22747369, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747371, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747373, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747374, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747375, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747376, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747377, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747380, '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 = 22747808 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': 2800532, 'mtr_portfolio_id': 22747808, 'created_at': datetime.datetime(2025, 5, 7, 3, 46, 59), 'result': '0.05905921505127743', 'result_long': None, 'result_double': None}] Qualite : 0.05905921505127743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22747808 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_03_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22747808 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_P22747808_07-05-2025_03_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, 'pht': 3726}}" where mtr_portfolio_id = 22747808 and dashboard_run_id = 1789162 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`=22747808 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364632, 0.05905921505127743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22747808_07-05-2025_03_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22747833, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22747834, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22747835, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22747836, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22747837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22747838, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22747839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22747840, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22747841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22747842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22747843, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22747844, '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 = 22748285 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': 2800581, 'mtr_portfolio_id': 22748285, 'created_at': datetime.datetime(2025, 5, 7, 4, 2, 57), 'result': '0.041151722560088415', 'result_long': None, 'result_double': None}] Qualite : 0.041151722560088415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_04_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748285 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_P22748285_07-05-2025_04_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, 'pht': 3726}}" where mtr_portfolio_id = 22748285 and dashboard_run_id = 1789162 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`=22748285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364633, 0.041151722560088415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748285_07-05-2025_04_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748292, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748295, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748296, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748303, '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 = 22748931 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': 2800656, 'mtr_portfolio_id': 22748931, 'created_at': datetime.datetime(2025, 5, 7, 4, 12, 59), 'result': '0.05434139184277129', 'result_long': None, 'result_double': None}] Qualite : 0.05434139184277129 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22748931 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_04_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22748931 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_P22748931_07-05-2025_04_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, 'pht': 3726}}" where mtr_portfolio_id = 22748931 and dashboard_run_id = 1789162 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`=22748931 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364634, 0.05434139184277129, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22748931_07-05-2025_04_12_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22748940, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22748941, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22748942, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22748943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22748944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22748945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22748946, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22748947, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22748948, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22748949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22748950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22748951, '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 = 22749585 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': 2800781, 'mtr_portfolio_id': 22749585, 'created_at': datetime.datetime(2025, 5, 7, 5, 19), 'result': '0.013151463601640639', 'result_long': None, 'result_double': None}] Qualite : 0.013151463601640639 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22749585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22749585 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_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, 'pht': 3726}}" where mtr_portfolio_id = 22749585 and dashboard_run_id = 1789162 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`=22749585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364635, 0.013151463601640639, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22749585_07-05-2025_05_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22749586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22749587, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22749588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22749589, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22749590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22749591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22749592, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22749593, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22749594, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22749595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22749596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22749597, '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 = 22750050 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': 2800821, 'mtr_portfolio_id': 22750050, 'created_at': datetime.datetime(2025, 5, 7, 5, 32, 58), 'result': '0.03618924136373002', 'result_long': None, 'result_double': None}] Qualite : 0.03618924136373002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750050 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_P22750050_07-05-2025_05_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, 'pht': 3726}}" where mtr_portfolio_id = 22750050 and dashboard_run_id = 1789162 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`=22750050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364636, 0.03618924136373002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750050_07-05-2025_05_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750051, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22750055, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750056, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750057, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750058, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750062, '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 = 22750360 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': 2800850, 'mtr_portfolio_id': 22750360, 'created_at': datetime.datetime(2025, 5, 7, 5, 44, 29), 'result': '0.05404766663996418', 'result_long': None, 'result_double': None}] Qualite : 0.05404766663996418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22750360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_44_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22750360 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_P22750360_07-05-2025_05_44_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, 'pht': 3726}}" where mtr_portfolio_id = 22750360 and dashboard_run_id = 1789162 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`=22750360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10364637, 0.05404766663996418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22750360_07-05-2025_05_44_30.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22750361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22750362, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22750363, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22750364, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22750365, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22750366, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22750367, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22750368, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22750369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22750370, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22750371, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22750372, '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 (22740041,22741189,22741710,22742314,22743939,22744354,22744792,22745552,22745924,22746301,22746900,22747363,22747808,22748285,22748931,22749585,22750050,22750360) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,), (1356515156,), (1356515208,), (1356515901,), (1356515952,), (1356516009,), (1356516068,), (1356516118,), (1356516709,), (1356516768,), (1356516802,), (1356517611,), (1356517205,), (1356517282,), (1356517353,), (1356517432,), (1356517511,), (1356518522,), (1356518642,), (1356518772,), (1356520657,), (1356520772,), (1356520880,), (1356520942,), (1356521561,), (1356521613,), (1356521662,), (1356521710,), (1356521766,), (1356521814,), (1356521967,), (1356522017,), (1356522065,), (1356522762,), (1356522842,), (1356522931,), (1356522962,), (1356522997,), (1356523046,), (1356523401,), (1356523447,), (1356523501,), (1356523551,), (1356523604,), (1356523663,), (1356524321,), (1356524362,), (1356525241,), (1356525301,), (1356525336,), (1356525381,), (1356525424,), (1356525488,), (1356525876,), (1356525905,), (1356525912,), (1356525916,), (1356525920,), (1356526224,), (1356526289,), (1356526355,), (1356526529,), (1356526599,), (1356526888,), (1356526916,), (1356526943,), (1356526977,), (1356527139,), (1356527144,), (1356527199,), (1356527283,), (1356527286,), (1356527289,), (1356527297,), (1356527302,), (1356527305,), (1356527328,), (1356527330,), (1356527333,), (1356527336,), (1356527340,), (1356527398,), (1356527388,), (1356527390,), (1356527392,), (1356527394,), (1356527420,), (1356527434,), (1356527575,), (1356527577,), (1356527579,), (1356527598,), (1356527622,), (1356527823,), (1356527833,), (1356527838,), (1356527840,), (1356527842,), (1356527859,), (1356527861,), (1356527864,), (1356527867,), (1356527891,), (1356527895,), (1356527897,), (1356527982,), (1356527986,), (1356527991,), (1356527999,), (1356528003,), (1356528011,), (1356528184,), (1356528189,), (1356528198,), (1356528204,), (1356528209,), (1356528214,), (1356528324,), (1356528352,), (1356528387,), (1356528414,), (1356528872,), (1356528898,), (1356528919,), (1356528924,), (1356529012,), (1356529017,), (1356529019,), (1356529022,), (1356529025,), (1356529113,), (1356529117,), (1356529120,), (1356529170,), (1356529182,), (1356529186,), (1356529237,), (1356529247,), (1356529250,), (1356529261,), (1356529264,), (1356529266,), (1356529406,), (1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,), (1356533731,), (1356533754,), (1356533782,), (1356533815,), (1356533856,), (1356534880,), (1356534890,), (1356534942,), (1356534970,), (1356535000,), (1356535530,), (1356535601,), (1356535647,), (1356536690,), (1356536742,), (1356536792,), (1356536816,), (1356537259,), (1356537293,), (1356537324,), (1356537365,), (1356537396,), (1356538843,), (1356538848,), (1356538852,), (1356538856,), (1356551892,), (1356551883,), (1356551888,), (1356551890,), (1356552007,), (1356552011,), (1356552031,), (1356552173,), (1356552180,), (1356552208,), (1356552234,), (1356552260,), (1356552263,), (1356552266,), (1356552269,), (1356552740,), (1356552754,), (1356552757,), (1356552759,), (1356552897,), (1356552899,), (1356552901,), (1356552908,), (1356552920,), (1356553268,), (1356553293,), (1356553318,), (1356553342,), (1356553365,), (1356553686,), (1356553770,), (1356553774,), (1356553784,), (1356553853,), (1356553856,), (1356553858,), (1356553898,), (1356553907,), (1356553909,), (1356553912,), (1356553915,), (1356553919,), (1356553949,), (1356553999,), (1356554078,), (1356554150,), (1356554223,), (1356554229,), (1356554230,), (1356554232,), (1356554290,), (1356554321,), (1356554356,), (1356554390,), (1356554427,), (1356554447,), (1356554451,), (1356554474,), (1356554480,), (1356554508,), (1356554534,), (1356554715,), (1356554717,), (1356554718,), (1356554720,), (1356554723,), (1356554775,), (1356554741,), (1356554744,), (1356554758,), (1356554771,), (1356554792,), (1356554801,), (1356554832,), (1356554842,), (1356554844,), (1356554846,), (1356554849,), (1356554964,), (1356554991,), (1356555019,), (1356555045,), (1356555374,), (1356555409,), (1356555487,), (1356555573,), (1356555603,), (1356555631,), (1356555840,), (1356555843,), (1356555844,), (1356555847,), (1356555849,), (1356555851,), (1356555975,), (1356556009,), (1356556032,), (1356556056,), (1356556246,), (1356556315,), (1356556317,), (1356556320,), (1356556343,), (1356556346,), (1356556349,), (1356556516,), (1356556546,), (1356557073,), (1356556969,), (1356556995,), (1356557021,), (1356557046,), (1356557252,), (1356557264,), (1356557274,), (1356557385,), (1356557410,), (1356557411,), (1356557413,), (1356557416,), (1356557419,), (1356557454,), (1356557456,), (1356557485,), (1356558044,), (1356558086,), (1356558115,), (1356558146,), (1356558764,), (1356558943,), (1356558979,), (1356559005,), (1356559076,), (1356559426,), (1356559432,), (1356559482,), (1356559538,), (1356559600,), (1356559959,), (1356559984,), (1356560009,), (1356560136,), (1356560190,), (1356560246,), (1356560883,), (1356561039,), (1356561143,), (1356561355,), (1356561771,), (1356561812,), (1356561860,), (1356561896,), (1356561943,), (1356562118,), (1356562123,), (1356562149,), (1356562177,), (1356562213,), (1356562263,), (1356562752,), (1356562797,), (1356562823,), (1356562865,), (1356563467,), (1356563522,), (1356563579,), (1356563627,), (1356564196,), (1356564239,), (1356564259,), (1356564262,), (1356564265,), (1356564287,), (1356564291,), (1356564293,), (1356564295,), (1356564296,), (1356565344,), (1356564955,), (1356565038,), (1356565118,), (1356565195,), (1356565273,), (1356566148,), (1356566196,), (1356566696,), (1356566706,), (1356566708,), (1356566720,), (1356566722,), (1356566745,), (1356566747,), (1356566749,), (1356566751,), (1356566754,), (1356566994,), (1356567021,), (1356567046,), (1356567071,), (1356567100,), (1356567126,), (1356567388,), (1356567413,), (1356567741,), (1356567829,), (1356567852,), (1356567879,), (1356567907,), (1356568160,), (1356568166,), (1356568170,), (1356568175,), (1356568179,), (1356568183,), (1356568192,), (1356568194,), (1356568196,), (1356568460,), (1356568508,), (1356568569,), (1356568596,), (1356568667,), (1356568669,), (1356568674,), (1356568677,), (1356568679,), (1356568739,), (1356568740,), (1356568741,), (1356568758,), (1356568783,), (1356569059,), (1356569084,), (1356569299,), (1356569300,), (1356569301,), (1356569302,), (1356569304,), (1356569306,), (1356569343,), (1356569344,), (1356569346,), (1356569348,), (1356569350,), (1356569598,), (1356569583,), (1356569593,), (1356569595,), (1356569596,), (1356569626,), (1356569630,), (1356569633,), (1356569666,), (1356569668,), (1356569670,), (1356569671,), (1356569673,), (1356569674,), (1356569708,), (1356569713,), (1356569715,), (1356569716,), (1356569718,), (1356569745,), (1356569747,), (1356569748,), (1356569750,), (1356569752,), (1356569774,), (1356569775,), (1356569776,), (1356569793,), (1356569797,), (1356569831,), (1356569833,), (1356569835,), (1356569837,), (1356569870,), (1356569872,), (1356569874,), (1356569876,), (1356569900,), (1356569906,), (1356569908,), (1356569911,), (1356569952,), (1356569955,), (1356569957,), (1356569959,), (1356569993,), (1356569996,), (1356569999,), (1356570001,), (1356570141,), (1356570168,), (1356570194,), (1356570219,), (1356570377,), (1356570406,), (1356570422,), (1356570427,), (1356570578,), (1356570580,), (1356570582,), (1356570584,), (1356570955,), (1356570872,), (1356570900,), (1356570928,), (1356571270,), (1356571296,), (1356571325,), (1356571362,), (1356571392,), (1356571492,), (1356571494,), (1356571520,), (1356571525,), (1356571528,), (1356571529,), (1356571739,), (1356571767,), (1356571795,), (1356571822,), (1356571848,), (1356572115,), (1356572117,), (1356572119,), (1356572121,), (1356572124,), (1356572253,), (1356572254,), (1356572256,), (1356572258,), (1356572299,), (1356572308,), (1356572312,), (1356572316,), (1356572505,), (1356572583,), (1356572610,), (1356572643,), (1356572667,), (1356572695,), (1356572847,), (1356572848,), (1356572849,), (1356572945,), (1356572983,), (1356573007,), (1356573031,), (1356573357,), (1356573389,), (1356573689,), (1356573713,), (1356575159,), (1356575235,), (1356575267,), (1356575306,), (1356575460,), (1356575475,), (1356575487,), (1356575510,), (1356575789,), (1356575727,), (1356575759,), (1356576071,), (1356576097,), (1356576130,), (1356576159,), (1356576662,), (1356576712,), (1356576743,), (1356576747,), (1356576771,), (1356576803,), (1356576805,), (1356576807,), (1356576809,), (1356576830,), (1356576832,), (1356576834,), (1356576837,), (1356576868,), (1356576870,), (1356576871,), (1356576872,), (1356576873,), (1356576875,), (1356576910,), (1356576913,), (1356576915,), (1356576956,), (1356576957,), (1356576958,), (1356576959,), (1356576961,), (1356576985,), (1356576986,), (1356576987,), (1356576988,), (1356577018,), (1356577019,), (1356577021,), (1356577141,), (1356577186,), (1356577188,), (1356577212,), (1356577214,), (1356577242,), (1356577238,), (1356577272,), (1356577280,), (1356577282,), (1356577284,), (1356577286,), (1356577288,), (1356577421,), (1356577445,), (1356577467,), (1356577489,), (1356577819,), (1356577847,), (1356577872,), (1356578109,), (1356578111,), (1356578112,), (1356578113,), (1356578115,), (1356578159,), (1356578160,), (1356578161,), (1356578162,), (1356578164,), (1356578165,), (1356578194,), (1356578207,), (1356578230,), (1356578261,), (1356578290,), (1356578332,), (1356578895,), (1356578940,), (1356579576,), (1356579616,), (1356579624,), (1356579625,), (1356579763,), (1356579764,), (1356579765,), (1356579766,), (1356579768,), (1356580017,), (1356580068,), (1356580069,), (1356580071,), (1356580295,), (1356580320,), (1356580343,), (1356580417,), (1356580517,), (1356580548,), (1356580826,), (1356580827,), (1356580828,), (1356580829,), (1356580830,), (1356581077,), (1356581102,), (1356581128,), (1356581329,), (1356581333,), (1356581334,), (1356581336,), (1356581338,), (1356581340,), (1356581387,), (1356581384,), (1356581385,), (1356581386,), (1356581428,), (1356581429,), (1356581430,), (1356581432,), (1356581459,), (1356581460,), (1356581487,), (1356581488,), (1356581511,), (1356581514,), (1356581515,), (1356581517,), (1356581519,), (1356581541,), (1356581542,), (1356581543,), (1356581544,), (1356581546,), (1356581571,), (1356581572,), (1356581573,), (1356581574,), (1356581630,), (1356581632,), (1356581653,), (1356581706,), (1356581709,), (1356581711,), (1356581713,), (1356581718,), (1356581738,), (1356581742,), (1356581744,), (1356581746,), (1356581748,), (1356581804,), (1356581806,), (1356581808,), (1356581993,), (1356581998,), (1356582017,), (1356582045,), (1356582069,), (1356582104,), (1356582163,), (1356582167,), (1356582215,), (1356582261,), (1356582270,), (1356582272,), (1356582274,), (1356582277,), (1356582283,), (1356582297,), (1356582303,), (1356582307,), (1356582311,), (1356582313,), (1356582315,), (1356582316,), (1356582355,), (1356582352,), (1356582353,), (1356582354,), (1356582373,), (1356582375,), (1356582377,), (1356582380,), (1356582383,), (1356582385,), (1356582408,), (1356582409,), (1356582410,), (1356582435,), (1356582436,), (1356582437,), (1356582438,), (1356582471,), (1356582473,), (1356582523,), (1356582554,), (1356582588,), (1356582700,), (1356582955,), (1356583810,), (1356583836,), (1356583872,), (1356583905,), (1356583939,), (1356584522,), (1356584587,), (1356584589,), (1356584711,), (1356584713,), (1356584737,), (1356584738,), (1356584740,), (1356584742,), (1356584744,), (1356584747,), (1356585201,), (1356585204,), (1356585206,), (1356585208,), (1356585210,), (1356585478,), (1356585508,), (1356585539,), (1356585592,), (1356585645,), (1356586130,), (1356586171,), (1356586222,), (1356586981,), (1356587007,), (1356587021,), (1356587023,), (1356587026,), (1356587825,), (1356587882,), (1356587943,), (1356588003,), (1356588058,), (1356588677,), (1356588542,), (1356588577,), (1356588610,), (1356588647,), (1356588786,), (1356588816,), (1356588843,), (1356588871,), (1356588899,), (1356588978,), (1356588980,), (1356588982,), (1356588986,), (1356588988,), (1356588990,), (1356589016,), (1356589019,), (1356589021,), (1356589023,), (1356589042,), (1356589045,), (1356589049,), (1356589051,), (1356589073,), (1356589077,), (1356589080,), (1356589082,), (1356589086,), (1356589098,), (1356589100,), (1356589103,), (1356589105,), (1356589107,), (1356589110,), (1356589148,), (1356589150,), (1356589178,), (1356589180,), (1356589182,), (1356589184,), (1356589213,), (1356589227,), (1356589230,), (1356589232,), (1356589235,), (1356589237,), (1356589296,), (1356589298,), (1356589366,), (1356600041,), (1356600533,), (1356601688,), (1356602732,), (1356602733,), (1356602758,), (1356602760,), (1356603106,), (1356603132,), (1356603263,), (1356603356,), (1356603457,), (1356603478,), (1356603804,), (1356603806,), (1356603807,), (1356603808,), (1356603811,), (1356603813,), (1356603840,), (1356603836,), (1356603837,), (1356603838,), (1356603865,), (1356603867,), (1356603869,), (1356603872,), (1356603877,), (1356603882,), (1356603905,), (1356603906,), (1356603907,), (1356603908,), (1356603934,), (1356603935,), (1356603936,), (1356603937,), (1356603938,), (1356603940,), (1356603980,), (1356603982,), (1356603984,), (1356604029,), (1356604033,), (1356604035,), (1356604037,), (1356604063,), (1356604066,), (1356604069,), (1356604071,), (1356604074,), (1356604109,), (1356604112,), (1356604116,), (1356604120,), (1356604184,), (1356604187,), (1356604188,), (1356604189,), (1356604191,), (1356604192,), (1356604218,), (1356604219,), (1356604220,), (1356604222,), (1356604265,), (1356604266,), (1356604267,), (1356604268,), (1356604270,), (1356604272,), (1356604352,), (1356604377,), (1356604403,), (1356604432,), (1356604614,), (1356604615,), (1356604616,), (1356604617,), (1356604618,), (1356604637,), (1356604881,), (1356604882,), (1356604903,), (1356604923,), (1356605008,), (1356605040,), (1356605105,), (1356605168,), (1356605175,), (1356605191,), (1356605209,), (1356605195,), (1356605199,), (1356605207,), (1356605241,), (1356605243,), (1356605245,), (1356605247,), (1356605250,), (1356605252,), (1356605272,), (1356605275,), (1356605277,), (1356605279,), (1356605281,), (1356605283,), (1356605326,), (1356605328,), (1356605330,), (1356605332,), (1356605403,), (1356605406,), (1356605408,), (1356605410,), (1356605412,), (1356605415,), (1356605443,), (1356605446,), (1356605447,), (1356605449,), (1356605472,), (1356605474,), (1356605476,), (1356605478,), (1356605480,), (1356605484,), (1356605511,), (1356605513,), (1356605515,), (1356605518,), (1356605541,), (1356605544,), (1356605546,), (1356605548,), (1356605551,), (1356605553,), (1356605822,), (1356605865,), (1356605891,), (1356605917,), (1356606247,), (1356606325,), (1356606388,), (1356606442,), (1356606492,), (1356606496,), (1356606507,), (1356606509,), (1356606510,), (1356606512,), (1356606514,), (1356606518,), (1356606530,), (1356606534,), (1356606538,), (1356606540,), (1356606548,), (1356606631,), (1356606655,), (1356606695,), (1356606721,), (1356606752,), (1356606781,), (1356606983,), (1356606985,), (1356606986,), (1356606987,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 76, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22750360]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] map_info['map_portfolio_photo'] : {22750360: [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247, 1356605917, 1356605891, 1356605865, 1356605822, 1356605553, 1356605551, 1356605548, 1356605546, 1356605544, 1356605541, 1356605518, 1356605515, 1356605513, 1356605511, 1356605484, 1356605480, 1356605478, 1356605476, 1356605474, 1356605472, 1356605449, 1356605447, 1356605446, 1356605443, 1356605415, 1356605412, 1356605410, 1356605408, 1356605406, 1356605403, 1356605332, 1356605330, 1356605328, 1356605326, 1356605283, 1356605281, 1356605279, 1356605277, 1356605275, 1356605272, 1356605252, 1356605250, 1356605247, 1356605245, 1356605243, 1356605241, 1356605207, 1356605199, 1356605195]} final : True mtd_id 4302 list_pids : [1356606987, 1356606986, 1356606985, 1356606983, 1356606781, 1356606752, 1356606721, 1356606695, 1356606655, 1356606631, 1356606548, 1356606540, 1356606538, 1356606534, 1356606530, 1356606518, 1356606514, 1356606512, 1356606510, 1356606509, 1356606507, 1356606496, 1356606492, 1356606442, 1356606388, 1356606325, 1356606247] Looping around the photos to save general results len do output : 1 /22750360Didn'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, '2800850') ('4302', '22750360', '1356606987', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850') ('4302', None, None, None, None, None, None, None, '2800850') ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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, '22750360', 'None', None, None, None, None, '2800850'), ('4302', '22750360', '1356606987', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606986', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606985', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606983', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606781', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606752', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606721', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606695', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606655', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606631', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606548', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606540', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606538', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606534', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606530', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606518', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606514', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606512', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606510', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606509', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606507', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606496', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606492', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606442', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606388', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606325', None, None, None, None, None, '2800850'), ('4302', '22750360', '1356606247', None, None, None, None, None, '2800850')] time used for this insertion : 0.017579317092895508 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1331822872161865 time spend to save output : 0.017916202545166016 total time spend for step 5 : 1.1510984897613525 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 (2800850) 2.82user 2.18system 0:11.32elapsed 44%CPU (0avgtext+0avgdata 164576maxresident)k 96inputs+22544outputs (10major+79744minor)pagefaults 0swaps