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 : 19552 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 (2718220) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2718220) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995734 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2718220'] with mtr_portfolio_ids : ['21995734'] and first list_photo_ids : [] new path : /proc/19552/ Name: python3 Umask: 0002 State: R (running) Tgid: 19552 Ngid: 0 Pid: 19552 PPid: 19551 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 19552 NSpid: 19552 NSpgid: 13673 NSsid: 13673 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97896 kB VmRSS: 97896 kB RssAnon: 59796 kB RssFile: 38100 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 60 nonvoluntary_ctxt_switches: 235 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '19552', 'Ngid': '0', 'Pid': '19552', 'PPid': '19551', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '19552', 'NSpid': '19552', 'NSpgid': '13673', 'NSsid': '13673', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97896 kB', 'VmRSS': '97896 kB', 'RssAnon': '59796 kB', 'RssFile': '38100 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '60', 'nonvoluntary_ctxt_switches': '235'} ('datou_batch_current', '19552', '1106928', '0', '1106928', '865676', '97896', b'', 'marlene', '2718220') 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 (21995734) 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 (2718220 ) ) 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 (21995734) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349664270, 'portfolio_id': 21995734}, {'photo_id': 1349664268, 'portfolio_id': 21995734}, {'photo_id': 1349664264, 'portfolio_id': 21995734}, {'photo_id': 1349664261, 'portfolio_id': 21995734}, {'photo_id': 1349664235, 'portfolio_id': 21995734}, {'photo_id': 1349664231, 'portfolio_id': 21995734}, {'photo_id': 1349664227, 'portfolio_id': 21995734}, {'photo_id': 1349664222, 'portfolio_id': 21995734}, {'photo_id': 1349664217, 'portfolio_id': 21995734}, {'photo_id': 1349664210, 'portfolio_id': 21995734}, {'photo_id': 1349664168, 'portfolio_id': 21995734}, {'photo_id': 1349664164, 'portfolio_id': 21995734}, {'photo_id': 1349664159, 'portfolio_id': 21995734}, {'photo_id': 1349664156, 'portfolio_id': 21995734}, {'photo_id': 1349664115, 'portfolio_id': 21995734}, {'photo_id': 1349664112, 'portfolio_id': 21995734}, {'photo_id': 1349664107, 'portfolio_id': 21995734}, {'photo_id': 1349664103, 'portfolio_id': 21995734}, {'photo_id': 1349664096, 'portfolio_id': 21995734}, {'photo_id': 1349664093, 'portfolio_id': 21995734}, {'photo_id': 1349664061, 'portfolio_id': 21995734}, {'photo_id': 1349664055, 'portfolio_id': 21995734}, {'photo_id': 1349664052, 'portfolio_id': 21995734}, {'photo_id': 1349664046, 'portfolio_id': 21995734}, {'photo_id': 1349664042, 'portfolio_id': 21995734}, {'photo_id': 1349663975, 'portfolio_id': 21995734}, {'photo_id': 1349663963, 'portfolio_id': 21995734}, {'photo_id': 1349663947, 'portfolio_id': 21995734}, {'photo_id': 1349663892, 'portfolio_id': 21995734}, {'photo_id': 1349663887, 'portfolio_id': 21995734}, {'photo_id': 1349663882, 'portfolio_id': 21995734}, {'photo_id': 1349663876, 'portfolio_id': 21995734}, {'photo_id': 1349663869, 'portfolio_id': 21995734}, {'photo_id': 1349663860, 'portfolio_id': 21995734}, {'photo_id': 1349663807, 'portfolio_id': 21995734}] map_portfolio_id_photo_id: {21995734: [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210, 1349664168, 1349664164, 1349664159, 1349664156, 1349664115, 1349664112, 1349664107, 1349664103, 1349664096, 1349664093, 1349664061, 1349664055, 1349664052, 1349664046, 1349664042, 1349663975, 1349663963, 1349663947, 1349663892, 1349663887, 1349663882, 1349663876, 1349663869, 1349663860, 1349663807]} ##### 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.014998912811279297 #### 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 Apr 2 23:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21995734) 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 : 21995734 get user id for portfolio 21995734 get sub ptf for main ptf 21995734, type 3726 and hashtags ['plastique', 'mal_croppe', 'autre_refus', 'cartonnette', 'Carton_gris', 'environnement', 'kraft', 'metal', 'flou', 'Teint_Dans_La_Masse', 'papier', 'Carton_brun'] 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`=21995734 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','cartonnette','Carton_gris','environnement','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_brun')) 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`=21995734 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','cartonnette','Carton_gris','environnement','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21995734, 'sub_port_id': 21995750, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492448, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'environnement': {'main_port_id': 21995734, 'sub_port_id': 21995751, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492449, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'flou': {'main_port_id': 21995734, 'sub_port_id': 21995752, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492450, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'metal': {'main_port_id': 21995734, 'sub_port_id': 21995753, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492451, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'mal_croppe': {'main_port_id': 21995734, 'sub_port_id': 21995754, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492452, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'autre_refus': {'main_port_id': 21995734, 'sub_port_id': 21995755, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492453, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'kraft': {'main_port_id': 21995734, 'sub_port_id': 21995756, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492454, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'plastique': {'main_port_id': 21995734, 'sub_port_id': 21995757, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492455, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21995734, 'sub_port_id': 21995758, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492456, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'papier': {'main_port_id': 21995734, 'sub_port_id': 21995759, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492457, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'Carton_brun': {'main_port_id': 21995734, 'sub_port_id': 21995760, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492458, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}, 'Carton_gris': {'main_port_id': 21995734, 'sub_port_id': 21995761, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492459, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21995750 , 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=21995734 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 (21995750) result : ((1349664088,), (1349664135,), (1349664136,), (1349664313,), (1349664314,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995751 , 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=21995734 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 (21995751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995752 , 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=21995734 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 (21995752) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995753 , 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=21995734 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 (21995753) result : ((1349664205,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995754 , 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=21995734 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 (21995754) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995755 , 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=21995734 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 (21995755) result : ((1349664087,), (1349664125,), (1349664126,), (1349664127,), (1349664303,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995756 , 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=21995734 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 (21995756) result : ((1349664142,), (1349664204,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995757 , 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=21995734 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 (21995757) result : ((1349664081,), (1349664140,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995758 , 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=21995734 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 (21995758) result : ((1349664085,), (1349664121,), (1349664122,), (1349664123,), (1349664196,), (1349664197,), (1349664299,), (1349664300,), (1349664308,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995759 , 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=21995734 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 (21995759) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995760 , 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=21995734 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 (21995760) result : ((1349664137,), (1349664138,), (1349664203,), (1349664301,), (1349664305,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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 21995761 , 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=21995734 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 (21995761) result : ((1349664131,), (1349664132,), (1349664133,), (1349664201,), (1349664202,), (1349664309,), (1349664310,), (1349664311,), (1349664312,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21995734) result : ((1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) 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`=21995734 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','cartonnette','Carton_gris','environnement','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_brun')) 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`=21995734 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','mal_croppe','autre_refus','cartonnette','Carton_gris','environnement','kraft','metal','flou','Teint_Dans_La_Masse','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 21995734, 'sub_port_id': 21995762, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492460, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'environnement': {'main_port_id': 21995734, 'sub_port_id': 21995763, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492461, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'flou': {'main_port_id': 21995734, 'sub_port_id': 21995764, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492462, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'metal': {'main_port_id': 21995734, 'sub_port_id': 21995765, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492463, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'mal_croppe': {'main_port_id': 21995734, 'sub_port_id': 21995766, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492464, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'autre_refus': {'main_port_id': 21995734, 'sub_port_id': 21995767, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492465, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'kraft': {'main_port_id': 21995734, 'sub_port_id': 21995768, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492466, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'plastique': {'main_port_id': 21995734, 'sub_port_id': 21995769, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492467, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21995734, 'sub_port_id': 21995770, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492468, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'papier': {'main_port_id': 21995734, 'sub_port_id': 21995771, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492469, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'Carton_brun': {'main_port_id': 21995734, 'sub_port_id': 21995772, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492470, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}, 'Carton_gris': {'main_port_id': 21995734, 'sub_port_id': 21995773, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14492471, 'last_updated_at': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 23, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 23, 50, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21995773,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21995761 lien utilise dans velours : https://www.fotonower.com/velours/21995762,21995763,21995764,21995765,21995766,21995767,21995768,21995769,21995770,21995771,21995772,21995773?tags=cartonnette,environnement,flou,metal,mal_croppe,autre_refus,kraft,plastique,Teint_Dans_La_Masse,papier,Carton_brun,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21995734]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] map_info['map_portfolio_photo'] : {21995734: [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210, 1349664168, 1349664164, 1349664159, 1349664156, 1349664115, 1349664112, 1349664107, 1349664103, 1349664096, 1349664093, 1349664061, 1349664055, 1349664052, 1349664046, 1349664042, 1349663975, 1349663963, 1349663947, 1349663892, 1349663887, 1349663882, 1349663876, 1349663869, 1349663860, 1349663807]} final : False mtd_id 4302 list_pids : [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] Looping around the photos to save general results len do output : 1 /21995734. 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, '2718220') ('4302', '21995734', '1349664270', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '21995734', "{'cartonnette': 21995750, 'environnement': 21995751, 'flou': 21995752, 'metal': 21995753, 'mal_croppe': 21995754, 'autre_refus': 21995755, 'kraft': 21995756, 'plastique': 21995757, 'Teint_Dans_La_Masse': 21995758, 'papier': 21995759, 'Carton_brun': 21995760, 'Carton_gris': 21995761}", None, None, None, None, '2718220'), ('4302', '21995734', '1349664270', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220')] time used for this insertion : 0.018091678619384766 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5292179584503174 time spend to save output : 0.0184023380279541 total time spend for step 1 : 1.5476202964782715 step2:final Wed Apr 2 23:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21995734) 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 21995734 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349663807,1349663892,1349663887,1349663882,1349663876,1349663869,1349663860,1349663975,1349663963,1349663947,1349664061,1349664055,1349664052,1349664046,1349664042,1349664115,1349664112,1349664107,1349664103,1349664096,1349664093,1349664168,1349664164,1349664159,1349664156,1349664235,1349664231,1349664227,1349664222,1349664217,1349664210,1349664270,1349664268,1349664264,1349664261); 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([21995734]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} new output for save of step final : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] map_info['map_portfolio_photo'] : {21995734: [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210, 1349664168, 1349664164, 1349664159, 1349664156, 1349664115, 1349664112, 1349664107, 1349664103, 1349664096, 1349664093, 1349664061, 1349664055, 1349664052, 1349664046, 1349664042, 1349663975, 1349663963, 1349663947, 1349663892, 1349663887, 1349663882, 1349663876, 1349663869, 1349663860, 1349663807]} final : False mtd_id 4302 list_pids : [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] Looping around the photos to save general results len do output : 10 /1349664270.Didn't retrieve data . /1349664268.Didn't retrieve data . /1349664264.Didn't retrieve data . /1349664261.Didn't retrieve data . /1349664235.Didn't retrieve data . /1349664231.Didn't retrieve data . /1349664227.Didn't retrieve data . /1349664222.Didn't retrieve data . /1349664217.Didn't retrieve data . /1349664210.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, '2718220') ('4302', '21995734', '1349664270', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21995734', '1349664270', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664268', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664264', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664261', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664235', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664231', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664227', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664222', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664217', '0.03525917453717756', None, None, None, None, '2718220'), ('4302', '21995734', '1349664210', '0.03525917453717756', None, None, None, None, '2718220')] time used for this insertion : 0.015877962112426758 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06943464279174805 time spend to save output : 0.016670942306518555 total time spend for step 2 : 0.0861055850982666 step3:velours_tree Wed Apr 2 23:56:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21995734: [{'cartonnette': 21995750, 'environnement': 21995751, 'flou': 21995752, 'metal': 21995753, 'mal_croppe': 21995754, 'autre_refus': 21995755, 'kraft': 21995756, 'plastique': 21995757, 'Teint_Dans_La_Masse': 21995758, 'papier': 21995759, 'Carton_brun': 21995760, 'Carton_gris': 21995761}]} input_args_next_step : {21995734: ()} output_args : {21995734: [{'cartonnette': 21995750, 'environnement': 21995751, 'flou': 21995752, 'metal': 21995753, 'mal_croppe': 21995754, 'autre_refus': 21995755, 'kraft': 21995756, 'plastique': 21995757, 'Teint_Dans_La_Masse': 21995758, 'papier': 21995759, 'Carton_brun': 21995760, 'Carton_gris': 21995761}]} args : 21995734 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 : ({'cartonnette': 21995750, 'environnement': 21995751, 'flou': 21995752, 'metal': 21995753, 'mal_croppe': 21995754, 'autre_refus': 21995755, 'kraft': 21995756, 'plastique': 21995757, 'Teint_Dans_La_Masse': 21995758, 'papier': 21995759, 'Carton_brun': 21995760, 'Carton_gris': 21995761},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21995734) 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([21995734]) 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.6059954166412354 time spend to save output : 5.650520324707031e-05 total time spend for step 3 : 0.6060519218444824 step4:send_mail_cod Wed Apr 2 23:57:00 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 : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} input_args_next_step : {1349664270: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664270 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664268 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664264 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664261 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664235 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664231 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664227 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664222 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664217 depend.output_id : 0 input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ()} output_args : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',)} args : 1349664210 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 : {21995734: [{'cartonnette': 21995750, 'environnement': 21995751, 'flou': 21995752, 'metal': 21995753, 'mal_croppe': 21995754, 'autre_refus': 21995755, 'kraft': 21995756, 'plastique': 21995757, 'Teint_Dans_La_Masse': 21995758, 'papier': 21995759, 'Carton_brun': 21995760, 'Carton_gris': 21995761}]} input_args_next_step : {1349664270: ('0.03525917453717756',), 1349664268: ('0.03525917453717756',), 1349664264: ('0.03525917453717756',), 1349664261: ('0.03525917453717756',), 1349664235: ('0.03525917453717756',), 1349664231: ('0.03525917453717756',), 1349664227: ('0.03525917453717756',), 1349664222: ('0.03525917453717756',), 1349664217: ('0.03525917453717756',), 1349664210: ('0.03525917453717756',), 21995734: ()} output_args : {21995734: [{'cartonnette': 21995750, 'environnement': 21995751, 'flou': 21995752, 'metal': 21995753, 'mal_croppe': 21995754, 'autre_refus': 21995755, 'kraft': 21995756, 'plastique': 21995757, 'Teint_Dans_La_Masse': 21995758, 'papier': 21995759, 'Carton_brun': 21995760, 'Carton_gris': 21995761}]} args : 21995734 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 :11, first value : ('0.03525917453717756',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21995734) 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 (1349664270,1349664268,1349664264,1349664261,1349664235,1349664231,1349664227,1349664222,1349664217,1349664210) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349664210 begin to download photo : 1349664227 begin to download photo : 1349664261 begin to download photo : 1349664270 download finish for photo 1349664270 download finish for photo 1349664227 begin to download photo : 1349664231 download finish for photo 1349664210 begin to download photo : 1349664217 download finish for photo 1349664261 begin to download photo : 1349664264 download finish for photo 1349664217 begin to download photo : 1349664222 download finish for photo 1349664231 begin to download photo : 1349664235 download finish for photo 1349664264 begin to download photo : 1349664268 download finish for photo 1349664222 download finish for photo 1349664235 download finish for photo 1349664268 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21995734_02-04-2025_23_57_00.pdf 21995750 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=21995750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664088: '1743630692_1565193_1349663807_10f39fa5a40d685bb053e4b757583e43_rle_crop_3745256872_0.png', 1349664135: '1743630712_1565385_1349663882_f6378e9d1ee79506ee4afd0aa6831449_rle_crop_3745257103_0.png', 1349664136: '1743630712_1565385_1349663882_f6378e9d1ee79506ee4afd0aa6831449_rle_crop_3745257104_0.png', 1349664313: '1743630926_1061802_1349664103_fdd69765787769eb89b81f2727f5978d_rle_crop_3745263335_0.png', 1349664314: '1743630926_1061802_1349664096_2ba5c3fb788bca208229deab64e92ff1_rle_crop_3745263347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e5d55ab44d43dc8623e3be5ed7c48c1e_596915.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cf0a7a9515f275fc3c55691d1818f204_47316621.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9b933c493a7f77500fc9f8feff041acc_62678064.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/494d1a23f82acad20bef4054f15c1e9f_47790925.png change filename to text .imagette219957501743631020/ imagette219957501743631020/1743630926_1061802_1349664096_2ba5c3fb788bca208229deab64e92ff1_rle_crop_3745263347_0.png.png imagette219957501743631020/1743630712_1565385_1349663882_f6378e9d1ee79506ee4afd0aa6831449_rle_crop_3745257103_0.png.png imagette219957501743631020/1743630926_1061802_1349664103_fdd69765787769eb89b81f2727f5978d_rle_crop_3745263335_0.png.png imagette219957501743631020/1743630712_1565385_1349663882_f6378e9d1ee79506ee4afd0aa6831449_rle_crop_3745257104_0.png.png imagette219957501743631020/1743630692_1565193_1349663807_10f39fa5a40d685bb053e4b757583e43_rle_crop_3745256872_0.png.png imagette219957521743631021/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/08fa6d8ce73859cdf61659db15006839_18172208.png imagette219957501743631020 21995752 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=21995752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219957521743631021 21995753 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=21995753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664205: '1743630806_3915956_1349664055_ad8575d9a1a752b9093abcd5d3ffbb08_rle_crop_3745257361_0.png'} change filename to text .imagette219957531743631021/ imagette219957531743631021/1743630806_3915956_1349664055_ad8575d9a1a752b9093abcd5d3ffbb08_rle_crop_3745257361_0.png.png imagette219957541743631021/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7b9e62100c6498bbedae8e7d4415de16_17679620.png imagette219957531743631021 21995754 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=21995754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219957541743631021 21995755 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=21995755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664087: '1743630692_1565193_1349663892_04c155ea6e2ea0deffe9eef3e16c40be_rle_crop_3745256862_0.png', 1349664125: '1743630712_1565385_1349663887_d728dd9ec707216c620c498c5f162f54_rle_crop_3745257090_0.png', 1349664126: '1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257154_0.png', 1349664127: '1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257152_0.png', 1349664303: '1743630925_3918932_1349664156_f4ba88391c38dbbb1e764816316abe9b_rle_crop_3745263285_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c52995db3e7abc15d88b586879acfbd6_42696359.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/489939fd5ba3638a788d44e7fe36ad30_19233696.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ad7ce3053dd01681848b4bb9ed8cb093_34187543.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f17214e1528a2ad95fa0accb6dfc0d2f_13659835.png change filename to text .imagette219957551743631021/ imagette219957551743631021/1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257154_0.png.png imagette219957551743631021/1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257152_0.png.png imagette219957551743631021/1743630712_1565385_1349663887_d728dd9ec707216c620c498c5f162f54_rle_crop_3745257090_0.png.png imagette219957551743631021/1743630925_3918932_1349664156_f4ba88391c38dbbb1e764816316abe9b_rle_crop_3745263285_0.png.png imagette219957551743631021/1743630692_1565193_1349663892_04c155ea6e2ea0deffe9eef3e16c40be_rle_crop_3745256862_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8617462df81fc2bd3811517bdb15bf9e_78484109.png imagette219957551743631021 21995756 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=21995756 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664142: '1743630712_1565385_1349663975_91a5144e5efe2810dac0c67423cd33b8_rle_crop_3745257073_0.png', 1349664204: '1743630806_3915956_1349664046_d6b0bfc3b7510aa216b3f6cad25f9ab6_rle_crop_3745257404_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2e183c90dc51a5eee5da2e23927e436d_26259998.png change filename to text .imagette219957561743631021/ imagette219957561743631021/1743630806_3915956_1349664046_d6b0bfc3b7510aa216b3f6cad25f9ab6_rle_crop_3745257404_0.png.png imagette219957561743631021/1743630712_1565385_1349663975_91a5144e5efe2810dac0c67423cd33b8_rle_crop_3745257073_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e292d5cb24604509aee4e1aa8a651ef9_65828118.png imagette219957561743631021 21995757 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=21995757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664081: '1743630687_3913175_1349663963_4462b61588c895bd90fbeffe5701851a_rle_crop_3745256852_0.png', 1349664140: '1743630712_1565385_1349663869_04a7daa90c0a910461fc517ca28fd6c9_rle_crop_3745257135_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a04803ca9c1f87d5b86dc8fca0da23ee_67960427.png change filename to text .imagette219957571743631021/ imagette219957571743631021/1743630712_1565385_1349663869_04a7daa90c0a910461fc517ca28fd6c9_rle_crop_3745257135_0.png.png imagette219957571743631021/1743630687_3913175_1349663963_4462b61588c895bd90fbeffe5701851a_rle_crop_3745256852_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c3da0d3c288cf125f85b5b6bee296043_23641490.png imagette219957571743631021 21995758 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=21995758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664085: '1743630692_1565193_1349663807_10f39fa5a40d685bb053e4b757583e43_rle_crop_3745256871_0.png', 1349664121: '1743630712_1565385_1349663887_d728dd9ec707216c620c498c5f162f54_rle_crop_3745257096_0.png', 1349664122: '1743630712_1565385_1349663882_f6378e9d1ee79506ee4afd0aa6831449_rle_crop_3745257109_0.png', 1349664123: '1743630712_1565385_1349663869_04a7daa90c0a910461fc517ca28fd6c9_rle_crop_3745257137_0.png', 1349664196: '1743630806_3915956_1349664055_ad8575d9a1a752b9093abcd5d3ffbb08_rle_crop_3745257366_0.png', 1349664197: '1743630806_3915956_1349664042_8c6d67dc45ba9670b006db0c627f0d9d_rle_crop_3745257417_0.png', 1349664299: '1743630930_1567088_1349664115_d4372d46bc7036d6ee9e2fc3241d0a14_rle_crop_3745263275_0.png', 1349664300: '1743630930_1567088_1349664115_d4372d46bc7036d6ee9e2fc3241d0a14_rle_crop_3745263270_0.png', 1349664308: '1743630926_1061802_1349664107_78f0971490c14ec7ec00b3d68004f91f_rle_crop_3745263319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/11ec1a97f985192999515d1deaacdba7_70751555.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8e5eda539657ecc38ea45927d243f310_52756742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/78aef36379c2ad45d574c82b825c5b00_80537966.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a3c2c6e19219fbba3334d01999fe5a44_41390794.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2a23801753fd7b68bf0c3c71b453b79d_32926747.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c8327cdc0cab6edbad17ffc4b9f7272c_40711826.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0733b3e480490c5f588683b448a4e1d2_99015190.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d09854b6e217a799b58b91373da178c0_83435702.png change filename to text .imagette219957581743631021/ imagette219957581743631021/1743630712_1565385_1349663869_04a7daa90c0a910461fc517ca28fd6c9_rle_crop_3745257137_0.png.png imagette219957581743631021/1743630930_1567088_1349664115_d4372d46bc7036d6ee9e2fc3241d0a14_rle_crop_3745263275_0.png.png imagette219957581743631021/1743630712_1565385_1349663882_f6378e9d1ee79506ee4afd0aa6831449_rle_crop_3745257109_0.png.png imagette219957581743631021/1743630926_1061802_1349664107_78f0971490c14ec7ec00b3d68004f91f_rle_crop_3745263319_0.png.png imagette219957581743631021/1743630806_3915956_1349664055_ad8575d9a1a752b9093abcd5d3ffbb08_rle_crop_3745257366_0.png.png imagette219957581743631021/1743630712_1565385_1349663887_d728dd9ec707216c620c498c5f162f54_rle_crop_3745257096_0.png.png imagette219957581743631021/1743630930_1567088_1349664115_d4372d46bc7036d6ee9e2fc3241d0a14_rle_crop_3745263270_0.png.png imagette219957581743631021/1743630692_1565193_1349663807_10f39fa5a40d685bb053e4b757583e43_rle_crop_3745256871_0.png.png imagette219957581743631021/1743630806_3915956_1349664042_8c6d67dc45ba9670b006db0c627f0d9d_rle_crop_3745257417_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a4100fe120b9f5d9be3f35c073c269ef_87370650.png imagette219957581743631021 21995760 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=21995760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664137: '1743630712_1565385_1349663975_91a5144e5efe2810dac0c67423cd33b8_rle_crop_3745257081_0.png', 1349664138: '1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257161_0.png', 1349664203: '1743630806_3915956_1349664046_d6b0bfc3b7510aa216b3f6cad25f9ab6_rle_crop_3745257403_0.png', 1349664301: '1743630930_1567088_1349664115_d4372d46bc7036d6ee9e2fc3241d0a14_rle_crop_3745263274_0.png', 1349664305: '1743630925_3918932_1349664159_27de71cea87c7fdaf282816635472075_rle_crop_3745263248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/64a139ea3c8387f5cfc59feeeb2c2bc1_87531122.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9828f5a2f908c50293aca62625e68bc6_57988244.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2a27ee0ccb466d8a09c7b85367a784f2_74173302.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b12f00f9d5f587a60b01fcdadb323f71_91548014.png change filename to text .imagette219957601743631022/ imagette219957601743631022/1743630712_1565385_1349663975_91a5144e5efe2810dac0c67423cd33b8_rle_crop_3745257081_0.png.png imagette219957601743631022/1743630925_3918932_1349664159_27de71cea87c7fdaf282816635472075_rle_crop_3745263248_0.png.png imagette219957601743631022/1743630806_3915956_1349664046_d6b0bfc3b7510aa216b3f6cad25f9ab6_rle_crop_3745257403_0.png.png imagette219957601743631022/1743630930_1567088_1349664115_d4372d46bc7036d6ee9e2fc3241d0a14_rle_crop_3745263274_0.png.png imagette219957601743631022/1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257161_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f99830b54c75afd04e56559057500ced_75390540.png imagette219957601743631022 21995761 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=21995761 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349664131: '1743630712_1565385_1349663975_91a5144e5efe2810dac0c67423cd33b8_rle_crop_3745257075_0.png', 1349664132: '1743630712_1565385_1349663869_04a7daa90c0a910461fc517ca28fd6c9_rle_crop_3745257132_0.png', 1349664133: '1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257153_0.png', 1349664201: '1743630806_3915956_1349664052_97909bf3cea4a268ded75b60fe7afd2d_rle_crop_3745257378_0.png', 1349664202: '1743630806_3915956_1349664046_d6b0bfc3b7510aa216b3f6cad25f9ab6_rle_crop_3745257402_0.png', 1349664309: '1743630926_1061802_1349664112_74cefc6164b618c9423e1953f623ecdc_rle_crop_3745263302_0.png', 1349664310: '1743630926_1061802_1349664107_78f0971490c14ec7ec00b3d68004f91f_rle_crop_3745263315_0.png', 1349664311: '1743630926_1061802_1349664107_78f0971490c14ec7ec00b3d68004f91f_rle_crop_3745263316_0.png', 1349664312: '1743630926_1061802_1349664103_fdd69765787769eb89b81f2727f5978d_rle_crop_3745263339_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/71ef6236bb3cfca23b179c91bfaade39_53228646.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9eb5d07bd6e3e98c5011b9491043cc69_67337333.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b4b634620f69077e495236c9d19da88f_53050682.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b3ed58736e3d0b6984cd49577ac622dd_20384670.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1a54f4736c1ed1782cbfe4b87ebc5642_11186457.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/313c82035b4c59ef934b414c1e261f8c_78022646.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3f16e5bf46c42ef67e79900246a2f27d_79846733.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c02098c7c5e92bf161c8417951ad4134_13793744.png change filename to text .imagette219957611743631022/ imagette219957611743631022/1743630806_3915956_1349664046_d6b0bfc3b7510aa216b3f6cad25f9ab6_rle_crop_3745257402_0.png.png imagette219957611743631022/1743630926_1061802_1349664107_78f0971490c14ec7ec00b3d68004f91f_rle_crop_3745263315_0.png.png imagette219957611743631022/1743630926_1061802_1349664112_74cefc6164b618c9423e1953f623ecdc_rle_crop_3745263302_0.png.png imagette219957611743631022/1743630926_1061802_1349664103_fdd69765787769eb89b81f2727f5978d_rle_crop_3745263339_0.png.png imagette219957611743631022/1743630926_1061802_1349664107_78f0971490c14ec7ec00b3d68004f91f_rle_crop_3745263316_0.png.png imagette219957611743631022/1743630806_3915956_1349664052_97909bf3cea4a268ded75b60fe7afd2d_rle_crop_3745257378_0.png.png imagette219957611743631022/1743630712_1565385_1349663975_91a5144e5efe2810dac0c67423cd33b8_rle_crop_3745257075_0.png.png imagette219957611743631022/1743630712_1565385_1349663869_04a7daa90c0a910461fc517ca28fd6c9_rle_crop_3745257132_0.png.png imagette219957611743631022/1743630712_1565385_1349663860_70252981ef536dc547a1e8043261b2d3_rle_crop_3745257153_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6e5bfcfc0d02ddba9fb05919c059cbc3_27772454.png imagette219957611743631022 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21995734 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21995762,21995763,21995764,21995765,21995766,21995767,21995768,21995769,21995770,21995771,21995772,21995773?tags=cartonnette,environnement,flou,metal,mal_croppe,autre_refus,kraft,plastique,Teint_Dans_La_Masse,papier,Carton_brun,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1349664270] : ('0.03525917453717756',) no score found for photo 1349664270 We are sending mail with results at report@fotonower.com args[1349664268] : ('0.03525917453717756',) no score found for photo 1349664268 We are sending mail with results at report@fotonower.com args[1349664264] : ('0.03525917453717756',) no score found for photo 1349664264 We are sending mail with results at report@fotonower.com args[1349664261] : ('0.03525917453717756',) no score found for photo 1349664261 We are sending mail with results at report@fotonower.com args[1349664235] : ('0.03525917453717756',) no score found for photo 1349664235 We are sending mail with results at report@fotonower.com args[1349664231] : ('0.03525917453717756',) no score found for photo 1349664231 We are sending mail with results at report@fotonower.com args[1349664227] : ('0.03525917453717756',) no score found for photo 1349664227 We are sending mail with results at report@fotonower.com args[1349664222] : ('0.03525917453717756',) no score found for photo 1349664222 We are sending mail with results at report@fotonower.com args[1349664217] : ('0.03525917453717756',) no score found for photo 1349664217 We are sending mail with results at report@fotonower.com args[1349664210] : ('0.03525917453717756',) no score found for photo 1349664210 We are sending mail with results at report@fotonower.com refus_total : 0.03525917453717756 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=21995734 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_P21995734_02-04-2025_23_57_00.pdf results_Auto_P21995734_02-04-2025_23_57_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_02-04-2025_23_57_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21995734','results_Auto_P21995734_02-04-2025_23_57_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_02-04-2025_23_57_00.pdf','pdf','','0.2','0.03525917453717756') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21995734]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] map_info['map_portfolio_photo'] : {21995734: [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210, 1349664168, 1349664164, 1349664159, 1349664156, 1349664115, 1349664112, 1349664107, 1349664103, 1349664096, 1349664093, 1349664061, 1349664055, 1349664052, 1349664046, 1349664042, 1349663975, 1349663963, 1349663947, 1349663892, 1349663887, 1349663882, 1349663876, 1349663869, 1349663860, 1349663807]} final : False mtd_id 4302 list_pids : [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] 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, '2718220') ('4302', '21995734', '1349664270', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '21995734', '1349664270', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220')] time used for this insertion : 0.013776302337646484 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7876970767974854 time spend to save output : 0.014108896255493164 total time spend for step 4 : 3.8018059730529785 step5:split_time_score Wed Apr 2 23:57:04 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 : ['21995734'] 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 : [('21995734',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21995734) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349664270: {'path': 'temp/1743631020_19552_1349664270_bdac0993240a12d8164d09094f6fde78.jpg', 'extension': 'jpg'}, 1349664210: {'path': 'temp/1743631020_19552_1349664210_0628e74e59ca6547baff664b754963aa.jpg', 'extension': 'jpg'}, 1349664217: {'path': 'temp/1743631020_19552_1349664217_49751c678aa64b70d050efe7d8250032.jpg', 'extension': 'jpg'}, 1349664222: {'path': 'temp/1743631020_19552_1349664222_a0af49d4b171b87faad15ea0d1df4804.jpg', 'extension': 'jpg'}, 1349664227: {'path': 'temp/1743631020_19552_1349664227_6ee7c712ef1b86f51ac8496ca192f66b.jpg', 'extension': 'jpg'}, 1349664231: {'path': 'temp/1743631020_19552_1349664231_b1041c917511bf539d27e80a419aaafe.jpg', 'extension': 'jpg'}, 1349664235: {'path': 'temp/1743631020_19552_1349664235_fa7c6cda7ec33af09ed2ebff7033c382.jpg', 'extension': 'jpg'}, 1349664261: {'path': 'temp/1743631020_19552_1349664261_e94fd92e2a16122d169b8ef4a6587a4a.jpg', 'extension': 'jpg'}, 1349664264: {'path': 'temp/1743631020_19552_1349664264_fcf24a4684d5f59c0a633e1fd767020f.jpg', 'extension': 'jpg'}, 1349664268: {'path': 'temp/1743631020_19552_1349664268_49ce118c23b896016594c46cc606a03c.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 = 21995734; (('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 = 21995734 group by h (('23', 35),) 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=21995734 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 (21995734) 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 (21995734) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21995734 Nombre de photos uploadées : 35 / 23040 (0%) 02042025 21995734 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 02042025 21995734 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1349663807, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/10f39fa5a40d685bb053e4b757583e43.jpg', 'username': None, 'uploaded_at': 1743630487, 'text': 'image_02042025_23_47_43_10138.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1349663892, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/04c155ea6e2ea0deffe9eef3e16c40be.jpg', 'username': None, 'uploaded_at': 1743630547, 'text': 'image_02042025_23_47_54_10136.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1349663887, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d728dd9ec707216c620c498c5f162f54.jpg', 'username': None, 'uploaded_at': 1743630547, 'text': 'image_02042025_23_48_04_10144.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349663882, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f6378e9d1ee79506ee4afd0aa6831449.jpg', 'username': None, 'uploaded_at': 1743630547, 'text': 'image_02042025_23_48_14_10136.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019838809967041016 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21995734, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026909589767456055 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719588, 'mtr_portfolio_id': 21993320, 'dashboard_result_id': 9825705, '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_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719588, 'mtr_portfolio_id': 21994250, 'dashboard_result_id': 9825706, '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_P21994250_02-04-2025_23_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719588, 'mtr_portfolio_id': 21995162, 'dashboard_result_id': 9825707, '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_P21995162_02-04-2025_23_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719588, 'mtr_portfolio_id': 21995734, 'dashboard_result_id': 9825708, '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_P21995734_02-04-2025_23_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, '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 = 21993320 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': 2718081, 'mtr_portfolio_id': 21993320, 'created_at': datetime.datetime(2025, 4, 2, 23, 19, 30), 'result': '0.04713894898914862', 'result_long': None, 'result_double': None}] Qualite : 0.04713894898914862 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21993320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21993320 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_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, 'pht': 3726}}" where mtr_portfolio_id = 21993320 and dashboard_run_id = 1719588 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`=21993320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9825705, 0.04713894898914862, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21993320_02-04-2025_23_19_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21993334, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21993335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21993336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21993337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21993338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21993339, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21993340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21993341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21993342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21993343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21993344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21993345, '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 = 21994250 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': 2718135, 'mtr_portfolio_id': 21994250, 'created_at': datetime.datetime(2025, 4, 2, 23, 33), 'result': '0.04682183031826243', 'result_long': None, 'result_double': None}] Qualite : 0.04682183031826243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21994250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21994250 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_P21994250_02-04-2025_23_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, 'pht': 3726}}" where mtr_portfolio_id = 21994250 and dashboard_run_id = 1719588 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`=21994250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9825706, 0.04682183031826243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21994250_02-04-2025_23_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21994253, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21994254, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21994255, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21994256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21994257, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21994258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21994259, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21994260, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21994261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21994262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21994263, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21994264, '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 = 21995162 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': 2718177, 'mtr_portfolio_id': 21995162, 'created_at': datetime.datetime(2025, 4, 2, 23, 48, 30), 'result': '0.05488579926024773', 'result_long': None, 'result_double': None}] Qualite : 0.05488579926024773 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21995162 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_02-04-2025_23_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21995162 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_P21995162_02-04-2025_23_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, 'pht': 3726}}" where mtr_portfolio_id = 21995162 and dashboard_run_id = 1719588 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`=21995162 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9825707, 0.05488579926024773, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995162_02-04-2025_23_48_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995178, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995179, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995180, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995181, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995182, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995183, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995184, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995189, '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 = 21995734 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': 2718220, 'mtr_portfolio_id': 21995734, 'created_at': datetime.datetime(2025, 4, 2, 23, 56, 59), 'result': '0.03525917453717756', 'result_long': None, 'result_double': None}] Qualite : 0.03525917453717756 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21995734 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_02-04-2025_23_57_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21995734 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_P21995734_02-04-2025_23_57_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, 'pht': 3726}}" where mtr_portfolio_id = 21995734 and dashboard_run_id = 1719588 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`=21995734 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9825708, 0.03525917453717756, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21995734_02-04-2025_23_57_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21995750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21995751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21995752, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21995753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21995754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21995755, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21995756, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21995757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21995758, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21995759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21995760, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21995761, '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 (21993320,21994250,21995162,21995734) result : ((1349641620,), (1349641698,), (1349641785,), (1349642352,), (1349642389,), (1349642440,), (1349642530,), (1349642637,), (1349643236,), (1349643302,), (1349643354,), (1349643404,), (1349643482,), (1349643510,), (1349643847,), (1349643871,), (1349643940,), (1349644048,), (1349644162,), (1349644600,), (1349644656,), (1349644680,), (1349644710,), (1349644738,), (1349644771,), (1349645071,), (1349645138,), (1349645188,), (1349645240,), (1349645282,), (1349645457,), (1349645544,), (1349645736,), (1349646069,), (1349646248,), (1349646738,), (1349646755,), (1349646780,), (1349646795,), (1349647246,), (1349647310,), (1349647335,), (1349647363,), (1349647449,), (1349647522,), (1349647769,), (1349647816,), (1349647865,), (1349647911,), (1349647942,), (1349648227,), (1349648256,), (1349648283,), (1349648313,), (1349648343,), (1349648407,), (1349648751,), (1349648793,), (1349648866,), (1349648930,), (1349649009,), (1349649666,), (1349649718,), (1349649774,), (1349649839,), (1349649886,), (1349649937,), (1349650183,), (1349650227,), (1349650326,), (1349650463,), (1349650576,), (1349650648,), (1349651146,), (1349651194,), (1349651262,), (1349651316,), (1349651997,), (1349651758,), (1349651817,), (1349651866,), (1349651908,), (1349651957,), (1349652407,), (1349652478,), (1349652561,), (1349652630,), (1349652673,), (1349652751,), (1349653208,), (1349653332,), (1349653368,), (1349653480,), (1349653992,), (1349654079,), (1349654175,), (1349654246,), (1349654339,), (1349654424,), (1349655219,), (1349655512,), (1349655711,), (1349655902,), (1349656780,), (1349656816,), (1349656882,), (1349656998,), (1349657131,), (1349657180,), (1349657725,), (1349657768,), (1349657846,), (1349657910,), (1349658127,), (1349658172,), (1349658202,), (1349658238,), (1349658265,), (1349658562,), (1349658606,), (1349658660,), (1349658813,), (1349658963,), (1349659065,), (1349659518,), (1349659616,), (1349659750,), (1349659817,), (1349660349,), (1349660404,), (1349660487,), (1349660542,), (1349660592,), (1349660937,), (1349660961,), (1349660997,), (1349661022,), (1349661055,), (1349661314,), (1349661342,), (1349661362,), (1349661367,), (1349661372,), (1349661409,), (1349661411,), (1349661414,), (1349661416,), (1349661478,), (1349661489,), (1349661496,), (1349661501,), (1349661576,), (1349661553,), (1349661560,), (1349661568,), (1349661573,), (1349661697,), (1349661724,), (1349661760,), (1349661792,), (1349661813,), (1349662051,), (1349662055,), (1349662058,), (1349662061,), (1349662066,), (1349662073,), (1349662218,), (1349662241,), (1349662250,), (1349662285,), (1349662340,), (1349662364,), (1349662374,), (1349662377,), (1349662380,), (1349662384,), (1349662423,), (1349662432,), (1349662443,), (1349662446,), (1349662454,), (1349662504,), (1349662537,), (1349662540,), (1349662546,), (1349662722,), (1349662737,), (1349662766,), (1349662790,), (1349662811,), (1349662834,), (1349662925,), (1349662928,), (1349662933,), (1349662941,), (1349663035,), (1349663042,), (1349663073,), (1349663081,), (1349663086,), (1349663128,), (1349663132,), (1349663137,), (1349663142,), (1349663145,), (1349663148,), (1349663211,), (1349663222,), (1349663235,), (1349663253,), (1349663257,), (1349663318,), (1349663322,), (1349663328,), (1349663375,), (1349663397,), (1349663400,), (1349663434,), (1349663438,), (1349663448,), (1349663459,), (1349663497,), (1349663810,), (1349663807,), (1349663860,), (1349663869,), (1349663876,), (1349663882,), (1349663887,), (1349663892,), (1349663947,), (1349663963,), (1349663975,), (1349664042,), (1349664046,), (1349664052,), (1349664055,), (1349664061,), (1349664093,), (1349664096,), (1349664103,), (1349664107,), (1349664112,), (1349664115,), (1349664156,), (1349664159,), (1349664164,), (1349664168,), (1349664210,), (1349664217,), (1349664222,), (1349664227,), (1349664231,), (1349664235,), (1349664261,), (1349664264,), (1349664268,), (1349664270,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21995734]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] map_info['map_portfolio_photo'] : {21995734: [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210, 1349664168, 1349664164, 1349664159, 1349664156, 1349664115, 1349664112, 1349664107, 1349664103, 1349664096, 1349664093, 1349664061, 1349664055, 1349664052, 1349664046, 1349664042, 1349663975, 1349663963, 1349663947, 1349663892, 1349663887, 1349663882, 1349663876, 1349663869, 1349663860, 1349663807]} final : True mtd_id 4302 list_pids : [1349664270, 1349664268, 1349664264, 1349664261, 1349664235, 1349664231, 1349664227, 1349664222, 1349664217, 1349664210] Looping around the photos to save general results len do output : 1 /21995734Didn'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, '2718220') ('4302', '21995734', '1349664270', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220') ('4302', None, None, None, None, None, None, None, '2718220') ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '21995734', 'None', None, None, None, None, '2718220'), ('4302', '21995734', '1349664270', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664268', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664264', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664261', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664235', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664231', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664227', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664222', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664217', None, None, None, None, None, '2718220'), ('4302', '21995734', '1349664210', None, None, None, None, None, '2718220')] time used for this insertion : 0.1445157527923584 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3709852695465088 time spend to save output : 0.14497876167297363 total time spend for step 5 : 0.5159640312194824 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 (2718220) 2.71user 2.28system 0:08.68elapsed 57%CPU (0avgtext+0avgdata 159876maxresident)k 69752inputs+11088outputs (230major+76854minor)pagefaults 0swaps