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 : 3058220 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 (3239908) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3239908) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635559 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3239908'] with mtr_portfolio_ids : ['24635559'] and first list_photo_ids : [] new path : /proc/3058220/ Name: python3 Umask: 0002 State: R (running) Tgid: 3058220 Ngid: 0 Pid: 3058220 PPid: 3058219 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3058220 NSpid: 3058220 NSpgid: 3057073 NSsid: 3057073 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99392 kB VmRSS: 99392 kB RssAnon: 59808 kB RssFile: 39584 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 58 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3058220', 'Ngid': '0', 'Pid': '3058220', 'PPid': '3058219', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3058220', 'NSpid': '3058220', 'NSpgid': '3057073', 'NSsid': '3057073', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99392 kB', 'VmRSS': '99392 kB', 'RssAnon': '59808 kB', 'RssFile': '39584 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '58', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '3058220', '1106868', '0', '1106868', '865620', '99392', b'', 'marlene', '3239908') 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 (24635559) 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 (3239908 ) ) 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 (24635559) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370733571, 'portfolio_id': 24635559}, {'photo_id': 1370733567, 'portfolio_id': 24635559}, {'photo_id': 1370733556, 'portfolio_id': 24635559}, {'photo_id': 1370733553, 'portfolio_id': 24635559}, {'photo_id': 1370733550, 'portfolio_id': 24635559}, {'photo_id': 1370733547, 'portfolio_id': 24635559}, {'photo_id': 1370733505, 'portfolio_id': 24635559}, {'photo_id': 1370733503, 'portfolio_id': 24635559}, {'photo_id': 1370733500, 'portfolio_id': 24635559}, {'photo_id': 1370733497, 'portfolio_id': 24635559}, {'photo_id': 1370733494, 'portfolio_id': 24635559}, {'photo_id': 1370733490, 'portfolio_id': 24635559}, {'photo_id': 1370733465, 'portfolio_id': 24635559}, {'photo_id': 1370733460, 'portfolio_id': 24635559}, {'photo_id': 1370733458, 'portfolio_id': 24635559}, {'photo_id': 1370733456, 'portfolio_id': 24635559}, {'photo_id': 1370733453, 'portfolio_id': 24635559}, {'photo_id': 1370733448, 'portfolio_id': 24635559}, {'photo_id': 1370733438, 'portfolio_id': 24635559}, {'photo_id': 1370733435, 'portfolio_id': 24635559}, {'photo_id': 1370733427, 'portfolio_id': 24635559}, {'photo_id': 1370733425, 'portfolio_id': 24635559}, {'photo_id': 1370733423, 'portfolio_id': 24635559}, {'photo_id': 1370733421, 'portfolio_id': 24635559}, {'photo_id': 1370733411, 'portfolio_id': 24635559}, {'photo_id': 1370733409, 'portfolio_id': 24635559}, {'photo_id': 1370733407, 'portfolio_id': 24635559}, {'photo_id': 1370733405, 'portfolio_id': 24635559}, {'photo_id': 1370733396, 'portfolio_id': 24635559}, {'photo_id': 1370733395, 'portfolio_id': 24635559}, {'photo_id': 1370733354, 'portfolio_id': 24635559}, {'photo_id': 1370733352, 'portfolio_id': 24635559}, {'photo_id': 1370733349, 'portfolio_id': 24635559}, {'photo_id': 1370733343, 'portfolio_id': 24635559}, {'photo_id': 1370733340, 'portfolio_id': 24635559}, {'photo_id': 1370733336, 'portfolio_id': 24635559}, {'photo_id': 1370733317, 'portfolio_id': 24635559}, {'photo_id': 1370733314, 'portfolio_id': 24635559}, {'photo_id': 1370733311, 'portfolio_id': 24635559}, {'photo_id': 1370733308, 'portfolio_id': 24635559}, {'photo_id': 1370733304, 'portfolio_id': 24635559}, {'photo_id': 1370733301, 'portfolio_id': 24635559}, {'photo_id': 1370733296, 'portfolio_id': 24635559}, {'photo_id': 1370733295, 'portfolio_id': 24635559}, {'photo_id': 1370733287, 'portfolio_id': 24635559}, {'photo_id': 1370733286, 'portfolio_id': 24635559}, {'photo_id': 1370733280, 'portfolio_id': 24635559}, {'photo_id': 1370733278, 'portfolio_id': 24635559}, {'photo_id': 1370733266, 'portfolio_id': 24635559}, {'photo_id': 1370733264, 'portfolio_id': 24635559}, {'photo_id': 1370733259, 'portfolio_id': 24635559}, {'photo_id': 1370733258, 'portfolio_id': 24635559}, {'photo_id': 1370733254, 'portfolio_id': 24635559}, {'photo_id': 1370733253, 'portfolio_id': 24635559}, {'photo_id': 1370733246, 'portfolio_id': 24635559}, {'photo_id': 1370733238, 'portfolio_id': 24635559}, {'photo_id': 1370733235, 'portfolio_id': 24635559}, {'photo_id': 1370733231, 'portfolio_id': 24635559}, {'photo_id': 1370733227, 'portfolio_id': 24635559}, {'photo_id': 1370733217, 'portfolio_id': 24635559}, {'photo_id': 1370733190, 'portfolio_id': 24635559}, {'photo_id': 1370733187, 'portfolio_id': 24635559}, {'photo_id': 1370733183, 'portfolio_id': 24635559}, {'photo_id': 1370733161, 'portfolio_id': 24635559}, {'photo_id': 1370733128, 'portfolio_id': 24635559}, {'photo_id': 1370733123, 'portfolio_id': 24635559}, {'photo_id': 1370733058, 'portfolio_id': 24635559}, {'photo_id': 1370733055, 'portfolio_id': 24635559}, {'photo_id': 1370733052, 'portfolio_id': 24635559}, {'photo_id': 1370733032, 'portfolio_id': 24635559}, {'photo_id': 1370733002, 'portfolio_id': 24635559}, {'photo_id': 1370732970, 'portfolio_id': 24635559}, {'photo_id': 1370732876, 'portfolio_id': 24635559}, {'photo_id': 1370732871, 'portfolio_id': 24635559}, {'photo_id': 1370732866, 'portfolio_id': 24635559}, {'photo_id': 1370732862, 'portfolio_id': 24635559}, {'photo_id': 1370732857, 'portfolio_id': 24635559}, {'photo_id': 1370732854, 'portfolio_id': 24635559}, {'photo_id': 1370732500, 'portfolio_id': 24635559}, {'photo_id': 1370732464, 'portfolio_id': 24635559}, {'photo_id': 1370732433, 'portfolio_id': 24635559}, {'photo_id': 1370732403, 'portfolio_id': 24635559}, {'photo_id': 1370732370, 'portfolio_id': 24635559}, {'photo_id': 1370732338, 'portfolio_id': 24635559}, {'photo_id': 1370732249, 'portfolio_id': 24635559}, {'photo_id': 1370732212, 'portfolio_id': 24635559}, {'photo_id': 1370732177, 'portfolio_id': 24635559}, {'photo_id': 1370732147, 'portfolio_id': 24635559}, {'photo_id': 1370732104, 'portfolio_id': 24635559}, {'photo_id': 1370732097, 'portfolio_id': 24635559}] map_portfolio_id_photo_id: {24635559: [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490, 1370733465, 1370733460, 1370733458, 1370733456, 1370733453, 1370733448, 1370733438, 1370733435, 1370733427, 1370733425, 1370733423, 1370733421, 1370733411, 1370733409, 1370733407, 1370733405, 1370733396, 1370733395, 1370733354, 1370733352, 1370733349, 1370733343, 1370733340, 1370733336, 1370733317, 1370733314, 1370733311, 1370733308, 1370733304, 1370733301, 1370733296, 1370733295, 1370733287, 1370733286, 1370733280, 1370733278, 1370733266, 1370733264, 1370733259, 1370733258, 1370733254, 1370733253, 1370733246, 1370733238, 1370733235, 1370733231, 1370733227, 1370733217, 1370733190, 1370733187, 1370733183, 1370733161, 1370733128, 1370733123, 1370733058, 1370733055, 1370733052, 1370733032, 1370733002, 1370732970, 1370732876, 1370732871, 1370732866, 1370732862, 1370732857, 1370732854, 1370732500, 1370732464, 1370732433, 1370732403, 1370732370, 1370732338, 1370732249, 1370732212, 1370732177, 1370732147, 1370732104, 1370732097]} ##### 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.01558542251586914 #### 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 Sat Jul 5 04:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24635559) 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 : 24635559 get user id for portfolio 24635559 get sub ptf for main ptf 24635559, type 3726 and hashtags ['Carton_gris', 'environnement', 'autre_refus', 'metal', 'plastique', 'Teint_Dans_La_Masse', 'flou', 'cartonnette', 'papier', 'Carton_brun', 'mal_croppe', 'kraft'] 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`=24635559 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','autre_refus','metal','plastique','Teint_Dans_La_Masse','flou','cartonnette','papier','Carton_brun','mal_croppe','kraft')) 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`=24635559 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','autre_refus','metal','plastique','Teint_Dans_La_Masse','flou','cartonnette','papier','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 24635559, 'sub_port_id': 24635567, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557930, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'kraft': {'main_port_id': 24635559, 'sub_port_id': 24635568, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557931, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'plastique': {'main_port_id': 24635559, 'sub_port_id': 24635569, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557932, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 24635559, 'sub_port_id': 24635570, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557933, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'flou': {'main_port_id': 24635559, 'sub_port_id': 24635571, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557934, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'Carton_brun': {'main_port_id': 24635559, 'sub_port_id': 24635572, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557935, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'environnement': {'main_port_id': 24635559, 'sub_port_id': 24635573, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557936, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'metal': {'main_port_id': 24635559, 'sub_port_id': 24635574, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557937, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'mal_croppe': {'main_port_id': 24635559, 'sub_port_id': 24635575, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557938, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'Carton_gris': {'main_port_id': 24635559, 'sub_port_id': 24635576, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557939, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'cartonnette': {'main_port_id': 24635559, 'sub_port_id': 24635577, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557940, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}, 'papier': {'main_port_id': 24635559, 'sub_port_id': 24635578, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557941, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635567 , 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=24635559 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 (24635567) result : ((1370733472,), (1370733562,), (1370733574,), (1370733624,), (1370733626,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635568 , 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=24635559 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 (24635568) result : ((1370733578,), (1370733582,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635569 , 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=24635559 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 (24635569) result : ((1370733483,), (1370733484,), (1370733516,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635570 , 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=24635559 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 (24635570) result : ((1370733428,), (1370733429,), (1370733430,), (1370733431,), (1370733470,), (1370733471,), (1370733507,), (1370733508,), (1370733509,), (1370733557,), (1370733558,), (1370733559,), (1370733560,), (1370733561,), (1370733572,), (1370733573,), (1370733589,), (1370733590,), (1370733591,), (1370733592,), (1370733594,), (1370733595,), (1370733623,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635571 , 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=24635559 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 (24635571) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635572 , 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=24635559 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 (24635572) result : ((1370733480,), (1370733481,), (1370733513,), (1370733515,), (1370733604,), (1370733615,), (1370733616,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635573 , 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=24635559 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 (24635573) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635574 , 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=24635559 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 (24635574) result : ((1370733436,), (1370733584,), (1370733630,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635575 , 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=24635559 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 (24635575) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635576 , 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=24635559 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 (24635576) result : ((1370733473,), (1370733474,), (1370733510,), (1370733511,), (1370733512,), (1370733564,), (1370733565,), (1370733579,), (1370733580,), (1370733596,), (1370733597,), (1370733598,), (1370733600,), (1370733627,), (1370733628,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635577 , 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=24635559 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 (24635577) result : ((1370733432,), (1370733433,), (1370733434,), (1370733478,), (1370733479,), (1370733568,), (1370733581,), (1370733602,), (1370733603,), (1370733606,), (1370733607,), (1370733608,), (1370733609,), (1370733610,), (1370733611,), (1370733612,), (1370733613,), (1370733629,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24635578 , 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=24635559 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 (24635578) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24635559) result : ((1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) 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 (1370733500,1370732500) and cspi.crop_hashtag_id = chi.id; 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`=24635559 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','autre_refus','metal','plastique','Teint_Dans_La_Masse','flou','cartonnette','papier','Carton_brun','mal_croppe','kraft')) 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`=24635559 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','autre_refus','metal','plastique','Teint_Dans_La_Masse','flou','cartonnette','papier','Carton_brun','mal_croppe','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 24635559, 'sub_port_id': 24635579, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557942, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'kraft': {'main_port_id': 24635559, 'sub_port_id': 24635580, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557943, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'plastique': {'main_port_id': 24635559, 'sub_port_id': 24635581, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557944, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 24635559, 'sub_port_id': 24635582, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557945, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'flou': {'main_port_id': 24635559, 'sub_port_id': 24635583, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557946, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'Carton_brun': {'main_port_id': 24635559, 'sub_port_id': 24635584, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557947, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'environnement': {'main_port_id': 24635559, 'sub_port_id': 24635585, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557948, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'metal': {'main_port_id': 24635559, 'sub_port_id': 24635586, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557949, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'mal_croppe': {'main_port_id': 24635559, 'sub_port_id': 24635587, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557950, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'Carton_gris': {'main_port_id': 24635559, 'sub_port_id': 24635588, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557951, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'cartonnette': {'main_port_id': 24635559, 'sub_port_id': 24635589, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557952, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 3, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}, 'papier': {'main_port_id': 24635559, 'sub_port_id': 24635590, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16557953, 'last_updated_at': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 5, 4, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 5, 4, 3, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635579,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635567 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635568 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635569 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635582,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635570 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635583,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635571 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635584,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635572 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635585,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635573 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635586,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635574 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24635590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24635578 lien utilise dans velours : https://www.fotonower.com/velours/24635579,24635580,24635581,24635582,24635583,24635584,24635585,24635586,24635587,24635588,24635589,24635590?tags=autre_refus,kraft,plastique,Teint_Dans_La_Masse,flou,Carton_brun,environnement,metal,mal_croppe,Carton_gris,cartonnette,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24635559]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] map_info['map_portfolio_photo'] : {24635559: [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490, 1370733465, 1370733460, 1370733458, 1370733456, 1370733453, 1370733448, 1370733438, 1370733435, 1370733427, 1370733425, 1370733423, 1370733421, 1370733411, 1370733409, 1370733407, 1370733405, 1370733396, 1370733395, 1370733354, 1370733352, 1370733349, 1370733343, 1370733340, 1370733336, 1370733317, 1370733314, 1370733311, 1370733308, 1370733304, 1370733301, 1370733296, 1370733295, 1370733287, 1370733286, 1370733280, 1370733278, 1370733266, 1370733264, 1370733259, 1370733258, 1370733254, 1370733253, 1370733246, 1370733238, 1370733235, 1370733231, 1370733227, 1370733217, 1370733190, 1370733187, 1370733183, 1370733161, 1370733128, 1370733123, 1370733058, 1370733055, 1370733052, 1370733032, 1370733002, 1370732970, 1370732876, 1370732871, 1370732866, 1370732862, 1370732857, 1370732854, 1370732500, 1370732464, 1370732433, 1370732403, 1370732370, 1370732338, 1370732249, 1370732212, 1370732177, 1370732147, 1370732104, 1370732097]} final : False mtd_id 4302 list_pids : [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] Looping around the photos to save general results len do output : 1 /24635559. 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, '3239908') ('4302', '24635559', '1370733571', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24635559', "{'autre_refus': 24635567, 'kraft': 24635568, 'plastique': 24635569, 'Teint_Dans_La_Masse': 24635570, 'flou': 24635571, 'Carton_brun': 24635572, 'environnement': 24635573, 'metal': 24635574, 'mal_croppe': 24635575, 'Carton_gris': 24635576, 'cartonnette': 24635577, 'papier': 24635578}", None, None, None, None, '3239908'), ('4302', '24635559', '1370733571', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908')] time used for this insertion : 0.018645763397216797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5780415534973145 time spend to save output : 0.019025802612304688 total time spend for step 1 : 0.5970673561096191 step2:final Sat Jul 5 04:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24635559) 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 24635559 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370732249,1370732212,1370732177,1370732147,1370732104,1370732097,1370732500,1370732464,1370732433,1370732403,1370732370,1370732338,1370732876,1370732871,1370732866,1370732862,1370732857,1370732854,1370733058,1370733055,1370733052,1370733032,1370733002,1370732970,1370733190,1370733187,1370733183,1370733161,1370733128,1370733123,1370733246,1370733238,1370733235,1370733231,1370733227,1370733217,1370733296,1370733295,1370733287,1370733286,1370733278,1370733280,1370733266,1370733264,1370733259,1370733258,1370733254,1370733253,1370733317,1370733314,1370733311,1370733308,1370733304,1370733301,1370733354,1370733352,1370733349,1370733343,1370733340,1370733336,1370733438,1370733435,1370733427,1370733425,1370733423,1370733421,1370733411,1370733409,1370733407,1370733405,1370733396,1370733395,1370733465,1370733460,1370733458,1370733456,1370733453,1370733448,1370733505,1370733503,1370733500,1370733497,1370733494,1370733490,1370733571,1370733567,1370733556,1370733553,1370733550,1370733547); 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([24635559]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} new output for save of step final : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] map_info['map_portfolio_photo'] : {24635559: [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490, 1370733465, 1370733460, 1370733458, 1370733456, 1370733453, 1370733448, 1370733438, 1370733435, 1370733427, 1370733425, 1370733423, 1370733421, 1370733411, 1370733409, 1370733407, 1370733405, 1370733396, 1370733395, 1370733354, 1370733352, 1370733349, 1370733343, 1370733340, 1370733336, 1370733317, 1370733314, 1370733311, 1370733308, 1370733304, 1370733301, 1370733296, 1370733295, 1370733287, 1370733286, 1370733280, 1370733278, 1370733266, 1370733264, 1370733259, 1370733258, 1370733254, 1370733253, 1370733246, 1370733238, 1370733235, 1370733231, 1370733227, 1370733217, 1370733190, 1370733187, 1370733183, 1370733161, 1370733128, 1370733123, 1370733058, 1370733055, 1370733052, 1370733032, 1370733002, 1370732970, 1370732876, 1370732871, 1370732866, 1370732862, 1370732857, 1370732854, 1370732500, 1370732464, 1370732433, 1370732403, 1370732370, 1370732338, 1370732249, 1370732212, 1370732177, 1370732147, 1370732104, 1370732097]} final : False mtd_id 4302 list_pids : [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] Looping around the photos to save general results len do output : 12 /1370733571.Didn't retrieve data . /1370733567.Didn't retrieve data . /1370733556.Didn't retrieve data . /1370733553.Didn't retrieve data . /1370733550.Didn't retrieve data . /1370733547.Didn't retrieve data . /1370733505.Didn't retrieve data . /1370733503.Didn't retrieve data . /1370733500.Didn't retrieve data . /1370733497.Didn't retrieve data . /1370733494.Didn't retrieve data . /1370733490.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, '3239908') ('4302', '24635559', '1370733571', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24635559', '1370733571', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733567', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733556', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733553', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733550', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733547', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733505', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733503', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733500', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733497', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733494', '0.05861094035171613', None, None, None, None, '3239908'), ('4302', '24635559', '1370733490', '0.05861094035171613', None, None, None, None, '3239908')] time used for this insertion : 0.018427371978759766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07697844505310059 time spend to save output : 0.01904749870300293 total time spend for step 2 : 0.09602594375610352 step3:velours_tree Sat Jul 5 04:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24635559: [{'autre_refus': 24635567, 'kraft': 24635568, 'plastique': 24635569, 'Teint_Dans_La_Masse': 24635570, 'flou': 24635571, 'Carton_brun': 24635572, 'environnement': 24635573, 'metal': 24635574, 'mal_croppe': 24635575, 'Carton_gris': 24635576, 'cartonnette': 24635577, 'papier': 24635578}]} input_args_next_step : {24635559: ()} output_args : {24635559: [{'autre_refus': 24635567, 'kraft': 24635568, 'plastique': 24635569, 'Teint_Dans_La_Masse': 24635570, 'flou': 24635571, 'Carton_brun': 24635572, 'environnement': 24635573, 'metal': 24635574, 'mal_croppe': 24635575, 'Carton_gris': 24635576, 'cartonnette': 24635577, 'papier': 24635578}]} args : 24635559 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'autre_refus': 24635567, 'kraft': 24635568, 'plastique': 24635569, 'Teint_Dans_La_Masse': 24635570, 'flou': 24635571, 'Carton_brun': 24635572, 'environnement': 24635573, 'metal': 24635574, 'mal_croppe': 24635575, 'Carton_gris': 24635576, 'cartonnette': 24635577, 'papier': 24635578},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24635559) 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([24635559]) 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.3573441505432129 time spend to save output : 4.220008850097656e-05 total time spend for step 3 : 0.35738635063171387 step4:send_mail_cod Sat Jul 5 04:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} input_args_next_step : {1370733571: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733571 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733567 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733556 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733553 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733550 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733547 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733505 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733503 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733500 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733497 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733494 depend.output_id : 0 input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ()} output_args : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',)} args : 1370733490 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 : {24635559: [{'autre_refus': 24635567, 'kraft': 24635568, 'plastique': 24635569, 'Teint_Dans_La_Masse': 24635570, 'flou': 24635571, 'Carton_brun': 24635572, 'environnement': 24635573, 'metal': 24635574, 'mal_croppe': 24635575, 'Carton_gris': 24635576, 'cartonnette': 24635577, 'papier': 24635578}]} input_args_next_step : {1370733571: ('0.05861094035171613',), 1370733567: ('0.05861094035171613',), 1370733556: ('0.05861094035171613',), 1370733553: ('0.05861094035171613',), 1370733550: ('0.05861094035171613',), 1370733547: ('0.05861094035171613',), 1370733505: ('0.05861094035171613',), 1370733503: ('0.05861094035171613',), 1370733500: ('0.05861094035171613',), 1370733497: ('0.05861094035171613',), 1370733494: ('0.05861094035171613',), 1370733490: ('0.05861094035171613',), 24635559: ()} output_args : {24635559: [{'autre_refus': 24635567, 'kraft': 24635568, 'plastique': 24635569, 'Teint_Dans_La_Masse': 24635570, 'flou': 24635571, 'Carton_brun': 24635572, 'environnement': 24635573, 'metal': 24635574, 'mal_croppe': 24635575, 'Carton_gris': 24635576, 'cartonnette': 24635577, 'papier': 24635578}]} args : 24635559 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 :13, first value : ('0.05861094035171613',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24635559) 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 (1370733571,1370733567,1370733556,1370733553,1370733550,1370733547,1370733505,1370733503,1370733500,1370733497,1370733494,1370733490) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370733490 begin to download photo : 1370733500 begin to download photo : 1370733547 begin to download photo : 1370733556 download finish for photo 1370733547 begin to download photo : 1370733550 download finish for photo 1370733500 begin to download photo : 1370733503 download finish for photo 1370733556 begin to download photo : 1370733567 download finish for photo 1370733490 begin to download photo : 1370733494 download finish for photo 1370733550 begin to download photo : 1370733553 download finish for photo 1370733567 begin to download photo : 1370733571 download finish for photo 1370733494 begin to download photo : 1370733497 download finish for photo 1370733503 begin to download photo : 1370733505 download finish for photo 1370733553 download finish for photo 1370733571 download finish for photo 1370733497 download finish for photo 1370733505 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24635559_05-07-2025_04_15_00.pdf 24635567 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=24635567 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733472: '1751681167_4066822_1370732871_84ef98dbb5fb6701a37cbf07f5359cde_rle_crop_3873039070_0.png', 1370733562: '1751681366_1398429_1370732403_f8428e6dc62d1cef3b653bde6c467b57_rle_crop_3873039990_0.png', 1370733574: '1751681486_1401932_1370733123_8371f8b326501aab293d129f7b0db8bc_rle_crop_3873040606_0.png', 1370733624: '1751681648_4091352_1370733458_63c1ac11037fe8da168a1b2ae03d67d0_rle_crop_3873041011_0.png', 1370733626: '1751681648_4091352_1370733456_3e934fcdb5382a3d7672089764f20186_rle_crop_3873041023_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/3f885ad802f35c971a939367d9cde37b_56966215.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/dc129917754b405b22b0c6960e33a1bd_19774858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/ce4fc2ac7b5689f71227f0ddc7790f0d_27093037.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/87147da39d9365b6e4ab2e3cb96ab2ad_15261625.png change filename to text .imagette246355671751681700/ imagette246355671751681700/1751681648_4091352_1370733458_63c1ac11037fe8da168a1b2ae03d67d0_rle_crop_3873041011_0.png.png imagette246355671751681700/1751681366_1398429_1370732403_f8428e6dc62d1cef3b653bde6c467b57_rle_crop_3873039990_0.png.png imagette246355671751681700/1751681648_4091352_1370733456_3e934fcdb5382a3d7672089764f20186_rle_crop_3873041023_0.png.png imagette246355671751681700/1751681167_4066822_1370732871_84ef98dbb5fb6701a37cbf07f5359cde_rle_crop_3873039070_0.png.png imagette246355671751681700/1751681486_1401932_1370733123_8371f8b326501aab293d129f7b0db8bc_rle_crop_3873040606_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/8ecbd3ca08fdcaa3623e1c12412556e9_37574313.png imagette246355671751681700 24635568 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=24635568 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733578: '1751681486_1401932_1370733123_8371f8b326501aab293d129f7b0db8bc_rle_crop_3873040609_0.png', 1370733582: '1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040577_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7a9f738ad97e6fd75ce214c9e2372475_4052247.png change filename to text .imagette246355681751681700/ imagette246355681751681700/1751681486_1401932_1370733123_8371f8b326501aab293d129f7b0db8bc_rle_crop_3873040609_0.png.png imagette246355681751681700/1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040577_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/301f6e23cf46bf5b1ecae42b5724d90b_7659040.png imagette246355681751681700 24635569 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=24635569 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733483: '1751681167_4066822_1370732866_84d65d1962d3ebcdb1d84227fcdab11f_rle_crop_3873039363_0.png', 1370733484: '1751681167_4066822_1370732854_ea71526b4e64a7c3e2fa1f6546dd2a76_rle_crop_3873039813_0.png', 1370733516: '1751681285_4073275_1370733058_a9db88ac2aad1cc3abb4698eb34bcfb0_rle_crop_3873039383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/fb775ea20e3f7b9a85efc373a7105360_77388488.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/16443cfc5d71929ded33b5240e3d2cbb_16147085.png change filename to text .imagette246355691751681700/ imagette246355691751681700/1751681167_4066822_1370732866_84d65d1962d3ebcdb1d84227fcdab11f_rle_crop_3873039363_0.png.png imagette246355691751681700/1751681167_4066822_1370732854_ea71526b4e64a7c3e2fa1f6546dd2a76_rle_crop_3873039813_0.png.png imagette246355691751681700/1751681285_4073275_1370733058_a9db88ac2aad1cc3abb4698eb34bcfb0_rle_crop_3873039383_0.png.png imagette246355711751681700/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/bd37166996a7ccfdfb53bb8b44b7c7ca_80674555.png imagette246355691751681700 24635571 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=24635571 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246355711751681700 24635574 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=24635574 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733436: '1751681067_1394453_1370732104_7b10911a215de601ec22dd2e68aa6611_rle_crop_3873039157_0.png', 1370733584: '1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040578_0.png', 1370733630: '1751681648_4091352_1370733465_1ed52fcb97394af542632a3d666d04eb_rle_crop_3873040970_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/548f8d28908576eacac6958226b4dc24_86303890.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/4d84a8454779e2e93b4c6b4b183773f7_92871792.png change filename to text .imagette246355741751681700/ imagette246355741751681700/1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040578_0.png.png imagette246355741751681700/1751681067_1394453_1370732104_7b10911a215de601ec22dd2e68aa6611_rle_crop_3873039157_0.png.png imagette246355741751681700/1751681648_4091352_1370733465_1ed52fcb97394af542632a3d666d04eb_rle_crop_3873040970_0.png.png imagette246355751751681701/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/4e3d36125dcbc1e617c43e9ff9852c7d_79185004.png imagette246355741751681700 24635575 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=24635575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette246355751751681701 24635577 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=24635577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733606: '1751681405_4078068_1370733296_6d4d7378b731118083068ce44914fe2b_rle_crop_3873040036_0.png', 1370733629: '1751681648_4091352_1370733465_1ed52fcb97394af542632a3d666d04eb_rle_crop_3873040979_0.png', 1370733613: '1751681405_4078068_1370733264_611e98049763de6391e514d076080915_rle_crop_3873040674_0.png', 1370733612: '1751681405_4078068_1370733264_611e98049763de6391e514d076080915_rle_crop_3873040668_0.png', 1370733611: '1751681405_4078068_1370733266_c07dd0a08c25e7f141ae33470de84fe8_rle_crop_3873040662_0.png', 1370733610: '1751681405_4078068_1370733266_c07dd0a08c25e7f141ae33470de84fe8_rle_crop_3873040656_0.png', 1370733609: '1751681405_4078068_1370733295_815871e79d8bf08c77f750d6cd54ec0b_rle_crop_3873040560_0.png', 1370733608: '1751681405_4078068_1370733295_815871e79d8bf08c77f750d6cd54ec0b_rle_crop_3873040562_0.png', 1370733607: '1751681405_4078068_1370733296_6d4d7378b731118083068ce44914fe2b_rle_crop_3873040034_0.png', 1370733432: '1751681067_1394453_1370732147_88eb7351125521a55b0df0cb0d218fbf_rle_crop_3873039025_0.png', 1370733603: '1751681606_1408556_1370733308_145e20ce6dceb0595782f41b150f3391_rle_crop_3873040762_0.png', 1370733602: '1751681606_1408556_1370733308_145e20ce6dceb0595782f41b150f3391_rle_crop_3873040764_0.png', 1370733581: '1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040582_0.png', 1370733568: '1751681366_1398429_1370732338_bc0304c0bad571eeea411aa06e061b31_rle_crop_3873040021_0.png', 1370733479: '1751681167_4066822_1370732862_456bbe635b16f5280d092d17199ac005_rle_crop_3873039428_0.png', 1370733478: '1751681167_4066822_1370732866_84d65d1962d3ebcdb1d84227fcdab11f_rle_crop_3873039365_0.png', 1370733434: '1751681067_1394453_1370732097_7898e59fd88e6c14036987598bfa7b3e_rle_crop_3873039389_0.png', 1370733433: '1751681067_1394453_1370732104_7b10911a215de601ec22dd2e68aa6611_rle_crop_3873039159_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/33fcc079ac42fe31da7cfc701171c786_63044660.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/00ab7aa01acfa9330199131a307d0913_17857199.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/d04c736ace12e7b23e8b294efe8fbf21_33360056.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/e01131e2d87c95d0dbe041c93d5cfd4a_87867114.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/d04c736ace12e7b23e8b294efe8fbf21_87563451.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/e01131e2d87c95d0dbe041c93d5cfd4a_96179450.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/14f564d843d1aa45add501ff5abe23fd_10811483.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/33fcc079ac42fe31da7cfc701171c786_61588253.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/14f564d843d1aa45add501ff5abe23fd_42636008.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/9c97bdc254871d9e59b0c26f71ae48bf_45569827.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/23a72f8b97713e344eeb7358af4adb9b_44930991.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/8d0fba51d18f3b7a79b791e8905b1b28_43458500.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/6f46e7704fe317f281276e5042e1d663_98203986.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/93cbb22327bfded86620225e9881a33f_38490452.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/74f246e9fb48304fe4f0c54daebc9841_38059537.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/5d2c162ec03aaec7f4ca28139224c54c_25210526.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7bb30bb6ac08f7d5e7d5531274fa1705_41622792.png change filename to text .imagette246355771751681701/ imagette246355771751681701/1751681606_1408556_1370733308_145e20ce6dceb0595782f41b150f3391_rle_crop_3873040762_0.png.png imagette246355771751681701/1751681648_4091352_1370733465_1ed52fcb97394af542632a3d666d04eb_rle_crop_3873040979_0.png.png imagette246355771751681701/1751681405_4078068_1370733266_c07dd0a08c25e7f141ae33470de84fe8_rle_crop_3873040662_0.png.png imagette246355771751681701/1751681405_4078068_1370733264_611e98049763de6391e514d076080915_rle_crop_3873040674_0.png.png imagette246355771751681701/1751681067_1394453_1370732097_7898e59fd88e6c14036987598bfa7b3e_rle_crop_3873039389_0.png.png imagette246355771751681701/1751681405_4078068_1370733295_815871e79d8bf08c77f750d6cd54ec0b_rle_crop_3873040560_0.png.png imagette246355771751681701/1751681606_1408556_1370733308_145e20ce6dceb0595782f41b150f3391_rle_crop_3873040764_0.png.png imagette246355771751681701/1751681405_4078068_1370733266_c07dd0a08c25e7f141ae33470de84fe8_rle_crop_3873040656_0.png.png imagette246355771751681701/1751681366_1398429_1370732338_bc0304c0bad571eeea411aa06e061b31_rle_crop_3873040021_0.png.png imagette246355771751681701/1751681405_4078068_1370733295_815871e79d8bf08c77f750d6cd54ec0b_rle_crop_3873040562_0.png.png imagette246355771751681701/1751681067_1394453_1370732104_7b10911a215de601ec22dd2e68aa6611_rle_crop_3873039159_0.png.png imagette246355771751681701/1751681405_4078068_1370733296_6d4d7378b731118083068ce44914fe2b_rle_crop_3873040036_0.png.png imagette246355771751681701/1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040582_0.png.png imagette246355771751681701/1751681167_4066822_1370732862_456bbe635b16f5280d092d17199ac005_rle_crop_3873039428_0.png.png imagette246355771751681701/1751681405_4078068_1370733264_611e98049763de6391e514d076080915_rle_crop_3873040668_0.png.png imagette246355771751681701/1751681067_1394453_1370732147_88eb7351125521a55b0df0cb0d218fbf_rle_crop_3873039025_0.png.png imagette246355771751681701/1751681405_4078068_1370733296_6d4d7378b731118083068ce44914fe2b_rle_crop_3873040034_0.png.png imagette246355771751681701/1751681167_4066822_1370732866_84d65d1962d3ebcdb1d84227fcdab11f_rle_crop_3873039365_0.png.png wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/b13f6c8219b2231185972c9b0fe42c14_7027633.png imagette246355771751681701 24635570 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=24635570 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733559: '1751681366_1398429_1370732433_7393e94e7cfad8bafc08095383aeef68_rle_crop_3873039902_0.png', 1370733623: '1751681648_4091352_1370733460_7011a98a113871416a3113f4fae5a5a5_rle_crop_3873040995_0.png', 1370733595: '1751681606_1408556_1370733301_287c684d3b071ad28c7043282e0e1ddf_rle_crop_3873040783_0.png', 1370733594: '1751681606_1408556_1370733304_6ca47faa162a31b2e450c5024b95591d_rle_crop_3873040778_0.png', 1370733592: '1751681405_4078068_1370733258_ef2fdb6c79fa2e8b40a4ac452daab904_rle_crop_3873040704_0.png', 1370733591: '1751681405_4078068_1370733259_9382b8a055cc7a843fe9be714b4d1f9d_rle_crop_3873040685_0.png', 1370733590: '1751681405_4078068_1370733264_611e98049763de6391e514d076080915_rle_crop_3873040675_0.png', 1370733589: '1751681405_4078068_1370733266_c07dd0a08c25e7f141ae33470de84fe8_rle_crop_3873040663_0.png', 1370733573: '1751681486_1401932_1370733123_8371f8b326501aab293d129f7b0db8bc_rle_crop_3873040613_0.png', 1370733572: '1751681486_1401932_1370733128_14e58972d06d90c60d1deb9415691470_rle_crop_3873040592_0.png', 1370733561: '1751681366_1398429_1370732403_f8428e6dc62d1cef3b653bde6c467b57_rle_crop_3873039999_0.png', 1370733560: '1751681366_1398429_1370732433_7393e94e7cfad8bafc08095383aeef68_rle_crop_3873039898_0.png', 1370733428: '1751681067_1394453_1370732147_88eb7351125521a55b0df0cb0d218fbf_rle_crop_3873039033_0.png', 1370733558: '1751681366_1398429_1370732464_a1d824267ad85a2792a5f8e9bdb6849a_rle_crop_3873039830_0.png', 1370733557: '1751681366_1398429_1370732500_63ca4ece915bd1bf3d10a0679d1e4167_rle_crop_3873039805_0.png', 1370733509: '1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039771_0.png', 1370733508: '1751681285_4073275_1370733055_aac81848f13ec42392c98ba7f61c263c_rle_crop_3873039414_0.png', 1370733507: '1751681285_4073275_1370733058_a9db88ac2aad1cc3abb4698eb34bcfb0_rle_crop_3873039385_0.png', 1370733471: '1751681167_4066822_1370732854_ea71526b4e64a7c3e2fa1f6546dd2a76_rle_crop_3873039819_0.png', 1370733470: '1751681167_4066822_1370732857_592d1bf45df0c341f4e00e0b351273dc_rle_crop_3873039793_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/fbd112bc9287cf7bc4d5b65528ab8cba_28739981.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/38890b1248b09031c1d8778af9abecf6_85864087.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/560015eaec58e63e7e670ec2c823dc96_49807573.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/5a7988185a11d44a755b9562f7096729_29918824.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/2a5a97fb13c9dedaca83e9c023da74c2_63176580.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/2a5a97fb13c9dedaca83e9c023da74c2_94806212.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/743bfb52cf2a3c78b9e11f13c4653226_96165672.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/743bfb52cf2a3c78b9e11f13c4653226_27517063.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/c47bc5c59222eeaf6a3ed12cfd67678a_90745451.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/2e5d67c83c7f573a3f35ebd9d6669a55_11440529.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/a817baa8cc77bddefa71e92dd1d5d03d_17380975.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/54b247bac64dea1dd99d653452c6059f_80615151.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/dced13314816f9b1398d7eb3d3178305_70419865.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/dcafb8a23e12f9da5b637efbe2cc0c83_51887231.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/e302fd3cd1b3a47e7e6b3b80a3640e0b_68940107.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/422d88ee7b359d4b3c50440fc326f9d4_99857238.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/8cff32ab29727670305f4ac74dc1f183_77156100.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7afb64864acc9ea71827697e61fd74ee_7470500.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/d5d2b0133ea66aaf167ad0379b9c15c2_50761629.png change filename to text .imagette246355701751681702/ imagette246355701751681702/1751681648_4091352_1370733460_7011a98a113871416a3113f4fae5a5a5_rle_crop_3873040995_0.png.png imagette246355701751681702/1751681366_1398429_1370732433_7393e94e7cfad8bafc08095383aeef68_rle_crop_3873039898_0.png.png imagette246355701751681702/1751681405_4078068_1370733258_ef2fdb6c79fa2e8b40a4ac452daab904_rle_crop_3873040704_0.png.png imagette246355701751681702/1751681366_1398429_1370732464_a1d824267ad85a2792a5f8e9bdb6849a_rle_crop_3873039830_0.png.png imagette246355701751681702/1751681606_1408556_1370733304_6ca47faa162a31b2e450c5024b95591d_rle_crop_3873040778_0.png.png imagette246355701751681702/1751681405_4078068_1370733266_c07dd0a08c25e7f141ae33470de84fe8_rle_crop_3873040663_0.png.png imagette246355701751681702/1751681285_4073275_1370733055_aac81848f13ec42392c98ba7f61c263c_rle_crop_3873039414_0.png.png imagette246355701751681702/1751681167_4066822_1370732857_592d1bf45df0c341f4e00e0b351273dc_rle_crop_3873039793_0.png.png imagette246355701751681702/1751681405_4078068_1370733259_9382b8a055cc7a843fe9be714b4d1f9d_rle_crop_3873040685_0.png.png imagette246355701751681702/1751681366_1398429_1370732433_7393e94e7cfad8bafc08095383aeef68_rle_crop_3873039902_0.png.png imagette246355701751681702/1751681285_4073275_1370733058_a9db88ac2aad1cc3abb4698eb34bcfb0_rle_crop_3873039385_0.png.png imagette246355701751681702/1751681366_1398429_1370732500_63ca4ece915bd1bf3d10a0679d1e4167_rle_crop_3873039805_0.png.png imagette246355701751681702/1751681167_4066822_1370732854_ea71526b4e64a7c3e2fa1f6546dd2a76_rle_crop_3873039819_0.png.png imagette246355701751681702/1751681486_1401932_1370733128_14e58972d06d90c60d1deb9415691470_rle_crop_3873040592_0.png.png imagette246355701751681702/1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039771_0.png.png imagette246355701751681702/1751681486_1401932_1370733123_8371f8b326501aab293d129f7b0db8bc_rle_crop_3873040613_0.png.png imagette246355701751681702/1751681067_1394453_1370732147_88eb7351125521a55b0df0cb0d218fbf_rle_crop_3873039033_0.png.png imagette246355701751681702/1751681366_1398429_1370732403_f8428e6dc62d1cef3b653bde6c467b57_rle_crop_3873039999_0.png.png imagette246355701751681702/1751681606_1408556_1370733301_287c684d3b071ad28c7043282e0e1ddf_rle_crop_3873040783_0.png.png imagette246355701751681702/1751681405_4078068_1370733264_611e98049763de6391e514d076080915_rle_crop_3873040675_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/f07c2ca491bfbff3487c96ad84b711e1_33176002.png imagette246355701751681702 24635572 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=24635572 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733480: '1751681167_4066822_1370732876_035b7424d94ba6bc630acbe6f1fdd1f4_rle_crop_3873039002_0.png', 1370733481: '1751681167_4066822_1370732857_592d1bf45df0c341f4e00e0b351273dc_rle_crop_3873039791_0.png', 1370733513: '1751681285_4073275_1370733055_aac81848f13ec42392c98ba7f61c263c_rle_crop_3873039416_0.png', 1370733515: '1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039772_0.png', 1370733604: '1751681606_1408556_1370733301_287c684d3b071ad28c7043282e0e1ddf_rle_crop_3873040784_0.png', 1370733615: '1751681405_4078068_1370733254_622eeada765720c5426327dd8c8e34e1_rle_crop_3873040720_0.png', 1370733616: '1751681405_4078068_1370733253_fdb60bc3c7bf6bbf7b70fc95110d1952_rle_crop_3873040750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/fe6621cd884a72f619a2ab5d3acffa07_24682508.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/4135407bbdb3586ffbb98ac57894b070_21139110.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/a609fc6e31f3695f00c8055bf6340383_23140756.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/5b34708043eca0c5e60043294529d4d5_97380700.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/23b0eb03b499e46a5b0c1075421a3cb2_93351165.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/0d47452d7d54c033652a7ba41a6a5a54_77535965.png change filename to text .imagette246355721751681703/ imagette246355721751681703/1751681167_4066822_1370732876_035b7424d94ba6bc630acbe6f1fdd1f4_rle_crop_3873039002_0.png.png imagette246355721751681703/1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039772_0.png.png imagette246355721751681703/1751681405_4078068_1370733254_622eeada765720c5426327dd8c8e34e1_rle_crop_3873040720_0.png.png imagette246355721751681703/1751681606_1408556_1370733301_287c684d3b071ad28c7043282e0e1ddf_rle_crop_3873040784_0.png.png imagette246355721751681703/1751681405_4078068_1370733253_fdb60bc3c7bf6bbf7b70fc95110d1952_rle_crop_3873040750_0.png.png imagette246355721751681703/1751681167_4066822_1370732857_592d1bf45df0c341f4e00e0b351273dc_rle_crop_3873039791_0.png.png imagette246355721751681703/1751681285_4073275_1370733055_aac81848f13ec42392c98ba7f61c263c_rle_crop_3873039416_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/0d47452d7d54c033652a7ba41a6a5a54_32082251.png imagette246355721751681703 24635576 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=24635576 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370733473: '1751681167_4066822_1370732866_84d65d1962d3ebcdb1d84227fcdab11f_rle_crop_3873039364_0.png', 1370733474: '1751681167_4066822_1370732854_ea71526b4e64a7c3e2fa1f6546dd2a76_rle_crop_3873039814_0.png', 1370733510: '1751681285_4073275_1370733058_a9db88ac2aad1cc3abb4698eb34bcfb0_rle_crop_3873039381_0.png', 1370733511: '1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039768_0.png', 1370733512: '1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039769_0.png', 1370733564: '1751681366_1398429_1370732433_7393e94e7cfad8bafc08095383aeef68_rle_crop_3873039895_0.png', 1370733565: '1751681366_1398429_1370732403_f8428e6dc62d1cef3b653bde6c467b57_rle_crop_3873039991_0.png', 1370733579: '1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040575_0.png', 1370733580: '1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040583_0.png', 1370733596: '1751681405_4078068_1370733287_a1d18c357abc08402c582e4cfbd1471c_rle_crop_3873040597_0.png', 1370733597: '1751681405_4078068_1370733286_1fe94318dd5e7f7b50ba20599ed862ca_rle_crop_3873040619_0.png', 1370733598: '1751681405_4078068_1370733280_69515a3323b0dc33ccaaed6dc69a8eea_rle_crop_3873040633_0.png', 1370733600: '1751681405_4078068_1370733278_28703707b5f6ba00f717bf94db7c2b54_rle_crop_3873040645_0.png', 1370733627: '1751681648_4091352_1370733460_7011a98a113871416a3113f4fae5a5a5_rle_crop_3873040998_0.png', 1370733628: '1751681648_4091352_1370733460_7011a98a113871416a3113f4fae5a5a5_rle_crop_3873041000_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/9a9caa31bc5dab4e6f972da7987600d1_78882191.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7b6c5a7637337d089e2f312efe9c7c4f_51363241.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/ffd54e3660285126f54fa07b38fd15be_84004396.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/d1ce0c2a301e080c4b74539141aa0649_92175972.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/e95d9e7cf6ef08aad165d0259640de9f_65496548.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/78096aa296b86cdc552d96624c49666e_55142712.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/c84f2cdbc218da3c159c65fb1684c71c_90102950.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/23edee21c642997ed4a5955040440a30_50016686.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/c82c1b33f41734ba56a9c42f4c12b6e0_28360910.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7e152f3e5847935a8477e972912afb62_70586164.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7e152f3e5847935a8477e972912afb62_59459362.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/e95056b257be92033657df5f85145a1e_52647336.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/e95056b257be92033657df5f85145a1e_28768502.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/2070b150f8fc6496f975c32146882195_25221381.png change filename to text .imagette246355761751681703/ imagette246355761751681703/1751681167_4066822_1370732854_ea71526b4e64a7c3e2fa1f6546dd2a76_rle_crop_3873039814_0.png.png imagette246355761751681703/1751681405_4078068_1370733280_69515a3323b0dc33ccaaed6dc69a8eea_rle_crop_3873040633_0.png.png imagette246355761751681703/1751681167_4066822_1370732866_84d65d1962d3ebcdb1d84227fcdab11f_rle_crop_3873039364_0.png.png imagette246355761751681703/1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039769_0.png.png imagette246355761751681703/1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040583_0.png.png imagette246355761751681703/1751681527_4082614_1370733352_d20cfc7b02ac8b0f8a562c5632952c86_rle_crop_3873040575_0.png.png imagette246355761751681703/1751681366_1398429_1370732403_f8428e6dc62d1cef3b653bde6c467b57_rle_crop_3873039991_0.png.png imagette246355761751681703/1751681648_4091352_1370733460_7011a98a113871416a3113f4fae5a5a5_rle_crop_3873041000_0.png.png imagette246355761751681703/1751681405_4078068_1370733286_1fe94318dd5e7f7b50ba20599ed862ca_rle_crop_3873040619_0.png.png imagette246355761751681703/1751681405_4078068_1370733278_28703707b5f6ba00f717bf94db7c2b54_rle_crop_3873040645_0.png.png imagette246355761751681703/1751681405_4078068_1370733287_a1d18c357abc08402c582e4cfbd1471c_rle_crop_3873040597_0.png.png imagette246355761751681703/1751681285_4073275_1370733058_a9db88ac2aad1cc3abb4698eb34bcfb0_rle_crop_3873039381_0.png.png imagette246355761751681703/1751681366_1398429_1370732433_7393e94e7cfad8bafc08095383aeef68_rle_crop_3873039895_0.png.png imagette246355761751681703/1751681648_4091352_1370733460_7011a98a113871416a3113f4fae5a5a5_rle_crop_3873040998_0.png.png imagette246355761751681703/1751681285_4073275_1370733052_f0c66932cdb4a7d25a5ff0d955a2ee78_rle_crop_3873039768_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/a5253ffaeb6e4590c2d28d5ab899e856_28826729.png imagette246355761751681703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24635559 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24635579,24635580,24635581,24635582,24635583,24635584,24635585,24635586,24635587,24635588,24635589,24635590?tags=autre_refus,kraft,plastique,Teint_Dans_La_Masse,flou,Carton_brun,environnement,metal,mal_croppe,Carton_gris,cartonnette,papier your option no_mail is active, we will not send the real mail to your client args[1370733571] : ('0.05861094035171613',) no score found for photo 1370733571 We are sending mail with results at report@fotonower.com args[1370733567] : ('0.05861094035171613',) no score found for photo 1370733567 We are sending mail with results at report@fotonower.com args[1370733556] : ('0.05861094035171613',) no score found for photo 1370733556 We are sending mail with results at report@fotonower.com args[1370733553] : ('0.05861094035171613',) no score found for photo 1370733553 We are sending mail with results at report@fotonower.com args[1370733550] : ('0.05861094035171613',) no score found for photo 1370733550 We are sending mail with results at report@fotonower.com args[1370733547] : ('0.05861094035171613',) no score found for photo 1370733547 We are sending mail with results at report@fotonower.com args[1370733505] : ('0.05861094035171613',) no score found for photo 1370733505 We are sending mail with results at report@fotonower.com args[1370733503] : ('0.05861094035171613',) no score found for photo 1370733503 We are sending mail with results at report@fotonower.com args[1370733500] : ('0.05861094035171613',) no score found for photo 1370733500 We are sending mail with results at report@fotonower.com args[1370733497] : ('0.05861094035171613',) no score found for photo 1370733497 We are sending mail with results at report@fotonower.com args[1370733494] : ('0.05861094035171613',) no score found for photo 1370733494 We are sending mail with results at report@fotonower.com args[1370733490] : ('0.05861094035171613',) no score found for photo 1370733490 We are sending mail with results at report@fotonower.com refus_total : 0.05861094035171613 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=24635559 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_P24635559_05-07-2025_04_15_00.pdf results_Auto_P24635559_05-07-2025_04_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24635559_05-07-2025_04_15_00.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','24635559','results_Auto_P24635559_05-07-2025_04_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24635559_05-07-2025_04_15_00.pdf','pdf','','0.27','0.05861094035171613') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24635559]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] map_info['map_portfolio_photo'] : {24635559: [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490, 1370733465, 1370733460, 1370733458, 1370733456, 1370733453, 1370733448, 1370733438, 1370733435, 1370733427, 1370733425, 1370733423, 1370733421, 1370733411, 1370733409, 1370733407, 1370733405, 1370733396, 1370733395, 1370733354, 1370733352, 1370733349, 1370733343, 1370733340, 1370733336, 1370733317, 1370733314, 1370733311, 1370733308, 1370733304, 1370733301, 1370733296, 1370733295, 1370733287, 1370733286, 1370733280, 1370733278, 1370733266, 1370733264, 1370733259, 1370733258, 1370733254, 1370733253, 1370733246, 1370733238, 1370733235, 1370733231, 1370733227, 1370733217, 1370733190, 1370733187, 1370733183, 1370733161, 1370733128, 1370733123, 1370733058, 1370733055, 1370733052, 1370733032, 1370733002, 1370732970, 1370732876, 1370732871, 1370732866, 1370732862, 1370732857, 1370732854, 1370732500, 1370732464, 1370732433, 1370732403, 1370732370, 1370732338, 1370732249, 1370732212, 1370732177, 1370732147, 1370732104, 1370732097]} final : False mtd_id 4302 list_pids : [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] 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, '3239908') ('4302', '24635559', '1370733571', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24635559', '1370733571', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908')] time used for this insertion : 0.016588211059570312 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.498685121536255 time spend to save output : 0.016820192337036133 total time spend for step 4 : 5.515505313873291 step5:split_time_score Sat Jul 5 04:15:05 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 : ['24635559'] 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 : [('24635559',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24635559) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370733547: {'path': 'temp/1751681699_3058220_1370733547_9575ad05af50bc5122829539d83c7430.jpg', 'extension': 'jpg'}, 1370733550: {'path': 'temp/1751681699_3058220_1370733550_0ce583cafe93e656e36d46f56cd12550.jpg', 'extension': 'jpg'}, 1370733553: {'path': 'temp/1751681699_3058220_1370733553_a3d74f486110149c6060e50e43d8bdbc.jpg', 'extension': 'jpg'}, 1370733556: {'path': 'temp/1751681699_3058220_1370733556_7be69505352951669fc670e810d2623b.jpg', 'extension': 'jpg'}, 1370733567: {'path': 'temp/1751681699_3058220_1370733567_2e3831b71736c8e1e63ff9d60a89fd17.jpg', 'extension': 'jpg'}, 1370733571: {'path': 'temp/1751681699_3058220_1370733571_5c73ed36d820b54031a3a7ff1c8854a9.jpg', 'extension': 'jpg'}, 1370733490: {'path': 'temp/1751681699_3058220_1370733490_432207b0187e127ca58de70e7f0f610f.jpg', 'extension': 'jpg'}, 1370733494: {'path': 'temp/1751681699_3058220_1370733494_6f98ac4cfe5bd69095897e6a152a3f2e.jpg', 'extension': 'jpg'}, 1370733497: {'path': 'temp/1751681699_3058220_1370733497_60c87951bb711ed0ab61656c01964ff1.jpg', 'extension': 'jpg'}, 1370733500: {'path': 'temp/1751681699_3058220_1370733500_bdde7a1b83db8e350a5927ae8f67f610.jpg', 'extension': 'jpg'}, 1370733503: {'path': 'temp/1751681699_3058220_1370733503_db9b658be63ffd6e22df7191a6004b61.jpg', 'extension': 'jpg'}, 1370733505: {'path': 'temp/1751681699_3058220_1370733505_a3029379f68b0bd7f15b870d6dfb354d.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 = 24635559; (('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 = 24635559 group by h (('04', 90),) 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=24635559 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 (24635559) 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 (24635559) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05072025 24635559 Nombre de photos uploadées : 90 / 23040 (0%) 05072025 24635559 Nombre de photos taguées (types de déchets): 0 / 90 (0%) 05072025 24635559 Nombre de photos taguées (volume) : 0 / 90 (0%) [{'photo_id': 1370732249, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/14e766cdc52213ccb95b534a16df86a8.jpg', 'username': None, 'uploaded_at': 1751680888, 'text': 'image_05072025_04_00_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370732212, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/7698604886bb59a9f76454386a2e4f56.jpg', 'username': None, 'uploaded_at': 1751680888, 'text': 'image_05072025_04_00_14_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370732177, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/274745d0f0896da7a802c84c2fd0810e.jpg', 'username': None, 'uploaded_at': 1751680888, 'text': 'image_05072025_04_00_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370732147, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/5/88eb7351125521a55b0df0cb0d218fbf.jpg', 'username': None, 'uploaded_at': 1751680888, 'text': 'image_05072025_04_00_33_009123m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.7642974853515625e-05 ?????????????????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004074573516845703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24635559, '2025-07-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1954480,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.030794620513916016 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= 1954480 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24628096, 'dashboard_result_id': 12170888, '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_P24628096_05-07-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24628125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24628129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24628133, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24628558, 'dashboard_result_id': 12170889, '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_P24628558_05-07-2025_00_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24628567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24628570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24628572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628573, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24628964, 'dashboard_result_id': 12170890, '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_P24628964_05-07-2025_00_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629002, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24629481, 'dashboard_result_id': 12170891, '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_P24629481_05-07-2025_01_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24629492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24629494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24629495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24629496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24629497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24629499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24629501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24629503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24629507, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24629958, 'dashboard_result_id': 12170892, '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_P24629958_05-07-2025_01_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24629986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24629987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24629989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24629990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24629992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24629994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24629995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24629996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24629997, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24630493, 'dashboard_result_id': 12170893, '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_P24630493_05-07-2025_01_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24630519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24630520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24630521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24630522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24630523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24630524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24630525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24630526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24630527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24630528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24630529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24630530, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24630878, 'dashboard_result_id': 12170894, '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_P24630878_05-07-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24630883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24630884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24630885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24630886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24630887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24630888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24630889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24630890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24630891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24630892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24630893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24630894, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24631244, 'dashboard_result_id': 12170895, '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_P24631244_05-07-2025_01_58_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24631250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24631251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24631252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24631253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24631254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24631255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24631256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24631257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24631258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24631259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24631260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24631261, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24634365, 'dashboard_result_id': 12170896, '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_P24634365_05-07-2025_03_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24634392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24634393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24634394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24634395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24634396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24634397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24634398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24634399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24634400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24634401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24634402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24634403, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24634825, 'dashboard_result_id': 12170897, '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_P24634825_05-07-2025_03_46_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24634852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24634853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24634854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24634855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24634856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24634857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24634858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24634859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24634860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24634861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24634862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24634863, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24635282, 'dashboard_result_id': 12170898, '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_P24635282_05-07-2025_04_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24635308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24635309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24635310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24635311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24635312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24635313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24635314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24635315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24635316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24635317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24635318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24635319, 'pht': 3726}}"}, {'dashboat_entry_day': 1954480, 'dashboard_run_id': 1962243, 'mtr_portfolio_id': 24635559, 'dashboard_result_id': 12170899, '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_P24635559_05-07-2025_04_13_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24635567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24635568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24635569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24635570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24635571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24635572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24635573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24635574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24635575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24635576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24635577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24635578, '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 = 24628096 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': 3239077, 'mtr_portfolio_id': 24628096, 'created_at': datetime.datetime(2025, 7, 5, 0, 17), 'result': '0.028348014558842824', 'result_long': None, 'result_double': None}] Qualite : 0.028348014558842824 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24628096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24628096_05-07-2025_00_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24628096 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_P24628096_05-07-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24628125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24628129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24628133, 'pht': 3726}}" where mtr_portfolio_id = 24628096 and dashboard_run_id = 1962243 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`=24628096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170888, 0.028348014558842824, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24628096_05-07-2025_00_17_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628122, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628123, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24628125, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628126, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628128, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24628129, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628130, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628131, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628132, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24628133, '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 = 24628558 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': 3239127, 'mtr_portfolio_id': 24628558, 'created_at': datetime.datetime(2025, 7, 5, 0, 32, 58), 'result': '0.05264005315793728', 'result_long': None, 'result_double': None}] Qualite : 0.05264005315793728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24628558 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24628558_05-07-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24628558 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_P24628558_05-07-2025_00_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24628567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24628570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24628572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628573, 'pht': 3726}}" where mtr_portfolio_id = 24628558 and dashboard_run_id = 1962243 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`=24628558 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170889, 0.05264005315793728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24628558_05-07-2025_00_32_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628562, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628564, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628566, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24628567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628568, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628569, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24628570, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628571, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24628572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628573, '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 = 24628964 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': 3239165, 'mtr_portfolio_id': 24628964, 'created_at': datetime.datetime(2025, 7, 5, 0, 46, 29), 'result': '0.038246375216630185', 'result_long': None, 'result_double': None}] Qualite : 0.038246375216630185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24628964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24628964_05-07-2025_00_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24628964 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_P24628964_05-07-2025_00_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629002, 'pht': 3726}}" where mtr_portfolio_id = 24628964 and dashboard_run_id = 1962243 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`=24628964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170890, 0.038246375216630185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24628964_05-07-2025_00_46_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24628991, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24628992, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24628993, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24628994, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24628995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24628996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24628997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24628998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24628999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629001, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629002, '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 = 24629481 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': 3239212, 'mtr_portfolio_id': 24629481, 'created_at': datetime.datetime(2025, 7, 5, 1, 2, 57), 'result': '0.03553554793306419', 'result_long': None, 'result_double': None}] Qualite : 0.03553554793306419 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24629481 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24629481_05-07-2025_01_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24629481 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_P24629481_05-07-2025_01_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24629492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24629494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24629495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24629496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24629497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24629499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24629501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24629503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24629507, 'pht': 3726}}" where mtr_portfolio_id = 24629481 and dashboard_run_id = 1962243 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`=24629481 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170891, 0.03553554793306419, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24629481_05-07-2025_01_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24629492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24629494, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24629495, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24629496, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24629497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24629499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24629501, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24629503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24629507, '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 = 24629958 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': 3239267, 'mtr_portfolio_id': 24629958, 'created_at': datetime.datetime(2025, 7, 5, 1, 17), 'result': '0.00233574526336904', 'result_long': None, 'result_double': None}] Qualite : 0.00233574526336904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24629958 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24629958_05-07-2025_01_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24629958 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_P24629958_05-07-2025_01_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24629986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24629987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24629989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24629990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24629992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24629994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24629995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24629996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24629997, 'pht': 3726}}" where mtr_portfolio_id = 24629958 and dashboard_run_id = 1962243 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`=24629958 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170892, 0.00233574526336904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24629958_05-07-2025_01_17_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24629986, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24629987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24629988, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24629989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24629990, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24629991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24629992, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24629993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24629994, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24629995, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24629996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24629997, '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 = 24630493 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': 3239315, 'mtr_portfolio_id': 24630493, 'created_at': datetime.datetime(2025, 7, 5, 1, 32, 58), 'result': '0.0002198232415477101', 'result_long': None, 'result_double': None}] Qualite : 0.0002198232415477101 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24630493 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24630493_05-07-2025_01_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24630493 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_P24630493_05-07-2025_01_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24630519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24630520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24630521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24630522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24630523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24630524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24630525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24630526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24630527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24630528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24630529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24630530, 'pht': 3726}}" where mtr_portfolio_id = 24630493 and dashboard_run_id = 1962243 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`=24630493 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170893, 0.0002198232415477101, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24630493_05-07-2025_01_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24630519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24630520, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24630521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24630522, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24630523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24630524, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24630525, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24630526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24630527, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24630528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24630529, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24630530, '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 = 24630878 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': 3239352, 'mtr_portfolio_id': 24630878, 'created_at': datetime.datetime(2025, 7, 5, 1, 46, 59), 'result': '0.0329284097339414', 'result_long': None, 'result_double': None}] Qualite : 0.0329284097339414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24630878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24630878_05-07-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24630878 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_P24630878_05-07-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24630883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24630884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24630885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24630886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24630887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24630888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24630889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24630890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24630891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24630892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24630893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24630894, 'pht': 3726}}" where mtr_portfolio_id = 24630878 and dashboard_run_id = 1962243 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`=24630878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170894, 0.0329284097339414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24630878_05-07-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24630883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24630884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24630885, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24630886, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24630887, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24630888, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24630889, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24630890, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24630891, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24630892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24630893, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24630894, '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 = 24631244 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': 3239414, 'mtr_portfolio_id': 24631244, 'created_at': datetime.datetime(2025, 7, 5, 2, 2, 58), 'result': '0.06415897310386183', 'result_long': None, 'result_double': None}] Qualite : 0.06415897310386183 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24631244 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24631244_05-07-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24631244 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_P24631244_05-07-2025_02_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24631250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24631251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24631252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24631253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24631254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24631255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24631256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24631257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24631258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24631259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24631260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24631261, 'pht': 3726}}" where mtr_portfolio_id = 24631244 and dashboard_run_id = 1962243 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`=24631244 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170895, 0.06415897310386183, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24631244_05-07-2025_02_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24631250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24631251, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24631252, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24631253, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24631254, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24631255, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24631256, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24631257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24631258, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24631259, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24631260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24631261, '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 = 24634365 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': 3239769, 'mtr_portfolio_id': 24634365, 'created_at': datetime.datetime(2025, 7, 5, 3, 33), 'result': '0.04308730718520027', 'result_long': None, 'result_double': None}] Qualite : 0.04308730718520027 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24634365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24634365_05-07-2025_03_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24634365 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_P24634365_05-07-2025_03_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24634392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24634393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24634394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24634395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24634396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24634397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24634398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24634399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24634400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24634401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24634402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24634403, 'pht': 3726}}" where mtr_portfolio_id = 24634365 and dashboard_run_id = 1962243 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`=24634365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170896, 0.04308730718520027, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24634365_05-07-2025_03_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24634392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24634393, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24634394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24634395, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24634396, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24634397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24634398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24634399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24634400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24634401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24634402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24634403, '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 = 24634825 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': 3239810, 'mtr_portfolio_id': 24634825, 'created_at': datetime.datetime(2025, 7, 5, 3, 46, 30), 'result': '0.039951323153445184', 'result_long': None, 'result_double': None}] Qualite : 0.039951323153445184 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24634825 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24634825_05-07-2025_03_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24634825 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_P24634825_05-07-2025_03_46_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24634852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24634853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24634854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24634855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24634856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24634857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24634858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24634859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24634860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24634861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24634862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24634863, 'pht': 3726}}" where mtr_portfolio_id = 24634825 and dashboard_run_id = 1962243 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`=24634825 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170897, 0.039951323153445184, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24634825_05-07-2025_03_46_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24634852, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24634853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24634854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24634855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24634856, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24634857, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24634858, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24634859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24634860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24634861, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24634862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24634863, '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 = 24635282 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': 3239852, 'mtr_portfolio_id': 24635282, 'created_at': datetime.datetime(2025, 7, 5, 4, 2, 57), 'result': '0.04499105368867429', 'result_long': None, 'result_double': None}] Qualite : 0.04499105368867429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24635282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24635282_05-07-2025_04_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24635282 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_P24635282_05-07-2025_04_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24635308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24635309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24635310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24635311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24635312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24635313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24635314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24635315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24635316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24635317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24635318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24635319, 'pht': 3726}}" where mtr_portfolio_id = 24635282 and dashboard_run_id = 1962243 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`=24635282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170898, 0.04499105368867429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24635282_05-07-2025_04_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24635308, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24635309, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24635310, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24635311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24635312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24635313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24635314, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24635315, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24635316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24635317, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24635318, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24635319, '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 = 24635559 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': 3239908, 'mtr_portfolio_id': 24635559, 'created_at': datetime.datetime(2025, 7, 5, 4, 14, 59), 'result': '0.05861094035171613', 'result_long': None, 'result_double': None}] Qualite : 0.05861094035171613 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24635559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24635559_05-07-2025_04_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24635559 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_P24635559_05-07-2025_04_15_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24635567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24635568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24635569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24635570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24635571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24635572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24635573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24635574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24635575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24635576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24635577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24635578, 'pht': 3726}}" where mtr_portfolio_id = 24635559 and dashboard_run_id = 1962243 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`=24635559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12170899, 0.05861094035171613, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24635559_05-07-2025_04_15_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24635567, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24635568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24635569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24635570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24635571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24635572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24635573, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24635574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24635575, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24635576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24635577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24635578, '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 (24628096,24628558,24628964,24629481,24629958,24630493,24630878,24631244,24634365,24634825,24635282,24635559) result : ((1370714051,), (1370714054,), (1370714057,), (1370714059,), (1370714061,), (1370714069,), (1370714071,), (1370714073,), (1370714076,), (1370714083,), (1370714084,), (1370714117,), (1370714126,), (1370714130,), (1370714134,), (1370714137,), (1370714139,), (1370714141,), (1370714143,), (1370714146,), (1370714155,), (1370714158,), (1370714162,), (1370714177,), (1370714178,), (1370714179,), (1370714181,), (1370714184,), (1370714187,), (1370714218,), (1370714229,), (1370714235,), (1370714238,), (1370714239,), (1370714240,), (1370714244,), (1370714246,), (1370714249,), (1370714257,), (1370714268,), (1370714277,), (1370714290,), (1370714294,), (1370714295,), (1370714296,), (1370714297,), (1370714304,), (1370714326,), (1370714327,), (1370714329,), (1370714330,), (1370714339,), (1370714340,), (1370714343,), (1370714344,), (1370714346,), (1370714348,), (1370714355,), (1370714357,), (1370714369,), (1370714372,), (1370714374,), (1370714376,), (1370714383,), (1370714398,), (1370714407,), (1370714411,), (1370714414,), (1370714415,), (1370714416,), (1370714417,), (1370714455,), (1370714459,), (1370714465,), (1370714468,), (1370714472,), (1370714476,), (1370714485,), (1370714486,), (1370714487,), (1370714488,), (1370714490,), (1370714498,), (1370714536,), (1370714539,), (1370714541,), (1370714544,), (1370714546,), (1370714549,), (1370714555,), (1370714558,), (1370714562,), (1370714564,), (1370714566,), (1370714570,), (1370714581,), (1370714586,), (1370714587,), (1370714594,), (1370714597,), (1370714600,), (1370714635,), (1370714639,), (1370714643,), (1370714646,), (1370714651,), (1370714653,), (1370714656,), (1370714659,), (1370714662,), (1370714671,), (1370714675,), (1370714683,), (1370714694,), (1370714696,), (1370714700,), (1370714702,), (1370714704,), (1370714706,), (1370714753,), (1370714756,), (1370714760,), (1370714769,), (1370714773,), (1370714775,), (1370714780,), (1370714784,), (1370714786,), (1370714788,), (1370714794,), (1370714800,), (1370714807,), (1370714810,), (1370714811,), (1370714812,), (1370714814,), (1370714817,), (1370714842,), (1370714843,), (1370714844,), (1370714845,), (1370714847,), (1370714849,), (1370714861,), (1370714864,), (1370714868,), (1370714870,), (1370714872,), (1370714879,), (1370714917,), (1370714919,), (1370714921,), (1370714924,), (1370714926,), (1370714930,), (1370714936,), (1370714938,), (1370714940,), (1370714941,), (1370714949,), (1370714954,), (1370714965,), (1370714969,), (1370714972,), (1370714973,), (1370714974,), (1370714975,), (1370715017,), (1370715018,), (1370715020,), (1370715025,), (1370715036,), (1370715040,), (1370715046,), (1370715047,), (1370715049,), (1370715052,), (1370715056,), (1370715060,), (1370715066,), (1370715072,), (1370715074,), (1370715077,), (1370715082,), (1370715084,), (1370715152,), (1370715153,), (1370715156,), (1370715157,), (1370715159,), (1370715160,), (1370715163,), (1370715164,), (1370715167,), (1370715168,), (1370715170,), (1370715171,), (1370715182,), (1370715183,), (1370715185,), (1370715189,), (1370715193,), (1370715196,), (1370715254,), (1370715256,), (1370715268,), (1370715301,), (1370715336,), (1370715370,), (1370715459,), (1370715493,), (1370715526,), (1370715558,), (1370715596,), (1370715642,), (1370715763,), (1370715797,), (1370715832,), (1370715862,), (1370715872,), (1370715873,), (1370716068,), (1370716069,), (1370716071,), (1370716076,), (1370716080,), (1370716083,), (1370716089,), (1370716090,), (1370716092,), (1370716094,), (1370716097,), (1370716100,), (1370716112,), (1370716125,), (1370716127,), (1370716130,), (1370716136,), (1370716141,), (1370716203,), (1370716204,), (1370716207,), (1370716210,), (1370716213,), (1370716217,), (1370716228,), (1370716229,), (1370716230,), (1370716234,), (1370716243,), (1370716249,), (1370716264,), (1370716268,), (1370716271,), (1370716273,), (1370716275,), (1370716277,), (1370716312,), (1370716313,), (1370716314,), (1370716315,), (1370716321,), (1370716322,), (1370716328,), (1370716329,), (1370716349,), (1370716358,), (1370716364,), (1370716365,), (1370716376,), (1370716377,), (1370716378,), (1370716380,), (1370716388,), (1370716392,), (1370716403,), (1370716405,), (1370716408,), (1370716410,), (1370716412,), (1370716415,), (1370716460,), (1370716463,), (1370716467,), (1370716470,), (1370716471,), (1370716472,), (1370716479,), (1370716485,), (1370716489,), (1370716493,), (1370716502,), (1370716505,), (1370716514,), (1370716519,), (1370716521,), (1370716523,), (1370716526,), (1370716529,), (1370716564,), (1370716565,), (1370716567,), (1370716568,), (1370716570,), (1370716571,), (1370716574,), (1370716575,), (1370716584,), (1370716585,), (1370716587,), (1370716588,), (1370716596,), (1370716598,), (1370716602,), (1370716610,), (1370716612,), (1370716614,), (1370716623,), (1370716625,), (1370716627,), (1370716629,), (1370716632,), (1370716634,), (1370716680,), (1370716684,), (1370716688,), (1370716693,), (1370716697,), (1370716699,), (1370716702,), (1370716704,), (1370716719,), (1370716723,), (1370716725,), (1370716734,), (1370716759,), (1370716762,), (1370716764,), (1370716766,), (1370716774,), (1370716778,), (1370716784,), (1370716788,), (1370716790,), (1370716791,), (1370716796,), (1370716798,), (1370716805,), (1370716806,), (1370716807,), (1370716808,), (1370716809,), (1370716810,), (1370716865,), (1370716866,), (1370716868,), (1370716870,), (1370716872,), (1370716873,), (1370716877,), (1370716882,), (1370716888,), (1370716889,), (1370716891,), (1370716892,), (1370716953,), (1370716954,), (1370716975,), (1370716978,), (1370716981,), (1370716985,), (1370717040,), (1370717043,), (1370717045,), (1370717070,), (1370717103,), (1370717135,), (1370718100,), (1370718169,), (1370718207,), (1370718253,), (1370718287,), (1370718305,), (1370718340,), (1370718375,), (1370718444,), (1370718506,), (1370718567,), (1370718702,), (1370718734,), (1370718789,), (1370718853,), (1370718911,), (1370718956,), (1370719127,), (1370719152,), (1370719154,), (1370719177,), (1370719198,), (1370719202,), (1370719271,), (1370719273,), (1370719275,), (1370719279,), (1370719284,), (1370719288,), (1370719296,), (1370719300,), (1370719302,), (1370719315,), (1370719317,), (1370719318,), (1370719329,), (1370719332,), (1370719349,), (1370719354,), (1370719357,), (1370719359,), (1370719365,), (1370719368,), (1370719370,), (1370719371,), (1370719373,), (1370719375,), (1370719400,), (1370719403,), (1370719406,), (1370719410,), (1370719416,), (1370719419,), (1370719423,), (1370719426,), (1370719428,), (1370719433,), (1370719436,), (1370719438,), (1370719441,), (1370719443,), (1370719445,), (1370719448,), (1370719451,), (1370719453,), (1370719472,), (1370719473,), (1370719474,), (1370719478,), (1370719481,), (1370719496,), (1370719505,), (1370719506,), (1370719508,), (1370719509,), (1370719511,), (1370719512,), (1370719519,), (1370719521,), (1370719523,), (1370719526,), (1370719528,), (1370719530,), (1370719536,), (1370719539,), (1370719544,), (1370719547,), (1370719549,), (1370719551,), (1370719572,), (1370719576,), (1370719580,), (1370719585,), (1370719622,), (1370719648,), (1370719655,), (1370719657,), (1370719659,), (1370719660,), (1370719663,), (1370719665,), (1370719684,), (1370719687,), (1370719690,), (1370719692,), (1370719695,), (1370719697,), (1370719699,), (1370719702,), (1370719705,), (1370719707,), (1370719709,), (1370719711,), (1370719716,), (1370719719,), (1370719722,), (1370719724,), (1370719726,), (1370719728,), (1370719780,), (1370719784,), (1370719787,), (1370719788,), (1370719789,), (1370719791,), (1370719795,), (1370719799,), (1370719801,), (1370719804,), (1370719808,), (1370719812,), (1370719820,), (1370719821,), (1370719822,), (1370719823,), (1370719825,), (1370719827,), (1370719837,), (1370719841,), (1370719846,), (1370719849,), (1370719854,), (1370719856,), (1370719911,), (1370719912,), (1370719913,), (1370719914,), (1370719916,), (1370719917,), (1370719918,), (1370719921,), (1370719923,), (1370719924,), (1370719927,), (1370719929,), (1370719935,), (1370719936,), (1370719937,), (1370719939,), (1370719941,), (1370719944,), (1370719949,), (1370719954,), (1370719957,), (1370719959,), (1370719961,), (1370719963,), (1370719981,), (1370719982,), (1370719984,), (1370719985,), (1370719987,), (1370719988,), (1370719990,), (1370719992,), (1370719995,), (1370719996,), (1370719998,), (1370719999,), (1370720003,), (1370720005,), (1370720007,), (1370720010,), (1370720014,), (1370720017,), (1370720021,), (1370720023,), (1370720025,), (1370720027,), (1370720030,), (1370720033,), (1370720060,), (1370720062,), (1370720064,), (1370720070,), (1370720072,), (1370720073,), (1370720079,), (1370720080,), (1370720082,), (1370720083,), (1370720102,), (1370720103,), (1370720107,), (1370720108,), (1370720111,), (1370720112,), (1370720114,), (1370720115,), (1370720124,), (1370720126,), (1370720129,), (1370720130,), (1370720132,), (1370720134,), (1370720145,), (1370720148,), (1370720150,), (1370720152,), (1370720154,), (1370720156,), (1370720190,), (1370720192,), (1370720196,), (1370720205,), (1370720207,), (1370720209,), (1370720228,), (1370720237,), (1370720239,), (1370720240,), (1370720252,), (1370720254,), (1370720275,), (1370720277,), (1370720280,), (1370720282,), (1370720284,), (1370720286,), (1370720305,), (1370720306,), (1370720308,), (1370720309,), (1370720311,), (1370720312,), (1370720315,), (1370720317,), (1370720319,), (1370720321,), (1370720322,), (1370720324,), (1370720335,), (1370720336,), (1370720338,), (1370720341,), (1370720344,), (1370720347,), (1370720364,), (1370720368,), (1370720370,), (1370720373,), (1370720376,), (1370720378,), (1370720408,), (1370720409,), (1370720412,), (1370720413,), (1370720417,), (1370720418,), (1370720422,), (1370720423,), (1370720425,), (1370720426,), (1370720428,), (1370720429,), (1370720437,), (1370720440,), (1370720441,), (1370720442,), (1370720444,), (1370720447,), (1370720479,), (1370720483,), (1370720502,), (1370720507,), (1370720509,), (1370720510,), (1370720622,), (1370720627,), (1370720633,), (1370720636,), (1370720640,), (1370720642,), (1370720738,), (1370720741,), (1370720744,), (1370720747,), (1370720756,), (1370720759,), (1370720772,), (1370720774,), (1370720775,), (1370720776,), (1370720783,), (1370720793,), (1370720836,), (1370720837,), (1370720839,), (1370720841,), (1370720843,), (1370720847,), (1370720849,), (1370720852,), (1370720856,), (1370720861,), (1370720866,), (1370720869,), (1370720872,), (1370720875,), (1370720877,), (1370720879,), (1370720883,), (1370720886,), (1370720917,), (1370720920,), (1370720923,), (1370720927,), (1370720929,), (1370720930,), (1370720936,), (1370720938,), (1370720942,), (1370720944,), (1370720946,), (1370720948,), (1370720955,), (1370720959,), (1370720960,), (1370720961,), (1370720962,), (1370720964,), (1370721005,), (1370721008,), (1370721011,), (1370721039,), (1370721044,), (1370721049,), (1370721055,), (1370721056,), (1370721058,), (1370721075,), (1370721088,), (1370721090,), (1370721104,), (1370721114,), (1370721117,), (1370721120,), (1370721122,), (1370721125,), (1370721153,), (1370721155,), (1370721158,), (1370721161,), (1370721164,), (1370721168,), (1370721180,), (1370721191,), (1370721203,), (1370721204,), (1370721205,), (1370721207,), (1370721214,), (1370721215,), (1370721216,), (1370721218,), (1370721220,), (1370721227,), (1370721278,), (1370721281,), (1370721283,), (1370721288,), (1370721289,), (1370721291,), (1370721299,), (1370721301,), (1370721303,), (1370721304,), (1370721306,), (1370721309,), (1370721315,), (1370721325,), (1370721327,), (1370721330,), (1370721340,), (1370721350,), (1370722048,), (1370722084,), (1370722145,), (1370722189,), (1370722244,), (1370722293,), (1370728828,), (1370728831,), (1370728835,), (1370728838,), (1370728841,), (1370728844,), (1370728849,), (1370728852,), (1370728855,), (1370728857,), (1370728861,), (1370728864,), (1370728909,), (1370728914,), (1370728916,), (1370728918,), (1370728920,), (1370728921,), (1370728934,), (1370728935,), (1370728937,), (1370728938,), (1370728940,), (1370728941,), (1370728943,), (1370728945,), (1370728948,), (1370728949,), (1370728953,), (1370728954,), (1370728962,), (1370728964,), (1370728967,), (1370728969,), (1370728971,), (1370728973,), (1370728981,), (1370728984,), (1370728985,), (1370728986,), (1370728988,), (1370728997,), (1370729093,), (1370729107,), (1370729116,), (1370729118,), (1370729121,), (1370729145,), (1370729159,), (1370729161,), (1370729163,), (1370729165,), (1370729204,), (1370729228,), (1370729244,), (1370729248,), (1370729252,), (1370729255,), (1370729266,), (1370729287,), (1370729293,), (1370729296,), (1370729297,), (1370729299,), (1370729302,), (1370729304,), (1370729342,), (1370729346,), (1370729349,), (1370729354,), (1370729359,), (1370729364,), (1370729369,), (1370729370,), (1370729372,), (1370729374,), (1370729377,), (1370729379,), (1370729395,), (1370729399,), (1370729401,), (1370729403,), (1370729405,), (1370729406,), (1370729498,), (1370729504,), (1370729529,), (1370729533,), (1370729559,), (1370729568,), (1370729579,), (1370729581,), (1370729594,), (1370729614,), (1370729617,), (1370729681,), (1370729698,), (1370729702,), (1370729704,), (1370729706,), (1370729708,), (1370729709,), (1370729780,), (1370729786,), (1370729788,), (1370729790,), (1370729792,), (1370729797,), (1370729803,), (1370729804,), (1370729805,), (1370729807,), (1370729811,), (1370729813,), (1370729827,), (1370729828,), (1370729829,), (1370729830,), (1370729831,), (1370729840,), (1370729876,), (1370729878,), (1370729887,), (1370729892,), (1370729895,), (1370729908,), (1370729918,), (1370729919,), (1370729921,), (1370729923,), (1370729924,), (1370729931,), (1370729947,), (1370729951,), (1370729954,), (1370729956,), (1370729958,), (1370729960,), (1370730001,), (1370730027,), (1370730032,), (1370730044,), (1370730051,), (1370730056,), (1370730059,), (1370730066,), (1370730069,), (1370730072,), (1370730077,), (1370730080,), (1370730091,), (1370730093,), (1370730095,), (1370730098,), (1370730102,), (1370730106,), (1370730149,), (1370730159,), (1370730164,), (1370730168,), (1370730172,), (1370730174,), (1370730182,), (1370730190,), (1370730215,), (1370730216,), (1370730221,), (1370730228,), (1370730238,), (1370730242,), (1370730245,), (1370730246,), (1370730247,), (1370730249,), (1370730276,), (1370730279,), (1370730285,), (1370730290,), (1370730293,), (1370730297,), (1370730300,), (1370730304,), (1370730307,), (1370730311,), (1370730319,), (1370730321,), (1370730330,), (1370730333,), (1370730336,), (1370730338,), (1370730340,), (1370730346,), (1370730371,), (1370730374,), (1370730376,), (1370730382,), (1370730385,), (1370730388,), (1370730394,), (1370730396,), (1370730398,), (1370730400,), (1370730405,), (1370730406,), (1370730408,), (1370730410,), (1370730412,), (1370730414,), (1370730416,), (1370730418,), (1370730455,), (1370730458,), (1370730460,), (1370730461,), (1370730463,), (1370730465,), (1370730470,), (1370730473,), (1370730476,), (1370730488,), (1370730499,), (1370730502,), (1370730510,), (1370730512,), (1370730515,), (1370730518,), (1370730522,), (1370730525,), (1370730542,), (1370730543,), (1370730545,), (1370730546,), (1370730549,), (1370730550,), (1370730554,), (1370730555,), (1370730559,), (1370730561,), (1370730564,), (1370730566,), (1370730578,), (1370730580,), (1370730582,), (1370730584,), (1370730586,), (1370730603,), (1370730616,), (1370730619,), (1370730621,), (1370730623,), (1370730626,), (1370730630,), (1370730657,), (1370730658,), (1370730659,), (1370730660,), (1370730661,), (1370730663,), (1370730671,), (1370730672,), (1370730675,), (1370730676,), (1370730680,), (1370730681,), (1370730688,), (1370730689,), (1370730696,), (1370730698,), (1370730701,), (1370730703,), (1370730712,), (1370730715,), (1370730718,), (1370730721,), (1370730724,), (1370730742,), (1370731729,), (1370731762,), (1370731770,), (1370731780,), (1370731819,), (1370731851,), (1370731973,), (1370732001,), (1370732031,), (1370732051,), (1370732078,), (1370732097,), (1370732104,), (1370732147,), (1370732177,), (1370732212,), (1370732249,), (1370732338,), (1370732370,), (1370732403,), (1370732433,), (1370732464,), (1370732500,), (1370732854,), (1370732857,), (1370732862,), (1370732866,), (1370732871,), (1370732876,), (1370732970,), (1370733002,), (1370733032,), (1370733052,), (1370733055,), (1370733058,), (1370733123,), (1370733128,), (1370733161,), (1370733183,), (1370733187,), (1370733190,), (1370733217,), (1370733227,), (1370733231,), (1370733235,), (1370733238,), (1370733246,), (1370733253,), (1370733254,), (1370733258,), (1370733259,), (1370733264,), (1370733266,), (1370733278,), (1370733280,), (1370733286,), (1370733287,), (1370733295,), (1370733296,), (1370733301,), (1370733304,), (1370733308,), (1370733311,), (1370733314,), (1370733317,), (1370733336,), (1370733340,), (1370733343,), (1370733349,), (1370733352,), (1370733354,), (1370733395,), (1370733396,), (1370733405,), (1370733407,), (1370733409,), (1370733411,), (1370733421,), (1370733423,), (1370733425,), (1370733427,), (1370733435,), (1370733438,), (1370733448,), (1370733453,), (1370733456,), (1370733458,), (1370733460,), (1370733465,), (1370733490,), (1370733494,), (1370733497,), (1370733500,), (1370733503,), (1370733505,), (1370733547,), (1370733550,), (1370733553,), (1370733556,), (1370733567,), (1370733571,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05072025': {'nb_upload': 90, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24635559]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] map_info['map_portfolio_photo'] : {24635559: [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490, 1370733465, 1370733460, 1370733458, 1370733456, 1370733453, 1370733448, 1370733438, 1370733435, 1370733427, 1370733425, 1370733423, 1370733421, 1370733411, 1370733409, 1370733407, 1370733405, 1370733396, 1370733395, 1370733354, 1370733352, 1370733349, 1370733343, 1370733340, 1370733336, 1370733317, 1370733314, 1370733311, 1370733308, 1370733304, 1370733301, 1370733296, 1370733295, 1370733287, 1370733286, 1370733280, 1370733278, 1370733266, 1370733264, 1370733259, 1370733258, 1370733254, 1370733253, 1370733246, 1370733238, 1370733235, 1370733231, 1370733227, 1370733217, 1370733190, 1370733187, 1370733183, 1370733161, 1370733128, 1370733123, 1370733058, 1370733055, 1370733052, 1370733032, 1370733002, 1370732970, 1370732876, 1370732871, 1370732866, 1370732862, 1370732857, 1370732854, 1370732500, 1370732464, 1370732433, 1370732403, 1370732370, 1370732338, 1370732249, 1370732212, 1370732177, 1370732147, 1370732104, 1370732097]} final : True mtd_id 4302 list_pids : [1370733571, 1370733567, 1370733556, 1370733553, 1370733550, 1370733547, 1370733505, 1370733503, 1370733500, 1370733497, 1370733494, 1370733490] Looping around the photos to save general results len do output : 1 /24635559Didn'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, '3239908') ('4302', '24635559', '1370733571', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908') ('4302', None, None, None, None, None, None, None, '3239908') ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24635559', 'None', None, None, None, None, '3239908'), ('4302', '24635559', '1370733571', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733567', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733556', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733553', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733550', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733547', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733505', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733503', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733500', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733497', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733494', None, None, None, None, None, '3239908'), ('4302', '24635559', '1370733490', None, None, None, None, None, '3239908')] time used for this insertion : 0.016286849975585938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9155426025390625 time spend to save output : 0.01651453971862793 total time spend for step 5 : 0.9320571422576904 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 (3239908) 2.22user 2.65system 0:10.90elapsed 44%CPU (0avgtext+0avgdata 161520maxresident)k 512inputs+16168outputs (22major+75041minor)pagefaults 0swaps