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 : 2272877 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 (2707838) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2707838) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898451 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2707838'] with mtr_portfolio_ids : ['21898451'] and first list_photo_ids : [] new path : /proc/2272877/ Name: python3 Umask: 0002 State: R (running) Tgid: 2272877 Ngid: 0 Pid: 2272877 PPid: 2272876 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2272877 NSpid: 2272877 NSpgid: 2271128 NSsid: 2271128 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98168 kB VmRSS: 98168 kB RssAnon: 59756 kB RssFile: 38412 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 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: 48 nonvoluntary_ctxt_switches: 112 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2272877', 'Ngid': '0', 'Pid': '2272877', 'PPid': '2272876', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2272877', 'NSpid': '2272877', 'NSpgid': '2271128', 'NSsid': '2271128', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98168 kB', 'VmRSS': '98168 kB', 'RssAnon': '59756 kB', 'RssFile': '38412 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 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': '48', 'nonvoluntary_ctxt_switches': '112'} ('datou_batch_current', '2272877', '1106928', '0', '1106928', '865676', '98168', b'', 'marlene', '2707838') 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 (21898451) 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 (2707838 ) ) 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 (21898451) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348948400, 'portfolio_id': 21898451}, {'photo_id': 1348948398, 'portfolio_id': 21898451}, {'photo_id': 1348948395, 'portfolio_id': 21898451}, {'photo_id': 1348948391, 'portfolio_id': 21898451}, {'photo_id': 1348948387, 'portfolio_id': 21898451}, {'photo_id': 1348948132, 'portfolio_id': 21898451}, {'photo_id': 1348948117, 'portfolio_id': 21898451}, {'photo_id': 1348948113, 'portfolio_id': 21898451}, {'photo_id': 1348948100, 'portfolio_id': 21898451}, {'photo_id': 1348948096, 'portfolio_id': 21898451}, {'photo_id': 1348948086, 'portfolio_id': 21898451}, {'photo_id': 1348948019, 'portfolio_id': 21898451}, {'photo_id': 1348948005, 'portfolio_id': 21898451}, {'photo_id': 1348948001, 'portfolio_id': 21898451}, {'photo_id': 1348947987, 'portfolio_id': 21898451}, {'photo_id': 1348947975, 'portfolio_id': 21898451}, {'photo_id': 1348947910, 'portfolio_id': 21898451}, {'photo_id': 1348947904, 'portfolio_id': 21898451}, {'photo_id': 1348947898, 'portfolio_id': 21898451}, {'photo_id': 1348947843, 'portfolio_id': 21898451}, {'photo_id': 1348947842, 'portfolio_id': 21898451}, {'photo_id': 1348947840, 'portfolio_id': 21898451}, {'photo_id': 1348947787, 'portfolio_id': 21898451}, {'photo_id': 1348947633, 'portfolio_id': 21898451}, {'photo_id': 1348947435, 'portfolio_id': 21898451}, {'photo_id': 1348947432, 'portfolio_id': 21898451}, {'photo_id': 1348947347, 'portfolio_id': 21898451}, {'photo_id': 1348947339, 'portfolio_id': 21898451}, {'photo_id': 1348947161, 'portfolio_id': 21898451}, {'photo_id': 1348947140, 'portfolio_id': 21898451}, {'photo_id': 1348947057, 'portfolio_id': 21898451}, {'photo_id': 1348947050, 'portfolio_id': 21898451}, {'photo_id': 1348947046, 'portfolio_id': 21898451}, {'photo_id': 1348947040, 'portfolio_id': 21898451}, {'photo_id': 1348947038, 'portfolio_id': 21898451}, {'photo_id': 1348947028, 'portfolio_id': 21898451}, {'photo_id': 1348946993, 'portfolio_id': 21898451}, {'photo_id': 1348946960, 'portfolio_id': 21898451}, {'photo_id': 1348946931, 'portfolio_id': 21898451}, {'photo_id': 1348946925, 'portfolio_id': 21898451}, {'photo_id': 1348946873, 'portfolio_id': 21898451}, {'photo_id': 1348946869, 'portfolio_id': 21898451}, {'photo_id': 1348946864, 'portfolio_id': 21898451}, {'photo_id': 1348946859, 'portfolio_id': 21898451}] map_portfolio_id_photo_id: {21898451: [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975, 1348947910, 1348947904, 1348947898, 1348947843, 1348947842, 1348947840, 1348947787, 1348947633, 1348947435, 1348947432, 1348947347, 1348947339, 1348947161, 1348947140, 1348947057, 1348947050, 1348947046, 1348947040, 1348947038, 1348947028, 1348946993, 1348946960, 1348946931, 1348946925, 1348946873, 1348946869, 1348946864, 1348946859]} ##### 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.016084671020507812 #### 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 Mon Mar 31 07:44: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21898451) 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 : 21898451 get user id for portfolio 21898451 get sub ptf for main ptf 21898451, type 3726 and hashtags ['Carton_brun', 'mal_croppe', 'environnement', 'plastique', 'kraft', 'Teint_Dans_La_Masse', 'Carton_gris', 'flou', 'cartonnette', 'autre_refus', 'metal', 'papier'] 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`=21898451 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','environnement','plastique','kraft','Teint_Dans_La_Masse','Carton_gris','flou','cartonnette','autre_refus','metal','papier')) 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`=21898451 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','environnement','plastique','kraft','Teint_Dans_La_Masse','Carton_gris','flou','cartonnette','autre_refus','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21898451, 'sub_port_id': 21898498, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406686, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'mal_croppe': {'main_port_id': 21898451, 'sub_port_id': 21898499, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406687, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'Carton_gris': {'main_port_id': 21898451, 'sub_port_id': 21898500, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406688, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'cartonnette': {'main_port_id': 21898451, 'sub_port_id': 21898501, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406689, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'papier': {'main_port_id': 21898451, 'sub_port_id': 21898502, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406690, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21898451, 'sub_port_id': 21898503, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406691, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'Carton_brun': {'main_port_id': 21898451, 'sub_port_id': 21898504, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406692, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'flou': {'main_port_id': 21898451, 'sub_port_id': 21898505, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406693, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'environnement': {'main_port_id': 21898451, 'sub_port_id': 21898506, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406694, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'autre_refus': {'main_port_id': 21898451, 'sub_port_id': 21898507, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406695, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'plastique': {'main_port_id': 21898451, 'sub_port_id': 21898508, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406696, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}, 'kraft': {'main_port_id': 21898451, 'sub_port_id': 21898509, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406697, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898498 , 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=21898451 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 (21898498) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898499 , 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=21898451 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 (21898499) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898500 , 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=21898451 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 (21898500) result : ((1348947442,), (1348947507,), (1348947508,), (1348947599,), (1348947600,), (1348947826,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898501 , 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=21898451 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 (21898501) result : ((1348947509,), (1348947510,), (1348947511,), (1348947577,), (1348947606,), (1348947610,), (1348947611,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898502 , 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=21898451 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 (21898502) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898503 , 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=21898451 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 (21898503) result : ((1348947438,), (1348947439,), (1348947440,), (1348947441,), (1348947446,), (1348947447,), (1348947448,), (1348947449,), (1348947501,), (1348947502,), (1348947503,), (1348947504,), (1348947505,), (1348947922,), (1348948204,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898504 , 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=21898451 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 (21898504) result : ((1348947443,), (1348947450,), (1348947513,), (1348947923,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898505 , 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=21898451 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 (21898505) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898506 , 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=21898451 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 (21898506) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898507 , 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=21898451 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 (21898507) result : ((1348947595,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898508 , 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=21898451 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 (21898508) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21898509 , 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=21898451 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 (21898509) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21898451) result : ((1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) 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 (1348948100,1348948400) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21898451 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','environnement','plastique','kraft','Teint_Dans_La_Masse','Carton_gris','flou','cartonnette','autre_refus','metal','papier')) 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`=21898451 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','mal_croppe','environnement','plastique','kraft','Teint_Dans_La_Masse','Carton_gris','flou','cartonnette','autre_refus','metal','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 21898451, 'sub_port_id': 21898510, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406698, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'mal_croppe': {'main_port_id': 21898451, 'sub_port_id': 21898511, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406699, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'Carton_gris': {'main_port_id': 21898451, 'sub_port_id': 21898512, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406700, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'cartonnette': {'main_port_id': 21898451, 'sub_port_id': 21898513, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406701, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'papier': {'main_port_id': 21898451, 'sub_port_id': 21898514, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406702, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21898451, 'sub_port_id': 21898515, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406703, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'Carton_brun': {'main_port_id': 21898451, 'sub_port_id': 21898516, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406704, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'flou': {'main_port_id': 21898451, 'sub_port_id': 21898517, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406705, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'environnement': {'main_port_id': 21898451, 'sub_port_id': 21898518, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406706, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'autre_refus': {'main_port_id': 21898451, 'sub_port_id': 21898519, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406707, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'plastique': {'main_port_id': 21898451, 'sub_port_id': 21898520, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406708, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}, 'kraft': {'main_port_id': 21898451, 'sub_port_id': 21898521, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14406709, 'last_updated_at': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 7, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 7, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898510,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898498 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898511,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898499 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898512,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898500 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898513,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898501 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898514,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898502 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898515,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898503 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898516,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898504 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898517,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898505 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898518,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898506 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898519,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898507 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898520,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898508 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21898521,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21898509 lien utilise dans velours : https://www.fotonower.com/velours/21898510,21898511,21898512,21898513,21898514,21898515,21898516,21898517,21898518,21898519,21898520,21898521?tags=metal,mal_croppe,Carton_gris,cartonnette,papier,Teint_Dans_La_Masse,Carton_brun,flou,environnement,autre_refus,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21898451]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] map_info['map_portfolio_photo'] : {21898451: [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975, 1348947910, 1348947904, 1348947898, 1348947843, 1348947842, 1348947840, 1348947787, 1348947633, 1348947435, 1348947432, 1348947347, 1348947339, 1348947161, 1348947140, 1348947057, 1348947050, 1348947046, 1348947040, 1348947038, 1348947028, 1348946993, 1348946960, 1348946931, 1348946925, 1348946873, 1348946869, 1348946864, 1348946859]} final : False mtd_id 4302 list_pids : [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] Looping around the photos to save general results len do output : 1 /21898451. 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, '2707838') ('4302', '21898451', '1348948400', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21898451', "{'metal': 21898498, 'mal_croppe': 21898499, 'Carton_gris': 21898500, 'cartonnette': 21898501, 'papier': 21898502, 'Teint_Dans_La_Masse': 21898503, 'Carton_brun': 21898504, 'flou': 21898505, 'environnement': 21898506, 'autre_refus': 21898507, 'plastique': 21898508, 'kraft': 21898509}", None, None, None, None, '2707838'), ('4302', '21898451', '1348948400', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838')] time used for this insertion : 0.015246391296386719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4427950382232666 time spend to save output : 0.015661239624023438 total time spend for step 1 : 0.45845627784729004 step2:final Mon Mar 31 07:44:30 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 (21898451) 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 21898451 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348946873,1348946869,1348946864,1348946859,1348946993,1348946960,1348946931,1348946925,1348947057,1348947028,1348947050,1348947046,1348947040,1348947038,1348947161,1348947140,1348947347,1348947339,1348947435,1348947432,1348947633,1348947787,1348947843,1348947842,1348947840,1348947910,1348947904,1348947898,1348948019,1348948005,1348948001,1348947987,1348947975,1348948132,1348948117,1348948113,1348948100,1348948096,1348948086,1348948400,1348948398,1348948395,1348948391,1348948387); 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([21898451]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} new output for save of step final : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] map_info['map_portfolio_photo'] : {21898451: [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975, 1348947910, 1348947904, 1348947898, 1348947843, 1348947842, 1348947840, 1348947787, 1348947633, 1348947435, 1348947432, 1348947347, 1348947339, 1348947161, 1348947140, 1348947057, 1348947050, 1348947046, 1348947040, 1348947038, 1348947028, 1348946993, 1348946960, 1348946931, 1348946925, 1348946873, 1348946869, 1348946864, 1348946859]} final : False mtd_id 4302 list_pids : [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] Looping around the photos to save general results len do output : 16 /1348948400.Didn't retrieve data . /1348948398.Didn't retrieve data . /1348948395.Didn't retrieve data . /1348948391.Didn't retrieve data . /1348948387.Didn't retrieve data . /1348948132.Didn't retrieve data . /1348948117.Didn't retrieve data . /1348948113.Didn't retrieve data . /1348948100.Didn't retrieve data . /1348948096.Didn't retrieve data . /1348948086.Didn't retrieve data . /1348948019.Didn't retrieve data . /1348948005.Didn't retrieve data . /1348948001.Didn't retrieve data . /1348947987.Didn't retrieve data . /1348947975.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, '2707838') ('4302', '21898451', '1348948400', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '21898451', '1348948400', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948398', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948395', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948391', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948387', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948132', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948117', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948113', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948100', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948096', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948086', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948019', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948005', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348948001', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348947987', '0.036542392630570034', None, None, None, None, '2707838'), ('4302', '21898451', '1348947975', '0.036542392630570034', None, None, None, None, '2707838')] time used for this insertion : 0.014967203140258789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06614828109741211 time spend to save output : 0.015769481658935547 total time spend for step 2 : 0.08191776275634766 step3:velours_tree Mon Mar 31 07:44:30 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 : {21898451: [{'metal': 21898498, 'mal_croppe': 21898499, 'Carton_gris': 21898500, 'cartonnette': 21898501, 'papier': 21898502, 'Teint_Dans_La_Masse': 21898503, 'Carton_brun': 21898504, 'flou': 21898505, 'environnement': 21898506, 'autre_refus': 21898507, 'plastique': 21898508, 'kraft': 21898509}]} input_args_next_step : {21898451: ()} output_args : {21898451: [{'metal': 21898498, 'mal_croppe': 21898499, 'Carton_gris': 21898500, 'cartonnette': 21898501, 'papier': 21898502, 'Teint_Dans_La_Masse': 21898503, 'Carton_brun': 21898504, 'flou': 21898505, 'environnement': 21898506, 'autre_refus': 21898507, 'plastique': 21898508, 'kraft': 21898509}]} args : 21898451 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 21898498, 'mal_croppe': 21898499, 'Carton_gris': 21898500, 'cartonnette': 21898501, 'papier': 21898502, 'Teint_Dans_La_Masse': 21898503, 'Carton_brun': 21898504, 'flou': 21898505, 'environnement': 21898506, 'autre_refus': 21898507, 'plastique': 21898508, 'kraft': 21898509},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21898451) 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([21898451]) 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.3119387626647949 time spend to save output : 7.271766662597656e-05 total time spend for step 3 : 0.3120114803314209 step4:send_mail_cod Mon Mar 31 07:44:30 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 : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} input_args_next_step : {1348948400: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948400 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948398 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948395 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948391 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948387 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948132 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948117 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948113 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948100 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948096 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948086 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948019 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948005 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348948001 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348947987 depend.output_id : 0 input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ()} output_args : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',)} args : 1348947975 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 : {21898451: [{'metal': 21898498, 'mal_croppe': 21898499, 'Carton_gris': 21898500, 'cartonnette': 21898501, 'papier': 21898502, 'Teint_Dans_La_Masse': 21898503, 'Carton_brun': 21898504, 'flou': 21898505, 'environnement': 21898506, 'autre_refus': 21898507, 'plastique': 21898508, 'kraft': 21898509}]} input_args_next_step : {1348948400: ('0.036542392630570034',), 1348948398: ('0.036542392630570034',), 1348948395: ('0.036542392630570034',), 1348948391: ('0.036542392630570034',), 1348948387: ('0.036542392630570034',), 1348948132: ('0.036542392630570034',), 1348948117: ('0.036542392630570034',), 1348948113: ('0.036542392630570034',), 1348948100: ('0.036542392630570034',), 1348948096: ('0.036542392630570034',), 1348948086: ('0.036542392630570034',), 1348948019: ('0.036542392630570034',), 1348948005: ('0.036542392630570034',), 1348948001: ('0.036542392630570034',), 1348947987: ('0.036542392630570034',), 1348947975: ('0.036542392630570034',), 21898451: ()} output_args : {21898451: [{'metal': 21898498, 'mal_croppe': 21898499, 'Carton_gris': 21898500, 'cartonnette': 21898501, 'papier': 21898502, 'Teint_Dans_La_Masse': 21898503, 'Carton_brun': 21898504, 'flou': 21898505, 'environnement': 21898506, 'autre_refus': 21898507, 'plastique': 21898508, 'kraft': 21898509}]} args : 21898451 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 :17, first value : ('0.036542392630570034',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21898451) 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 (1348948400,1348948398,1348948395,1348948391,1348948387,1348948132,1348948117,1348948113,1348948100,1348948096,1348948086,1348948019,1348948005,1348948001,1348947987,1348947975) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348947975 begin to download photo : 1348948019 begin to download photo : 1348948113 begin to download photo : 1348948391 download finish for photo 1348948019 begin to download photo : 1348948086 download finish for photo 1348947975 begin to download photo : 1348947987 download finish for photo 1348948113 begin to download photo : 1348948117 download finish for photo 1348948391 begin to download photo : 1348948395 download finish for photo 1348947987 begin to download photo : 1348948001 download finish for photo 1348948395 begin to download photo : 1348948398 download finish for photo 1348948086 begin to download photo : 1348948096 download finish for photo 1348948117 begin to download photo : 1348948132 download finish for photo 1348948001 begin to download photo : 1348948005 download finish for photo 1348948398 begin to download photo : 1348948400 download finish for photo 1348948096 begin to download photo : 1348948100 download finish for photo 1348948132 begin to download photo : 1348948387 download finish for photo 1348948387 download finish for photo 1348948400 download finish for photo 1348948005 download finish for photo 1348948100 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette218984981743399871/ imagette218984991743399871/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21898451_31-03-2025_07_44_31.pdf 21898498 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=21898498 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218984981743399871 21898499 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=21898499 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218984991743399871 21898501 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=21898501 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348947509: '1743399351_3251387_1348946993_66d3141bcd44b830e4229f69462e2acf_rle_crop_3740722441_0.png', 1348947510: '1743399351_3251387_1348946993_66d3141bcd44b830e4229f69462e2acf_rle_crop_3740722437_0.png', 1348947511: '1743399351_3251387_1348946869_55cb36b121d5ea855cd3ea1ae78c8275_rle_crop_3740721276_0.png', 1348947577: '1743399433_3252778_1348947435_43201930fd36f0ddad80c455ce442dff_rle_crop_3740723266_0.png', 1348947606: '1743399445_464422_1348947347_6ef10aae0a3145c56ceb2a9c237f9fde_rle_crop_3740723334_0.png', 1348947610: '1743399445_464422_1348947140_a064d75cad5b6faa8d0dcae717ddf148_rle_crop_3740723381_0.png', 1348947611: '1743399445_464422_1348947140_a064d75cad5b6faa8d0dcae717ddf148_rle_crop_3740723380_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/f54acd190a3bfdbf2db21c974bc833f9_70255132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/133934487199568bd60421b9b57bc0fd_83612340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6c4bd1a1a179c337db190b3e48d08790_87377916.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/6eb8f4f148c8e84c29f514275ff17766_72586167.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9babd419e3f8c1528bea137c31b55504_60914237.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/658aaeb2827ca2a1b20ac7e56443edac_40450764.png change filename to text .imagette218985011743399871/ imagette218985011743399871/1743399445_464422_1348947140_a064d75cad5b6faa8d0dcae717ddf148_rle_crop_3740723381_0.png.png imagette218985011743399871/1743399445_464422_1348947347_6ef10aae0a3145c56ceb2a9c237f9fde_rle_crop_3740723334_0.png.png imagette218985011743399871/1743399351_3251387_1348946993_66d3141bcd44b830e4229f69462e2acf_rle_crop_3740722437_0.png.png imagette218985011743399871/1743399351_3251387_1348946869_55cb36b121d5ea855cd3ea1ae78c8275_rle_crop_3740721276_0.png.png imagette218985011743399871/1743399445_464422_1348947140_a064d75cad5b6faa8d0dcae717ddf148_rle_crop_3740723380_0.png.png imagette218985011743399871/1743399433_3252778_1348947435_43201930fd36f0ddad80c455ce442dff_rle_crop_3740723266_0.png.png imagette218985011743399871/1743399351_3251387_1348946993_66d3141bcd44b830e4229f69462e2acf_rle_crop_3740722441_0.png.png imagette218985051743399871/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/19a586ae53659a9f50b6fc737c231ca3_70491945.png imagette218985011743399871 21898505 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=21898505 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218985051743399871 21898507 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=21898507 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348947595: '1743399445_464422_1348947347_6ef10aae0a3145c56ceb2a9c237f9fde_rle_crop_3740723332_0.png'} change filename to text .imagette218985071743399871/ imagette218985071743399871/1743399445_464422_1348947347_6ef10aae0a3145c56ceb2a9c237f9fde_rle_crop_3740723332_0.png.png imagette218985081743399871/ imagette218985091743399871/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/a01e268a917c0285149df7e9fa3b3172_4532762.png imagette218985071743399871 21898508 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=21898508 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218985081743399871 21898509 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=21898509 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218985091743399871 21898500 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=21898500 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348947442: '1743399312_3250370_1348947161_193d25006c126802afa8f032ae5be3ea_rle_crop_3740721795_0.png', 1348947507: '1743399351_3251387_1348946873_d2d7eba701523379208e27aaf3509976_rle_crop_3740721208_0.png', 1348947508: '1743399351_3251387_1348946869_55cb36b121d5ea855cd3ea1ae78c8275_rle_crop_3740721270_0.png', 1348947599: '1743399445_464422_1348947347_6ef10aae0a3145c56ceb2a9c237f9fde_rle_crop_3740723330_0.png', 1348947600: '1743399445_464422_1348947140_a064d75cad5b6faa8d0dcae717ddf148_rle_crop_3740723383_0.png', 1348947826: '1743399568_760527_1348947633_7724e83cd5c5129ffbce3d33a284f783_rle_crop_3740723525_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/62ab3a3183154e9bdd064c76fea19689_82478212.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/bcb5aed0e027887ece09946a4f508103_90303207.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/8eaf5768043961691823c7cde0d27035_42025580.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/07c07f59fbd0890206fd4927b47ee639_13031807.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b5c57df4d91c5da2c34837c2ca617293_97890597.png change filename to text .imagette218985001743399871/ imagette218985001743399871/1743399351_3251387_1348946873_d2d7eba701523379208e27aaf3509976_rle_crop_3740721208_0.png.png imagette218985001743399871/1743399445_464422_1348947140_a064d75cad5b6faa8d0dcae717ddf148_rle_crop_3740723383_0.png.png imagette218985001743399871/1743399568_760527_1348947633_7724e83cd5c5129ffbce3d33a284f783_rle_crop_3740723525_0.png.png imagette218985001743399871/1743399445_464422_1348947347_6ef10aae0a3145c56ceb2a9c237f9fde_rle_crop_3740723330_0.png.png imagette218985001743399871/1743399312_3250370_1348947161_193d25006c126802afa8f032ae5be3ea_rle_crop_3740721795_0.png.png imagette218985001743399871/1743399351_3251387_1348946869_55cb36b121d5ea855cd3ea1ae78c8275_rle_crop_3740721270_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/998c4292cf36191ebea10b8cfe72bcd8_35353622.png imagette218985001743399871 21898503 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=21898503 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348947438: '1743399312_3250370_1348947046_f0c65e71b3088f7764749b6d1e4795ac_rle_crop_3740721825_0.png', 1348947439: '1743399312_3250370_1348947040_0dc1525940a1cada80407217ceb87934_rle_crop_3740721851_0.png', 1348947440: '1743399312_3250370_1348947040_0dc1525940a1cada80407217ceb87934_rle_crop_3740721853_0.png', 1348947441: '1743399312_3250370_1348947040_0dc1525940a1cada80407217ceb87934_rle_crop_3740721849_0.png', 1348947446: '1743399330_3250762_1348946960_4b775d7240fdfdcd81716e4c9bc07de6_rle_crop_3740721930_0.png', 1348947447: '1743399330_3250762_1348946960_4b775d7240fdfdcd81716e4c9bc07de6_rle_crop_3740721934_0.png', 1348947448: '1743399330_3250762_1348946931_4858bf118ee6dac9654ab9362a7a6a50_rle_crop_3740721951_0.png', 1348947449: '1743399330_3250762_1348946931_4858bf118ee6dac9654ab9362a7a6a50_rle_crop_3740721948_0.png', 1348947501: '1743399351_3251387_1348946873_d2d7eba701523379208e27aaf3509976_rle_crop_3740721214_0.png', 1348947502: '1743399351_3251387_1348946869_55cb36b121d5ea855cd3ea1ae78c8275_rle_crop_3740721277_0.png', 1348947503: '1743399351_3251387_1348946864_1a79be38400363257120061ec432fc52_rle_crop_3740721294_0.png', 1348947504: '1743399351_3251387_1348946859_b5c514fb6243af82b416bb85f24e0b3c_rle_crop_3740721323_0.png', 1348947505: '1743399351_3251387_1348946859_b5c514fb6243af82b416bb85f24e0b3c_rle_crop_3740721322_0.png', 1348947922: '1743399661_3255465_1348947840_d18fbccd0d27cd1ab62c07e297a722a3_rle_crop_3740725216_0.png', 1348948204: '1743399807_764625_1348947904_5b4c37e1f014f3395243db8c70eb6b6a_rle_crop_3740725769_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/63730c67643530b62d82e6ef6d02703a_23021774.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e311d55a2b61854df66d7a742bd7e088_18358256.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/214255b9111b7b3d63c1cdfeabf7841b_97475162.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9a5bdbdb75fd74943802e269c2e943f4_46642105.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2649675902c0097ffff59bc2ea50d8c5_54859251.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/21ecc232539df73f27d492e68c23c279_16600287.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d25a5644aa866cfb573b231501e9eef0_11112996.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c0af0c660c96b8bb38b03619182e9fec_10570203.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/719e435c07769da5a5719dde120c744d_97468797.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/8a61ac227064b6ef5175f0ab740d8759_4786141.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/2c48f5c8cc1dbaeaef244852a97ca45a_3840040.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/858abfc8181872d4ba431096b57e9223_73513310.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/fd4e8805eea06c418633ac66d14696e0_35441777.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9785a5465e463823344b4a2dc13c6708_49059258.png change filename to text .imagette218985031743399872/ imagette218985031743399872/1743399661_3255465_1348947840_d18fbccd0d27cd1ab62c07e297a722a3_rle_crop_3740725216_0.png.png imagette218985031743399872/1743399312_3250370_1348947046_f0c65e71b3088f7764749b6d1e4795ac_rle_crop_3740721825_0.png.png imagette218985031743399872/1743399330_3250762_1348946931_4858bf118ee6dac9654ab9362a7a6a50_rle_crop_3740721951_0.png.png imagette218985031743399872/1743399351_3251387_1348946864_1a79be38400363257120061ec432fc52_rle_crop_3740721294_0.png.png imagette218985031743399872/1743399807_764625_1348947904_5b4c37e1f014f3395243db8c70eb6b6a_rle_crop_3740725769_0.png.png imagette218985031743399872/1743399351_3251387_1348946859_b5c514fb6243af82b416bb85f24e0b3c_rle_crop_3740721323_0.png.png imagette218985031743399872/1743399312_3250370_1348947040_0dc1525940a1cada80407217ceb87934_rle_crop_3740721849_0.png.png imagette218985031743399872/1743399330_3250762_1348946960_4b775d7240fdfdcd81716e4c9bc07de6_rle_crop_3740721930_0.png.png imagette218985031743399872/1743399330_3250762_1348946931_4858bf118ee6dac9654ab9362a7a6a50_rle_crop_3740721948_0.png.png imagette218985031743399872/1743399351_3251387_1348946869_55cb36b121d5ea855cd3ea1ae78c8275_rle_crop_3740721277_0.png.png imagette218985031743399872/1743399312_3250370_1348947040_0dc1525940a1cada80407217ceb87934_rle_crop_3740721853_0.png.png imagette218985031743399872/1743399312_3250370_1348947040_0dc1525940a1cada80407217ceb87934_rle_crop_3740721851_0.png.png imagette218985031743399872/1743399351_3251387_1348946859_b5c514fb6243af82b416bb85f24e0b3c_rle_crop_3740721322_0.png.png imagette218985031743399872/1743399330_3250762_1348946960_4b775d7240fdfdcd81716e4c9bc07de6_rle_crop_3740721934_0.png.png imagette218985031743399872/1743399351_3251387_1348946873_d2d7eba701523379208e27aaf3509976_rle_crop_3740721214_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/38fc349b628727005165291f6714492d_54353121.png imagette218985031743399872 21898504 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=21898504 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348947443: '1743399312_3250370_1348947161_193d25006c126802afa8f032ae5be3ea_rle_crop_3740721794_0.png', 1348947450: '1743399330_3250762_1348946960_4b775d7240fdfdcd81716e4c9bc07de6_rle_crop_3740721932_0.png', 1348947513: '1743399351_3251387_1348946993_66d3141bcd44b830e4229f69462e2acf_rle_crop_3740722446_0.png', 1348947923: '1743399661_3255465_1348947840_d18fbccd0d27cd1ab62c07e297a722a3_rle_crop_3740725217_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/618533e80273d3fa43d48e1fbb3f5efd_83348659.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cf0beed811593a27e7f95f505aa47fa6_70766837.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4794ae3246346769f4dbe8de94dbb2e4_2049011.png change filename to text .imagette218985041743399873/ imagette218985041743399873/1743399330_3250762_1348946960_4b775d7240fdfdcd81716e4c9bc07de6_rle_crop_3740721932_0.png.png imagette218985041743399873/1743399661_3255465_1348947840_d18fbccd0d27cd1ab62c07e297a722a3_rle_crop_3740725217_0.png.png imagette218985041743399873/1743399312_3250370_1348947161_193d25006c126802afa8f032ae5be3ea_rle_crop_3740721794_0.png.png imagette218985041743399873/1743399351_3251387_1348946993_66d3141bcd44b830e4229f69462e2acf_rle_crop_3740722446_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c194a4ea43214a03558e2aa3ad0d611d_24533316.png imagette218985041743399873 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21898451 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21898510,21898511,21898512,21898513,21898514,21898515,21898516,21898517,21898518,21898519,21898520,21898521?tags=metal,mal_croppe,Carton_gris,cartonnette,papier,Teint_Dans_La_Masse,Carton_brun,flou,environnement,autre_refus,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1348948400] : ('0.036542392630570034',) no score found for photo 1348948400 We are sending mail with results at report@fotonower.com args[1348948398] : ('0.036542392630570034',) no score found for photo 1348948398 We are sending mail with results at report@fotonower.com args[1348948395] : ('0.036542392630570034',) no score found for photo 1348948395 We are sending mail with results at report@fotonower.com args[1348948391] : ('0.036542392630570034',) no score found for photo 1348948391 We are sending mail with results at report@fotonower.com args[1348948387] : ('0.036542392630570034',) no score found for photo 1348948387 We are sending mail with results at report@fotonower.com args[1348948132] : ('0.036542392630570034',) no score found for photo 1348948132 We are sending mail with results at report@fotonower.com args[1348948117] : ('0.036542392630570034',) no score found for photo 1348948117 We are sending mail with results at report@fotonower.com args[1348948113] : ('0.036542392630570034',) no score found for photo 1348948113 We are sending mail with results at report@fotonower.com args[1348948100] : ('0.036542392630570034',) no score found for photo 1348948100 We are sending mail with results at report@fotonower.com args[1348948096] : ('0.036542392630570034',) no score found for photo 1348948096 We are sending mail with results at report@fotonower.com args[1348948086] : ('0.036542392630570034',) no score found for photo 1348948086 We are sending mail with results at report@fotonower.com args[1348948019] : ('0.036542392630570034',) no score found for photo 1348948019 We are sending mail with results at report@fotonower.com args[1348948005] : ('0.036542392630570034',) no score found for photo 1348948005 We are sending mail with results at report@fotonower.com args[1348948001] : ('0.036542392630570034',) no score found for photo 1348948001 We are sending mail with results at report@fotonower.com args[1348947987] : ('0.036542392630570034',) no score found for photo 1348947987 We are sending mail with results at report@fotonower.com args[1348947975] : ('0.036542392630570034',) no score found for photo 1348947975 We are sending mail with results at report@fotonower.com refus_total : 0.036542392630570034 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=21898451 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_P21898451_31-03-2025_07_44_31.pdf results_Auto_P21898451_31-03-2025_07_44_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21898451_31-03-2025_07_44_31.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','21898451','results_Auto_P21898451_31-03-2025_07_44_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21898451_31-03-2025_07_44_31.pdf','pdf','','0.21','0.036542392630570034') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21898451]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] map_info['map_portfolio_photo'] : {21898451: [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975, 1348947910, 1348947904, 1348947898, 1348947843, 1348947842, 1348947840, 1348947787, 1348947633, 1348947435, 1348947432, 1348947347, 1348947339, 1348947161, 1348947140, 1348947057, 1348947050, 1348947046, 1348947040, 1348947038, 1348947028, 1348946993, 1348946960, 1348946931, 1348946925, 1348946873, 1348946869, 1348946864, 1348946859]} final : False mtd_id 4302 list_pids : [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] 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, '2707838') ('4302', '21898451', '1348948400', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838') 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', '21898451', '1348948400', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838')] time used for this insertion : 0.016250133514404297 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9819750785827637 time spend to save output : 0.01662302017211914 total time spend for step 4 : 3.998598098754883 step5:split_time_score Mon Mar 31 07:44:34 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 : ['21898451'] 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 : [('21898451',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21898451) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348948113: {'path': 'temp/1743399870_2272877_1348948113_818352ab2d6d2eb83c2dad5a0d56c969.jpg', 'extension': 'jpg'}, 1348948117: {'path': 'temp/1743399870_2272877_1348948117_8f6cf59f4fa9e3d670811563b2026271.jpg', 'extension': 'jpg'}, 1348948132: {'path': 'temp/1743399870_2272877_1348948132_f7281f011ffd32431363708da216fe57.jpg', 'extension': 'jpg'}, 1348948387: {'path': 'temp/1743399870_2272877_1348948387_bf256e8229a7a4f1a3fe19783d3a00f5.jpg', 'extension': 'jpg'}, 1348948391: {'path': 'temp/1743399870_2272877_1348948391_c92b3285aa0c58ded2bf604de14fd541.jpg', 'extension': 'jpg'}, 1348948395: {'path': 'temp/1743399870_2272877_1348948395_2eb68963cee626fe680b496c438006e7.jpg', 'extension': 'jpg'}, 1348948398: {'path': 'temp/1743399870_2272877_1348948398_bcc30842c4033e6a89b26187aaf7c3ce.jpg', 'extension': 'jpg'}, 1348948400: {'path': 'temp/1743399870_2272877_1348948400_1e53dc13b91dda5d283f293da33dfae7.jpg', 'extension': 'jpg'}, 1348947975: {'path': 'temp/1743399870_2272877_1348947975_53ec004645229c1a0c6c244c06a334bf.jpg', 'extension': 'jpg'}, 1348947987: {'path': 'temp/1743399870_2272877_1348947987_9d4d64bd405743163f63fdbe7c210550.jpg', 'extension': 'jpg'}, 1348948001: {'path': 'temp/1743399870_2272877_1348948001_abc4d03d14cc6829dbf72d0dc51b9230.jpg', 'extension': 'jpg'}, 1348948005: {'path': 'temp/1743399870_2272877_1348948005_debae33ba2c63c569141b8969a54bf1e.jpg', 'extension': 'jpg'}, 1348948019: {'path': 'temp/1743399870_2272877_1348948019_97dfeff6cfa20fec2b1c8315e18ae1b9.jpg', 'extension': 'jpg'}, 1348948086: {'path': 'temp/1743399870_2272877_1348948086_88736c55364fd3f627a107ebc1920e5f.jpg', 'extension': 'jpg'}, 1348948096: {'path': 'temp/1743399870_2272877_1348948096_6a217263cc389f06c6e70ab32b772a7c.jpg', 'extension': 'jpg'}, 1348948100: {'path': 'temp/1743399870_2272877_1348948100_0bae61aae9406c5ca2236f368813b0fe.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 = 21898451; (('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 = 21898451 group by h (('07', 44),) 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=21898451 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 (21898451) 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 (21898451) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21898451 Nombre de photos uploadées : 44 / 23040 (0%) 31032025 21898451 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 31032025 21898451 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1348946873, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/d2d7eba701523379208e27aaf3509976.jpg', 'username': None, 'uploaded_at': 1743399087, 'text': 'image_31032025_07_30_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348946869, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/55cb36b121d5ea855cd3ea1ae78c8275.jpg', 'username': None, 'uploaded_at': 1743399087, 'text': 'image_31032025_07_30_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348946864, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1a79be38400363257120061ec432fc52.jpg', 'username': None, 'uploaded_at': 1743399087, 'text': 'image_31032025_07_30_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348946859, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b5c514fb6243af82b416bb85f24e0b3c.jpg', 'username': None, 'uploaded_at': 1743399087, 'text': 'image_31032025_07_30_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019068717956542969 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21898451, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023911237716674805 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710427, 'mtr_portfolio_id': 21896727, 'dashboard_result_id': 9750213, '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_P21896727_31-03-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21896730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21896731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21896732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21896733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21896734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21896735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21896736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21896737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21896738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21896739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21896740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21896741, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710427, 'mtr_portfolio_id': 21897245, 'dashboard_result_id': 9750214, '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_P21897245_31-03-2025_07_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897288, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710427, 'mtr_portfolio_id': 21897602, 'dashboard_result_id': 9750215, '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_P21897602_31-03-2025_07_33_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897621, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710427, 'mtr_portfolio_id': 21898451, 'dashboard_result_id': 9750216, '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_P21898451_31-03-2025_07_43_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21898498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21898499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21898500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21898501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21898502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21898503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21898504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21898505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21898506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21898507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21898508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21898509, '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 = 21896727 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': 2707691, 'mtr_portfolio_id': 21896727, 'created_at': datetime.datetime(2025, 3, 31, 7, 2, 59), 'result': '0.04685553469612216', 'result_long': None, 'result_double': None}] Qualite : 0.04685553469612216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21896727 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21896727_31-03-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21896727 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_P21896727_31-03-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21896730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21896731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21896732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21896733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21896734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21896735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21896736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21896737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21896738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21896739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21896740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21896741, 'pht': 3726}}" where mtr_portfolio_id = 21896727 and dashboard_run_id = 1710427 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`=21896727 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750213, 0.04685553469612216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21896727_31-03-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21896730, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21896731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21896732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21896733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21896734, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21896735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21896736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21896737, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21896738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21896739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21896740, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21896741, '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 = 21897245 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': 2707748, 'mtr_portfolio_id': 21897245, 'created_at': datetime.datetime(2025, 3, 31, 7, 32, 58), 'result': '0.033457148608079905', 'result_long': None, 'result_double': None}] Qualite : 0.033457148608079905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21897245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21897245_31-03-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21897245 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_P21897245_31-03-2025_07_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897288, 'pht': 3726}}" where mtr_portfolio_id = 21897245 and dashboard_run_id = 1710427 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`=21897245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750214, 0.033457148608079905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21897245_31-03-2025_07_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897277, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897278, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897279, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897280, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897281, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897283, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897284, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897287, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897288, '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 = 21897602 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': 2707783, 'mtr_portfolio_id': 21897602, 'created_at': datetime.datetime(2025, 3, 31, 7, 33, 3), 'result': '0.04626413731483952', 'result_long': None, 'result_double': None}] Qualite : 0.04626413731483952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21897602 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21897602_31-03-2025_07_33_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21897602 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_P21897602_31-03-2025_07_33_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897621, 'pht': 3726}}" where mtr_portfolio_id = 21897602 and dashboard_run_id = 1710427 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`=21897602 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750215, 0.04626413731483952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21897602_31-03-2025_07_33_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21897610, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21897611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21897612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21897613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21897614, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21897615, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21897616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21897617, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21897618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21897619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21897620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21897621, '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 = 21898451 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': 2707838, 'mtr_portfolio_id': 21898451, 'created_at': datetime.datetime(2025, 3, 31, 7, 44, 30), 'result': '0.036542392630570034', 'result_long': None, 'result_double': None}] Qualite : 0.036542392630570034 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21898451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21898451_31-03-2025_07_44_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21898451 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_P21898451_31-03-2025_07_44_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21898498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21898499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21898500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21898501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21898502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21898503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21898504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21898505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21898506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21898507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21898508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21898509, 'pht': 3726}}" where mtr_portfolio_id = 21898451 and dashboard_run_id = 1710427 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`=21898451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9750216, 0.036542392630570034, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21898451_31-03-2025_07_44_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21898498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21898499, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21898500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21898501, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21898502, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21898503, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21898504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21898505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21898506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21898507, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21898508, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21898509, '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 (21896727,21897245,21897602,21898451) result : ((1348942815,), (1348942816,), (1348942817,), (1348942818,), (1348942822,), (1348942855,), (1348942859,), (1348942863,), (1348942868,), (1348942870,), (1348942896,), (1348942897,), (1348942898,), (1348942902,), (1348942914,), (1348942917,), (1348942942,), (1348942944,), (1348942945,), (1348942948,), (1348942952,), (1348943001,), (1348943002,), (1348943038,), (1348943040,), (1348943042,), (1348943044,), (1348943047,), (1348943051,), (1348943082,), (1348943083,), (1348943088,), (1348943096,), (1348943100,), (1348943105,), (1348943127,), (1348943130,), (1348943134,), (1348943137,), (1348943177,), (1348943179,), (1348943181,), (1348943183,), (1348943188,), (1348943192,), (1348943209,), (1348943212,), (1348943215,), (1348943218,), (1348943221,), (1348943260,), (1348943266,), (1348943268,), (1348943269,), (1348943272,), (1348943299,), (1348943301,), (1348943303,), (1348943305,), (1348943309,), (1348943317,), (1348943587,), (1348943635,), (1348943676,), (1348943722,), (1348943768,), (1348944568,), (1348944592,), (1348944597,), (1348944606,), (1348944645,), (1348944674,), (1348944697,), (1348944712,), (1348944771,), (1348944748,), (1348944752,), (1348944755,), (1348944758,), (1348944763,), (1348944789,), (1348944794,), (1348944799,), (1348944802,), (1348944892,), (1348944894,), (1348944899,), (1348944940,), (1348944943,), (1348944947,), (1348945005,), (1348945009,), (1348945077,), (1348945089,), (1348945098,), (1348945104,), (1348945240,), (1348945263,), (1348945266,), (1348945551,), (1348945555,), (1348945571,), (1348945589,), (1348945729,), (1348945733,), (1348945750,), (1348945753,), (1348946210,), (1348946218,), (1348946231,), (1348946237,), (1348946310,), (1348946372,), (1348946390,), (1348946397,), (1348946403,), (1348946416,), (1348946420,), (1348946433,), (1348946517,), (1348946528,), (1348946593,), (1348946602,), (1348946606,), (1348946611,), (1348946622,), (1348946638,), (1348946749,), (1348946752,), (1348946755,), (1348946823,), (1348946826,), (1348946829,), (1348946832,), (1348946835,), (1348946839,), (1348946884,), (1348946921,), (1348945847,), (1348945857,), (1348945867,), (1348945876,), (1348945886,), (1348945895,), (1348945910,), (1348945914,), (1348945918,), (1348945922,), (1348945931,), (1348945937,), (1348945960,), (1348945965,), (1348945969,), (1348945973,), (1348945976,), (1348945979,), (1348945991,), (1348945995,), (1348946000,), (1348946008,), (1348946016,), (1348946025,), (1348946043,), (1348946045,), (1348946049,), (1348946052,), (1348946055,), (1348946059,), (1348946078,), (1348946084,), (1348946091,), (1348946098,), (1348946104,), (1348946108,), (1348946134,), (1348946138,), (1348946146,), (1348946151,), (1348946157,), (1348946163,), (1348946192,), (1348946196,), (1348946249,), (1348946259,), (1348946271,), (1348946290,), (1348946296,), (1348946322,), (1348946350,), (1348946354,), (1348946360,), (1348946368,), (1348946467,), (1348946479,), (1348946491,), (1348946509,), (1348946735,), (1348946739,), (1348946744,), (1348946768,), (1348946773,), (1348946779,), (1348946785,), (1348946790,), (1348946798,), (1348946879,), (1348946859,), (1348946864,), (1348946869,), (1348946873,), (1348946925,), (1348946931,), (1348946960,), (1348946993,), (1348947028,), (1348947038,), (1348947040,), (1348947046,), (1348947050,), (1348947057,), (1348947140,), (1348947161,), (1348947339,), (1348947347,), (1348947432,), (1348947435,), (1348947633,), (1348947787,), (1348947840,), (1348947842,), (1348947843,), (1348947898,), (1348947904,), (1348947910,), (1348947975,), (1348947987,), (1348948001,), (1348948005,), (1348948019,), (1348948086,), (1348948096,), (1348948100,), (1348948113,), (1348948117,), (1348948132,), (1348948387,), (1348948391,), (1348948395,), (1348948398,), (1348948400,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21898451]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] map_info['map_portfolio_photo'] : {21898451: [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975, 1348947910, 1348947904, 1348947898, 1348947843, 1348947842, 1348947840, 1348947787, 1348947633, 1348947435, 1348947432, 1348947347, 1348947339, 1348947161, 1348947140, 1348947057, 1348947050, 1348947046, 1348947040, 1348947038, 1348947028, 1348946993, 1348946960, 1348946931, 1348946925, 1348946873, 1348946869, 1348946864, 1348946859]} final : True mtd_id 4302 list_pids : [1348948400, 1348948398, 1348948395, 1348948391, 1348948387, 1348948132, 1348948117, 1348948113, 1348948100, 1348948096, 1348948086, 1348948019, 1348948005, 1348948001, 1348947987, 1348947975] Looping around the photos to save general results len do output : 1 /21898451Didn'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, '2707838') ('4302', '21898451', '1348948400', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838') ('4302', None, None, None, None, None, None, None, '2707838') ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21898451', 'None', None, None, None, None, '2707838'), ('4302', '21898451', '1348948400', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948398', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948395', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948391', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948387', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948132', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948117', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948113', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948100', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948096', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948086', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948019', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948005', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348948001', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348947987', None, None, None, None, None, '2707838'), ('4302', '21898451', '1348947975', None, None, None, None, None, '2707838')] time used for this insertion : 0.014636993408203125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34894275665283203 time spend to save output : 0.014879941940307617 total time spend for step 5 : 0.36382269859313965 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 (2707838) 2.38user 2.24system 0:09.53elapsed 48%CPU (0avgtext+0avgdata 159316maxresident)k 288inputs+11656outputs (0major+74769minor)pagefaults 0swaps