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 : 871399 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 (3235224) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3235224) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586610 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3235224'] with mtr_portfolio_ids : ['24586610'] and first list_photo_ids : [] new path : /proc/871399/ Name: python3 Umask: 0002 State: R (running) Tgid: 871399 Ngid: 0 Pid: 871399 PPid: 871398 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 871399 NSpid: 871399 NSpgid: 869422 NSsid: 869422 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98860 kB VmRSS: 98860 kB RssAnon: 59792 kB RssFile: 39068 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: 83 nonvoluntary_ctxt_switches: 148 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '871399', 'Ngid': '0', 'Pid': '871399', 'PPid': '871398', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '871399', 'NSpid': '871399', 'NSpgid': '869422', 'NSsid': '869422', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98860 kB', 'VmRSS': '98860 kB', 'RssAnon': '59792 kB', 'RssFile': '39068 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': '83', 'nonvoluntary_ctxt_switches': '148'} ('datou_batch_current', '871399', '1106868', '0', '1106868', '865620', '98860', b'', 'marlene', '3235224') 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 (24586610) 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 (3235224 ) ) 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 (24586610) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1370533017, 'portfolio_id': 24586610}, {'photo_id': 1370533012, 'portfolio_id': 24586610}, {'photo_id': 1370533009, 'portfolio_id': 24586610}, {'photo_id': 1370532998, 'portfolio_id': 24586610}, {'photo_id': 1370532990, 'portfolio_id': 24586610}, {'photo_id': 1370532984, 'portfolio_id': 24586610}, {'photo_id': 1370532912, 'portfolio_id': 24586610}, {'photo_id': 1370532894, 'portfolio_id': 24586610}, {'photo_id': 1370532829, 'portfolio_id': 24586610}, {'photo_id': 1370532796, 'portfolio_id': 24586610}, {'photo_id': 1370532773, 'portfolio_id': 24586610}, {'photo_id': 1370532741, 'portfolio_id': 24586610}, {'photo_id': 1370532583, 'portfolio_id': 24586610}, {'photo_id': 1370532563, 'portfolio_id': 24586610}, {'photo_id': 1370532550, 'portfolio_id': 24586610}, {'photo_id': 1370532546, 'portfolio_id': 24586610}, {'photo_id': 1370532503, 'portfolio_id': 24586610}, {'photo_id': 1370532473, 'portfolio_id': 24586610}, {'photo_id': 1370532449, 'portfolio_id': 24586610}, {'photo_id': 1370532437, 'portfolio_id': 24586610}, {'photo_id': 1370532421, 'portfolio_id': 24586610}, {'photo_id': 1370532407, 'portfolio_id': 24586610}, {'photo_id': 1370532399, 'portfolio_id': 24586610}, {'photo_id': 1370532273, 'portfolio_id': 24586610}, {'photo_id': 1370532219, 'portfolio_id': 24586610}, {'photo_id': 1370532212, 'portfolio_id': 24586610}, {'photo_id': 1370532197, 'portfolio_id': 24586610}, {'photo_id': 1370532166, 'portfolio_id': 24586610}, {'photo_id': 1370532139, 'portfolio_id': 24586610}, {'photo_id': 1370532110, 'portfolio_id': 24586610}, {'photo_id': 1370531927, 'portfolio_id': 24586610}, {'photo_id': 1370531877, 'portfolio_id': 24586610}, {'photo_id': 1370531838, 'portfolio_id': 24586610}, {'photo_id': 1370531828, 'portfolio_id': 24586610}, {'photo_id': 1370531823, 'portfolio_id': 24586610}, {'photo_id': 1370531801, 'portfolio_id': 24586610}, {'photo_id': 1370531500, 'portfolio_id': 24586610}, {'photo_id': 1370531492, 'portfolio_id': 24586610}, {'photo_id': 1370531457, 'portfolio_id': 24586610}, {'photo_id': 1370531422, 'portfolio_id': 24586610}, {'photo_id': 1370531390, 'portfolio_id': 24586610}, {'photo_id': 1370531339, 'portfolio_id': 24586610}, {'photo_id': 1370531122, 'portfolio_id': 24586610}, {'photo_id': 1370531059, 'portfolio_id': 24586610}, {'photo_id': 1370530950, 'portfolio_id': 24586610}, {'photo_id': 1370530869, 'portfolio_id': 24586610}, {'photo_id': 1370530779, 'portfolio_id': 24586610}, {'photo_id': 1370530684, 'portfolio_id': 24586610}, {'photo_id': 1370530178, 'portfolio_id': 24586610}, {'photo_id': 1370530172, 'portfolio_id': 24586610}, {'photo_id': 1370530112, 'portfolio_id': 24586610}, {'photo_id': 1370530095, 'portfolio_id': 24586610}, {'photo_id': 1370530022, 'portfolio_id': 24586610}, {'photo_id': 1370530019, 'portfolio_id': 24586610}, {'photo_id': 1370529948, 'portfolio_id': 24586610}, {'photo_id': 1370529943, 'portfolio_id': 24586610}, {'photo_id': 1370529853, 'portfolio_id': 24586610}, {'photo_id': 1370529849, 'portfolio_id': 24586610}] map_portfolio_id_photo_id: {24586610: [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741, 1370532583, 1370532563, 1370532550, 1370532546, 1370532503, 1370532473, 1370532449, 1370532437, 1370532421, 1370532407, 1370532399, 1370532273, 1370532219, 1370532212, 1370532197, 1370532166, 1370532139, 1370532110, 1370531927, 1370531877, 1370531838, 1370531828, 1370531823, 1370531801, 1370531500, 1370531492, 1370531457, 1370531422, 1370531390, 1370531339, 1370531122, 1370531059, 1370530950, 1370530869, 1370530779, 1370530684, 1370530178, 1370530172, 1370530112, 1370530095, 1370530022, 1370530019, 1370529948, 1370529943, 1370529853, 1370529849]} ##### 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.030242443084716797 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Jul 4 10:10:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24586610) 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 : 24586610 get user id for portfolio 24586610 get sub ptf for main ptf 24586610, type 3726 and hashtags ['Carton_brun', 'Carton_gris', 'cartonnette', 'papier', 'mal_croppe', 'environnement', 'kraft', 'Teint_Dans_La_Masse', 'flou', 'plastique', 'autre_refus', 'metal'] 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`=24586610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','environnement','kraft','Teint_Dans_La_Masse','flou','plastique','autre_refus','metal')) 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`=24586610 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','environnement','kraft','Teint_Dans_La_Masse','flou','plastique','autre_refus','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 24586610, 'sub_port_id': 24586699, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515010, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'mal_croppe': {'main_port_id': 24586610, 'sub_port_id': 24586700, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515011, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'papier': {'main_port_id': 24586610, 'sub_port_id': 24586701, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515012, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'environnement': {'main_port_id': 24586610, 'sub_port_id': 24586702, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515013, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'Carton_gris': {'main_port_id': 24586610, 'sub_port_id': 24586703, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515014, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'Carton_brun': {'main_port_id': 24586610, 'sub_port_id': 24586704, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515015, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'cartonnette': {'main_port_id': 24586610, 'sub_port_id': 24586705, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515016, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'flou': {'main_port_id': 24586610, 'sub_port_id': 24586706, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515017, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'plastique': {'main_port_id': 24586610, 'sub_port_id': 24586707, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515018, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 24586610, 'sub_port_id': 24586708, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515019, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'kraft': {'main_port_id': 24586610, 'sub_port_id': 24586709, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515020, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}, 'metal': {'main_port_id': 24586610, 'sub_port_id': 24586710, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515021, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24586699 , 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=24586610 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 (24586699) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586700 , 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=24586610 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 (24586700) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586701 , 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=24586610 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 (24586701) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586702 , 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=24586610 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 (24586702) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586703 , 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=24586610 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 (24586703) result : ((1370531987,), (1370531990,), (1370532657,), (1370532660,), (1370532663,), (1370532666,), (1370532967,), (1370532968,), (1370532969,), (1370532970,), (1370532971,), (1370533028,), (1370533029,), (1370533030,), (1370533031,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586704 , 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=24586610 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 (24586704) result : ((1370532032,), (1370532034,), (1370532036,), (1370532039,), (1370532043,), (1370532046,), (1370532049,), (1370532052,), (1370532684,), (1370532686,), (1370532688,), (1370532690,), (1370532692,), (1370532694,), (1370532972,), (1370532973,), (1370532975,), (1370532976,), (1370532977,), (1370532979,), (1370533033,), (1370533035,), (1370533037,), (1370533038,), (1370533039,), (1370533040,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586705 , 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=24586610 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 (24586705) result : ((1370532003,), (1370532005,), (1370532007,), (1370532010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586706 , 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=24586610 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 (24586706) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586707 , 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=24586610 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 (24586707) result : ((1370532067,), (1370532070,), (1370532700,), (1370533042,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586708 , 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=24586610 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 (24586708) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586709 , 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=24586610 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 (24586709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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 24586710 , 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=24586610 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 (24586710) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24586610) result : ((1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) 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 (1370531500) 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`=24586610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','environnement','kraft','Teint_Dans_La_Masse','flou','plastique','autre_refus','metal')) 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`=24586610 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Carton_gris','cartonnette','papier','mal_croppe','environnement','kraft','Teint_Dans_La_Masse','flou','plastique','autre_refus','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 24586610, 'sub_port_id': 24586712, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515022, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'mal_croppe': {'main_port_id': 24586610, 'sub_port_id': 24586713, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515023, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'papier': {'main_port_id': 24586610, 'sub_port_id': 24586714, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515024, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'environnement': {'main_port_id': 24586610, 'sub_port_id': 24586715, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515025, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'Carton_gris': {'main_port_id': 24586610, 'sub_port_id': 24586716, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515026, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'Carton_brun': {'main_port_id': 24586610, 'sub_port_id': 24586717, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515027, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'cartonnette': {'main_port_id': 24586610, 'sub_port_id': 24586718, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515028, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'flou': {'main_port_id': 24586610, 'sub_port_id': 24586719, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515029, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'plastique': {'main_port_id': 24586610, 'sub_port_id': 24586720, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515030, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24586610, 'sub_port_id': 24586721, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515031, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'kraft': {'main_port_id': 24586610, 'sub_port_id': 24586722, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515032, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 3, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}, 'metal': {'main_port_id': 24586610, 'sub_port_id': 24586723, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16515033, 'last_updated_at': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 4, 10, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 4, 10, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586712,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586699 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586700 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586714,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586701 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586702 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24586723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24586710 lien utilise dans velours : https://www.fotonower.com/velours/24586712,24586713,24586714,24586715,24586716,24586717,24586718,24586719,24586720,24586721,24586722,24586723?tags=autre_refus,mal_croppe,papier,environnement,Carton_gris,Carton_brun,cartonnette,flou,plastique,Teint_Dans_La_Masse,kraft,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24586610]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] map_info['map_portfolio_photo'] : {24586610: [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741, 1370532583, 1370532563, 1370532550, 1370532546, 1370532503, 1370532473, 1370532449, 1370532437, 1370532421, 1370532407, 1370532399, 1370532273, 1370532219, 1370532212, 1370532197, 1370532166, 1370532139, 1370532110, 1370531927, 1370531877, 1370531838, 1370531828, 1370531823, 1370531801, 1370531500, 1370531492, 1370531457, 1370531422, 1370531390, 1370531339, 1370531122, 1370531059, 1370530950, 1370530869, 1370530779, 1370530684, 1370530178, 1370530172, 1370530112, 1370530095, 1370530022, 1370530019, 1370529948, 1370529943, 1370529853, 1370529849]} final : False mtd_id 4302 list_pids : [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] Looping around the photos to save general results len do output : 1 /24586610. 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, '3235224') ('4302', '24586610', '1370533017', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224') 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, '24586610', "{'autre_refus': 24586699, 'mal_croppe': 24586700, 'papier': 24586701, 'environnement': 24586702, 'Carton_gris': 24586703, 'Carton_brun': 24586704, 'cartonnette': 24586705, 'flou': 24586706, 'plastique': 24586707, 'Teint_Dans_La_Masse': 24586708, 'kraft': 24586709, 'metal': 24586710}", None, None, None, None, '3235224'), ('4302', '24586610', '1370533017', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224')] time used for this insertion : 0.031154394149780273 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.199103832244873 time spend to save output : 0.03153419494628906 total time spend for step 1 : 1.230638027191162 step2:final Fri Jul 4 10:10:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24586610) 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 24586610 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1370530172,1370530178,1370530095,1370530112,1370530019,1370530022,1370529943,1370529948,1370529853,1370529849,1370531122,1370531059,1370530950,1370530869,1370530779,1370530684,1370531500,1370531492,1370531457,1370531422,1370531390,1370531339,1370531927,1370531877,1370531838,1370531828,1370531823,1370531801,1370532219,1370532212,1370532197,1370532166,1370532139,1370532110,1370532449,1370532437,1370532421,1370532407,1370532399,1370532273,1370532583,1370532563,1370532550,1370532546,1370532503,1370532473,1370532912,1370532894,1370532829,1370532796,1370532773,1370532741,1370533017,1370533012,1370533009,1370532998,1370532990,1370532984); 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([24586610]) Inside saveOutput : final : False verbose : True original output for save of step final : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} new output for save of step final : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] map_info['map_portfolio_photo'] : {24586610: [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741, 1370532583, 1370532563, 1370532550, 1370532546, 1370532503, 1370532473, 1370532449, 1370532437, 1370532421, 1370532407, 1370532399, 1370532273, 1370532219, 1370532212, 1370532197, 1370532166, 1370532139, 1370532110, 1370531927, 1370531877, 1370531838, 1370531828, 1370531823, 1370531801, 1370531500, 1370531492, 1370531457, 1370531422, 1370531390, 1370531339, 1370531122, 1370531059, 1370530950, 1370530869, 1370530779, 1370530684, 1370530178, 1370530172, 1370530112, 1370530095, 1370530022, 1370530019, 1370529948, 1370529943, 1370529853, 1370529849]} final : False mtd_id 4302 list_pids : [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] Looping around the photos to save general results len do output : 12 /1370533017.Didn't retrieve data . /1370533012.Didn't retrieve data . /1370533009.Didn't retrieve data . /1370532998.Didn't retrieve data . /1370532990.Didn't retrieve data . /1370532984.Didn't retrieve data . /1370532912.Didn't retrieve data . /1370532894.Didn't retrieve data . /1370532829.Didn't retrieve data . /1370532796.Didn't retrieve data . /1370532773.Didn't retrieve data . /1370532741.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, '3235224') ('4302', '24586610', '1370533017', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224') 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', '24586610', '1370533017', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370533012', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370533009', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532998', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532990', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532984', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532912', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532894', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532829', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532796', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532773', '0.014930351053146277', None, None, None, None, '3235224'), ('4302', '24586610', '1370532741', '0.014930351053146277', None, None, None, None, '3235224')] time used for this insertion : 0.031560659408569336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.184401273727417 time spend to save output : 0.03224897384643555 total time spend for step 2 : 0.21665024757385254 step3:velours_tree Fri Jul 4 10:10:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24586610: [{'autre_refus': 24586699, 'mal_croppe': 24586700, 'papier': 24586701, 'environnement': 24586702, 'Carton_gris': 24586703, 'Carton_brun': 24586704, 'cartonnette': 24586705, 'flou': 24586706, 'plastique': 24586707, 'Teint_Dans_La_Masse': 24586708, 'kraft': 24586709, 'metal': 24586710}]} input_args_next_step : {24586610: ()} output_args : {24586610: [{'autre_refus': 24586699, 'mal_croppe': 24586700, 'papier': 24586701, 'environnement': 24586702, 'Carton_gris': 24586703, 'Carton_brun': 24586704, 'cartonnette': 24586705, 'flou': 24586706, 'plastique': 24586707, 'Teint_Dans_La_Masse': 24586708, 'kraft': 24586709, 'metal': 24586710}]} args : 24586610 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': 24586699, 'mal_croppe': 24586700, 'papier': 24586701, 'environnement': 24586702, 'Carton_gris': 24586703, 'Carton_brun': 24586704, 'cartonnette': 24586705, 'flou': 24586706, 'plastique': 24586707, 'Teint_Dans_La_Masse': 24586708, 'kraft': 24586709, 'metal': 24586710},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24586610) 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([24586610]) 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.40911030769348145 time spend to save output : 0.00010704994201660156 total time spend for step 3 : 0.40921735763549805 step4:send_mail_cod Fri Jul 4 10:10: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 : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} input_args_next_step : {1370533017: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370533017 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370533012 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370533009 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532998 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532990 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532984 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532912 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532894 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532829 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532796 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532773 depend.output_id : 0 input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ()} output_args : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',)} args : 1370532741 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 : {24586610: [{'autre_refus': 24586699, 'mal_croppe': 24586700, 'papier': 24586701, 'environnement': 24586702, 'Carton_gris': 24586703, 'Carton_brun': 24586704, 'cartonnette': 24586705, 'flou': 24586706, 'plastique': 24586707, 'Teint_Dans_La_Masse': 24586708, 'kraft': 24586709, 'metal': 24586710}]} input_args_next_step : {1370533017: ('0.014930351053146277',), 1370533012: ('0.014930351053146277',), 1370533009: ('0.014930351053146277',), 1370532998: ('0.014930351053146277',), 1370532990: ('0.014930351053146277',), 1370532984: ('0.014930351053146277',), 1370532912: ('0.014930351053146277',), 1370532894: ('0.014930351053146277',), 1370532829: ('0.014930351053146277',), 1370532796: ('0.014930351053146277',), 1370532773: ('0.014930351053146277',), 1370532741: ('0.014930351053146277',), 24586610: ()} output_args : {24586610: [{'autre_refus': 24586699, 'mal_croppe': 24586700, 'papier': 24586701, 'environnement': 24586702, 'Carton_gris': 24586703, 'Carton_brun': 24586704, 'cartonnette': 24586705, 'flou': 24586706, 'plastique': 24586707, 'Teint_Dans_La_Masse': 24586708, 'kraft': 24586709, 'metal': 24586710}]} args : 24586610 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.014930351053146277',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24586610) 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 (1370533017,1370533012,1370533009,1370532998,1370532990,1370532984,1370532912,1370532894,1370532829,1370532796,1370532773,1370532741) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1370532741 begin to download photo : 1370532829 begin to download photo : 1370532984 begin to download photo : 1370533009 download finish for photo 1370532741 download finish for photo 1370533009 begin to download photo : 1370532773 begin to download photo : 1370533012 download finish for photo 1370532984 begin to download photo : 1370532990 download finish for photo 1370532829 begin to download photo : 1370532894 download finish for photo 1370533012 begin to download photo : 1370533017 download finish for photo 1370532990 begin to download photo : 1370532998 download finish for photo 1370532773 begin to download photo : 1370532796 download finish for photo 1370532894 begin to download photo : 1370532912 download finish for photo 1370532998 download finish for photo 1370532912 download finish for photo 1370532796 download finish for photo 1370533017 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette245866991751616659/ imagette245867001751616659/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24586610_04-07-2025_10_10_59.pdf 24586699 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=24586699 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245866991751616659 24586700 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=24586700 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245867001751616659 24586705 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=24586705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370532003: '1751616246_904932_1370530178_f92089ccfa5b6fc74bab10193a2ab5fc_rle_crop_3871703783_0.png', 1370532005: '1751616246_904932_1370530172_93c19902cff8cc6ad3e8f785349cb2e8_rle_crop_3871703795_0.png', 1370532007: '1751616246_904932_1370530112_f1706b2695370e6f82cd3d56ca1c721b_rle_crop_3871703806_0.png', 1370532010: '1751616246_904932_1370530095_caacc91bcabb8fac63a64696a03e7ffe_rle_crop_3871703819_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/c4162f1d782aaf285a83446c7a1ebd42_68420381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/c4162f1d782aaf285a83446c7a1ebd42_56439601.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e1504f71020c5ef503e706afa250155a_6947234.png change filename to text .imagette245867051751616659/ imagette245867051751616659/1751616246_904932_1370530095_caacc91bcabb8fac63a64696a03e7ffe_rle_crop_3871703819_0.png.png imagette245867051751616659/1751616246_904932_1370530178_f92089ccfa5b6fc74bab10193a2ab5fc_rle_crop_3871703783_0.png.png imagette245867051751616659/1751616246_904932_1370530112_f1706b2695370e6f82cd3d56ca1c721b_rle_crop_3871703806_0.png.png imagette245867051751616659/1751616246_904932_1370530172_93c19902cff8cc6ad3e8f785349cb2e8_rle_crop_3871703795_0.png.png imagette245867061751616660/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e1504f71020c5ef503e706afa250155a_60961781.png imagette245867051751616659 24586706 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=24586706 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245867061751616660 24586707 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=24586707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370532067: '1751616246_904932_1370530022_77d674a5ea08d7743488ddaa6242bfac_rle_crop_3871703890_0.png', 1370532070: '1751616246_904932_1370530019_e8b96725c97fae65702d4c5d91ca00f3_rle_crop_3871703902_0.png', 1370532700: '1751616445_3543572_1370531339_c1b3c7acf184c391acf059acc2bdc7dd_rle_crop_3871708806_0.png', 1370533042: '1751616565_3549233_1370531823_240794ba4b6f6cc65b25d6081a63801d_rle_crop_3871711008_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a4e5aa9e734c35a494ab1068ceef136c_5869672.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a4e5aa9e734c35a494ab1068ceef136c_58678525.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e009532ff59945b6f94bfa658d0871b0_21184442.png change filename to text .imagette245867071751616660/ imagette245867071751616660/1751616565_3549233_1370531823_240794ba4b6f6cc65b25d6081a63801d_rle_crop_3871711008_0.png.png imagette245867071751616660/1751616246_904932_1370530022_77d674a5ea08d7743488ddaa6242bfac_rle_crop_3871703890_0.png.png imagette245867071751616660/1751616246_904932_1370530019_e8b96725c97fae65702d4c5d91ca00f3_rle_crop_3871703902_0.png.png imagette245867071751616660/1751616445_3543572_1370531339_c1b3c7acf184c391acf059acc2bdc7dd_rle_crop_3871708806_0.png.png imagette245867091751616660/ imagette245867101751616660/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/d1963df3f8bbcb248541e8136a4867b9_71588440.png imagette245867071751616660 24586709 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=24586709 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245867091751616660 24586710 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=24586710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245867101751616660 24586703 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=24586703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370531987: '1751616246_904932_1370530178_f92089ccfa5b6fc74bab10193a2ab5fc_rle_crop_3871703782_0.png', 1370531990: '1751616246_904932_1370530172_93c19902cff8cc6ad3e8f785349cb2e8_rle_crop_3871703794_0.png', 1370532657: '1751616445_3543572_1370531492_9f7f0b6be0d5ddb2a82b27bf405550b0_rle_crop_3871708754_0.png', 1370532660: '1751616445_3543572_1370531457_815a8886ab0037cb9c2594ddddbe74cb_rle_crop_3871708764_0.png', 1370532663: '1751616445_3543572_1370531390_28addb448841d4cfca7910102b37d9bd_rle_crop_3871708790_0.png', 1370532666: '1751616445_3543572_1370531339_c1b3c7acf184c391acf059acc2bdc7dd_rle_crop_3871708804_0.png', 1370532967: '1751616507_3547124_1370532219_172d26c1ebe8649b505fc63f7386e6af_rle_crop_3871709866_0.png', 1370532968: '1751616507_3547124_1370532212_1a2eb2d53b7f052b808040dfe047dc82_rle_crop_3871709879_0.png', 1370532969: '1751616507_3547124_1370532197_0345074c49bf5caae4d8256c816a17d5_rle_crop_3871709887_0.png', 1370532970: '1751616507_3547124_1370532166_a8a661f5b21fb8023e2b0e9072480762_rle_crop_3871709932_0.png', 1370532971: '1751616507_3547124_1370532110_d08447e8aa971b4158c592f341265cd2_rle_crop_3871709954_0.png', 1370533028: '1751616565_3549233_1370531927_fe52b21bbf03da4b3594be84bf96fd72_rle_crop_3871710949_0.png', 1370533029: '1751616565_3549233_1370531877_c6a2fca880e089d34ed5a70749691230_rle_crop_3871710959_0.png', 1370533030: '1751616565_3549233_1370531823_240794ba4b6f6cc65b25d6081a63801d_rle_crop_3871711011_0.png', 1370533031: '1751616565_3549233_1370531801_3750e48d54e19dce616db1923af32e98_rle_crop_3871711020_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/fa927cf62c687118ac5e168565337179_82949519.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/fa927cf62c687118ac5e168565337179_46043860.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/b2ae5d3dae75a4c6bb6417729076b838_7272583.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/7e0cf1932f742e0622018e326c767f69_451243.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/5a895ab19842bc1937f0bea8ca332c71_89495922.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/655277d022971b89ce9faa717c629031_25621433.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/242df2c81bda88c79f773b40c3c3065b_95364213.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6f273f37e82f178140ea7bc90a38423c_80383383.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/e109bae86589ab595027209cce9dc1f1_18400070.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/1a4e518469ccc5c84c24f175a8828095_8592534.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f01d8599260182abfe8e11064fdfaafb_48700930.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/448123c25bd6379a25c7991447a4efef_51972770.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a86495de84ef4f378aa6caa9daebb8ae_25066164.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/50bcf642c0a799bd3b1fe9e169590e25_66051401.png change filename to text .imagette245867031751616660/ imagette245867031751616660/1751616445_3543572_1370531339_c1b3c7acf184c391acf059acc2bdc7dd_rle_crop_3871708804_0.png.png imagette245867031751616660/1751616565_3549233_1370531927_fe52b21bbf03da4b3594be84bf96fd72_rle_crop_3871710949_0.png.png imagette245867031751616660/1751616565_3549233_1370531877_c6a2fca880e089d34ed5a70749691230_rle_crop_3871710959_0.png.png imagette245867031751616660/1751616445_3543572_1370531457_815a8886ab0037cb9c2594ddddbe74cb_rle_crop_3871708764_0.png.png imagette245867031751616660/1751616445_3543572_1370531492_9f7f0b6be0d5ddb2a82b27bf405550b0_rle_crop_3871708754_0.png.png imagette245867031751616660/1751616246_904932_1370530172_93c19902cff8cc6ad3e8f785349cb2e8_rle_crop_3871703794_0.png.png imagette245867031751616660/1751616507_3547124_1370532219_172d26c1ebe8649b505fc63f7386e6af_rle_crop_3871709866_0.png.png imagette245867031751616660/1751616507_3547124_1370532110_d08447e8aa971b4158c592f341265cd2_rle_crop_3871709954_0.png.png imagette245867031751616660/1751616565_3549233_1370531801_3750e48d54e19dce616db1923af32e98_rle_crop_3871711020_0.png.png imagette245867031751616660/1751616445_3543572_1370531390_28addb448841d4cfca7910102b37d9bd_rle_crop_3871708790_0.png.png imagette245867031751616660/1751616565_3549233_1370531823_240794ba4b6f6cc65b25d6081a63801d_rle_crop_3871711011_0.png.png imagette245867031751616660/1751616507_3547124_1370532197_0345074c49bf5caae4d8256c816a17d5_rle_crop_3871709887_0.png.png imagette245867031751616660/1751616246_904932_1370530178_f92089ccfa5b6fc74bab10193a2ab5fc_rle_crop_3871703782_0.png.png imagette245867031751616660/1751616507_3547124_1370532166_a8a661f5b21fb8023e2b0e9072480762_rle_crop_3871709932_0.png.png imagette245867031751616660/1751616507_3547124_1370532212_1a2eb2d53b7f052b808040dfe047dc82_rle_crop_3871709879_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/acd09d6dfdec872b4689c0de02cca455_13840690.png imagette245867031751616660 24586704 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=24586704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1370532694: '1751616445_3543572_1370531339_c1b3c7acf184c391acf059acc2bdc7dd_rle_crop_3871708807_0.png', 1370533040: '1751616565_3549233_1370531801_3750e48d54e19dce616db1923af32e98_rle_crop_3871711021_0.png', 1370533039: '1751616565_3549233_1370531823_240794ba4b6f6cc65b25d6081a63801d_rle_crop_3871711010_0.png', 1370533038: '1751616565_3549233_1370531828_23cde5abf6035f8fdf51d042154845a4_rle_crop_3871711001_0.png', 1370533037: '1751616565_3549233_1370531838_609ee368abd6cf4142b1300014b1f59e_rle_crop_3871710970_0.png', 1370533035: '1751616565_3549233_1370531877_c6a2fca880e089d34ed5a70749691230_rle_crop_3871710960_0.png', 1370533033: '1751616565_3549233_1370531927_fe52b21bbf03da4b3594be84bf96fd72_rle_crop_3871710948_0.png', 1370532979: '1751616507_3547124_1370532110_d08447e8aa971b4158c592f341265cd2_rle_crop_3871709956_0.png', 1370532977: '1751616507_3547124_1370532139_e55ea22d89bf77a31eff9ca99c964fb9_rle_crop_3871709944_0.png', 1370532976: '1751616507_3547124_1370532166_a8a661f5b21fb8023e2b0e9072480762_rle_crop_3871709933_0.png', 1370532975: '1751616507_3547124_1370532197_0345074c49bf5caae4d8256c816a17d5_rle_crop_3871709890_0.png', 1370532973: '1751616507_3547124_1370532212_1a2eb2d53b7f052b808040dfe047dc82_rle_crop_3871709880_0.png', 1370532972: '1751616507_3547124_1370532219_172d26c1ebe8649b505fc63f7386e6af_rle_crop_3871709869_0.png', 1370532032: '1751616246_904932_1370530112_f1706b2695370e6f82cd3d56ca1c721b_rle_crop_3871703809_0.png', 1370532692: '1751616445_3543572_1370531390_28addb448841d4cfca7910102b37d9bd_rle_crop_3871708788_0.png', 1370532690: '1751616445_3543572_1370531422_ddceff8f3a518ba6857e57788c769fac_rle_crop_3871708774_0.png', 1370532688: '1751616445_3543572_1370531457_815a8886ab0037cb9c2594ddddbe74cb_rle_crop_3871708763_0.png', 1370532686: '1751616445_3543572_1370531492_9f7f0b6be0d5ddb2a82b27bf405550b0_rle_crop_3871708752_0.png', 1370532684: '1751616445_3543572_1370531500_69e78f4f4460344421bda74acbbb6637_rle_crop_3871708743_0.png', 1370532052: '1751616246_904932_1370529849_aaed332cc50761d222c13dd7ecaf4751_rle_crop_3871703947_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/abeb8fc6cc869af6e384bdbf646fe70a_28277999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/1b0d891741f0a454889d4bae86f5f9c2_73272742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/2933ddfe95bbcbf9c6d83fdc73e63462_95649968.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/87efa05e1ad13dcfc9487da1928f1a17_41327084.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/8861491d32bfd16388c77dc361a15960_85894905.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/a835b9a1111efe85223a65323130bf70_50891751.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/c443d8441bbecf03547ae07de6336682_16052012.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/2bceda6d48bbacc7ad6e7ff03c8c4fd5_4448675.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/6af4962f4c7e1e74c506551d9740b2bd_32533340.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/4268e86ead6a15181f52602a6214bb9a_30585914.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f21a0343c6ca9aa6cb6ac77642895bad_64924388.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/8f9c6ab29baedc863ce04840bdf3b18c_30874280.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/3e051839278a1c33818e7094474c06bd_70364053.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/066708af5bedf5eb62f57fd917d10067_9529056.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/151104e32cb2844fdf770462029f9ebb_29257459.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/d87e4c3f53b5e75ac387a756b096419f_58057953.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/2c771b592e460bb5c03bac217ba9dc36_35057773.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/aedb3eda69857e79b57e83f3694cd1a9_44533885.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/7c2c3e01098cfaa1400af060f868b9d0_51373421.png change filename to text .imagette245867041751616661/ imagette245867041751616661/1751616445_3543572_1370531492_9f7f0b6be0d5ddb2a82b27bf405550b0_rle_crop_3871708752_0.png.png imagette245867041751616661/1751616507_3547124_1370532166_a8a661f5b21fb8023e2b0e9072480762_rle_crop_3871709933_0.png.png imagette245867041751616661/1751616445_3543572_1370531422_ddceff8f3a518ba6857e57788c769fac_rle_crop_3871708774_0.png.png imagette245867041751616661/1751616507_3547124_1370532139_e55ea22d89bf77a31eff9ca99c964fb9_rle_crop_3871709944_0.png.png imagette245867041751616661/1751616246_904932_1370529849_aaed332cc50761d222c13dd7ecaf4751_rle_crop_3871703947_0.png.png imagette245867041751616661/1751616445_3543572_1370531390_28addb448841d4cfca7910102b37d9bd_rle_crop_3871708788_0.png.png imagette245867041751616661/1751616507_3547124_1370532219_172d26c1ebe8649b505fc63f7386e6af_rle_crop_3871709869_0.png.png imagette245867041751616661/1751616445_3543572_1370531339_c1b3c7acf184c391acf059acc2bdc7dd_rle_crop_3871708807_0.png.png imagette245867041751616661/1751616565_3549233_1370531838_609ee368abd6cf4142b1300014b1f59e_rle_crop_3871710970_0.png.png imagette245867041751616661/1751616565_3549233_1370531877_c6a2fca880e089d34ed5a70749691230_rle_crop_3871710960_0.png.png imagette245867041751616661/1751616246_904932_1370530112_f1706b2695370e6f82cd3d56ca1c721b_rle_crop_3871703809_0.png.png imagette245867041751616661/1751616565_3549233_1370531801_3750e48d54e19dce616db1923af32e98_rle_crop_3871711021_0.png.png imagette245867041751616661/1751616507_3547124_1370532212_1a2eb2d53b7f052b808040dfe047dc82_rle_crop_3871709880_0.png.png imagette245867041751616661/1751616507_3547124_1370532197_0345074c49bf5caae4d8256c816a17d5_rle_crop_3871709890_0.png.png imagette245867041751616661/1751616445_3543572_1370531457_815a8886ab0037cb9c2594ddddbe74cb_rle_crop_3871708763_0.png.png imagette245867041751616661/1751616565_3549233_1370531927_fe52b21bbf03da4b3594be84bf96fd72_rle_crop_3871710948_0.png.png imagette245867041751616661/1751616565_3549233_1370531823_240794ba4b6f6cc65b25d6081a63801d_rle_crop_3871711010_0.png.png imagette245867041751616661/1751616565_3549233_1370531828_23cde5abf6035f8fdf51d042154845a4_rle_crop_3871711001_0.png.png imagette245867041751616661/1751616445_3543572_1370531500_69e78f4f4460344421bda74acbbb6637_rle_crop_3871708743_0.png.png imagette245867041751616661/1751616507_3547124_1370532110_d08447e8aa971b4158c592f341265cd2_rle_crop_3871709956_0.png.png imagette245867081751616663/ wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/df8368bd5b8fd776e7c3ad120bf01aa7_28069759.png imagette245867041751616661 24586708 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=24586708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette245867081751616663 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24586610 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24586712,24586713,24586714,24586715,24586716,24586717,24586718,24586719,24586720,24586721,24586722,24586723?tags=autre_refus,mal_croppe,papier,environnement,Carton_gris,Carton_brun,cartonnette,flou,plastique,Teint_Dans_La_Masse,kraft,metal your option no_mail is active, we will not send the real mail to your client args[1370533017] : ('0.014930351053146277',) no score found for photo 1370533017 We are sending mail with results at report@fotonower.com args[1370533012] : ('0.014930351053146277',) no score found for photo 1370533012 We are sending mail with results at report@fotonower.com args[1370533009] : ('0.014930351053146277',) no score found for photo 1370533009 We are sending mail with results at report@fotonower.com args[1370532998] : ('0.014930351053146277',) no score found for photo 1370532998 We are sending mail with results at report@fotonower.com args[1370532990] : ('0.014930351053146277',) no score found for photo 1370532990 We are sending mail with results at report@fotonower.com args[1370532984] : ('0.014930351053146277',) no score found for photo 1370532984 We are sending mail with results at report@fotonower.com args[1370532912] : ('0.014930351053146277',) no score found for photo 1370532912 We are sending mail with results at report@fotonower.com args[1370532894] : ('0.014930351053146277',) no score found for photo 1370532894 We are sending mail with results at report@fotonower.com args[1370532829] : ('0.014930351053146277',) no score found for photo 1370532829 We are sending mail with results at report@fotonower.com args[1370532796] : ('0.014930351053146277',) no score found for photo 1370532796 We are sending mail with results at report@fotonower.com args[1370532773] : ('0.014930351053146277',) no score found for photo 1370532773 We are sending mail with results at report@fotonower.com args[1370532741] : ('0.014930351053146277',) no score found for photo 1370532741 We are sending mail with results at report@fotonower.com refus_total : 0.014930351053146277 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=24586610 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_P24586610_04-07-2025_10_10_59.pdf results_Auto_P24586610_04-07-2025_10_10_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586610_04-07-2025_10_10_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24586610','results_Auto_P24586610_04-07-2025_10_10_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586610_04-07-2025_10_10_59.pdf','pdf','','0.19','0.014930351053146277') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24586610]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] map_info['map_portfolio_photo'] : {24586610: [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741, 1370532583, 1370532563, 1370532550, 1370532546, 1370532503, 1370532473, 1370532449, 1370532437, 1370532421, 1370532407, 1370532399, 1370532273, 1370532219, 1370532212, 1370532197, 1370532166, 1370532139, 1370532110, 1370531927, 1370531877, 1370531838, 1370531828, 1370531823, 1370531801, 1370531500, 1370531492, 1370531457, 1370531422, 1370531390, 1370531339, 1370531122, 1370531059, 1370530950, 1370530869, 1370530779, 1370530684, 1370530178, 1370530172, 1370530112, 1370530095, 1370530022, 1370530019, 1370529948, 1370529943, 1370529853, 1370529849]} final : False mtd_id 4302 list_pids : [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] 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, '3235224') ('4302', '24586610', '1370533017', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224') 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', '24586610', '1370533017', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224')] time used for this insertion : 0.05749225616455078 save_final save missing photos in datou_result : time spend for datou_step_exec : 10.550812244415283 time spend to save output : 0.05782890319824219 total time spend for step 4 : 10.608641147613525 step5:split_time_score Fri Jul 4 10:11:09 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24586610'] 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 : [('24586610',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24586610) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1370532984: {'path': 'temp/1751616659_871399_1370532984_613aa54ea013b1ce9d08af3fda377c02.jpg', 'extension': 'jpg'}, 1370532990: {'path': 'temp/1751616659_871399_1370532990_dd2e235bd10c0bc54ba4f71dd1f8fbd5.jpg', 'extension': 'jpg'}, 1370532998: {'path': 'temp/1751616659_871399_1370532998_88b71f22b688b90d7090bbfd6a47ea38.jpg', 'extension': 'jpg'}, 1370532829: {'path': 'temp/1751616659_871399_1370532829_dad317c3f25a611a337440f70e2cc9e6.jpg', 'extension': 'jpg'}, 1370532894: {'path': 'temp/1751616659_871399_1370532894_fc7bd7d0354f57ebabb9e0671387fc4a.jpg', 'extension': 'jpg'}, 1370532912: {'path': 'temp/1751616659_871399_1370532912_29b90f24aad65618aaa23ca482c87e84.jpg', 'extension': 'jpg'}, 1370532741: {'path': 'temp/1751616659_871399_1370532741_e2eb49684a9e829e55975552965e9533.jpg', 'extension': 'jpg'}, 1370532773: {'path': 'temp/1751616659_871399_1370532773_d71897c41069a48e76a71f07841ee398.jpg', 'extension': 'jpg'}, 1370532796: {'path': 'temp/1751616659_871399_1370532796_bd009832e75023549e375be844cadb0d.jpg', 'extension': 'jpg'}, 1370533009: {'path': 'temp/1751616659_871399_1370533009_ae0b19475149f372e3d7e9f04305cb36.jpg', 'extension': 'jpg'}, 1370533012: {'path': 'temp/1751616659_871399_1370533012_14ecb311c9b0cece3cea8093b6ad4ddb.jpg', 'extension': 'jpg'}, 1370533017: {'path': 'temp/1751616659_871399_1370533017_888bcce0ffc3817d0d919c28c788205b.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 = 24586610; (('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 = 24586610 group by h (('10', 58),) 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=24586610 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 (24586610) 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 (24586610) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04072025 24586610 Nombre de photos uploadées : 58 / 23040 (0%) 04072025 24586610 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 04072025 24586610 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1370530172, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/93c19902cff8cc6ad3e8f785349cb2e8.jpg', 'username': None, 'uploaded_at': 1751616092, 'text': 'image_04072025_10_00_14_010224m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370530178, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f92089ccfa5b6fc74bab10193a2ab5fc.jpg', 'username': None, 'uploaded_at': 1751616092, 'text': 'image_04072025_10_00_14_010224m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370530095, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/caacc91bcabb8fac63a64696a03e7ffe.jpg', 'username': None, 'uploaded_at': 1751616092, 'text': 'image_04072025_10_00_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1370530112, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/4/f1706b2695370e6f82cd3d56ca1c721b.jpg', 'username': None, 'uploaded_at': 1751616092, 'text': 'image_04072025_10_00_24_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.7220458984375e-06 elapsed_time : order_list_meta_photo_and_scores 1.9073486328125e-05 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003054380416870117 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24586610, '2025-07-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1951450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.06031394004821777 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= 1951450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24586317, 'dashboard_result_id': 12116138, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24581990, 'dashboard_result_id': 12116139, '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_P24581990_04-07-2025_09_09_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582060, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24580137, 'dashboard_result_id': 12116140, '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_P24580137_04-07-2025_08_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24580142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580153, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24580345, 'dashboard_result_id': 12116141, '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_P24580345_04-07-2025_08_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24580417, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24581606, 'dashboard_result_id': 12116142, '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_P24581606_04-07-2025_09_06_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24581648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24581649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24581650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24581651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24581652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24581653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24581654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24581655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24581656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24581657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24581658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24581659, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24582937, 'dashboard_result_id': 12116143, '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_P24582937_04-07-2025_09_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582984, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24583904, 'dashboard_result_id': 12116144, '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_P24583904_04-07-2025_09_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24583907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24583908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24583909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24583910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24583911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24583912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24583913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24583914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24583915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24583916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24583917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24583918, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24584826, 'dashboard_result_id': 12116145, '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_P24584826_04-07-2025_09_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24584898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24584899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24584900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24584901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24584902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24584903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24584904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24584905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24584906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24584907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24584908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24584909, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24585822, 'dashboard_result_id': 12116146, '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_P24585822_04-07-2025_10_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24585845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24585846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24585847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24585848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24585849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24585850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24585851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24585852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24585853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24585854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24585855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24585856, 'pht': 3726}}"}, {'dashboat_entry_day': 1951450, 'dashboard_run_id': 1959199, 'mtr_portfolio_id': 24586610, 'dashboard_result_id': 12116147, '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_P24586610_04-07-2025_10_09_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586710, '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 = 24586317 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24586317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24586317 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24586317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24586317 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24586317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586317_04-07-2025_10_01_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24586317 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_P24586317_04-07-2025_10_01_04.pdf'}" where mtr_portfolio_id = 24586317 and dashboard_run_id = 1959199 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 = 24581990 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 24581990 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 24581990 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24581990 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24581990 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24581990 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24581990_04-07-2025_10_00_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24581990 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_P24581990_04-07-2025_10_00_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582049, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582050, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582052, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582054, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582056, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582060, 'pht': 3726}}" where mtr_portfolio_id = 24581990 and dashboard_run_id = 1959199 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 = 24580137 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': 3234437, 'mtr_portfolio_id': 24580137, 'created_at': datetime.datetime(2025, 7, 4, 8, 50, 58), 'result': '0.05196932696448502', 'result_long': None, 'result_double': None}] Qualite : 0.05196932696448502 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24580137 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580137_04-07-2025_08_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24580137 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_P24580137_04-07-2025_08_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24580142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580153, 'pht': 3726}}" where mtr_portfolio_id = 24580137 and dashboard_run_id = 1959199 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`=24580137 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116140, 0.05196932696448502, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580137_04-07-2025_08_50_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24580142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580147, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580150, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580153, '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 = 24580345 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': 3234502, 'mtr_portfolio_id': 24580345, 'created_at': datetime.datetime(2025, 7, 4, 8, 46, 56), 'result': '0.03849710588211739', 'result_long': None, 'result_double': None}] Qualite : 0.03849710588211739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24580345 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580345_04-07-2025_08_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24580345 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_P24580345_04-07-2025_08_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24580417, 'pht': 3726}}" where mtr_portfolio_id = 24580345 and dashboard_run_id = 1959199 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`=24580345 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116141, 0.03849710588211739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24580345_04-07-2025_08_46_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24580406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24580407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24580408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24580409, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24580410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24580411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24580412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24580413, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24580414, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24580415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24580416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24580417, '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 = 24581606 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': 3234711, 'mtr_portfolio_id': 24581606, 'created_at': datetime.datetime(2025, 7, 4, 9, 6, 59), 'result': '0.048503315117755456', 'result_long': None, 'result_double': None}] Qualite : 0.048503315117755456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24581606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24581606_04-07-2025_09_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24581606 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_P24581606_04-07-2025_09_06_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24581648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24581649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24581650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24581651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24581652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24581653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24581654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24581655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24581656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24581657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24581658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24581659, 'pht': 3726}}" where mtr_portfolio_id = 24581606 and dashboard_run_id = 1959199 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`=24581606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116142, 0.048503315117755456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24581606_04-07-2025_09_06_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24581648, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24581649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24581650, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24581651, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24581652, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24581653, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24581654, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24581655, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24581656, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24581657, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24581658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24581659, '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 = 24582937 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': 3234843, 'mtr_portfolio_id': 24582937, 'created_at': datetime.datetime(2025, 7, 4, 9, 19, 27), 'result': '0.1140078252282661', 'result_long': None, 'result_double': None}] Qualite : 0.1140078252282661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24582937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24582937_04-07-2025_09_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24582937 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_P24582937_04-07-2025_09_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582984, 'pht': 3726}}" where mtr_portfolio_id = 24582937 and dashboard_run_id = 1959199 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`=24582937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116143, 0.1140078252282661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24582937_04-07-2025_09_19_28.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24582973, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24582974, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24582975, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24582976, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24582977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24582978, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24582979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24582980, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24582981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24582982, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24582983, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24582984, '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 = 24583904 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': 3234941, 'mtr_portfolio_id': 24583904, 'created_at': datetime.datetime(2025, 7, 4, 9, 33), 'result': '0.11391962360166942', 'result_long': None, 'result_double': None}] Qualite : 0.11391962360166942 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24583904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24583904_04-07-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24583904 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_P24583904_04-07-2025_09_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24583907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24583908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24583909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24583910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24583911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24583912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24583913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24583914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24583915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24583916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24583917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24583918, 'pht': 3726}}" where mtr_portfolio_id = 24583904 and dashboard_run_id = 1959200 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`=24583904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116144, 0.11391962360166942, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24583904_04-07-2025_09_33_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24583907, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24583908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24583909, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24583910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24583911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24583912, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24583913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24583914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24583915, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24583916, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24583917, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24583918, '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 = 24584826 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': 3235009, 'mtr_portfolio_id': 24584826, 'created_at': datetime.datetime(2025, 7, 4, 9, 47, 1), 'result': '0.0564031836371381', 'result_long': None, 'result_double': None}] Qualite : 0.0564031836371381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24584826 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24584826_04-07-2025_09_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24584826 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_P24584826_04-07-2025_09_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24584898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24584899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24584900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24584901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24584902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24584903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24584904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24584905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24584906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24584907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24584908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24584909, 'pht': 3726}}" where mtr_portfolio_id = 24584826 and dashboard_run_id = 1959200 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`=24584826 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116145, 0.0564031836371381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24584826_04-07-2025_09_47_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24584898, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24584899, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24584900, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24584901, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24584902, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24584903, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24584904, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24584905, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24584906, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24584907, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24584908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24584909, '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 = 24585822 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': 3235114, 'mtr_portfolio_id': 24585822, 'created_at': datetime.datetime(2025, 7, 4, 10, 2, 57), 'result': '0.03770389413787596', 'result_long': None, 'result_double': None}] Qualite : 0.03770389413787596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24585822 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24585822_04-07-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24585822 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_P24585822_04-07-2025_10_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24585845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24585846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24585847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24585848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24585849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24585850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24585851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24585852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24585853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24585854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24585855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24585856, 'pht': 3726}}" where mtr_portfolio_id = 24585822 and dashboard_run_id = 1959200 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`=24585822 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116146, 0.03770389413787596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24585822_04-07-2025_10_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24585845, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24585846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24585847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24585848, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24585849, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24585850, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24585851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24585852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24585853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24585854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24585855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24585856, '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 = 24586610 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': 3235224, 'mtr_portfolio_id': 24586610, 'created_at': datetime.datetime(2025, 7, 4, 10, 10, 58), 'result': '0.014930351053146277', 'result_long': None, 'result_double': None}] Qualite : 0.014930351053146277 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24586610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586610_04-07-2025_10_10_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24586610 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_P24586610_04-07-2025_10_10_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586710, 'pht': 3726}}" where mtr_portfolio_id = 24586610 and dashboard_run_id = 1959200 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`=24586610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12116147, 0.014930351053146277, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24586610_04-07-2025_10_10_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24586699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24586700, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24586701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24586702, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24586703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24586704, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24586705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24586706, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24586707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24586708, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24586709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24586710, '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 (24586317,24581990,24580137,24580345,24581606,24582937,24583904,24584826,24585822,24586610) result : ((1370494762,), (1370494763,), (1370494767,), (1370494773,), (1370494775,), (1370494780,), (1370494791,), (1370494794,), (1370494800,), (1370494803,), (1370494811,), (1370494814,), (1370494829,), (1370494832,), (1370494836,), (1370494840,), (1370494844,), (1370494848,), (1370494863,), (1370494865,), (1370494868,), (1370494870,), (1370494872,), (1370494875,), (1370494880,), (1370494881,), (1370494883,), (1370494885,), (1370494886,), (1370494887,), (1370494901,), (1370494911,), (1370494917,), (1370494920,), (1370494924,), (1370494928,), (1370494948,), (1370494951,), (1370494953,), (1370494956,), (1370494963,), (1370494966,), (1370494978,), (1370494982,), (1370494988,), (1370494990,), (1370494992,), (1370494993,), (1370495000,), (1370495010,), (1370495017,), (1370495024,), (1370495027,), (1370495033,), (1370495108,), (1370495111,), (1370495116,), (1370495119,), (1370495129,), (1370495131,), (1370495406,), (1370495410,), (1370495416,), (1370495421,), (1370495426,), (1370495429,), (1370495643,), (1370495650,), (1370495656,), (1370495666,), (1370495682,), (1370495698,), (1370496401,), (1370496412,), (1370496473,), (1370496512,), (1370496531,), (1370496570,), (1370497148,), (1370497182,), (1370497221,), (1370497265,), (1370497342,), (1370497424,), (1370498581,), (1370498653,), (1370498721,), (1370498786,), (1370498855,), (1370498901,), (1370500581,), (1370500593,), (1370500628,), (1370500663,), (1370500698,), (1370500739,), (1370495053,), (1370495066,), (1370495072,), (1370495084,), (1370495088,), (1370495091,), (1370495155,), (1370495171,), (1370495178,), (1370495192,), (1370495217,), (1370495239,), (1370495288,), (1370495291,), (1370495313,), (1370495321,), (1370495325,), (1370495332,), (1370495347,), (1370495375,), (1370495379,), (1370495382,), (1370495391,), (1370495396,), (1370495448,), (1370495459,), (1370495475,), (1370495506,), (1370495530,), (1370495552,), (1370495580,), (1370495582,), (1370495588,), (1370495598,), (1370495612,), (1370495619,), (1370495726,), (1370495753,), (1370495763,), (1370495770,), (1370495805,), (1370495840,), (1370495922,), (1370495927,), (1370495961,), (1370495998,), (1370496033,), (1370496071,), (1370496233,), (1370496246,), (1370496253,), (1370496267,), (1370496274,), (1370496281,), (1370496631,), (1370496645,), (1370496669,), (1370496689,), (1370496698,), (1370496711,), (1370496782,), (1370496785,), (1370496788,), (1370496791,), (1370496794,), (1370496800,), (1370496917,), (1370496959,), (1370497011,), (1370497065,), (1370497076,), (1370497092,), (1370497646,), (1370497682,), (1370497715,), (1370497720,), (1370497777,), (1370497865,), (1370498035,), (1370498057,), (1370498073,), (1370498097,), (1370498152,), (1370498200,), (1370498283,), (1370498302,), (1370498347,), (1370498383,), (1370498406,), (1370498411,), (1370499141,), (1370499185,), (1370499232,), (1370499277,), (1370499347,), (1370499426,), (1370499735,), (1370499809,), (1370499915,), (1370499994,), (1370500029,), (1370500063,), (1370500213,), (1370500307,), (1370500386,), (1370500441,), (1370500475,), (1370500509,), (1370500884,), (1370500919,), (1370500954,), (1370501017,), (1370501086,), (1370501149,), (1370501190,), (1370501236,), (1370501289,), (1370501330,), (1370501396,), (1370501438,), (1370501600,), (1370501641,), (1370501680,), (1370501693,), (1370501717,), (1370501753,), (1370502079,), (1370502097,), (1370502117,), (1370502162,), (1370502172,), (1370502177,), (1370502356,), (1370502432,), (1370502508,), (1370502595,), (1370502654,), (1370502678,), (1370502781,), (1370502792,), (1370502810,), (1370502850,), (1370502871,), (1370502908,), (1370503167,), (1370503171,), (1370503175,), (1370503184,), (1370503219,), (1370503232,), (1370503264,), (1370503284,), (1370503339,), (1370503354,), (1370503381,), (1370503389,), (1370503431,), (1370503435,), (1370503458,), (1370503492,), (1370503534,), (1370503555,), (1370504429,), (1370504541,), (1370504686,), (1370504849,), (1370504957,), (1370505027,), (1370505954,), (1370505992,), (1370505999,), (1370506011,), (1370506040,), (1370506062,), (1370501824,), (1370501861,), (1370501896,), (1370501930,), (1370501950,), (1370501954,), (1370503008,), (1370503018,), (1370503033,), (1370503082,), (1370503091,), (1370503092,), (1370503608,), (1370503687,), (1370503791,), (1370503866,), (1370503935,), (1370504034,), (1370506203,), (1370506209,), (1370506235,), (1370506253,), (1370506262,), (1370506285,), (1370506984,), (1370508171,), (1370508212,), (1370508254,), (1370508329,), (1370508419,), (1370508517,), (1370509734,), (1370509767,), (1370509780,), (1370509830,), (1370509837,), (1370509857,), (1370510965,), (1370511009,), (1370511067,), (1370511189,), (1370511191,), (1370511206,), (1370511900,), (1370511935,), (1370511972,), (1370512028,), (1370512032,), (1370512038,), (1370512449,), (1370512485,), (1370512522,), (1370512588,), (1370512624,), (1370512650,), (1370513357,), (1370513426,), (1370513484,), (1370513521,), (1370513557,), (1370513605,), (1370514550,), (1370514599,), (1370514680,), (1370514735,), (1370514787,), (1370514870,), (1370515689,), (1370515767,), (1370515781,), (1370515827,), (1370515841,), (1370515856,), (1370517509,), (1370517602,), (1370517647,), (1370517687,), (1370517727,), (1370517760,), (1370518500,), (1370518514,), (1370518539,), (1370518574,), (1370518579,), (1370518587,), (1370519335,), (1370519348,), (1370519356,), (1370519358,), (1370506450,), (1370506531,), (1370506620,), (1370506794,), (1370506872,), (1370507200,), (1370507288,), (1370507353,), (1370507406,), (1370507506,), (1370507579,), (1370507769,), (1370507794,), (1370507849,), (1370507911,), (1370507933,), (1370508000,), (1370508774,), (1370508777,), (1370508841,), (1370508848,), (1370508883,), (1370508889,), (1370508912,), (1370508915,), (1370508944,), (1370508947,), (1370508967,), (1370508969,), (1370509008,), (1370509015,), (1370509061,), (1370509095,), (1370509138,), (1370509178,), (1370509339,), (1370509373,), (1370509407,), (1370509443,), (1370509518,), (1370509534,), (1370510055,), (1370510057,), (1370510095,), (1370510096,), (1370510138,), (1370510140,), (1370510157,), (1370510159,), (1370510165,), (1370510166,), (1370510174,), (1370510176,), (1370510227,), (1370510251,), (1370510274,), (1370510297,), (1370510309,), (1370510323,), (1370510497,), (1370510562,), (1370510579,), (1370510605,), (1370510720,), (1370510837,), (1370511234,), (1370511239,), (1370511284,), (1370511292,), (1370511334,), (1370511338,), (1370511373,), (1370511380,), (1370511417,), (1370511418,), (1370511436,), (1370511439,), (1370511555,), (1370511563,), (1370511586,), (1370511592,), (1370511594,), (1370511598,), (1370511698,), (1370511734,), (1370511769,), (1370511824,), (1370511856,), (1370511861,), (1370512091,), (1370512093,), (1370512095,), (1370512096,), (1370512098,), (1370512099,), (1370512101,), (1370512103,), (1370512106,), (1370512107,), (1370512111,), (1370512112,), (1370512214,), (1370512252,), (1370512285,), (1370512290,), (1370512294,), (1370512297,), (1370512357,), (1370512360,), (1370512389,), (1370512400,), (1370512409,), (1370512414,), (1370512700,), (1370512704,), (1370512724,), (1370512769,), (1370512799,), (1370512803,), (1370512815,), (1370512817,), (1370512826,), (1370512864,), (1370512877,), (1370512889,), (1370512903,), (1370512963,), (1370513023,), (1370513065,), (1370513100,), (1370513134,), (1370513827,), (1370513851,), (1370513861,), (1370513872,), (1370513893,), (1370513914,), (1370513979,), (1370513992,), (1370514016,), (1370514020,), (1370514029,), (1370514068,), (1370514161,), (1370514163,), (1370514166,), (1370514174,), (1370514197,), (1370514277,), (1370514945,), (1370514950,), (1370514973,), (1370514985,), (1370514995,), (1370514998,), (1370515116,), (1370515125,), (1370515127,), (1370515215,), (1370515233,), (1370515238,), (1370515307,), (1370515310,), (1370515378,), (1370515390,), (1370515395,), (1370515470,), (1370515875,), (1370515928,), (1370515996,), (1370516203,), (1370516336,), (1370516444,), (1370516703,), (1370516779,), (1370516850,), (1370516930,), (1370516987,), (1370517044,), (1370517202,), (1370517253,), (1370517303,), (1370517339,), (1370517351,), (1370517368,), (1370517942,), (1370517990,), (1370518026,), (1370518065,), (1370518099,), (1370518133,), (1370518218,), (1370518228,), (1370518242,), (1370518248,), (1370518267,), (1370518274,), (1370518299,), (1370518311,), (1370518322,), (1370518417,), (1370518436,), (1370518451,), (1370518609,), (1370518613,), (1370518619,), (1370518628,), (1370518635,), (1370518647,), (1370518701,), (1370518724,), (1370518763,), (1370518824,), (1370518863,), (1370518874,), (1370518913,), (1370518941,), (1370518950,), (1370518952,), (1370518995,), (1370519011,), (1370519075,), (1370519078,), (1370519093,), (1370519099,), (1370519117,), (1370519228,), (1370519471,), (1370519474,), (1370519538,), (1370519541,), (1370519574,), (1370519578,), (1370519619,), (1370519622,), (1370519678,), (1370519681,), (1370519721,), (1370519722,), (1370519805,), (1370519854,), (1370519924,), (1370519964,), (1370519991,), (1370520052,), (1370520173,), (1370520248,), (1370520267,), (1370520272,), (1370520305,), (1370520335,), (1370521119,), (1370521125,), (1370521141,), (1370521161,), (1370521189,), (1370521204,), (1370521236,), (1370521256,), (1370521283,), (1370521297,), (1370521323,), (1370521362,), (1370521481,), (1370521529,), (1370521550,), (1370521574,), (1370521599,), (1370521649,), (1370521876,), (1370521880,), (1370521890,), (1370521893,), (1370521897,), (1370521901,), (1370521980,), (1370522014,), (1370522028,), (1370522035,), (1370522040,), (1370522109,), (1370522142,), (1370522217,), (1370522225,), (1370522239,), (1370522250,), (1370522253,), (1370522309,), (1370522335,), (1370522356,), (1370522365,), (1370522378,), (1370522384,), (1370522623,), (1370522635,), (1370522661,), (1370522673,), (1370522694,), (1370522739,), (1370522795,), (1370522803,), (1370522805,), (1370522849,), (1370522901,), (1370522909,), (1370523052,), (1370523130,), (1370523193,), (1370523317,), (1370523380,), (1370523430,), (1370524072,), (1370524091,), (1370524120,), (1370524155,), (1370524208,), (1370524249,), (1370524380,), (1370524392,), (1370524424,), (1370524485,), (1370524490,), (1370524530,), (1370524557,), (1370524561,), (1370524564,), (1370524571,), (1370524573,), (1370524584,), (1370524826,), (1370524840,), (1370524897,), (1370524944,), (1370524996,), (1370525033,), (1370525172,), (1370525175,), (1370525204,), (1370525210,), (1370525239,), (1370525242,), (1370525276,), (1370525278,), (1370525289,), (1370525290,), (1370525297,), (1370525298,), (1370525308,), (1370525314,), (1370525318,), (1370525322,), (1370525352,), (1370525360,), (1370525369,), (1370525371,), (1370525373,), (1370525380,), (1370525396,), (1370525409,), (1370525598,), (1370525605,), (1370525611,), (1370525615,), (1370525618,), (1370525704,), (1370525927,), (1370525929,), (1370525988,), (1370526030,), (1370526066,), (1370526100,), (1370526129,), (1370526165,), (1370526193,), (1370526218,), (1370526241,), (1370526275,), (1370526393,), (1370526428,), (1370526463,), (1370526474,), (1370526495,), (1370526538,), (1370526588,), (1370526598,), (1370526613,), (1370526646,), (1370526695,), (1370526728,), (1370527038,), (1370527071,), (1370527148,), (1370527187,), (1370527233,), (1370527238,), (1370527726,), (1370527843,), (1370527956,), (1370528105,), (1370528229,), (1370528327,), (1370519365,), (1370519370,), (1370520657,), (1370520724,), (1370520789,), (1370520859,), (1370520949,), (1370521001,), (1370521709,), (1370521734,), (1370521776,), (1370521790,), (1370521797,), (1370521799,), (1370522414,), (1370522418,), (1370522439,), (1370522525,), (1370522538,), (1370522548,), (1370523535,), (1370523592,), (1370523652,), (1370523677,), (1370523705,), (1370523794,), (1370524677,), (1370524682,), (1370524692,), (1370524696,), (1370524701,), (1370524723,), (1370525488,), (1370525521,), (1370525530,), (1370525543,), (1370525548,), (1370525566,), (1370526785,), (1370526811,), (1370526844,), (1370526905,), (1370526929,), (1370526947,), (1370529849,), (1370529853,), (1370529943,), (1370529948,), (1370530019,), (1370530022,), (1370530095,), (1370530112,), (1370530172,), (1370530178,), (1370530684,), (1370530779,), (1370530869,), (1370530950,), (1370531059,), (1370531122,), (1370531339,), (1370531390,), (1370531422,), (1370531457,), (1370531492,), (1370531500,), (1370531801,), (1370531823,), (1370531828,), (1370531838,), (1370531877,), (1370531927,), (1370532110,), (1370532139,), (1370532166,), (1370532197,), (1370532212,), (1370532219,), (1370532273,), (1370532399,), (1370532407,), (1370532421,), (1370532437,), (1370532449,), (1370532473,), (1370532503,), (1370532546,), (1370532550,), (1370532563,), (1370532583,), (1370532741,), (1370532773,), (1370532796,), (1370532829,), (1370532894,), (1370532912,), (1370532984,), (1370532990,), (1370532998,), (1370533009,), (1370533012,), (1370533017,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04072025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24586610]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] map_info['map_portfolio_photo'] : {24586610: [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741, 1370532583, 1370532563, 1370532550, 1370532546, 1370532503, 1370532473, 1370532449, 1370532437, 1370532421, 1370532407, 1370532399, 1370532273, 1370532219, 1370532212, 1370532197, 1370532166, 1370532139, 1370532110, 1370531927, 1370531877, 1370531838, 1370531828, 1370531823, 1370531801, 1370531500, 1370531492, 1370531457, 1370531422, 1370531390, 1370531339, 1370531122, 1370531059, 1370530950, 1370530869, 1370530779, 1370530684, 1370530178, 1370530172, 1370530112, 1370530095, 1370530022, 1370530019, 1370529948, 1370529943, 1370529853, 1370529849]} final : True mtd_id 4302 list_pids : [1370533017, 1370533012, 1370533009, 1370532998, 1370532990, 1370532984, 1370532912, 1370532894, 1370532829, 1370532796, 1370532773, 1370532741] Looping around the photos to save general results len do output : 1 /24586610Didn'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, '3235224') ('4302', '24586610', '1370533017', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224') ('4302', None, None, None, None, None, None, None, '3235224') ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224') 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, '24586610', 'None', None, None, None, None, '3235224'), ('4302', '24586610', '1370533017', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370533012', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370533009', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532998', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532990', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532984', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532912', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532894', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532829', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532796', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532773', None, None, None, None, None, '3235224'), ('4302', '24586610', '1370532741', None, None, None, None, None, '3235224')] time used for this insertion : 0.11046648025512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8179893493652344 time spend to save output : 0.11074233055114746 total time spend for step 5 : 1.9287316799163818 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 (3235224) 2.36user 2.47system 0:16.66elapsed 29%CPU (0avgtext+0avgdata 160956maxresident)k 16016inputs+11856outputs (111major+75255minor)pagefaults 0swaps