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 : 3343485 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 (2971812) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2971812) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401154 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2971812'] with mtr_portfolio_ids : ['23401154'] and first list_photo_ids : [] new path : /proc/3343485/ Name: python3 Umask: 0002 State: R (running) Tgid: 3343485 Ngid: 0 Pid: 3343485 PPid: 3343482 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3343485 NSpid: 3343485 NSpgid: 3340777 NSsid: 3340777 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99308 kB VmRSS: 99308 kB RssAnon: 60204 kB RssFile: 39104 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3343485', 'Ngid': '0', 'Pid': '3343485', 'PPid': '3343482', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3343485', 'NSpid': '3343485', 'NSpgid': '3340777', 'NSsid': '3340777', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99308 kB', 'VmRSS': '99308 kB', 'RssAnon': '60204 kB', 'RssFile': '39104 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '3343485', '1107228', '0', '1107228', '865976', '99308', b'', 'marlene', '2971812') 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 (23401154) 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 (2971812 ) ) 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 (23401154) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1361426903, 'portfolio_id': 23401154}, {'photo_id': 1361426893, 'portfolio_id': 23401154}, {'photo_id': 1361426891, 'portfolio_id': 23401154}, {'photo_id': 1361426890, 'portfolio_id': 23401154}, {'photo_id': 1361426889, 'portfolio_id': 23401154}, {'photo_id': 1361426888, 'portfolio_id': 23401154}, {'photo_id': 1361426875, 'portfolio_id': 23401154}, {'photo_id': 1361426874, 'portfolio_id': 23401154}, {'photo_id': 1361426873, 'portfolio_id': 23401154}, {'photo_id': 1361426871, 'portfolio_id': 23401154}, {'photo_id': 1361426869, 'portfolio_id': 23401154}, {'photo_id': 1361426867, 'portfolio_id': 23401154}, {'photo_id': 1361426850, 'portfolio_id': 23401154}, {'photo_id': 1361426848, 'portfolio_id': 23401154}, {'photo_id': 1361426846, 'portfolio_id': 23401154}, {'photo_id': 1361426844, 'portfolio_id': 23401154}, {'photo_id': 1361426821, 'portfolio_id': 23401154}, {'photo_id': 1361426818, 'portfolio_id': 23401154}, {'photo_id': 1361426815, 'portfolio_id': 23401154}, {'photo_id': 1361426812, 'portfolio_id': 23401154}, {'photo_id': 1361426808, 'portfolio_id': 23401154}, {'photo_id': 1361426795, 'portfolio_id': 23401154}, {'photo_id': 1361426793, 'portfolio_id': 23401154}, {'photo_id': 1361426789, 'portfolio_id': 23401154}, {'photo_id': 1361426786, 'portfolio_id': 23401154}, {'photo_id': 1361426783, 'portfolio_id': 23401154}, {'photo_id': 1361426776, 'portfolio_id': 23401154}, {'photo_id': 1361426761, 'portfolio_id': 23401154}, {'photo_id': 1361426760, 'portfolio_id': 23401154}, {'photo_id': 1361426757, 'portfolio_id': 23401154}, {'photo_id': 1361426738, 'portfolio_id': 23401154}, {'photo_id': 1361426736, 'portfolio_id': 23401154}, {'photo_id': 1361426734, 'portfolio_id': 23401154}, {'photo_id': 1361426732, 'portfolio_id': 23401154}, {'photo_id': 1361426730, 'portfolio_id': 23401154}, {'photo_id': 1361426713, 'portfolio_id': 23401154}, {'photo_id': 1361426712, 'portfolio_id': 23401154}, {'photo_id': 1361426711, 'portfolio_id': 23401154}, {'photo_id': 1361426709, 'portfolio_id': 23401154}] map_portfolio_id_photo_id: {23401154: [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867, 1361426850, 1361426848, 1361426846, 1361426844, 1361426821, 1361426818, 1361426815, 1361426812, 1361426808, 1361426795, 1361426793, 1361426789, 1361426786, 1361426783, 1361426776, 1361426761, 1361426760, 1361426757, 1361426738, 1361426736, 1361426734, 1361426732, 1361426730, 1361426713, 1361426712, 1361426711, 1361426709]} ##### 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.015108585357666016 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed May 28 03:04:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23401154) 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 : 23401154 get user id for portfolio 23401154 get sub ptf for main ptf 23401154, type 3726 and hashtags ['plastique', 'Carton_gris', 'autre_refus', 'papier', 'metal', 'kraft', 'flou', 'environnement', 'cartonnette', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23401154 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','papier','metal','kraft','flou','environnement','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23401154 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','papier','metal','kraft','flou','environnement','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23401154, 'sub_port_id': 23401157, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612822, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 23401154, 'sub_port_id': 23401158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612823, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'Carton_gris': {'main_port_id': 23401154, 'sub_port_id': 23401159, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612824, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'mal_croppe': {'main_port_id': 23401154, 'sub_port_id': 23401160, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612825, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'kraft': {'main_port_id': 23401154, 'sub_port_id': 23401161, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612826, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'Carton_brun': {'main_port_id': 23401154, 'sub_port_id': 23401162, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612827, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'metal': {'main_port_id': 23401154, 'sub_port_id': 23401163, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612828, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'plastique': {'main_port_id': 23401154, 'sub_port_id': 23401164, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612829, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'environnement': {'main_port_id': 23401154, 'sub_port_id': 23401165, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612830, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'papier': {'main_port_id': 23401154, 'sub_port_id': 23401166, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612831, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'autre_refus': {'main_port_id': 23401154, 'sub_port_id': 23401167, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612832, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}, 'cartonnette': {'main_port_id': 23401154, 'sub_port_id': 23401168, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612833, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23401157 , 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=23401154 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 (23401157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401158 , 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=23401154 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 (23401158) result : ((1361426774,), (1361426775,), (1361426892,), (1361426924,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401159 , 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=23401154 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 (23401159) result : ((1361426894,), (1361426895,), (1361426896,), (1361426897,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401160 , 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=23401154 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 (23401160) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401161 , 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=23401154 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 (23401161) result : ((1361426780,), (1361426781,), (1361426782,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401162 , 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=23401154 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 (23401162) result : ((1361426901,), (1361426902,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401163 , 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=23401154 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 (23401163) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401164 , 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=23401154 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 (23401164) result : ((1361426904,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401165 , 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=23401154 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 (23401165) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401166 , 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=23401154 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 (23401166) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401167 , 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=23401154 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 (23401167) result : ((1361426778,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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 23401168 , 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=23401154 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 (23401168) result : ((1361426898,), (1361426899,), (1361426900,), (1361426925,), (1361426926,), (1361426927,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23401154) result : ((1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) 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`=23401154 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','papier','metal','kraft','flou','environnement','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23401154 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_gris','autre_refus','papier','metal','kraft','flou','environnement','cartonnette','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23401154, 'sub_port_id': 23401169, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612834, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23401154, 'sub_port_id': 23401170, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612835, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'Carton_gris': {'main_port_id': 23401154, 'sub_port_id': 23401171, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612836, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'mal_croppe': {'main_port_id': 23401154, 'sub_port_id': 23401172, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612837, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'kraft': {'main_port_id': 23401154, 'sub_port_id': 23401173, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612838, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'Carton_brun': {'main_port_id': 23401154, 'sub_port_id': 23401174, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612839, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'metal': {'main_port_id': 23401154, 'sub_port_id': 23401175, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612840, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'plastique': {'main_port_id': 23401154, 'sub_port_id': 23401176, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612841, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'environnement': {'main_port_id': 23401154, 'sub_port_id': 23401177, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612842, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'papier': {'main_port_id': 23401154, 'sub_port_id': 23401178, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612843, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'autre_refus': {'main_port_id': 23401154, 'sub_port_id': 23401179, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612844, 'last_updated_at': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 2, 59, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}, 'cartonnette': {'main_port_id': 23401154, 'sub_port_id': 23401180, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15612845, 'last_updated_at': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 3, 2, 57), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 2, 59, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401161 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401174,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401162 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401175,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401163 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401176,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401164 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401177,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401165 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401178,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401166 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401179,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401167 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23401180,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23401168 lien utilise dans velours : https://www.fotonower.com/velours/23401169,23401170,23401171,23401172,23401173,23401174,23401175,23401176,23401177,23401178,23401179,23401180?tags=flou,Teint_Dans_La_Masse,Carton_gris,mal_croppe,kraft,Carton_brun,metal,plastique,environnement,papier,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23401154]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] map_info['map_portfolio_photo'] : {23401154: [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867, 1361426850, 1361426848, 1361426846, 1361426844, 1361426821, 1361426818, 1361426815, 1361426812, 1361426808, 1361426795, 1361426793, 1361426789, 1361426786, 1361426783, 1361426776, 1361426761, 1361426760, 1361426757, 1361426738, 1361426736, 1361426734, 1361426732, 1361426730, 1361426713, 1361426712, 1361426711, 1361426709]} final : False mtd_id 4302 list_pids : [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] Looping around the photos to save general results len do output : 1 /23401154. 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, '2971812') ('4302', '23401154', '1361426903', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812') 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, '23401154', "{'flou': 23401157, 'Teint_Dans_La_Masse': 23401158, 'Carton_gris': 23401159, 'mal_croppe': 23401160, 'kraft': 23401161, 'Carton_brun': 23401162, 'metal': 23401163, 'plastique': 23401164, 'environnement': 23401165, 'papier': 23401166, 'autre_refus': 23401167, 'cartonnette': 23401168}", None, None, None, None, '2971812'), ('4302', '23401154', '1361426903', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812')] time used for this insertion : 0.014365911483764648 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4272253513336182 time spend to save output : 0.014667272567749023 total time spend for step 1 : 1.4418926239013672 step2:final Wed May 28 03:04: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 (23401154) 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 23401154 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361426713,1361426712,1361426711,1361426709,1361426738,1361426736,1361426734,1361426732,1361426730,1361426761,1361426760,1361426757,1361426795,1361426793,1361426789,1361426786,1361426783,1361426776,1361426821,1361426818,1361426815,1361426812,1361426808,1361426850,1361426848,1361426846,1361426844,1361426875,1361426874,1361426873,1361426871,1361426869,1361426867,1361426903,1361426893,1361426891,1361426890,1361426889,1361426888); 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([23401154]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} new output for save of step final : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] map_info['map_portfolio_photo'] : {23401154: [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867, 1361426850, 1361426848, 1361426846, 1361426844, 1361426821, 1361426818, 1361426815, 1361426812, 1361426808, 1361426795, 1361426793, 1361426789, 1361426786, 1361426783, 1361426776, 1361426761, 1361426760, 1361426757, 1361426738, 1361426736, 1361426734, 1361426732, 1361426730, 1361426713, 1361426712, 1361426711, 1361426709]} final : False mtd_id 4302 list_pids : [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] Looping around the photos to save general results len do output : 12 /1361426903.Didn't retrieve data . /1361426893.Didn't retrieve data . /1361426891.Didn't retrieve data . /1361426890.Didn't retrieve data . /1361426889.Didn't retrieve data . /1361426888.Didn't retrieve data . /1361426875.Didn't retrieve data . /1361426874.Didn't retrieve data . /1361426873.Didn't retrieve data . /1361426871.Didn't retrieve data . /1361426869.Didn't retrieve data . /1361426867.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, '2971812') ('4302', '23401154', '1361426903', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812') 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', '23401154', '1361426903', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426893', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426891', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426890', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426889', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426888', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426875', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426874', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426873', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426871', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426869', '0.05655831234633514', None, None, None, None, '2971812'), ('4302', '23401154', '1361426867', '0.05655831234633514', None, None, None, None, '2971812')] time used for this insertion : 0.013534307479858398 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06404328346252441 time spend to save output : 0.014180183410644531 total time spend for step 2 : 0.07822346687316895 step3:velours_tree Wed May 28 03:04: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 : {23401154: [{'flou': 23401157, 'Teint_Dans_La_Masse': 23401158, 'Carton_gris': 23401159, 'mal_croppe': 23401160, 'kraft': 23401161, 'Carton_brun': 23401162, 'metal': 23401163, 'plastique': 23401164, 'environnement': 23401165, 'papier': 23401166, 'autre_refus': 23401167, 'cartonnette': 23401168}]} input_args_next_step : {23401154: ()} output_args : {23401154: [{'flou': 23401157, 'Teint_Dans_La_Masse': 23401158, 'Carton_gris': 23401159, 'mal_croppe': 23401160, 'kraft': 23401161, 'Carton_brun': 23401162, 'metal': 23401163, 'plastique': 23401164, 'environnement': 23401165, 'papier': 23401166, 'autre_refus': 23401167, 'cartonnette': 23401168}]} args : 23401154 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 23401157, 'Teint_Dans_La_Masse': 23401158, 'Carton_gris': 23401159, 'mal_croppe': 23401160, 'kraft': 23401161, 'Carton_brun': 23401162, 'metal': 23401163, 'plastique': 23401164, 'environnement': 23401165, 'papier': 23401166, 'autre_refus': 23401167, 'cartonnette': 23401168},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23401154) 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([23401154]) 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.32842063903808594 time spend to save output : 4.38690185546875e-05 total time spend for step 3 : 0.3284645080566406 step4:send_mail_cod Wed May 28 03:04: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 : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} input_args_next_step : {1361426903: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426903 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426893 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426891 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426890 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426889 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426888 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426875 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426874 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426873 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426871 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426869 depend.output_id : 0 input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ()} output_args : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',)} args : 1361426867 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 : {23401154: [{'flou': 23401157, 'Teint_Dans_La_Masse': 23401158, 'Carton_gris': 23401159, 'mal_croppe': 23401160, 'kraft': 23401161, 'Carton_brun': 23401162, 'metal': 23401163, 'plastique': 23401164, 'environnement': 23401165, 'papier': 23401166, 'autre_refus': 23401167, 'cartonnette': 23401168}]} input_args_next_step : {1361426903: ('0.05655831234633514',), 1361426893: ('0.05655831234633514',), 1361426891: ('0.05655831234633514',), 1361426890: ('0.05655831234633514',), 1361426889: ('0.05655831234633514',), 1361426888: ('0.05655831234633514',), 1361426875: ('0.05655831234633514',), 1361426874: ('0.05655831234633514',), 1361426873: ('0.05655831234633514',), 1361426871: ('0.05655831234633514',), 1361426869: ('0.05655831234633514',), 1361426867: ('0.05655831234633514',), 23401154: ()} output_args : {23401154: [{'flou': 23401157, 'Teint_Dans_La_Masse': 23401158, 'Carton_gris': 23401159, 'mal_croppe': 23401160, 'kraft': 23401161, 'Carton_brun': 23401162, 'metal': 23401163, 'plastique': 23401164, 'environnement': 23401165, 'papier': 23401166, 'autre_refus': 23401167, 'cartonnette': 23401168}]} args : 23401154 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.05655831234633514',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23401154) 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 (1361426903,1361426893,1361426891,1361426890,1361426889,1361426888,1361426875,1361426874,1361426873,1361426871,1361426869,1361426867) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361426867 begin to download photo : 1361426873 begin to download photo : 1361426888 begin to download photo : 1361426891 download finish for photo 1361426891 begin to download photo : 1361426893 download finish for photo 1361426888 begin to download photo : 1361426889 download finish for photo 1361426867 begin to download photo : 1361426869 download finish for photo 1361426873 begin to download photo : 1361426874 download finish for photo 1361426893 begin to download photo : 1361426903 download finish for photo 1361426889 begin to download photo : 1361426890 download finish for photo 1361426869 begin to download photo : 1361426871 download finish for photo 1361426903 download finish for photo 1361426874 begin to download photo : 1361426875 download finish for photo 1361426890 download finish for photo 1361426871 download finish for photo 1361426875 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette234011571748394299/ imagette234011601748394299/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P23401154_28-05-2025_03_04_59.pdf 23401157 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=23401157 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234011571748394299 23401160 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=23401160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234011601748394299 23401161 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=23401161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426780: '1748393965_557809_1361426712_08c09212c40782703686e58ad7cafcd2_rle_crop_3814643187_0.png', 1361426781: '1748393965_557809_1361426711_2e2957fe5dece18cb3ea6bee56914f8f_rle_crop_3814643199_0.png', 1361426782: '1748393965_557809_1361426709_add3d7197d45826ce5bcad234593b358_rle_crop_3814643212_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/971c6a9af30ddd34d3b4bbfffa0c374c_67330017.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/818bab2584859070c996f8d43e22931d_60459954.png change filename to text .imagette234011611748394299/ imagette234011611748394299/1748393965_557809_1361426712_08c09212c40782703686e58ad7cafcd2_rle_crop_3814643187_0.png.png imagette234011611748394299/1748393965_557809_1361426709_add3d7197d45826ce5bcad234593b358_rle_crop_3814643212_0.png.png imagette234011611748394299/1748393965_557809_1361426711_2e2957fe5dece18cb3ea6bee56914f8f_rle_crop_3814643199_0.png.png imagette234011631748394299/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/22ef930296d75e1fd3c56c4bfa26db1d_7291072.png imagette234011611748394299 23401163 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=23401163 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234011631748394299 23401164 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=23401164 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426904: '1748394207_561903_1361426793_3b6167e87e82cd31a5cbda79367b3331_rle_crop_3814643526_0.png'} change filename to text .imagette234011641748394299/ imagette234011641748394299/1748394207_561903_1361426793_3b6167e87e82cd31a5cbda79367b3331_rle_crop_3814643526_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/e481be3e35a1ae77f00f92f4c2ef4bd3_31364057.png imagette234011641748394299 23401167 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=23401167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426778: '1748393965_557809_1361426711_2e2957fe5dece18cb3ea6bee56914f8f_rle_crop_3814643196_0.png'} change filename to text .imagette234011671748394299/ imagette234011671748394299/1748393965_557809_1361426711_2e2957fe5dece18cb3ea6bee56914f8f_rle_crop_3814643196_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/51908c8f010eb806330f8933606c6a8f_24051983.png imagette234011671748394299 23401168 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=23401168 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426898: '1748394207_561903_1361426789_707db147ef0c27fece596b7130915364_rle_crop_3814643544_0.png', 1361426899: '1748394207_561903_1361426786_44380a06b15c1ed495c5791dd513e24e_rle_crop_3814643558_0.png', 1361426900: '1748394207_561903_1361426783_d599cc980fa6d78bde212e27465547ba_rle_crop_3814643580_0.png', 1361426925: '1748394265_563218_1361426815_eddb8876b135d5095cf84ebe47d49afd_rle_crop_3814643732_0.png', 1361426926: '1748394265_563218_1361426815_eddb8876b135d5095cf84ebe47d49afd_rle_crop_3814643737_0.png', 1361426927: '1748394265_563218_1361426812_0ab885de9d74ff4ecf250ede42dd4a91_rle_crop_3814643748_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/4def44341aba4f11813774079fb23faf_80170577.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/1d38e1a4967baae6b329726dd5e7adc0_43167858.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/c4d4e1f81cac62a951da79015a25e6b4_78190718.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/9e24baa8bb55cb418667ac6c4bcb74eb_39163736.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/88248b3216b6861727ae6bbd40d98907_36426204.png change filename to text .imagette234011681748394299/ imagette234011681748394299/1748394207_561903_1361426783_d599cc980fa6d78bde212e27465547ba_rle_crop_3814643580_0.png.png imagette234011681748394299/1748394265_563218_1361426815_eddb8876b135d5095cf84ebe47d49afd_rle_crop_3814643732_0.png.png imagette234011681748394299/1748394207_561903_1361426789_707db147ef0c27fece596b7130915364_rle_crop_3814643544_0.png.png imagette234011681748394299/1748394207_561903_1361426786_44380a06b15c1ed495c5791dd513e24e_rle_crop_3814643558_0.png.png imagette234011681748394299/1748394265_563218_1361426812_0ab885de9d74ff4ecf250ede42dd4a91_rle_crop_3814643748_0.png.png imagette234011681748394299/1748394265_563218_1361426815_eddb8876b135d5095cf84ebe47d49afd_rle_crop_3814643737_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/b8f8e4e65d129e302329c4ed7c040197_93703417.png imagette234011681748394299 23401158 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=23401158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426774: '1748393965_557809_1361426712_08c09212c40782703686e58ad7cafcd2_rle_crop_3814643190_0.png', 1361426775: '1748393965_557809_1361426709_add3d7197d45826ce5bcad234593b358_rle_crop_3814643215_0.png', 1361426892: '1748394207_561903_1361426793_3b6167e87e82cd31a5cbda79367b3331_rle_crop_3814643533_0.png', 1361426924: '1748394265_563218_1361426812_0ab885de9d74ff4ecf250ede42dd4a91_rle_crop_3814643750_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/bee53cc94c4ca89df9e4e7d58d61e4f9_41658083.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/81dc25f41a5415c0bf4cbe8ef33dd018_48560821.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/b7a50b37714f8011e75ed3232dbb3072_24507396.png change filename to text .imagette234011581748394300/ imagette234011581748394300/1748394207_561903_1361426793_3b6167e87e82cd31a5cbda79367b3331_rle_crop_3814643533_0.png.png imagette234011581748394300/1748393965_557809_1361426712_08c09212c40782703686e58ad7cafcd2_rle_crop_3814643190_0.png.png imagette234011581748394300/1748393965_557809_1361426709_add3d7197d45826ce5bcad234593b358_rle_crop_3814643215_0.png.png imagette234011581748394300/1748394265_563218_1361426812_0ab885de9d74ff4ecf250ede42dd4a91_rle_crop_3814643750_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/1ffb2cbb4f8468f560590d49dbf4be57_84757816.png imagette234011581748394300 23401159 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=23401159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426894: '1748394207_561903_1361426789_707db147ef0c27fece596b7130915364_rle_crop_3814643543_0.png', 1361426895: '1748394207_561903_1361426786_44380a06b15c1ed495c5791dd513e24e_rle_crop_3814643562_0.png', 1361426896: '1748394207_561903_1361426783_d599cc980fa6d78bde212e27465547ba_rle_crop_3814643576_0.png', 1361426897: '1748394207_561903_1361426783_d599cc980fa6d78bde212e27465547ba_rle_crop_3814643575_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/42bcc5b9102e3eda6fc5c9bffa9ad171_58822121.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/b2e079bcf68b87e83278808a52408480_86259998.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/9eaf3fab582dfe80f0ecf6739a42f4ad_2641903.png change filename to text .imagette234011591748394300/ imagette234011591748394300/1748394207_561903_1361426789_707db147ef0c27fece596b7130915364_rle_crop_3814643543_0.png.png imagette234011591748394300/1748394207_561903_1361426783_d599cc980fa6d78bde212e27465547ba_rle_crop_3814643576_0.png.png imagette234011591748394300/1748394207_561903_1361426783_d599cc980fa6d78bde212e27465547ba_rle_crop_3814643575_0.png.png imagette234011591748394300/1748394207_561903_1361426786_44380a06b15c1ed495c5791dd513e24e_rle_crop_3814643562_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/77ba00cef15af801f430c61a7fb598bd_92040596.png imagette234011591748394300 23401162 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=23401162 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1361426901: '1748394207_561903_1361426793_3b6167e87e82cd31a5cbda79367b3331_rle_crop_3814643531_0.png', 1361426902: '1748394207_561903_1361426789_707db147ef0c27fece596b7130915364_rle_crop_3814643548_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/d7f55775e343324f9f5ab693c4b7a656_40597507.png change filename to text .imagette234011621748394300/ imagette234011621748394300/1748394207_561903_1361426793_3b6167e87e82cd31a5cbda79367b3331_rle_crop_3814643531_0.png.png imagette234011621748394300/1748394207_561903_1361426789_707db147ef0c27fece596b7130915364_rle_crop_3814643548_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/d903f614a6930e7fa2e812641b8a7b6c_35483456.png imagette234011621748394300 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23401154 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23401169,23401170,23401171,23401172,23401173,23401174,23401175,23401176,23401177,23401178,23401179,23401180?tags=flou,Teint_Dans_La_Masse,Carton_gris,mal_croppe,kraft,Carton_brun,metal,plastique,environnement,papier,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1361426903] : ('0.05655831234633514',) no score found for photo 1361426903 We are sending mail with results at report@fotonower.com args[1361426893] : ('0.05655831234633514',) no score found for photo 1361426893 We are sending mail with results at report@fotonower.com args[1361426891] : ('0.05655831234633514',) no score found for photo 1361426891 We are sending mail with results at report@fotonower.com args[1361426890] : ('0.05655831234633514',) no score found for photo 1361426890 We are sending mail with results at report@fotonower.com args[1361426889] : ('0.05655831234633514',) no score found for photo 1361426889 We are sending mail with results at report@fotonower.com args[1361426888] : ('0.05655831234633514',) no score found for photo 1361426888 We are sending mail with results at report@fotonower.com args[1361426875] : ('0.05655831234633514',) no score found for photo 1361426875 We are sending mail with results at report@fotonower.com args[1361426874] : ('0.05655831234633514',) no score found for photo 1361426874 We are sending mail with results at report@fotonower.com args[1361426873] : ('0.05655831234633514',) no score found for photo 1361426873 We are sending mail with results at report@fotonower.com args[1361426871] : ('0.05655831234633514',) no score found for photo 1361426871 We are sending mail with results at report@fotonower.com args[1361426869] : ('0.05655831234633514',) no score found for photo 1361426869 We are sending mail with results at report@fotonower.com args[1361426867] : ('0.05655831234633514',) no score found for photo 1361426867 We are sending mail with results at report@fotonower.com refus_total : 0.05655831234633514 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=23401154 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_P23401154_28-05-2025_03_04_59.pdf results_Auto_P23401154_28-05-2025_03_04_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_28-05-2025_03_04_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','23401154','results_Auto_P23401154_28-05-2025_03_04_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_28-05-2025_03_04_59.pdf','pdf','','0.15','0.05655831234633514') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23401154]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] map_info['map_portfolio_photo'] : {23401154: [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867, 1361426850, 1361426848, 1361426846, 1361426844, 1361426821, 1361426818, 1361426815, 1361426812, 1361426808, 1361426795, 1361426793, 1361426789, 1361426786, 1361426783, 1361426776, 1361426761, 1361426760, 1361426757, 1361426738, 1361426736, 1361426734, 1361426732, 1361426730, 1361426713, 1361426712, 1361426711, 1361426709]} final : False mtd_id 4302 list_pids : [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] 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, '2971812') ('4302', '23401154', '1361426903', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812') 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', '23401154', '1361426903', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812')] time used for this insertion : 0.013974666595458984 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.702296018600464 time spend to save output : 0.014236211776733398 total time spend for step 4 : 2.7165322303771973 step5:split_time_score Wed May 28 03:05: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 : ['23401154'] 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 : [('23401154',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23401154) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361426891: {'path': 'temp/1748394298_3343485_1361426891_226b2f204919784c35f10be8c892fda1.jpg', 'extension': 'jpg'}, 1361426893: {'path': 'temp/1748394298_3343485_1361426893_20bc07f773faa7088e5806f1e9339ea1.jpg', 'extension': 'jpg'}, 1361426903: {'path': 'temp/1748394298_3343485_1361426903_86c5a3f9bf5329f2a990e28e4bbcdf36.jpg', 'extension': 'jpg'}, 1361426888: {'path': 'temp/1748394298_3343485_1361426888_6605bd8bd8e8d73646136ed81984dab7.jpg', 'extension': 'jpg'}, 1361426889: {'path': 'temp/1748394298_3343485_1361426889_988fea55ad8f93e7ab11de9e4dfe85f6.jpg', 'extension': 'jpg'}, 1361426890: {'path': 'temp/1748394298_3343485_1361426890_7c60aef8c67bec87ef00a7373748dc54.jpg', 'extension': 'jpg'}, 1361426867: {'path': 'temp/1748394298_3343485_1361426867_008aa0c98dc79baa2b146c673e5061b1.jpg', 'extension': 'jpg'}, 1361426869: {'path': 'temp/1748394298_3343485_1361426869_377cab166bdeeb32d0e684f45b550067.jpg', 'extension': 'jpg'}, 1361426871: {'path': 'temp/1748394298_3343485_1361426871_352655c79feeb38163724f36c862f5f5.jpg', 'extension': 'jpg'}, 1361426873: {'path': 'temp/1748394298_3343485_1361426873_83bf4de52f6f27b54dd463ab9ac8303e.jpg', 'extension': 'jpg'}, 1361426874: {'path': 'temp/1748394298_3343485_1361426874_e71b3e7e0c38fe19c3776b644e17e7f0.jpg', 'extension': 'jpg'}, 1361426875: {'path': 'temp/1748394298_3343485_1361426875_4a64d92d139a675f37fc4d0e47354b95.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 = 23401154; (('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 = 23401154 group by h (('02', 39),) 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=23401154 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 (23401154) 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 (23401154) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28052025 23401154 Nombre de photos uploadées : 39 / 23040 (0%) 28052025 23401154 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 28052025 23401154 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1361426713, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/c4de8c989cfb9f6a6e5beebe6f03f97f.jpg', 'username': None, 'uploaded_at': 1748393804, 'text': 'image_28052025_02_31_04_010140m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1361426712, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/08c09212c40782703686e58ad7cafcd2.jpg', 'username': None, 'uploaded_at': 1748393804, 'text': 'image_28052025_02_31_13_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361426711, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/2e2957fe5dece18cb3ea6bee56914f8f.jpg', 'username': None, 'uploaded_at': 1748393804, 'text': 'image_28052025_02_31_24_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1361426709, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/add3d7197d45826ce5bcad234593b358.jpg', 'username': None, 'uploaded_at': 1748393804, 'text': 'image_28052025_02_31_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002535104751586914 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23401154, '2025-05-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1841518,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02337956428527832 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= 1841518 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23397772, 'dashboard_result_id': 10972731, '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_P23397772_28-05-2025_00_44_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23398051, 'dashboard_result_id': 10972732, '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_P23398051_28-05-2025_00_56_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23398303, 'dashboard_result_id': 10972733, '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_P23398303_28-05-2025_01_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23399179, 'dashboard_result_id': 10972734, '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_P23399179_28-05-2025_01_42_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23399344, 'dashboard_result_id': 10972735, '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_P23399344_28-05-2025_01_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23399686, 'dashboard_result_id': 10972736, '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_P23399686_28-05-2025_02_12_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23400106, 'dashboard_result_id': 10972737, '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_P23400106_28-05-2025_02_24_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23400761, 'dashboard_result_id': 10972738, '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_P23400761_28-05-2025_02_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}"}, {'dashboat_entry_day': 1841518, 'dashboard_run_id': 1849166, 'mtr_portfolio_id': 23401154, 'dashboard_result_id': 10972739, '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_P23401154_28-05-2025_03_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23397772 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': 2971027, 'mtr_portfolio_id': 23397772, 'created_at': datetime.datetime(2025, 5, 28, 0, 44, 57), 'result': '0.06446729513318857', 'result_long': None, 'result_double': None}] Qualite : 0.06446729513318857 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23397772 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_28-05-2025_00_44_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23397772 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_P23397772_28-05-2025_00_44_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, 'pht': 3726}}" where mtr_portfolio_id = 23397772 and dashboard_run_id = 1849166 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`=23397772 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972731, 0.06446729513318857, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23397772_28-05-2025_00_44_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23397774, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23397775, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23397776, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23397777, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23397778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23397779, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23397780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23397781, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23397782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23397783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23397784, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23397785, '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 = 23398051 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': 2971083, 'mtr_portfolio_id': 23398051, 'created_at': datetime.datetime(2025, 5, 28, 0, 56, 58), 'result': '0.045278973666385516', 'result_long': None, 'result_double': None}] Qualite : 0.045278973666385516 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23398051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_28-05-2025_00_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23398051 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_P23398051_28-05-2025_00_56_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, 'pht': 3726}}" where mtr_portfolio_id = 23398051 and dashboard_run_id = 1849166 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`=23398051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972732, 0.045278973666385516, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398051_28-05-2025_00_56_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398081, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398083, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398084, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398085, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398087, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398088, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398090, '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 = 23398303 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': 2971158, 'mtr_portfolio_id': 23398303, 'created_at': datetime.datetime(2025, 5, 28, 1, 20, 59), 'result': '0.046167851128557896', 'result_long': None, 'result_double': None}] Qualite : 0.046167851128557896 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23398303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_28-05-2025_01_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23398303 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_P23398303_28-05-2025_01_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, 'pht': 3726}}" where mtr_portfolio_id = 23398303 and dashboard_run_id = 1849166 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`=23398303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972733, 0.046167851128557896, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23398303_28-05-2025_01_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23398328, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23398329, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23398330, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23398331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23398332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23398333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23398334, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23398335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23398336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23398337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23398338, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23398339, '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 = 23399179 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': 2971297, 'mtr_portfolio_id': 23399179, 'created_at': datetime.datetime(2025, 5, 28, 1, 42, 29), 'result': '0.06182397326917539', 'result_long': None, 'result_double': None}] Qualite : 0.06182397326917539 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_28-05-2025_01_42_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399179 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_P23399179_28-05-2025_01_42_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, 'pht': 3726}}" where mtr_portfolio_id = 23399179 and dashboard_run_id = 1849166 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`=23399179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972734, 0.06182397326917539, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399179_28-05-2025_01_42_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399206, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399207, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399208, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399210, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399211, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399212, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399213, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399214, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399216, '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 = 23399344 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': 2971328, 'mtr_portfolio_id': 23399344, 'created_at': datetime.datetime(2025, 5, 28, 1, 56, 57), 'result': '0.039297003774858966', 'result_long': None, 'result_double': None}] Qualite : 0.039297003774858966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_28-05-2025_01_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399344 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_P23399344_28-05-2025_01_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, 'pht': 3726}}" where mtr_portfolio_id = 23399344 and dashboard_run_id = 1849166 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`=23399344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972735, 0.039297003774858966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399344_28-05-2025_01_56_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399351, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399353, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399354, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399356, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399358, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399361, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399362, '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 = 23399686 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': 2971425, 'mtr_portfolio_id': 23399686, 'created_at': datetime.datetime(2025, 5, 28, 2, 12, 58), 'result': '0.057971602056583645', 'result_long': None, 'result_double': None}] Qualite : 0.057971602056583645 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23399686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_28-05-2025_02_12_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23399686 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_P23399686_28-05-2025_02_12_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, 'pht': 3726}}" where mtr_portfolio_id = 23399686 and dashboard_run_id = 1849166 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`=23399686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972736, 0.057971602056583645, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23399686_28-05-2025_02_12_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23399693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23399694, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23399695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23399696, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23399697, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23399698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23399699, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23399700, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23399701, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23399702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23399703, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23399704, '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 = 23400106 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': 2971521, 'mtr_portfolio_id': 23400106, 'created_at': datetime.datetime(2025, 5, 28, 2, 26, 29), 'result': '0.03997929959585649', 'result_long': None, 'result_double': None}] Qualite : 0.03997929959585649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_28-05-2025_02_26_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400106 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_P23400106_28-05-2025_02_26_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, 'pht': 3726}}" where mtr_portfolio_id = 23400106 and dashboard_run_id = 1849166 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`=23400106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972737, 0.03997929959585649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400106_28-05-2025_02_26_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400115, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400117, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400119, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400120, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400121, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400122, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400123, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400124, '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 = 23400761 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': 2971689, 'mtr_portfolio_id': 23400761, 'created_at': datetime.datetime(2025, 5, 28, 2, 59), 'result': '0.04834556117046673', 'result_long': None, 'result_double': None}] Qualite : 0.04834556117046673 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23400761 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_28-05-2025_02_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23400761 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_P23400761_28-05-2025_02_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, 'pht': 3726}}" where mtr_portfolio_id = 23400761 and dashboard_run_id = 1849167 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`=23400761 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972738, 0.04834556117046673, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23400761_28-05-2025_02_59_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23400770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23400771, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23400772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23400773, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23400774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23400775, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23400776, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23400777, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23400778, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23400779, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23400780, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23400781, '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 = 23401154 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': 2971812, 'mtr_portfolio_id': 23401154, 'created_at': datetime.datetime(2025, 5, 28, 3, 4, 58), 'result': '0.05655831234633514', 'result_long': None, 'result_double': None}] Qualite : 0.05655831234633514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23401154 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_28-05-2025_03_04_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23401154 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_P23401154_28-05-2025_03_04_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, 'pht': 3726}}" where mtr_portfolio_id = 23401154 and dashboard_run_id = 1849167 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`=23401154 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10972739, 0.05655831234633514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23401154_28-05-2025_03_04_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23401157, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23401158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23401159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23401160, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23401161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23401162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23401163, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23401164, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23401165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23401166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23401167, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23401168, '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 (23397772,23398051,23398303,23399179,23399344,23399686,23400106,23400761,23401154) result : ((1361412970,), (1361412973,), (1361412976,), (1361412978,), (1361413011,), (1361413012,), (1361413014,), (1361413016,), (1361413018,), (1361413022,), (1361413044,), (1361413046,), (1361413048,), (1361413081,), (1361413083,), (1361413086,), (1361413089,), (1361413094,), (1361413097,), (1361413115,), (1361413117,), (1361413120,), (1361413121,), (1361413124,), (1361413128,), (1361413147,), (1361413149,), (1361413151,), (1361413152,), (1361413154,), (1361413187,), (1361413195,), (1361413197,), (1361413199,), (1361413201,), (1361413203,), (1361413219,), (1361413221,), (1361413223,), (1361413225,), (1361413255,), (1361413258,), (1361413261,), (1361413264,), (1361413266,), (1361413268,), (1361413287,), (1361413291,), (1361413292,), (1361413315,), (1361413316,), (1361413317,), (1361413318,), (1361413340,), (1361413512,), (1361413509,), (1361413511,), (1361413543,), (1361413545,), (1361413546,), (1361413547,), (1361413548,), (1361413550,), (1361413572,), (1361413573,), (1361413574,), (1361413575,), (1361413576,), (1361413578,), (1361413603,), (1361413604,), (1361413605,), (1361413606,), (1361413640,), (1361413641,), (1361413642,), (1361413643,), (1361413647,), (1361413654,), (1361413678,), (1361413680,), (1361413682,), (1361413684,), (1361413686,), (1361413710,), (1361413712,), (1361413714,), (1361413716,), (1361413722,), (1361413758,), (1361413759,), (1361413760,), (1361413761,), (1361413762,), (1361413763,), (1361413786,), (1361413787,), (1361413788,), (1361413789,), (1361413818,), (1361413819,), (1361413820,), (1361413821,), (1361413822,), (1361413823,), (1361413847,), (1361413850,), (1361413852,), (1361413854,), (1361413878,), (1361413879,), (1361413880,), (1361413881,), (1361413905,), (1361413908,), (1361413909,), (1361413911,), (1361413913,), (1361413916,), (1361413937,), (1361413935,), (1361413936,), (1361413961,), (1361413962,), (1361413963,), (1361413992,), (1361413993,), (1361413994,), (1361413995,), (1361413996,), (1361414019,), (1361414020,), (1361414021,), (1361414022,), (1361414023,), (1361414032,), (1361414035,), (1361414037,), (1361419067,), (1361420894,), (1361420897,), (1361420919,), (1361420945,), (1361420966,), (1361420978,), (1361420984,), (1361420986,), (1361420987,), (1361420988,), (1361421007,), (1361421009,), (1361421012,), (1361421015,), (1361421037,), (1361421041,), (1361421044,), (1361421047,), (1361421050,), (1361421054,), (1361421081,), (1361421083,), (1361421084,), (1361421101,), (1361421105,), (1361421107,), (1361421110,), (1361421113,), (1361421115,), (1361421132,), (1361421134,), (1361421136,), (1361421138,), (1361421139,), (1361421157,), (1361421159,), (1361421161,), (1361421164,), (1361421165,), (1361421167,), (1361421183,), (1361421186,), (1361421224,), (1361421215,), (1361421217,), (1361421219,), (1361421250,), (1361421258,), (1361421260,), (1361421261,), (1361421262,), (1361421276,), (1361421279,), (1361421282,), (1361421306,), (1361421308,), (1361421331,), (1361421332,), (1361421335,), (1361421337,), (1361421338,), (1361421359,), (1361421361,), (1361421363,), (1361421365,), (1361421393,), (1361421395,), (1361421397,), (1361421400,), (1361421401,), (1361421408,), (1361421429,), (1361421431,), (1361421447,), (1361421449,), (1361421454,), (1361421460,), (1361421482,), (1361421485,), (1361421488,), (1361421492,), (1361421720,), (1361421819,), (1361421848,), (1361421874,), (1361421897,), (1361421928,), (1361422150,), (1361422175,), (1361422202,), (1361422439,), (1361422441,), (1361422443,), (1361422445,), (1361422446,), (1361422576,), (1361422603,), (1361422627,), (1361422654,), (1361422681,), (1361422750,), (1361422752,), (1361422775,), (1361422801,), (1361422827,), (1361422915,), (1361422883,), (1361422885,), (1361422887,), (1361422892,), (1361423170,), (1361423172,), (1361423174,), (1361423176,), (1361423197,), (1361423200,), (1361423203,), (1361423206,), (1361423227,), (1361423229,), (1361423231,), (1361423244,), (1361423249,), (1361423253,), (1361423255,), (1361423276,), (1361423314,), (1361423319,), (1361423322,), (1361423325,), (1361423339,), (1361423360,), (1361423407,), (1361423409,), (1361423411,), (1361423444,), (1361423446,), (1361423448,), (1361423450,), (1361423476,), (1361423479,), (1361423481,), (1361423483,), (1361423485,), (1361423503,), (1361423509,), (1361423511,), (1361423513,), (1361423527,), (1361423529,), (1361423531,), (1361423559,), (1361423563,), (1361423566,), (1361423568,), (1361423595,), (1361423588,), (1361423590,), (1361423592,), (1361423594,), (1361423615,), (1361423618,), (1361423621,), (1361423624,), (1361423626,), (1361423648,), (1361423649,), (1361423655,), (1361423682,), (1361423685,), (1361423687,), (1361423709,), (1361423711,), (1361423713,), (1361423714,), (1361423716,), (1361423718,), (1361423742,), (1361423744,), (1361423746,), (1361423748,), (1361423750,), (1361423776,), (1361423778,), (1361423780,), (1361423812,), (1361423820,), (1361423822,), (1361423824,), (1361423825,), (1361423826,), (1361424021,), (1361424048,), (1361424073,), (1361424099,), (1361424126,), (1361424149,), (1361424406,), (1361424434,), (1361424464,), (1361424494,), (1361424811,), (1361424814,), (1361424816,), (1361424818,), (1361424820,), (1361424821,), (1361424844,), (1361424861,), (1361424887,), (1361424940,), (1361425202,), (1361425204,), (1361425205,), (1361425207,), (1361425480,), (1361425510,), (1361425533,), (1361425558,), (1361425585,), (1361425646,), (1361425647,), (1361425649,), (1361425650,), (1361425653,), (1361425654,), (1361425658,), (1361425659,), (1361425662,), (1361425664,), (1361425673,), (1361426135,), (1361426139,), (1361426142,), (1361426146,), (1361426147,), (1361426179,), (1361426181,), (1361426182,), (1361426183,), (1361426184,), (1361426185,), (1361426199,), (1361426201,), (1361426203,), (1361426204,), (1361426219,), (1361426220,), (1361426226,), (1361426232,), (1361426248,), (1361426249,), (1361426255,), (1361426258,), (1361426259,), (1361426260,), (1361426278,), (1361426281,), (1361426284,), (1361426285,), (1361426301,), (1361426313,), (1361426340,), (1361426366,), (1361426381,), (1361426390,), (1361426479,), (1361426480,), (1361426484,), (1361426491,), (1361426507,), (1361426508,), (1361426554,), (1361426555,), (1361426556,), (1361426584,), (1361426590,), (1361426592,), (1361426594,), (1361426596,), (1361426598,), (1361426614,), (1361426615,), (1361426616,), (1361426617,), (1361426645,), (1361426646,), (1361426648,), (1361426652,), (1361426659,), (1361426664,), (1361426666,), (1361426668,), (1361426714,), (1361426709,), (1361426711,), (1361426712,), (1361426713,), (1361426730,), (1361426732,), (1361426734,), (1361426736,), (1361426738,), (1361426757,), (1361426760,), (1361426761,), (1361426776,), (1361426783,), (1361426786,), (1361426789,), (1361426793,), (1361426795,), (1361426808,), (1361426812,), (1361426815,), (1361426818,), (1361426821,), (1361426844,), (1361426846,), (1361426848,), (1361426850,), (1361426867,), (1361426869,), (1361426871,), (1361426873,), (1361426874,), (1361426875,), (1361426888,), (1361426889,), (1361426890,), (1361426891,), (1361426893,), (1361426903,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28052025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23401154]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] map_info['map_portfolio_photo'] : {23401154: [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867, 1361426850, 1361426848, 1361426846, 1361426844, 1361426821, 1361426818, 1361426815, 1361426812, 1361426808, 1361426795, 1361426793, 1361426789, 1361426786, 1361426783, 1361426776, 1361426761, 1361426760, 1361426757, 1361426738, 1361426736, 1361426734, 1361426732, 1361426730, 1361426713, 1361426712, 1361426711, 1361426709]} final : True mtd_id 4302 list_pids : [1361426903, 1361426893, 1361426891, 1361426890, 1361426889, 1361426888, 1361426875, 1361426874, 1361426873, 1361426871, 1361426869, 1361426867] Looping around the photos to save general results len do output : 1 /23401154Didn'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, '2971812') ('4302', '23401154', '1361426903', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812') ('4302', None, None, None, None, None, None, None, '2971812') ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812') 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, '23401154', 'None', None, None, None, None, '2971812'), ('4302', '23401154', '1361426903', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426893', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426891', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426890', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426889', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426888', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426875', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426874', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426873', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426871', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426869', None, None, None, None, None, '2971812'), ('4302', '23401154', '1361426867', None, None, None, None, None, '2971812')] time used for this insertion : 0.016944408416748047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6229038238525391 time spend to save output : 0.0172119140625 total time spend for step 5 : 0.6401157379150391 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 (2971812) 2.08user 2.28system 0:07.54elapsed 57%CPU (0avgtext+0avgdata 161528maxresident)k 104inputs+8792outputs (1major+79251minor)pagefaults 0swaps