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 : 1009953 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 (3274040) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3274040) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867390 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3274040'] with mtr_portfolio_ids : ['24867390'] and first list_photo_ids : [] new path : /proc/1009953/ Name: python3 Umask: 0002 State: R (running) Tgid: 1009953 Ngid: 0 Pid: 1009953 PPid: 1009952 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1009953 NSpid: 1009953 NSpgid: 1008126 NSsid: 1008126 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99212 kB VmRSS: 99212 kB RssAnon: 59796 kB RssFile: 39416 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 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: 42 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1009953', 'Ngid': '0', 'Pid': '1009953', 'PPid': '1009952', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1009953', 'NSpid': '1009953', 'NSpgid': '1008126', 'NSsid': '1008126', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99212 kB', 'VmRSS': '99212 kB', 'RssAnon': '59796 kB', 'RssFile': '39416 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 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': '42', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '1009953', '1106868', '0', '1106868', '865620', '99212', b'', 'marlene', '3274040') 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 (24867390) 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 (3274040 ) ) 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 (24867390) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371769979, 'portfolio_id': 24867390}, {'photo_id': 1371769945, 'portfolio_id': 24867390}, {'photo_id': 1371769917, 'portfolio_id': 24867390}, {'photo_id': 1371769883, 'portfolio_id': 24867390}, {'photo_id': 1371769857, 'portfolio_id': 24867390}, {'photo_id': 1371769831, 'portfolio_id': 24867390}, {'photo_id': 1371769585, 'portfolio_id': 24867390}, {'photo_id': 1371769558, 'portfolio_id': 24867390}, {'photo_id': 1371769523, 'portfolio_id': 24867390}, {'photo_id': 1371769461, 'portfolio_id': 24867390}, {'photo_id': 1371769405, 'portfolio_id': 24867390}, {'photo_id': 1371769369, 'portfolio_id': 24867390}, {'photo_id': 1371768674, 'portfolio_id': 24867390}, {'photo_id': 1371768569, 'portfolio_id': 24867390}, {'photo_id': 1371768538, 'portfolio_id': 24867390}, {'photo_id': 1371768481, 'portfolio_id': 24867390}, {'photo_id': 1371768431, 'portfolio_id': 24867390}, {'photo_id': 1371768392, 'portfolio_id': 24867390}] map_portfolio_id_photo_id: {24867390: [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} ##### 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.014403104782104492 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Sat Jul 12 01:34:56 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 (24867390) 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 : 24867390 get user id for portfolio 24867390 get sub ptf for main ptf 24867390, type 3726 and hashtags ['autre_refus', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'flou', 'environnement', 'metal', 'kraft', 'Carton_gris', 'papier', 'plastique'] 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`=24867390 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou','environnement','metal','kraft','Carton_gris','papier','plastique')) 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`=24867390 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou','environnement','metal','kraft','Carton_gris','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24867390, 'sub_port_id': 24867515, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740767, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'plastique': {'main_port_id': 24867390, 'sub_port_id': 24867516, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740768, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'autre_refus': {'main_port_id': 24867390, 'sub_port_id': 24867517, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740769, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'papier': {'main_port_id': 24867390, 'sub_port_id': 24867518, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740770, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'environnement': {'main_port_id': 24867390, 'sub_port_id': 24867519, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740771, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'cartonnette': {'main_port_id': 24867390, 'sub_port_id': 24867520, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740772, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24867390, 'sub_port_id': 24867521, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740773, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'flou': {'main_port_id': 24867390, 'sub_port_id': 24867522, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740774, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'Carton_brun': {'main_port_id': 24867390, 'sub_port_id': 24867523, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740775, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'Carton_gris': {'main_port_id': 24867390, 'sub_port_id': 24867524, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740776, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'kraft': {'main_port_id': 24867390, 'sub_port_id': 24867525, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740777, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}, 'mal_croppe': {'main_port_id': 24867390, 'sub_port_id': 24867526, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740778, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867515 , 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=24867390 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 (24867515) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867516 , 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=24867390 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 (24867516) result : ((1371770067,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867517 , 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=24867390 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 (24867517) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867518 , 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=24867390 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 (24867518) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867519 , 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=24867390 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 (24867519) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867520 , 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=24867390 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 (24867520) result : ((1371770052,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867521 , 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=24867390 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 (24867521) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867522 , 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=24867390 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 (24867522) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867523 , 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=24867390 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 (24867523) result : ((1371770060,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867524 , 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=24867390 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 (24867524) result : ((1371770033,), (1371770035,), (1371770037,), (1371770040,), (1371770042,), (1371770044,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867525 , 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=24867390 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 (24867525) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24867526 , 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=24867390 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 (24867526) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24867390) result : ((1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24867390 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou','environnement','metal','kraft','Carton_gris','papier','plastique')) 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`=24867390 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','cartonnette','Teint_Dans_La_Masse','Carton_brun','mal_croppe','flou','environnement','metal','kraft','Carton_gris','papier','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 24867390, 'sub_port_id': 24867527, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740779, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'plastique': {'main_port_id': 24867390, 'sub_port_id': 24867528, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740780, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'autre_refus': {'main_port_id': 24867390, 'sub_port_id': 24867529, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740781, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'papier': {'main_port_id': 24867390, 'sub_port_id': 24867530, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740782, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'environnement': {'main_port_id': 24867390, 'sub_port_id': 24867531, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740783, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'cartonnette': {'main_port_id': 24867390, 'sub_port_id': 24867532, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740784, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 24867390, 'sub_port_id': 24867533, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740785, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'flou': {'main_port_id': 24867390, 'sub_port_id': 24867534, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740786, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'Carton_brun': {'main_port_id': 24867390, 'sub_port_id': 24867535, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740787, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'Carton_gris': {'main_port_id': 24867390, 'sub_port_id': 24867536, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740788, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'kraft': {'main_port_id': 24867390, 'sub_port_id': 24867537, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740789, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}, 'mal_croppe': {'main_port_id': 24867390, 'sub_port_id': 24867538, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16740790, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867527,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867515 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867528,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867516 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867529,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867517 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867530,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867518 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867531,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867519 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867532,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867520 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867533,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867521 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867534,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867522 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867535,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867523 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867536,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24867538,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24867526 lien utilise dans velours : https://www.fotonower.com/velours/24867527,24867528,24867529,24867530,24867531,24867532,24867533,24867534,24867535,24867536,24867537,24867538?tags=metal,plastique,autre_refus,papier,environnement,cartonnette,Teint_Dans_La_Masse,flou,Carton_brun,Carton_gris,kraft,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24867390]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] map_info['map_portfolio_photo'] : {24867390: [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : False mtd_id 4302 list_pids : [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] Looping around the photos to save general results len do output : 1 /24867390. 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, '3274040') ('4302', '24867390', '1371769979', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040') 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, '24867390', "{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}", None, None, None, None, '3274040'), ('4302', '24867390', '1371769979', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040')] time used for this insertion : 0.032660484313964844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.516453742980957 time spend to save output : 0.03297305107116699 total time spend for step 1 : 1.549426794052124 step2:final Sat Jul 12 01:34: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 (24867390) 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 24867390 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371768674,1371768569,1371768538,1371768481,1371768431,1371768392,1371769585,1371769558,1371769523,1371769461,1371769405,1371769369,1371769979,1371769945,1371769917,1371769883,1371769857,1371769831); 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([24867390]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} new output for save of step final : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] map_info['map_portfolio_photo'] : {24867390: [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : False mtd_id 4302 list_pids : [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] Looping around the photos to save general results len do output : 12 /1371769979.Didn't retrieve data . /1371769945.Didn't retrieve data . /1371769917.Didn't retrieve data . /1371769883.Didn't retrieve data . /1371769857.Didn't retrieve data . /1371769831.Didn't retrieve data . /1371769585.Didn't retrieve data . /1371769558.Didn't retrieve data . /1371769523.Didn't retrieve data . /1371769461.Didn't retrieve data . /1371769405.Didn't retrieve data . /1371769369.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, '3274040') ('4302', '24867390', '1371769979', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040') 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', '24867390', '1371769979', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769945', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769917', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769883', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769857', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769831', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769585', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769558', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769523', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769461', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769405', '0.045270188339229', None, None, None, None, '3274040'), ('4302', '24867390', '1371769369', '0.045270188339229', None, None, None, None, '3274040')] time used for this insertion : 0.0736546516418457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.13767743110656738 time spend to save output : 0.07413148880004883 total time spend for step 2 : 0.2118089199066162 step3:velours_tree Sat Jul 12 01:34: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 : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} input_args_next_step : {24867390: ()} output_args : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} args : 24867390 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 : ({'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24867390) 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([24867390]) 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.3127329349517822 time spend to save output : 7.772445678710938e-05 total time spend for step 3 : 0.31281065940856934 step4:send_mail_cod Sat Jul 12 01:34: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 ! complete output_args for input 2 : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} input_args_next_step : {1371769979: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769979 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769945 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769917 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769883 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769857 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769831 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769585 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769558 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769523 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769461 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769405 depend.output_id : 0 input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ()} output_args : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',)} args : 1371769369 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 : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} input_args_next_step : {1371769979: ('0.045270188339229',), 1371769945: ('0.045270188339229',), 1371769917: ('0.045270188339229',), 1371769883: ('0.045270188339229',), 1371769857: ('0.045270188339229',), 1371769831: ('0.045270188339229',), 1371769585: ('0.045270188339229',), 1371769558: ('0.045270188339229',), 1371769523: ('0.045270188339229',), 1371769461: ('0.045270188339229',), 1371769405: ('0.045270188339229',), 1371769369: ('0.045270188339229',), 24867390: ()} output_args : {24867390: [{'metal': 24867515, 'plastique': 24867516, 'autre_refus': 24867517, 'papier': 24867518, 'environnement': 24867519, 'cartonnette': 24867520, 'Teint_Dans_La_Masse': 24867521, 'flou': 24867522, 'Carton_brun': 24867523, 'Carton_gris': 24867524, 'kraft': 24867525, 'mal_croppe': 24867526}]} args : 24867390 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.045270188339229',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24867390) 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 (1371769979,1371769945,1371769917,1371769883,1371769857,1371769831,1371769585,1371769558,1371769523,1371769461,1371769405,1371769369) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371769369 begin to download photo : 1371769523 begin to download photo : 1371769831 begin to download photo : 1371769917 download finish for photo 1371769917 begin to download photo : 1371769945 download finish for photo 1371769369 begin to download photo : 1371769405 download finish for photo 1371769831 begin to download photo : 1371769857 download finish for photo 1371769523 begin to download photo : 1371769558 download finish for photo 1371769945 begin to download photo : 1371769979 download finish for photo 1371769405 begin to download photo : 1371769461 download finish for photo 1371769558 begin to download photo : 1371769585 download finish for photo 1371769857 begin to download photo : 1371769883 download finish for photo 1371769979 download finish for photo 1371769461 download finish for photo 1371769585 download finish for photo 1371769883 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette248675151752276899/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24867390_12-07-2025_01_34_59.pdf 24867515 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=24867515 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675151752276899 24867516 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=24867516 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770067: '1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842666_0.png'} change filename to text .imagette248675161752276899/ imagette248675161752276899/1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842666_0.png.png imagette248675171752276899/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/854e356fae49e3fa457ecc742bfa015e_10510482.png imagette248675161752276899 24867517 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=24867517 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675171752276899 24867520 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=24867520 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770052: '1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842663_0.png'} change filename to text .imagette248675201752276899/ imagette248675201752276899/1752276807_2097282_1371768392_c96862b08b8a8aa8467813673e5790ef_rle_crop_3880842663_0.png.png imagette248675221752276899/ imagette248675251752276899/ imagette248675261752276899/ imagette248675211752276899/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/640edb0620408276b8161b982e572536_55724081.png imagette248675201752276899 24867522 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=24867522 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675221752276899 24867525 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=24867525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675251752276899 24867526 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=24867526 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675261752276899 24867521 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=24867521 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248675211752276899 24867523 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=24867523 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770060: '1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842610_0.png'} change filename to text .imagette248675231752276899/ imagette248675231752276899/1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842610_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/da15845d10b3144b2f8a40d9dd75b545_5452846.png imagette248675231752276899 24867524 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=24867524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371770033: '1752276807_2097282_1371768674_0dc0d54b96842a0b3f6c3803d7ca7284_rle_crop_3880842569_0.png', 1371770035: '1752276807_2097282_1371768569_0b02815e35024db23c645ae0dee97173_rle_crop_3880842574_0.png', 1371770037: '1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842588_0.png', 1371770040: '1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842585_0.png', 1371770042: '1752276807_2097282_1371768481_3e9556eed84dea3a1094530ec071075c_rle_crop_3880842597_0.png', 1371770044: '1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842611_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/d8a6c56dcc7433a018838d3ef0efed5c_67745550.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1e07f10283d7db2f1d5f1d2c22ad32e7_96450748.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/80942f7954adfb3f6fb821d1173c3914_63512354.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5f77085776df8c41946bd381723c7168_74476204.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0f6578df39d229185f2fb702634e2a8b_55619852.png change filename to text .imagette248675241752276899/ imagette248675241752276899/1752276807_2097282_1371768431_a3a7ae73bb22edafb684afb91efeb7d5_rle_crop_3880842611_0.png.png imagette248675241752276899/1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842588_0.png.png imagette248675241752276899/1752276807_2097282_1371768538_cb8467b210d271b0af33e64831d001f5_rle_crop_3880842585_0.png.png imagette248675241752276899/1752276807_2097282_1371768674_0dc0d54b96842a0b3f6c3803d7ca7284_rle_crop_3880842569_0.png.png imagette248675241752276899/1752276807_2097282_1371768481_3e9556eed84dea3a1094530ec071075c_rle_crop_3880842597_0.png.png imagette248675241752276899/1752276807_2097282_1371768569_0b02815e35024db23c645ae0dee97173_rle_crop_3880842574_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c8f47e7178871459dc0a62a441949054_76288270.png imagette248675241752276899 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24867390 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24867527,24867528,24867529,24867530,24867531,24867532,24867533,24867534,24867535,24867536,24867537,24867538?tags=metal,plastique,autre_refus,papier,environnement,cartonnette,Teint_Dans_La_Masse,flou,Carton_brun,Carton_gris,kraft,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1371769979] : ('0.045270188339229',) no score found for photo 1371769979 We are sending mail with results at report@fotonower.com args[1371769945] : ('0.045270188339229',) no score found for photo 1371769945 We are sending mail with results at report@fotonower.com args[1371769917] : ('0.045270188339229',) no score found for photo 1371769917 We are sending mail with results at report@fotonower.com args[1371769883] : ('0.045270188339229',) no score found for photo 1371769883 We are sending mail with results at report@fotonower.com args[1371769857] : ('0.045270188339229',) no score found for photo 1371769857 We are sending mail with results at report@fotonower.com args[1371769831] : ('0.045270188339229',) no score found for photo 1371769831 We are sending mail with results at report@fotonower.com args[1371769585] : ('0.045270188339229',) no score found for photo 1371769585 We are sending mail with results at report@fotonower.com args[1371769558] : ('0.045270188339229',) no score found for photo 1371769558 We are sending mail with results at report@fotonower.com args[1371769523] : ('0.045270188339229',) no score found for photo 1371769523 We are sending mail with results at report@fotonower.com args[1371769461] : ('0.045270188339229',) no score found for photo 1371769461 We are sending mail with results at report@fotonower.com args[1371769405] : ('0.045270188339229',) no score found for photo 1371769405 We are sending mail with results at report@fotonower.com args[1371769369] : ('0.045270188339229',) no score found for photo 1371769369 We are sending mail with results at report@fotonower.com refus_total : 0.045270188339229 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=24867390 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_P24867390_12-07-2025_01_34_59.pdf results_Auto_P24867390_12-07-2025_01_34_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_34_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','24867390','results_Auto_P24867390_12-07-2025_01_34_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_34_59.pdf','pdf','','0.13','0.045270188339229') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24867390]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] map_info['map_portfolio_photo'] : {24867390: [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : False mtd_id 4302 list_pids : [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] 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, '3274040') ('4302', '24867390', '1371769979', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040') 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', '24867390', '1371769979', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040')] time used for this insertion : 0.2467806339263916 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2005903720855713 time spend to save output : 0.24702215194702148 total time spend for step 4 : 2.4476125240325928 step5:split_time_score Sat Jul 12 01:35:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24867390'] 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 : [('24867390',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24867390) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371769917: {'path': 'temp/1752276898_1009953_1371769917_d1953172ab3ede967a5ba9b2d0ffdf71.jpg', 'extension': 'jpg'}, 1371769945: {'path': 'temp/1752276898_1009953_1371769945_59f5244a574a8fa3096e59c76823d35e.jpg', 'extension': 'jpg'}, 1371769979: {'path': 'temp/1752276898_1009953_1371769979_ca1536d1da0d320316ba2607908e2cbe.jpg', 'extension': 'jpg'}, 1371769369: {'path': 'temp/1752276898_1009953_1371769369_85f2669a076d3be7c38d73f380c44ac8.jpg', 'extension': 'jpg'}, 1371769405: {'path': 'temp/1752276898_1009953_1371769405_ff0bd47106219a4522bb255030c7ca1c.jpg', 'extension': 'jpg'}, 1371769461: {'path': 'temp/1752276898_1009953_1371769461_324e538bec552512da1cd2dab0777032.jpg', 'extension': 'jpg'}, 1371769523: {'path': 'temp/1752276898_1009953_1371769523_ab196a4f75f85c9d1828fc27ab43159d.jpg', 'extension': 'jpg'}, 1371769558: {'path': 'temp/1752276898_1009953_1371769558_ef09d56049b5514a9d4f6c9acbad8655.jpg', 'extension': 'jpg'}, 1371769585: {'path': 'temp/1752276898_1009953_1371769585_60e64c05ff0db524e282ea3ee0e5dd4f.jpg', 'extension': 'jpg'}, 1371769831: {'path': 'temp/1752276898_1009953_1371769831_9b86c7428165f973759ce3383bd25d27.jpg', 'extension': 'jpg'}, 1371769857: {'path': 'temp/1752276898_1009953_1371769857_5892951ed8d0e575ecf0de57050e4753.jpg', 'extension': 'jpg'}, 1371769883: {'path': 'temp/1752276898_1009953_1371769883_c67576134086266ecd8fcf714be9f002.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 = 24867390; (('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 = 24867390 group by h (('01', 18),) 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=24867390 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 (24867390) 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 (24867390) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12072025 24867390 Nombre de photos uploadées : 18 / 23040 (0%) 12072025 24867390 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 12072025 24867390 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1371768674, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0dc0d54b96842a0b3f6c3803d7ca7284.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_03_10147.jpg'}, {'photo_id': 1371768569, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/0b02815e35024db23c645ae0dee97173.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_14_10138.jpg'}, {'photo_id': 1371768538, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/cb8467b210d271b0af33e64831d001f5.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_24_10134.jpg'}, {'photo_id': 1371768481, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/3e9556eed84dea3a1094530ec071075c.jpg', 'username': None, 'uploaded_at': 1752276672, 'text': 'image_12072025_01_30_34_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009412765502929688 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24867390, '2025-07-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1972167,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.056967735290527344 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= 1972167 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24862874, 'dashboard_result_id': 12449782, '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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24863716, 'dashboard_result_id': 12449783, '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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24864264, 'dashboard_result_id': 12449784, '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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24864799, 'dashboard_result_id': 12449785, '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_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24865363, 'dashboard_result_id': 12449786, '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_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24866369, 'dashboard_result_id': 12449787, '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_P24866369_12-07-2025_01_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979670, 'mtr_portfolio_id': 24867390, 'dashboard_result_id': 12449788, '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_P24867390_12-07-2025_01_33_31.pdf'}"}] 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 = 24862874 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': 3273672, 'mtr_portfolio_id': 24862874, 'created_at': datetime.datetime(2025, 7, 12, 0, 16, 59), 'result': '0.037367531886799636', 'result_long': None, 'result_double': None}] Qualite : 0.037367531886799636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24862874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24862874 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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}" where mtr_portfolio_id = 24862874 and dashboard_run_id = 1979670 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`=24862874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449782, 0.037367531886799636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, '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 = 24863716 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': 3273753, 'mtr_portfolio_id': 24863716, 'created_at': datetime.datetime(2025, 7, 12, 0, 32, 58), 'result': '0.03280463110763884', 'result_long': None, 'result_double': None}] Qualite : 0.03280463110763884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24863716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24863716 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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}" where mtr_portfolio_id = 24863716 and dashboard_run_id = 1979670 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`=24863716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449783, 0.03280463110763884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, '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 = 24864264 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': 3273801, 'mtr_portfolio_id': 24864264, 'created_at': datetime.datetime(2025, 7, 12, 0, 46, 56), 'result': '0.045803300599373216', 'result_long': None, 'result_double': None}] Qualite : 0.045803300599373216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864264 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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}" where mtr_portfolio_id = 24864264 and dashboard_run_id = 1979670 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`=24864264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449784, 0.045803300599373216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, '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 = 24864799 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': 3273845, 'mtr_portfolio_id': 24864799, 'created_at': datetime.datetime(2025, 7, 12, 1, 2, 58), 'result': '0.05501512360551966', 'result_long': None, 'result_double': None}] Qualite : 0.05501512360551966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_01_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864799 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_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}" where mtr_portfolio_id = 24864799 and dashboard_run_id = 1979671 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`=24864799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449785, 0.05501512360551966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, '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 = 24865363 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': 3273898, 'mtr_portfolio_id': 24865363, 'created_at': datetime.datetime(2025, 7, 12, 1, 16, 59), 'result': '0.03769358954030426', 'result_long': None, 'result_double': None}] Qualite : 0.03769358954030426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24865363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24865363_12-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24865363 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_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, 'pht': 3726}}" where mtr_portfolio_id = 24865363 and dashboard_run_id = 1979671 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`=24865363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449786, 0.03769358954030426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, '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 = 24866369 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': 3273993, 'mtr_portfolio_id': 24866369, 'created_at': datetime.datetime(2025, 7, 12, 1, 32, 57), 'result': '0.04421412132428314', 'result_long': None, 'result_double': None}] Qualite : 0.04421412132428314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24866369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24866369 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_P24866369_12-07-2025_01_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, 'pht': 3726}}" where mtr_portfolio_id = 24866369 and dashboard_run_id = 1979671 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`=24866369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449787, 0.04421412132428314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, '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 = 24867390 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': 3274040, 'mtr_portfolio_id': 24867390, 'created_at': datetime.datetime(2025, 7, 12, 1, 34, 58), 'result': '0.045270188339229', 'result_long': None, 'result_double': None}] Qualite : 0.045270188339229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24867390 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24867390 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_P24867390_12-07-2025_01_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24867515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24867516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24867517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24867518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24867519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24867520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24867521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24867522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24867523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24867524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24867525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24867526, 'pht': 3726}}" where mtr_portfolio_id = 24867390 and dashboard_run_id = 1979671 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`=24867390 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449788, 0.045270188339229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24867390_12-07-2025_01_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24867515, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24867516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24867517, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24867518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24867519, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24867520, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24867521, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24867522, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24867523, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24867524, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24867525, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24867526, '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 (24862874,24863716,24864264,24864799,24865363,24866369,24867390) result : ((1371742379,), (1371742409,), (1371742439,), (1371742467,), (1371742493,), (1371742810,), (1371742839,), (1371742869,), (1371742894,), (1371742918,), (1371742943,), (1371743083,), (1371743084,), (1371743103,), (1371743104,), (1371743131,), (1371743137,), (1371743164,), (1371743167,), (1371743191,), (1371743196,), (1371743220,), (1371743223,), (1371743306,), (1371743309,), (1371743312,), (1371743340,), (1371743358,), (1371743368,), (1371743470,), (1371743474,), (1371743479,), (1371743505,), (1371743531,), (1371743558,), (1371743769,), (1371743777,), (1371743781,), (1371743786,), (1371743808,), (1371743836,), (1371743987,), (1371744038,), (1371744092,), (1371744216,), (1371744321,), (1371744440,), (1371744789,), (1371744950,), (1371745105,), (1371745166,), (1371745248,), (1371745345,), (1371745593,), (1371745621,), (1371745663,), (1371745726,), (1371745808,), (1371745824,), (1371746189,), (1371746240,), (1371746298,), (1371746311,), (1371746325,), (1371746331,), (1371746501,), (1371746504,), (1371746508,), (1371746512,), (1371746515,), (1371746520,), (1371746569,), (1371746583,), (1371746607,), (1371746632,), (1371746659,), (1371746685,), (1371746815,), (1371746817,), (1371746818,), (1371746838,), (1371746843,), (1371746854,), (1371747126,), (1371747160,), (1371747186,), (1371747211,), (1371747235,), (1371747269,), (1371747638,), (1371747660,), (1371747687,), (1371747705,), (1371747710,), (1371747716,), (1371747773,), (1371747803,), (1371747842,), (1371747869,), (1371747882,), (1371747883,), (1371748191,), (1371748226,), (1371748292,), (1371748342,), (1371748367,), (1371748380,), (1371748740,), (1371748777,), (1371748817,), (1371748841,), (1371748871,), (1371748900,), (1371749035,), (1371749067,), (1371749121,), (1371749168,), (1371749218,), (1371749277,), (1371749616,), (1371749631,), (1371749649,), (1371749652,), (1371749653,), (1371749657,), (1371749730,), (1371749732,), (1371749735,), (1371749737,), (1371749739,), (1371749741,), (1371749784,), (1371749788,), (1371749791,), (1371749794,), (1371749799,), (1371749804,), (1371749818,), (1371749821,), (1371749823,), (1371749826,), (1371749829,), (1371749833,), (1371749877,), (1371749879,), (1371749883,), (1371749887,), (1371749891,), (1371749895,), (1371749945,), (1371749947,), (1371749949,), (1371749950,), (1371749970,), (1371749981,), (1371750000,), (1371750004,), (1371750007,), (1371750022,), (1371750048,), (1371750075,), (1371750384,), (1371750395,), (1371750398,), (1371750403,), (1371750406,), (1371750407,), (1371750451,), (1371750455,), (1371750459,), (1371750462,), (1371750467,), (1371750470,), (1371750523,), (1371750526,), (1371750528,), (1371750533,), (1371750538,), (1371750545,), (1371750621,), (1371750663,), (1371750711,), (1371750754,), (1371750800,), (1371750854,), (1371751193,), (1371751204,), (1371751218,), (1371751221,), (1371751224,), (1371751226,), (1371751298,), (1371751302,), (1371751313,), (1371751317,), (1371751321,), (1371751326,), (1371751335,), (1371751336,), (1371751343,), (1371751344,), (1371751351,), (1371751353,), (1371751356,), (1371751358,), (1371751362,), (1371751366,), (1371751374,), (1371751376,), (1371751394,), (1371751397,), (1371751399,), (1371751413,), (1371751421,), (1371751428,), (1371751438,), (1371751467,), (1371751472,), (1371751476,), (1371751480,), (1371751484,), (1371751492,), (1371751493,), (1371751495,), (1371751496,), (1371751498,), (1371751499,), (1371751501,), (1371751502,), (1371751504,), (1371751505,), (1371751508,), (1371751509,), (1371751527,), (1371751539,), (1371751544,), (1371751548,), (1371751552,), (1371751555,), (1371751613,), (1371751618,), (1371751622,), (1371751639,), (1371751665,), (1371751689,), (1371752002,), (1371752028,), (1371752051,), (1371752078,), (1371752104,), (1371752129,), (1371752184,), (1371752189,), (1371752193,), (1371752195,), (1371752198,), (1371752201,), (1371752337,), (1371752367,), (1371752392,), (1371752421,), (1371752446,), (1371752477,), (1371752620,), (1371752626,), (1371752631,), (1371752635,), (1371752639,), (1371752642,), (1371752818,), (1371752820,), (1371752824,), (1371752828,), (1371752832,), (1371752834,), (1371753104,), (1371753112,), (1371753115,), (1371753118,), (1371753120,), (1371753122,), (1371753173,), (1371753174,), (1371753177,), (1371753178,), (1371753182,), (1371753183,), (1371753189,), (1371753191,), (1371753200,), (1371753202,), (1371753207,), (1371753210,), (1371753216,), (1371753218,), (1371753221,), (1371753224,), (1371753228,), (1371753234,), (1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,), (1371755321,), (1371755325,), (1371755332,), (1371755364,), (1371755411,), (1371755496,), (1371755650,), (1371755722,), (1371755786,), (1371755844,), (1371755870,), (1371755897,), (1371756004,), (1371756031,), (1371756036,), (1371756052,), (1371756079,), (1371756151,), (1371756377,), (1371756421,), (1371756510,), (1371756560,), (1371756623,), (1371756665,), (1371757110,), (1371757119,), (1371757123,), (1371757129,), (1371757172,), (1371757216,), (1371757558,), (1371757570,), (1371757572,), (1371757574,), (1371757576,), (1371757626,), (1371757629,), (1371757631,), (1371757634,), (1371757637,), (1371757640,), (1371757661,), (1371757663,), (1371757666,), (1371757668,), (1371757671,), (1371757675,), (1371757691,), (1371757694,), (1371757699,), (1371757702,), (1371757703,), (1371757706,), (1371757734,), (1371757736,), (1371757739,), (1371757743,), (1371757745,), (1371757750,), (1371757776,), (1371757779,), (1371757781,), (1371757783,), (1371757786,), (1371757789,), (1371757825,), (1371757830,), (1371757835,), (1371757839,), (1371757844,), (1371757849,), (1371757862,), (1371757870,), (1371757885,), (1371757908,), (1371757934,), (1371757961,), (1371758310,), (1371758334,), (1371758359,), (1371758382,), (1371758386,), (1371758404,), (1371758485,), (1371758498,), (1371758510,), (1371758552,), (1371758596,), (1371758636,), (1371759065,), (1371759135,), (1371759194,), (1371759254,), (1371759329,), (1371759391,), (1371760020,), (1371760075,), (1371760108,), (1371760146,), (1371760171,), (1371760195,), (1371760545,), (1371760549,), (1371760570,), (1371760576,), (1371760588,), (1371760593,), (1371760596,), (1371760598,), (1371760600,), (1371760602,), (1371760605,), (1371760607,), (1371760730,), (1371760833,), (1371760936,), (1371760993,), (1371761086,), (1371761140,), (1371761572,), (1371761631,), (1371761679,), (1371761682,), (1371761684,), (1371761687,), (1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,), (1371766432,), (1371766474,), (1371766509,), (1371766535,), (1371766592,), (1371766622,), (1371766701,), (1371766705,), (1371766709,), (1371766711,), (1371766717,), (1371766719,), (1371766975,), (1371766977,), (1371766999,), (1371767003,), (1371767023,), (1371767028,), (1371767084,), (1371767099,), (1371767169,), (1371767188,), (1371767230,), (1371767235,), (1371767299,), (1371767323,), (1371767345,), (1371767407,), (1371767409,), (1371767415,), (1371767520,), (1371767523,), (1371767527,), (1371767531,), (1371767533,), (1371767536,), (1371767704,), (1371767706,), (1371767728,), (1371767730,), (1371767746,), (1371767789,), (1371767904,), (1371767932,), (1371767957,), (1371767984,), (1371767999,), (1371768000,), (1371768392,), (1371768431,), (1371768481,), (1371768538,), (1371768569,), (1371768674,), (1371769369,), (1371769405,), (1371769461,), (1371769523,), (1371769558,), (1371769585,), (1371769831,), (1371769857,), (1371769883,), (1371769917,), (1371769945,), (1371769979,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12072025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24867390]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] map_info['map_portfolio_photo'] : {24867390: [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369, 1371768674, 1371768569, 1371768538, 1371768481, 1371768431, 1371768392]} final : True mtd_id 4302 list_pids : [1371769979, 1371769945, 1371769917, 1371769883, 1371769857, 1371769831, 1371769585, 1371769558, 1371769523, 1371769461, 1371769405, 1371769369] Looping around the photos to save general results len do output : 1 /24867390Didn'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, '3274040') ('4302', '24867390', '1371769979', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040') ('4302', None, None, None, None, None, None, None, '3274040') ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040') 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, '24867390', 'None', None, None, None, None, '3274040'), ('4302', '24867390', '1371769979', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769945', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769917', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769883', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769857', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769831', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769585', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769558', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769523', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769461', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769405', None, None, None, None, None, '3274040'), ('4302', '24867390', '1371769369', None, None, None, None, None, '3274040')] time used for this insertion : 0.014688491821289062 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5954246520996094 time spend to save output : 0.014897346496582031 total time spend for step 5 : 0.6103219985961914 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 (3274040) 2.03user 2.63system 0:07.19elapsed 64%CPU (0avgtext+0avgdata 160620maxresident)k 232inputs+8360outputs (4major+64336minor)pagefaults 0swaps