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 : 3909116 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 (2696988) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2696988) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784021 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2696988'] with mtr_portfolio_ids : ['21784021'] and first list_photo_ids : [] new path : /proc/3909116/ Name: python3 Umask: 0002 State: R (running) Tgid: 3909116 Ngid: 0 Pid: 3909116 PPid: 3909114 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3909116 NSpid: 3909116 NSpgid: 3908248 NSsid: 3908248 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97908 kB VmRSS: 97908 kB RssAnon: 59756 kB RssFile: 38152 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 552 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3909116', 'Ngid': '0', 'Pid': '3909116', 'PPid': '3909114', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3909116', 'NSpid': '3909116', 'NSpgid': '3908248', 'NSsid': '3908248', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97908 kB', 'VmRSS': '97908 kB', 'RssAnon': '59756 kB', 'RssFile': '38152 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '552 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '3909116', '1106928', '0', '1106928', '865676', '97908', b'', 'marlene', '2696988') 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 (21784021) 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 (2696988 ) ) 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 (21784021) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347812183, 'portfolio_id': 21784021}, {'photo_id': 1347812180, 'portfolio_id': 21784021}, {'photo_id': 1347812176, 'portfolio_id': 21784021}, {'photo_id': 1347812174, 'portfolio_id': 21784021}, {'photo_id': 1347812141, 'portfolio_id': 21784021}, {'photo_id': 1347812131, 'portfolio_id': 21784021}, {'photo_id': 1347812127, 'portfolio_id': 21784021}, {'photo_id': 1347812122, 'portfolio_id': 21784021}, {'photo_id': 1347812117, 'portfolio_id': 21784021}, {'photo_id': 1347812110, 'portfolio_id': 21784021}, {'photo_id': 1347811903, 'portfolio_id': 21784021}, {'photo_id': 1347811851, 'portfolio_id': 21784021}, {'photo_id': 1347811801, 'portfolio_id': 21784021}, {'photo_id': 1347811766, 'portfolio_id': 21784021}, {'photo_id': 1347811742, 'portfolio_id': 21784021}, {'photo_id': 1347811322, 'portfolio_id': 21784021}, {'photo_id': 1347811301, 'portfolio_id': 21784021}, {'photo_id': 1347811141, 'portfolio_id': 21784021}, {'photo_id': 1347811137, 'portfolio_id': 21784021}, {'photo_id': 1347811129, 'portfolio_id': 21784021}, {'photo_id': 1347811125, 'portfolio_id': 21784021}, {'photo_id': 1347811062, 'portfolio_id': 21784021}, {'photo_id': 1347811056, 'portfolio_id': 21784021}, {'photo_id': 1347811049, 'portfolio_id': 21784021}, {'photo_id': 1347811046, 'portfolio_id': 21784021}, {'photo_id': 1347811043, 'portfolio_id': 21784021}, {'photo_id': 1347810823, 'portfolio_id': 21784021}, {'photo_id': 1347810813, 'portfolio_id': 21784021}, {'photo_id': 1347810728, 'portfolio_id': 21784021}, {'photo_id': 1347810704, 'portfolio_id': 21784021}, {'photo_id': 1347810696, 'portfolio_id': 21784021}, {'photo_id': 1347810393, 'portfolio_id': 21784021}, {'photo_id': 1347810372, 'portfolio_id': 21784021}] map_portfolio_id_photo_id: {21784021: [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742, 1347811322, 1347811301, 1347811141, 1347811137, 1347811129, 1347811125, 1347811062, 1347811056, 1347811049, 1347811046, 1347811043, 1347810823, 1347810813, 1347810728, 1347810704, 1347810696, 1347810393, 1347810372]} ##### 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.014790534973144531 #### 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 Thu Mar 27 10:55:27 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 (21784021) 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 : 21784021 get user id for portfolio 21784021 get sub ptf for main ptf 21784021, type 3726 and hashtags ['Carton_gris', 'plastique', 'cartonnette', 'metal', 'flou', 'environnement', 'mal_croppe', 'Teint_Dans_La_Masse', 'kraft', 'papier', 'Carton_brun', 'autre_refus'] 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`=21784021 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','cartonnette','metal','flou','environnement','mal_croppe','Teint_Dans_La_Masse','kraft','papier','Carton_brun','autre_refus')) 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`=21784021 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','cartonnette','metal','flou','environnement','mal_croppe','Teint_Dans_La_Masse','kraft','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21784021, 'sub_port_id': 21784034, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305244, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21784021, 'sub_port_id': 21784035, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305245, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'cartonnette': {'main_port_id': 21784021, 'sub_port_id': 21784036, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305246, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'environnement': {'main_port_id': 21784021, 'sub_port_id': 21784037, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305247, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'papier': {'main_port_id': 21784021, 'sub_port_id': 21784038, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305248, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'mal_croppe': {'main_port_id': 21784021, 'sub_port_id': 21784039, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305249, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'Carton_brun': {'main_port_id': 21784021, 'sub_port_id': 21784040, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305250, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'plastique': {'main_port_id': 21784021, 'sub_port_id': 21784041, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305251, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'metal': {'main_port_id': 21784021, 'sub_port_id': 21784042, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305252, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'flou': {'main_port_id': 21784021, 'sub_port_id': 21784043, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305253, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'autre_refus': {'main_port_id': 21784021, 'sub_port_id': 21784044, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305254, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}, 'Carton_gris': {'main_port_id': 21784021, 'sub_port_id': 21784045, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305255, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784034 , 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=21784021 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 (21784034) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784035 , 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=21784021 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 (21784035) result : ((1347811261,), (1347811280,), (1347811281,), (1347811980,), (1347811981,), (1347811983,), (1347812111,), (1347812112,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784036 , 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=21784021 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 (21784036) result : ((1347811271,), (1347811995,), (1347811996,), (1347811997,), (1347811999,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784037 , 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=21784021 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 (21784037) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784038 , 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=21784021 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 (21784038) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784039 , 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=21784021 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 (21784039) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784040 , 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=21784021 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 (21784040) result : ((1347811275,), (1347811276,), (1347811277,), (1347811278,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784041 , 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=21784021 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 (21784041) result : ((1347811290,), (1347811291,), (1347811292,), (1347811293,), (1347812118,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784042 , 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=21784021 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 (21784042) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784043 , 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=21784021 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 (21784043) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784044 , 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=21784021 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 (21784044) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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 21784045 , 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=21784021 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 (21784045) result : ((1347811269,), (1347811285,), (1347811286,), (1347811987,), (1347812113,), (1347812114,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784021) result : ((1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) 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`=21784021 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','cartonnette','metal','flou','environnement','mal_croppe','Teint_Dans_La_Masse','kraft','papier','Carton_brun','autre_refus')) 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`=21784021 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','plastique','cartonnette','metal','flou','environnement','mal_croppe','Teint_Dans_La_Masse','kraft','papier','Carton_brun','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21784021, 'sub_port_id': 21784070, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305280, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21784021, 'sub_port_id': 21784071, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305281, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'cartonnette': {'main_port_id': 21784021, 'sub_port_id': 21784072, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305282, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'environnement': {'main_port_id': 21784021, 'sub_port_id': 21784073, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305283, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'papier': {'main_port_id': 21784021, 'sub_port_id': 21784074, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305284, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'mal_croppe': {'main_port_id': 21784021, 'sub_port_id': 21784075, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305285, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'Carton_brun': {'main_port_id': 21784021, 'sub_port_id': 21784076, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305286, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'plastique': {'main_port_id': 21784021, 'sub_port_id': 21784077, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305287, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'metal': {'main_port_id': 21784021, 'sub_port_id': 21784078, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305288, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'flou': {'main_port_id': 21784021, 'sub_port_id': 21784079, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305289, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'autre_refus': {'main_port_id': 21784021, 'sub_port_id': 21784080, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305290, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 49, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}, 'Carton_gris': {'main_port_id': 21784021, 'sub_port_id': 21784081, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305291, 'last_updated_at': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 10, 52, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 10, 49, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784034 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784035 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784036 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784037 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784038 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784039 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784040 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784041 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784042 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784043 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784044 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784045 lien utilise dans velours : https://www.fotonower.com/velours/21784070,21784071,21784072,21784073,21784074,21784075,21784076,21784077,21784078,21784079,21784080,21784081?tags=kraft,Teint_Dans_La_Masse,cartonnette,environnement,papier,mal_croppe,Carton_brun,plastique,metal,flou,autre_refus,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21784021]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] map_info['map_portfolio_photo'] : {21784021: [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742, 1347811322, 1347811301, 1347811141, 1347811137, 1347811129, 1347811125, 1347811062, 1347811056, 1347811049, 1347811046, 1347811043, 1347810823, 1347810813, 1347810728, 1347810704, 1347810696, 1347810393, 1347810372]} final : False mtd_id 4302 list_pids : [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] Looping around the photos to save general results len do output : 1 /21784021. 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, '2696988') ('4302', '21784021', '1347812183', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21784021', "{'kraft': 21784034, 'Teint_Dans_La_Masse': 21784035, 'cartonnette': 21784036, 'environnement': 21784037, 'papier': 21784038, 'mal_croppe': 21784039, 'Carton_brun': 21784040, 'plastique': 21784041, 'metal': 21784042, 'flou': 21784043, 'autre_refus': 21784044, 'Carton_gris': 21784045}", None, None, None, None, '2696988'), ('4302', '21784021', '1347812183', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988')] time used for this insertion : 0.01759624481201172 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5338995456695557 time spend to save output : 0.01807689666748047 total time spend for step 1 : 1.5519764423370361 step2:final Thu Mar 27 10:55:28 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 (21784021) 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 21784021 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347810393,1347810372,1347810823,1347810813,1347810728,1347810704,1347810696,1347811062,1347811056,1347811049,1347811046,1347811043,1347811141,1347811137,1347811129,1347811125,1347811322,1347811301,1347811903,1347811851,1347811801,1347811766,1347811742,1347812141,1347812131,1347812127,1347812122,1347812117,1347812110,1347812183,1347812180,1347812176,1347812174); 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([21784021]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} new output for save of step final : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] map_info['map_portfolio_photo'] : {21784021: [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742, 1347811322, 1347811301, 1347811141, 1347811137, 1347811129, 1347811125, 1347811062, 1347811056, 1347811049, 1347811046, 1347811043, 1347810823, 1347810813, 1347810728, 1347810704, 1347810696, 1347810393, 1347810372]} final : False mtd_id 4302 list_pids : [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] Looping around the photos to save general results len do output : 15 /1347812183.Didn't retrieve data . /1347812180.Didn't retrieve data . /1347812176.Didn't retrieve data . /1347812174.Didn't retrieve data . /1347812141.Didn't retrieve data . /1347812131.Didn't retrieve data . /1347812127.Didn't retrieve data . /1347812122.Didn't retrieve data . /1347812117.Didn't retrieve data . /1347812110.Didn't retrieve data . /1347811903.Didn't retrieve data . /1347811851.Didn't retrieve data . /1347811801.Didn't retrieve data . /1347811766.Didn't retrieve data . /1347811742.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, '2696988') ('4302', '21784021', '1347812183', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '21784021', '1347812183', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812180', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812176', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812174', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812141', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812131', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812127', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812122', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812117', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347812110', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347811903', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347811851', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347811801', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347811766', '0.030231045738224185', None, None, None, None, '2696988'), ('4302', '21784021', '1347811742', '0.030231045738224185', None, None, None, None, '2696988')] time used for this insertion : 0.01750946044921875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07338333129882812 time spend to save output : 0.018009424209594727 total time spend for step 2 : 0.09139275550842285 step3:velours_tree Thu Mar 27 10:55:28 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 : {21784021: [{'kraft': 21784034, 'Teint_Dans_La_Masse': 21784035, 'cartonnette': 21784036, 'environnement': 21784037, 'papier': 21784038, 'mal_croppe': 21784039, 'Carton_brun': 21784040, 'plastique': 21784041, 'metal': 21784042, 'flou': 21784043, 'autre_refus': 21784044, 'Carton_gris': 21784045}]} input_args_next_step : {21784021: ()} output_args : {21784021: [{'kraft': 21784034, 'Teint_Dans_La_Masse': 21784035, 'cartonnette': 21784036, 'environnement': 21784037, 'papier': 21784038, 'mal_croppe': 21784039, 'Carton_brun': 21784040, 'plastique': 21784041, 'metal': 21784042, 'flou': 21784043, 'autre_refus': 21784044, 'Carton_gris': 21784045}]} args : 21784021 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 : ({'kraft': 21784034, 'Teint_Dans_La_Masse': 21784035, 'cartonnette': 21784036, 'environnement': 21784037, 'papier': 21784038, 'mal_croppe': 21784039, 'Carton_brun': 21784040, 'plastique': 21784041, 'metal': 21784042, 'flou': 21784043, 'autre_refus': 21784044, 'Carton_gris': 21784045},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21784021) 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([21784021]) 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.4601707458496094 time spend to save output : 5.459785461425781e-05 total time spend for step 3 : 0.46022534370422363 step4:send_mail_cod Thu Mar 27 10:55:29 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 : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} input_args_next_step : {1347812183: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812183 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812180 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812176 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812174 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812141 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812131 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812127 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812122 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812117 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347812110 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347811903 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347811851 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347811801 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347811766 depend.output_id : 0 input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ()} output_args : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',)} args : 1347811742 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 : {21784021: [{'kraft': 21784034, 'Teint_Dans_La_Masse': 21784035, 'cartonnette': 21784036, 'environnement': 21784037, 'papier': 21784038, 'mal_croppe': 21784039, 'Carton_brun': 21784040, 'plastique': 21784041, 'metal': 21784042, 'flou': 21784043, 'autre_refus': 21784044, 'Carton_gris': 21784045}]} input_args_next_step : {1347812183: ('0.030231045738224185',), 1347812180: ('0.030231045738224185',), 1347812176: ('0.030231045738224185',), 1347812174: ('0.030231045738224185',), 1347812141: ('0.030231045738224185',), 1347812131: ('0.030231045738224185',), 1347812127: ('0.030231045738224185',), 1347812122: ('0.030231045738224185',), 1347812117: ('0.030231045738224185',), 1347812110: ('0.030231045738224185',), 1347811903: ('0.030231045738224185',), 1347811851: ('0.030231045738224185',), 1347811801: ('0.030231045738224185',), 1347811766: ('0.030231045738224185',), 1347811742: ('0.030231045738224185',), 21784021: ()} output_args : {21784021: [{'kraft': 21784034, 'Teint_Dans_La_Masse': 21784035, 'cartonnette': 21784036, 'environnement': 21784037, 'papier': 21784038, 'mal_croppe': 21784039, 'Carton_brun': 21784040, 'plastique': 21784041, 'metal': 21784042, 'flou': 21784043, 'autre_refus': 21784044, 'Carton_gris': 21784045}]} args : 21784021 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 :16, first value : ('0.030231045738224185',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21784021) 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 (1347812183,1347812180,1347812176,1347812174,1347812141,1347812131,1347812127,1347812122,1347812117,1347812110,1347811903,1347811851,1347811801,1347811766,1347811742) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347811742 begin to download photo : 1347811903 begin to download photo : 1347812127 begin to download photo : 1347812176 download finish for photo 1347811903 begin to download photo : 1347812110 download finish for photo 1347811742 begin to download photo : 1347811766 download finish for photo 1347812127 begin to download photo : 1347812131 download finish for photo 1347812176 begin to download photo : 1347812180 download finish for photo 1347812110 begin to download photo : 1347812117 download finish for photo 1347811766 begin to download photo : 1347811801 download finish for photo 1347812131 begin to download photo : 1347812141 download finish for photo 1347812180 begin to download photo : 1347812183 download finish for photo 1347812117 begin to download photo : 1347812122 download finish for photo 1347811801 begin to download photo : 1347811851 download finish for photo 1347812141 begin to download photo : 1347812174 download finish for photo 1347812183 download finish for photo 1347812122 download finish for photo 1347812174 download finish for photo 1347811851 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217840341743069329/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21784021_27-03-2025_10_55_29.pdf 21784034 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=21784034 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217840341743069329 21784036 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=21784036 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347811271: '1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398710_0.png', 1347811995: '1743069133_3334976_1347811049_0aab70201895da54f67a0b2129b570f9_rle_crop_3733399633_0.png', 1347811996: '1743069133_3334976_1347811049_0aab70201895da54f67a0b2129b570f9_rle_crop_3733399630_0.png', 1347811997: '1743069133_3334976_1347811043_cf18fd645024ae7864ac16ebfbc5e82e_rle_crop_3733399788_0.png', 1347811999: '1743069133_3334976_1347811043_cf18fd645024ae7864ac16ebfbc5e82e_rle_crop_3733399786_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e0bd6c863e6849dc17cf60b47407547b_53217366.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/103c38386e8c88f0b2c37674b26cacf1_91819054.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f5b0d988f957e04759a0f8f4dbe0d0fc_88445785.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2a3fcccb67d6ab3ec34a123562cb86a6_9636761.png change filename to text .imagette217840361743069329/ imagette217840361743069329/1743069133_3334976_1347811049_0aab70201895da54f67a0b2129b570f9_rle_crop_3733399633_0.png.png imagette217840361743069329/1743069133_3334976_1347811049_0aab70201895da54f67a0b2129b570f9_rle_crop_3733399630_0.png.png imagette217840361743069329/1743069133_3334976_1347811043_cf18fd645024ae7864ac16ebfbc5e82e_rle_crop_3733399786_0.png.png imagette217840361743069329/1743069133_3334976_1347811043_cf18fd645024ae7864ac16ebfbc5e82e_rle_crop_3733399788_0.png.png imagette217840361743069329/1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398710_0.png.png imagette217840391743069329/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/001ead76a893146837265b34e9881684_72039837.png imagette217840361743069329 21784039 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=21784039 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217840391743069329 21784041 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=21784041 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347811290: '1743069013_3333162_1347810728_9b4ae306144e2b06d9ba7fb7bafb851b_rle_crop_3733398662_0.png', 1347811291: '1743069013_3333162_1347810728_9b4ae306144e2b06d9ba7fb7bafb851b_rle_crop_3733398655_0.png', 1347811292: '1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398706_0.png', 1347811293: '1743069013_3333162_1347810696_c588f87f34a1f804c0f8a4ef45d831a9_rle_crop_3733399113_0.png', 1347812118: '1743069162_510023_1347811129_3b0d329138066cf55860ba2ff0ce2442_rle_crop_3733399964_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/093429346fb7bec64a938a2189c3d405_8472882.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e4cbd2ae88ffa271c509dc11e8de4487_43784724.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/17966d020d3031514ab8bed8fa5faf32_88140771.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4e3490861259e33ed8ed426db2423822_71156052.png change filename to text .imagette217840411743069329/ imagette217840411743069329/1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398706_0.png.png imagette217840411743069329/1743069013_3333162_1347810696_c588f87f34a1f804c0f8a4ef45d831a9_rle_crop_3733399113_0.png.png imagette217840411743069329/1743069162_510023_1347811129_3b0d329138066cf55860ba2ff0ce2442_rle_crop_3733399964_0.png.png imagette217840411743069329/1743069013_3333162_1347810728_9b4ae306144e2b06d9ba7fb7bafb851b_rle_crop_3733398662_0.png.png imagette217840411743069329/1743069013_3333162_1347810728_9b4ae306144e2b06d9ba7fb7bafb851b_rle_crop_3733398655_0.png.png imagette217840421743069330/ imagette217840431743069330/ imagette217840441743069330/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8b0f540022524bf85b6a9cb001aa4fb2_3121616.png imagette217840411743069329 21784042 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=21784042 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217840421743069330 21784043 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=21784043 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217840431743069330 21784044 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=21784044 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217840441743069330 21784035 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=21784035 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347811261: '1743069013_3333162_1347810813_2895e6d9f745d462584a1cf8ab03d216_rle_crop_3733398532_0.png', 1347811280: '1743069034_3333871_1347810393_2f732f692763b0e0a72baa196f19c0fd_rle_crop_3733399151_0.png', 1347811281: '1743069034_3333871_1347810372_e12544931ba1ed4f57fb4f3b436d6bca_rle_crop_3733399158_0.png', 1347811980: '1743069133_3334976_1347811056_547acde7e1f6d6623baa3eec23feb1e6_rle_crop_3733399625_0.png', 1347811981: '1743069133_3334976_1347811049_0aab70201895da54f67a0b2129b570f9_rle_crop_3733399639_0.png', 1347811983: '1743069133_3334976_1347811046_6a1ea870b999f67736089842fa19373c_rle_crop_3733399775_0.png', 1347812111: '1743069162_510023_1347811129_3b0d329138066cf55860ba2ff0ce2442_rle_crop_3733399970_0.png', 1347812112: '1743069162_510023_1347811125_fb6f64c42b4bed235924c3905c10bab2_rle_crop_3733399988_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/0156b58daf1d08df5ecd33c46bcc12de_63643723.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a3c322a02237ed6ee809a581a8357e19_71880411.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/3e6909a0a70f13e36743d108a0d10417_68388631.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f47136f6ded60ec5391f0b796e64fde3_98480360.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5e0aa855852aa6107f8fdc8f98debca9_4215866.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2b53416adee7391e729fb7c42cfaf6b3_6469520.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/29f9eec44377e9559d9d4fc285a1a923_52391227.png change filename to text .imagette217840351743069330/ imagette217840351743069330/1743069133_3334976_1347811049_0aab70201895da54f67a0b2129b570f9_rle_crop_3733399639_0.png.png imagette217840351743069330/1743069013_3333162_1347810813_2895e6d9f745d462584a1cf8ab03d216_rle_crop_3733398532_0.png.png imagette217840351743069330/1743069162_510023_1347811125_fb6f64c42b4bed235924c3905c10bab2_rle_crop_3733399988_0.png.png imagette217840351743069330/1743069162_510023_1347811129_3b0d329138066cf55860ba2ff0ce2442_rle_crop_3733399970_0.png.png imagette217840351743069330/1743069034_3333871_1347810372_e12544931ba1ed4f57fb4f3b436d6bca_rle_crop_3733399158_0.png.png imagette217840351743069330/1743069133_3334976_1347811046_6a1ea870b999f67736089842fa19373c_rle_crop_3733399775_0.png.png imagette217840351743069330/1743069133_3334976_1347811056_547acde7e1f6d6623baa3eec23feb1e6_rle_crop_3733399625_0.png.png imagette217840351743069330/1743069034_3333871_1347810393_2f732f692763b0e0a72baa196f19c0fd_rle_crop_3733399151_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/bdfa156492a6607c91f4b1fb48eae834_42622037.png imagette217840351743069330 21784040 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=21784040 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347811275: '1743069013_3333162_1347810728_9b4ae306144e2b06d9ba7fb7bafb851b_rle_crop_3733398661_0.png', 1347811276: '1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398713_0.png', 1347811277: '1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398716_0.png', 1347811278: '1743069013_3333162_1347810696_c588f87f34a1f804c0f8a4ef45d831a9_rle_crop_3733399118_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/065bd2600b332956bb201bddcb5c0018_99717029.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e8a34bdc5a5f9e3c7f999f1476083072_36122924.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/abd61efaeede73fcbe1dd65a6cc6263d_12644129.png change filename to text .imagette217840401743069330/ imagette217840401743069330/1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398713_0.png.png imagette217840401743069330/1743069013_3333162_1347810728_9b4ae306144e2b06d9ba7fb7bafb851b_rle_crop_3733398661_0.png.png imagette217840401743069330/1743069013_3333162_1347810696_c588f87f34a1f804c0f8a4ef45d831a9_rle_crop_3733399118_0.png.png imagette217840401743069330/1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398716_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/92b2d6c350c682a20c8975376197fcac_51801694.png imagette217840401743069330 21784045 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=21784045 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347811269: '1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398711_0.png', 1347811285: '1743069034_3333871_1347810393_2f732f692763b0e0a72baa196f19c0fd_rle_crop_3733399144_0.png', 1347811286: '1743069034_3333871_1347810393_2f732f692763b0e0a72baa196f19c0fd_rle_crop_3733399148_0.png', 1347811987: '1743069133_3334976_1347811046_6a1ea870b999f67736089842fa19373c_rle_crop_3733399773_0.png', 1347812113: '1743069162_510023_1347811137_f7c05ead47693b9ced449d16491fed6a_rle_crop_3733399947_0.png', 1347812114: '1743069162_510023_1347811129_3b0d329138066cf55860ba2ff0ce2442_rle_crop_3733399962_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/005fa5f10d7276ebce6b37e923fe1b66_31014113.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d2c69b23f0690440752c8daf7e10ded2_56874781.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a1d8c83805c33462b774d1f8ddf97ce9_6448219.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9d3a390847761e607a2db631c1a226fd_33836622.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/209a32936be6f0454fa98d0731741447_47709782.png change filename to text .imagette217840451743069330/ imagette217840451743069330/1743069162_510023_1347811129_3b0d329138066cf55860ba2ff0ce2442_rle_crop_3733399962_0.png.png imagette217840451743069330/1743069034_3333871_1347810393_2f732f692763b0e0a72baa196f19c0fd_rle_crop_3733399148_0.png.png imagette217840451743069330/1743069162_510023_1347811137_f7c05ead47693b9ced449d16491fed6a_rle_crop_3733399947_0.png.png imagette217840451743069330/1743069034_3333871_1347810393_2f732f692763b0e0a72baa196f19c0fd_rle_crop_3733399144_0.png.png imagette217840451743069330/1743069133_3334976_1347811046_6a1ea870b999f67736089842fa19373c_rle_crop_3733399773_0.png.png imagette217840451743069330/1743069013_3333162_1347810704_b35451eb8a9fcf4de07a055e32a7a1b1_rle_crop_3733398711_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/be47da6465cbf8beb8a7fc3f01696847_84685050.png imagette217840451743069330 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21784021 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21784070,21784071,21784072,21784073,21784074,21784075,21784076,21784077,21784078,21784079,21784080,21784081?tags=kraft,Teint_Dans_La_Masse,cartonnette,environnement,papier,mal_croppe,Carton_brun,plastique,metal,flou,autre_refus,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1347812183] : ('0.030231045738224185',) no score found for photo 1347812183 We are sending mail with results at report@fotonower.com args[1347812180] : ('0.030231045738224185',) no score found for photo 1347812180 We are sending mail with results at report@fotonower.com args[1347812176] : ('0.030231045738224185',) no score found for photo 1347812176 We are sending mail with results at report@fotonower.com args[1347812174] : ('0.030231045738224185',) no score found for photo 1347812174 We are sending mail with results at report@fotonower.com args[1347812141] : ('0.030231045738224185',) no score found for photo 1347812141 We are sending mail with results at report@fotonower.com args[1347812131] : ('0.030231045738224185',) no score found for photo 1347812131 We are sending mail with results at report@fotonower.com args[1347812127] : ('0.030231045738224185',) no score found for photo 1347812127 We are sending mail with results at report@fotonower.com args[1347812122] : ('0.030231045738224185',) no score found for photo 1347812122 We are sending mail with results at report@fotonower.com args[1347812117] : ('0.030231045738224185',) no score found for photo 1347812117 We are sending mail with results at report@fotonower.com args[1347812110] : ('0.030231045738224185',) no score found for photo 1347812110 We are sending mail with results at report@fotonower.com args[1347811903] : ('0.030231045738224185',) no score found for photo 1347811903 We are sending mail with results at report@fotonower.com args[1347811851] : ('0.030231045738224185',) no score found for photo 1347811851 We are sending mail with results at report@fotonower.com args[1347811801] : ('0.030231045738224185',) no score found for photo 1347811801 We are sending mail with results at report@fotonower.com args[1347811766] : ('0.030231045738224185',) no score found for photo 1347811766 We are sending mail with results at report@fotonower.com args[1347811742] : ('0.030231045738224185',) no score found for photo 1347811742 We are sending mail with results at report@fotonower.com refus_total : 0.030231045738224185 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=21784021 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_P21784021_27-03-2025_10_55_29.pdf results_Auto_P21784021_27-03-2025_10_55_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_27-03-2025_10_55_29.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','21784021','results_Auto_P21784021_27-03-2025_10_55_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_27-03-2025_10_55_29.pdf','pdf','','0.2','0.030231045738224185') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21784021]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] map_info['map_portfolio_photo'] : {21784021: [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742, 1347811322, 1347811301, 1347811141, 1347811137, 1347811129, 1347811125, 1347811062, 1347811056, 1347811049, 1347811046, 1347811043, 1347810823, 1347810813, 1347810728, 1347810704, 1347810696, 1347810393, 1347810372]} final : False mtd_id 4302 list_pids : [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] 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, '2696988') ('4302', '21784021', '1347812183', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '21784021', '1347812183', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988')] time used for this insertion : 0.016548871994018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.3755459785461426 time spend to save output : 0.016906023025512695 total time spend for step 4 : 3.3924520015716553 step5:split_time_score Thu Mar 27 10:55:32 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 : ['21784021'] 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 : [('21784021',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21784021) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347812176: {'path': 'temp/1743069329_3909116_1347812176_a45ddd2f8757354b786ca3f9f4d2286d.jpg', 'extension': 'jpg'}, 1347812180: {'path': 'temp/1743069329_3909116_1347812180_7eed47e0d6ce7b890045a0a3df5c1a01.jpg', 'extension': 'jpg'}, 1347812183: {'path': 'temp/1743069329_3909116_1347812183_1c21300598c0b28fa086918acec6cb36.jpg', 'extension': 'jpg'}, 1347811903: {'path': 'temp/1743069329_3909116_1347811903_225a816312df89ab0e4ab40bf858864c.jpg', 'extension': 'jpg'}, 1347812110: {'path': 'temp/1743069329_3909116_1347812110_944ca28c4f3aadc7fdf5534935a6a79a.jpg', 'extension': 'jpg'}, 1347812117: {'path': 'temp/1743069329_3909116_1347812117_b50a916a8861ac7c5b2c2036f0564c83.jpg', 'extension': 'jpg'}, 1347812122: {'path': 'temp/1743069329_3909116_1347812122_1bf70c1cf40ad568fa76444130699b81.jpg', 'extension': 'jpg'}, 1347812127: {'path': 'temp/1743069329_3909116_1347812127_2dff2976169fe892d5c3bed38711952b.jpg', 'extension': 'jpg'}, 1347812131: {'path': 'temp/1743069329_3909116_1347812131_34e3545782f0aaeb3934461bfdd7bbcb.jpg', 'extension': 'jpg'}, 1347812141: {'path': 'temp/1743069329_3909116_1347812141_af8f90ec0d75710793587a206e91e896.jpg', 'extension': 'jpg'}, 1347812174: {'path': 'temp/1743069329_3909116_1347812174_d0987762415d57d1e7f32b42ce15f9c2.jpg', 'extension': 'jpg'}, 1347811742: {'path': 'temp/1743069329_3909116_1347811742_46d37af3134fde639bf6dc93c0e484fc.jpg', 'extension': 'jpg'}, 1347811766: {'path': 'temp/1743069329_3909116_1347811766_aa64963deee445eaae7311e902843b50.jpg', 'extension': 'jpg'}, 1347811801: {'path': 'temp/1743069329_3909116_1347811801_dd6d2c914a28e113c5a58325c686a97e.jpg', 'extension': 'jpg'}, 1347811851: {'path': 'temp/1743069329_3909116_1347811851_c9e81315dc57c2680750f45ff3d86a21.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 = 21784021; (('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 = 21784021 group by h (('10', 33),) 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=21784021 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 (21784021) 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 (21784021) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21784021 Nombre de photos uploadées : 33 / 23040 (0%) 27032025 21784021 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 27032025 21784021 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1347810393, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2f732f692763b0e0a72baa196f19c0fd.jpg', 'username': None, 'uploaded_at': 1743068836, 'text': 'image_27032025_10_45_04_009142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347810372, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e12544931ba1ed4f57fb4f3b436d6bca.jpg', 'username': None, 'uploaded_at': 1743068836, 'text': 'image_27032025_10_45_14_010139m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1347810823, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6c72901b9f511ff4d17fc3d2557d3d13.jpg', 'username': None, 'uploaded_at': 1743068896, 'text': 'image_27032025_10_45_24_010137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347810813, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2895e6d9f745d462584a1cf8ab03d216.jpg', 'username': None, 'uploaded_at': 1743068896, 'text': 'image_27032025_10_46_04_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002476215362548828 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21784021, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028200864791870117 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= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701126, 'mtr_portfolio_id': 21781704, 'dashboard_result_id': 9673793, '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_P21781704_27-03-2025_10_19_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21781710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781716, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701126, 'mtr_portfolio_id': 21782552, 'dashboard_result_id': 9673794, '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_P21782552_27-03-2025_10_36_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701126, 'mtr_portfolio_id': 21783391, 'dashboard_result_id': 9673795, '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_P21783391_27-03-2025_10_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701126, 'mtr_portfolio_id': 21784021, 'dashboard_result_id': 9673796, '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_P21784021_27-03-2025_10_52_33.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, '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 = 21781704 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': 2696843, 'mtr_portfolio_id': 21781704, 'created_at': datetime.datetime(2025, 3, 27, 10, 19, 3), 'result': '0.04282185019196711', 'result_long': None, 'result_double': None}] Qualite : 0.04282185019196711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21781704 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21781704_27-03-2025_10_19_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21781704 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_P21781704_27-03-2025_10_19_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21781710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781716, 'pht': 3726}}" where mtr_portfolio_id = 21781704 and dashboard_run_id = 1701126 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`=21781704 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9673793, 0.04282185019196711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21781704_27-03-2025_10_19_04.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21781705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21781706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21781707, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21781708, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21781709, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21781710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21781711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21781712, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21781713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21781714, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21781715, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21781716, '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 = 21782552 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': 2696888, 'mtr_portfolio_id': 21782552, 'created_at': datetime.datetime(2025, 3, 27, 10, 36, 58), 'result': '0.036605559840080945', 'result_long': None, 'result_double': None}] Qualite : 0.036605559840080945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21782552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21782552_27-03-2025_10_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21782552 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_P21782552_27-03-2025_10_36_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, 'pht': 3726}}" where mtr_portfolio_id = 21782552 and dashboard_run_id = 1701126 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`=21782552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9673794, 0.036605559840080945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21782552_27-03-2025_10_36_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, '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 = 21783391 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': 2696958, 'mtr_portfolio_id': 21783391, 'created_at': datetime.datetime(2025, 3, 27, 10, 47, 59), 'result': '0.04907128993033362', 'result_long': None, 'result_double': None}] Qualite : 0.04907128993033362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21783391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21783391_27-03-2025_10_47_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21783391 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_P21783391_27-03-2025_10_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, 'pht': 3726}}" where mtr_portfolio_id = 21783391 and dashboard_run_id = 1701126 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`=21783391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9673795, 0.04907128993033362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21783391_27-03-2025_10_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, '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 = 21784021 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': 2696988, 'mtr_portfolio_id': 21784021, 'created_at': datetime.datetime(2025, 3, 27, 10, 55, 28), 'result': '0.030231045738224185', 'result_long': None, 'result_double': None}] Qualite : 0.030231045738224185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21784021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_27-03-2025_10_55_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21784021 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_P21784021_27-03-2025_10_55_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, 'pht': 3726}}" where mtr_portfolio_id = 21784021 and dashboard_run_id = 1701126 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`=21784021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9673796, 0.030231045738224185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_27-03-2025_10_55_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, '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 (21781704,21782552,21783391,21784021) result : ((1347799377,), (1347799383,), (1347799389,), (1347799394,), (1347799399,), (1347799504,), (1347799534,), (1347799557,), (1347799584,), (1347799600,), (1347799640,), (1347799741,), (1347799770,), (1347799875,), (1347799899,), (1347799927,), (1347800056,), (1347800128,), (1347800285,), (1347800308,), (1347800331,), (1347800341,), (1347800362,), (1347800588,), (1347800648,), (1347800709,), (1347800771,), (1347800861,), (1347801152,), (1347801174,), (1347801280,), (1347802570,), (1347802596,), (1347802624,), (1347802655,), (1347802717,), (1347803058,), (1347803179,), (1347803208,), (1347803213,), (1347803412,), (1347803496,), (1347803521,), (1347803554,), (1347803598,), (1347803829,), (1347803844,), (1347803862,), (1347803872,), (1347804660,), (1347804695,), (1347804728,), (1347804799,), (1347804811,), (1347804830,), (1347804840,), (1347804853,), (1347804988,), (1347805013,), (1347805018,), (1347805090,), (1347805095,), (1347805100,), (1347805135,), (1347805139,), (1347805144,), (1347805148,), (1347805152,), (1347805156,), (1347805219,), (1347805186,), (1347805196,), (1347805204,), (1347805210,), (1347805293,), (1347805297,), (1347805300,), (1347805303,), (1347805404,), (1347805429,), (1347805448,), (1347805476,), (1347805493,), (1347805509,), (1347805553,), (1347805640,), (1347805647,), (1347805685,), (1347805689,), (1347805693,), (1347805714,), (1347805716,), (1347805722,), (1347805725,), (1347805762,), (1347805766,), (1347805772,), (1347805777,), (1347805781,), (1347805965,), (1347805970,), (1347805994,), (1347806009,), (1347806043,), (1347806046,), (1347806052,), (1347806058,), (1347806087,), (1347806092,), (1347806262,), (1347806264,), (1347806268,), (1347806420,), (1347806422,), (1347806427,), (1347806430,), (1347806472,), (1347806512,), (1347806581,), (1347806583,), (1347806589,), (1347806591,), (1347807297,), (1347807271,), (1347807290,), (1347807456,), (1347807473,), (1347807509,), (1347807547,), (1347807576,), (1347807650,), (1347807654,), (1347807659,), (1347807664,), (1347807670,), (1347807673,), (1347807708,), (1347807712,), (1347807720,), (1347807759,), (1347807765,), (1347807774,), (1347807779,), (1347807782,), (1347807786,), (1347807852,), (1347807858,), (1347807864,), (1347807890,), (1347807915,), (1347808308,), (1347808444,), (1347808489,), (1347808523,), (1347808555,), (1347808944,), (1347808985,), (1347809024,), (1347809048,), (1347809166,), (1347809170,), (1347809180,), (1347809183,), (1347809206,), (1347809218,), (1347809322,), (1347809329,), (1347809340,), (1347809673,), (1347809693,), (1347809737,), (1347809771,), (1347809798,), (1347810075,), (1347810169,), (1347810182,), (1347810198,), (1347810230,), (1347810264,), (1347810406,), (1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21784021]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] map_info['map_portfolio_photo'] : {21784021: [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742, 1347811322, 1347811301, 1347811141, 1347811137, 1347811129, 1347811125, 1347811062, 1347811056, 1347811049, 1347811046, 1347811043, 1347810823, 1347810813, 1347810728, 1347810704, 1347810696, 1347810393, 1347810372]} final : True mtd_id 4302 list_pids : [1347812183, 1347812180, 1347812176, 1347812174, 1347812141, 1347812131, 1347812127, 1347812122, 1347812117, 1347812110, 1347811903, 1347811851, 1347811801, 1347811766, 1347811742] Looping around the photos to save general results len do output : 1 /21784021Didn'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, '2696988') ('4302', '21784021', '1347812183', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988') ('4302', None, None, None, None, None, None, None, '2696988') ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '21784021', 'None', None, None, None, None, '2696988'), ('4302', '21784021', '1347812183', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812180', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812176', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812174', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812141', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812131', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812127', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812122', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812117', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347812110', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811903', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811851', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811801', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811766', None, None, None, None, None, '2696988'), ('4302', '21784021', '1347811742', None, None, None, None, None, '2696988')] time used for this insertion : 0.017119646072387695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4212038516998291 time spend to save output : 0.01736903190612793 total time spend for step 5 : 0.43857288360595703 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 (2696988) 2.37user 2.07system 0:08.13elapsed 54%CPU (0avgtext+0avgdata 158804maxresident)k 200inputs+11424outputs (6major+77144minor)pagefaults 0swaps