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 : 870249 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 (2597414) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2597414) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649585 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2597414'] with mtr_portfolio_ids : ['20649585'] and first list_photo_ids : [] new path : /proc/870249/ Name: python3 Umask: 0002 State: R (running) Tgid: 870249 Ngid: 0 Pid: 870249 PPid: 870248 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 870249 NSpid: 870249 NSpgid: 867262 NSsid: 867262 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99568 kB VmRSS: 99568 kB RssAnon: 59748 kB RssFile: 39820 kB RssShmem: 0 kB VmData: 865588 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 4/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: 58 nonvoluntary_ctxt_switches: 171 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '870249', 'Ngid': '0', 'Pid': '870249', 'PPid': '870248', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '870249', 'NSpid': '870249', 'NSpgid': '867262', 'NSsid': '867262', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99568 kB', 'VmRSS': '99568 kB', 'RssAnon': '59748 kB', 'RssFile': '39820 kB', 'RssShmem': '0 kB', 'VmData': '865588 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '4/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': '58', 'nonvoluntary_ctxt_switches': '171'} ('datou_batch_current', '870249', '1106836', '0', '1106836', '865588', '99568', b'', 'marlene', '2597414') 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 (20649585) 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 (2597414 ) ) 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 (20649585) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338377060, 'portfolio_id': 20649585}, {'photo_id': 1338377045, 'portfolio_id': 20649585}, {'photo_id': 1338377042, 'portfolio_id': 20649585}, {'photo_id': 1338377038, 'portfolio_id': 20649585}, {'photo_id': 1338377000, 'portfolio_id': 20649585}, {'photo_id': 1338376994, 'portfolio_id': 20649585}, {'photo_id': 1338376991, 'portfolio_id': 20649585}, {'photo_id': 1338376989, 'portfolio_id': 20649585}, {'photo_id': 1338376949, 'portfolio_id': 20649585}, {'photo_id': 1338376937, 'portfolio_id': 20649585}, {'photo_id': 1338376934, 'portfolio_id': 20649585}, {'photo_id': 1338376933, 'portfolio_id': 20649585}, {'photo_id': 1338376931, 'portfolio_id': 20649585}, {'photo_id': 1338376929, 'portfolio_id': 20649585}, {'photo_id': 1338376905, 'portfolio_id': 20649585}, {'photo_id': 1338376895, 'portfolio_id': 20649585}, {'photo_id': 1338376887, 'portfolio_id': 20649585}, {'photo_id': 1338376883, 'portfolio_id': 20649585}, {'photo_id': 1338376881, 'portfolio_id': 20649585}, {'photo_id': 1338376871, 'portfolio_id': 20649585}, {'photo_id': 1338376830, 'portfolio_id': 20649585}, {'photo_id': 1338376826, 'portfolio_id': 20649585}, {'photo_id': 1338376823, 'portfolio_id': 20649585}, {'photo_id': 1338376820, 'portfolio_id': 20649585}, {'photo_id': 1338376816, 'portfolio_id': 20649585}, {'photo_id': 1338376787, 'portfolio_id': 20649585}, {'photo_id': 1338376785, 'portfolio_id': 20649585}, {'photo_id': 1338376784, 'portfolio_id': 20649585}, {'photo_id': 1338376766, 'portfolio_id': 20649585}, {'photo_id': 1338376762, 'portfolio_id': 20649585}, {'photo_id': 1338376760, 'portfolio_id': 20649585}, {'photo_id': 1338376758, 'portfolio_id': 20649585}, {'photo_id': 1338376740, 'portfolio_id': 20649585}, {'photo_id': 1338376739, 'portfolio_id': 20649585}, {'photo_id': 1338376737, 'portfolio_id': 20649585}, {'photo_id': 1338376733, 'portfolio_id': 20649585}, {'photo_id': 1338376730, 'portfolio_id': 20649585}, {'photo_id': 1338376729, 'portfolio_id': 20649585}, {'photo_id': 1338376692, 'portfolio_id': 20649585}, {'photo_id': 1338376689, 'portfolio_id': 20649585}, {'photo_id': 1338376687, 'portfolio_id': 20649585}, {'photo_id': 1338376638, 'portfolio_id': 20649585}, {'photo_id': 1338376636, 'portfolio_id': 20649585}, {'photo_id': 1338376634, 'portfolio_id': 20649585}, {'photo_id': 1338376438, 'portfolio_id': 20649585}, {'photo_id': 1338376437, 'portfolio_id': 20649585}, {'photo_id': 1338376435, 'portfolio_id': 20649585}, {'photo_id': 1338376433, 'portfolio_id': 20649585}, {'photo_id': 1338376432, 'portfolio_id': 20649585}, {'photo_id': 1338376291, 'portfolio_id': 20649585}, {'photo_id': 1338376288, 'portfolio_id': 20649585}, {'photo_id': 1338376265, 'portfolio_id': 20649585}, {'photo_id': 1338376264, 'portfolio_id': 20649585}, {'photo_id': 1338376208, 'portfolio_id': 20649585}] map_portfolio_id_photo_id: {20649585: [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929, 1338376905, 1338376895, 1338376887, 1338376883, 1338376881, 1338376871, 1338376830, 1338376826, 1338376823, 1338376820, 1338376816, 1338376787, 1338376785, 1338376784, 1338376766, 1338376762, 1338376760, 1338376758, 1338376740, 1338376739, 1338376737, 1338376733, 1338376730, 1338376729, 1338376692, 1338376689, 1338376687, 1338376638, 1338376636, 1338376634, 1338376438, 1338376437, 1338376435, 1338376433, 1338376432, 1338376291, 1338376288, 1338376265, 1338376264, 1338376208]} ##### 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.015448570251464844 #### 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 Tue Feb 18 19:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20649585) 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 : 20649585 get user id for portfolio 20649585 get sub ptf for main ptf 20649585, type 3726 and hashtags ['plastique', 'cartonnette', 'kraft', 'Carton_brun', 'papier', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe', 'Carton_gris', 'flou', 'metal', 'environnement'] 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`=20649585 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','kraft','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','metal','environnement')) 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`=20649585 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','kraft','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20649585, 'sub_port_id': 20649622, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302672, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'mal_croppe': {'main_port_id': 20649585, 'sub_port_id': 20649623, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302673, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'metal': {'main_port_id': 20649585, 'sub_port_id': 20649624, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302674, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'kraft': {'main_port_id': 20649585, 'sub_port_id': 20649625, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302675, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'cartonnette': {'main_port_id': 20649585, 'sub_port_id': 20649626, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302676, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'Carton_gris': {'main_port_id': 20649585, 'sub_port_id': 20649627, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302677, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 20649585, 'sub_port_id': 20649628, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302678, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'environnement': {'main_port_id': 20649585, 'sub_port_id': 20649629, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302679, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'flou': {'main_port_id': 20649585, 'sub_port_id': 20649630, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302680, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'Carton_brun': {'main_port_id': 20649585, 'sub_port_id': 20649631, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302681, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'plastique': {'main_port_id': 20649585, 'sub_port_id': 20649632, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302682, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}, 'autre_refus': {'main_port_id': 20649585, 'sub_port_id': 20649633, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302683, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20649622 , 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=20649585 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 (20649622) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649623 , 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=20649585 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 (20649623) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649624 , 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=20649585 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 (20649624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649625 , 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=20649585 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 (20649625) result : ((1338376666,), (1338376705,), (1338376812,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649626 , 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=20649585 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 (20649626) result : ((1338376661,), (1338376662,), (1338376663,), (1338376878,), (1338376880,), (1338376958,), (1338376959,), (1338377004,), (1338377005,), (1338377023,), (1338377024,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649627 , 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=20649585 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 (20649627) result : ((1338376658,), (1338376698,), (1338376699,), (1338376700,), (1338376942,), (1338376974,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649628 , 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=20649585 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 (20649628) result : ((1338376656,), (1338376657,), (1338376694,), (1338376695,), (1338376747,), (1338376755,), (1338376756,), (1338376810,), (1338376813,), (1338376814,), (1338376872,), (1338376873,), (1338376874,), (1338376938,), (1338376939,), (1338376940,), (1338376941,), (1338376995,), (1338376996,), (1338376997,), (1338377017,), (1338377018,), (1338377019,), (1338377020,), (1338377021,), (1338377022,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649629 , 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=20649585 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 (20649629) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649630 , 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=20649585 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 (20649630) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649631 , 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=20649585 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 (20649631) result : ((1338376664,), (1338376701,), (1338376702,), (1338376703,), (1338376704,), (1338376960,), (1338376961,), (1338376962,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649632 , 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=20649585 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 (20649632) result : ((1338376811,), (1338377025,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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 20649633 , 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=20649585 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 (20649633) result : ((1338376696,), (1338376749,), (1338376875,), (1338376876,), (1338376877,), (1338377001,), (1338377002,), (1338377003,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20649585) result : ((1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) 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 (1338377000) 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`=20649585 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','kraft','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','metal','environnement')) 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`=20649585 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','cartonnette','kraft','Carton_brun','papier','Teint_Dans_La_Masse','autre_refus','mal_croppe','Carton_gris','flou','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 20649585, 'sub_port_id': 20649634, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302684, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'mal_croppe': {'main_port_id': 20649585, 'sub_port_id': 20649635, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302685, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'metal': {'main_port_id': 20649585, 'sub_port_id': 20649636, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302686, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'kraft': {'main_port_id': 20649585, 'sub_port_id': 20649637, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302687, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'cartonnette': {'main_port_id': 20649585, 'sub_port_id': 20649638, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302688, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'Carton_gris': {'main_port_id': 20649585, 'sub_port_id': 20649639, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302689, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20649585, 'sub_port_id': 20649640, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302690, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'environnement': {'main_port_id': 20649585, 'sub_port_id': 20649641, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302691, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'flou': {'main_port_id': 20649585, 'sub_port_id': 20649642, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302692, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'Carton_brun': {'main_port_id': 20649585, 'sub_port_id': 20649643, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302693, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'plastique': {'main_port_id': 20649585, 'sub_port_id': 20649644, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302694, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}, 'autre_refus': {'main_port_id': 20649585, 'sub_port_id': 20649645, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13302695, 'last_updated_at': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 18, 19, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 18, 19, 35, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649627 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649640,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649628 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649641,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649629 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649642,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649630 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649643,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649631 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649644,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649632 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20649645,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20649633 lien utilise dans velours : https://www.fotonower.com/velours/20649634,20649635,20649636,20649637,20649638,20649639,20649640,20649641,20649642,20649643,20649644,20649645?tags=papier,mal_croppe,metal,kraft,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,flou,Carton_brun,plastique,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20649585]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] map_info['map_portfolio_photo'] : {20649585: [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929, 1338376905, 1338376895, 1338376887, 1338376883, 1338376881, 1338376871, 1338376830, 1338376826, 1338376823, 1338376820, 1338376816, 1338376787, 1338376785, 1338376784, 1338376766, 1338376762, 1338376760, 1338376758, 1338376740, 1338376739, 1338376737, 1338376733, 1338376730, 1338376729, 1338376692, 1338376689, 1338376687, 1338376638, 1338376636, 1338376634, 1338376438, 1338376437, 1338376435, 1338376433, 1338376432, 1338376291, 1338376288, 1338376265, 1338376264, 1338376208]} final : False mtd_id 4302 list_pids : [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] Looping around the photos to save general results len do output : 1 /20649585. 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, '2597414') ('4302', '20649585', '1338377060', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20649585', "{'papier': 20649622, 'mal_croppe': 20649623, 'metal': 20649624, 'kraft': 20649625, 'cartonnette': 20649626, 'Carton_gris': 20649627, 'Teint_Dans_La_Masse': 20649628, 'environnement': 20649629, 'flou': 20649630, 'Carton_brun': 20649631, 'plastique': 20649632, 'autre_refus': 20649633}", None, None, None, None, '2597414'), ('4302', '20649585', '1338377060', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414')] time used for this insertion : 0.014423370361328125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4484870433807373 time spend to save output : 0.014814376831054688 total time spend for step 1 : 0.463301420211792 step2:final Tue Feb 18 19:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20649585) 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 20649585 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338376208,1338376291,1338376288,1338376265,1338376264,1338376438,1338376437,1338376435,1338376433,1338376432,1338376638,1338376636,1338376634,1338376692,1338376689,1338376687,1338376740,1338376739,1338376737,1338376733,1338376730,1338376729,1338376766,1338376762,1338376760,1338376758,1338376787,1338376785,1338376784,1338376830,1338376826,1338376823,1338376820,1338376816,1338376905,1338376895,1338376871,1338376887,1338376883,1338376881,1338376949,1338376937,1338376934,1338376933,1338376931,1338376929,1338377000,1338376994,1338376991,1338376989,1338377060,1338377045,1338377042,1338377038); 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([20649585]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} new output for save of step final : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] map_info['map_portfolio_photo'] : {20649585: [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929, 1338376905, 1338376895, 1338376887, 1338376883, 1338376881, 1338376871, 1338376830, 1338376826, 1338376823, 1338376820, 1338376816, 1338376787, 1338376785, 1338376784, 1338376766, 1338376762, 1338376760, 1338376758, 1338376740, 1338376739, 1338376737, 1338376733, 1338376730, 1338376729, 1338376692, 1338376689, 1338376687, 1338376638, 1338376636, 1338376634, 1338376438, 1338376437, 1338376435, 1338376433, 1338376432, 1338376291, 1338376288, 1338376265, 1338376264, 1338376208]} final : False mtd_id 4302 list_pids : [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] Looping around the photos to save general results len do output : 14 /1338377060.Didn't retrieve data . /1338377045.Didn't retrieve data . /1338377042.Didn't retrieve data . /1338377038.Didn't retrieve data . /1338377000.Didn't retrieve data . /1338376994.Didn't retrieve data . /1338376991.Didn't retrieve data . /1338376989.Didn't retrieve data . /1338376949.Didn't retrieve data . /1338376937.Didn't retrieve data . /1338376934.Didn't retrieve data . /1338376933.Didn't retrieve data . /1338376931.Didn't retrieve data . /1338376929.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, '2597414') ('4302', '20649585', '1338377060', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '20649585', '1338377060', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338377045', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338377042', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338377038', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338377000', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376994', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376991', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376989', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376949', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376937', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376934', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376933', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376931', '0.03332995789479865', None, None, None, None, '2597414'), ('4302', '20649585', '1338376929', '0.03332995789479865', None, None, None, None, '2597414')] time used for this insertion : 0.013259410858154297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07089519500732422 time spend to save output : 0.013946771621704102 total time spend for step 2 : 0.08484196662902832 step3:velours_tree Tue Feb 18 19:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20649585: [{'papier': 20649622, 'mal_croppe': 20649623, 'metal': 20649624, 'kraft': 20649625, 'cartonnette': 20649626, 'Carton_gris': 20649627, 'Teint_Dans_La_Masse': 20649628, 'environnement': 20649629, 'flou': 20649630, 'Carton_brun': 20649631, 'plastique': 20649632, 'autre_refus': 20649633}]} input_args_next_step : {20649585: ()} output_args : {20649585: [{'papier': 20649622, 'mal_croppe': 20649623, 'metal': 20649624, 'kraft': 20649625, 'cartonnette': 20649626, 'Carton_gris': 20649627, 'Teint_Dans_La_Masse': 20649628, 'environnement': 20649629, 'flou': 20649630, 'Carton_brun': 20649631, 'plastique': 20649632, 'autre_refus': 20649633}]} args : 20649585 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 : ({'papier': 20649622, 'mal_croppe': 20649623, 'metal': 20649624, 'kraft': 20649625, 'cartonnette': 20649626, 'Carton_gris': 20649627, 'Teint_Dans_La_Masse': 20649628, 'environnement': 20649629, 'flou': 20649630, 'Carton_brun': 20649631, 'plastique': 20649632, 'autre_refus': 20649633},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20649585) 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([20649585]) 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.35100460052490234 time spend to save output : 5.316734313964844e-05 total time spend for step 3 : 0.351057767868042 step4:send_mail_cod Tue Feb 18 19:44:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} input_args_next_step : {1338377060: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338377060 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338377045 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338377042 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338377038 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338377000 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376994 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376991 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376989 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376949 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376937 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376934 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376933 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376931 depend.output_id : 0 input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ()} output_args : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',)} args : 1338376929 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 : {20649585: [{'papier': 20649622, 'mal_croppe': 20649623, 'metal': 20649624, 'kraft': 20649625, 'cartonnette': 20649626, 'Carton_gris': 20649627, 'Teint_Dans_La_Masse': 20649628, 'environnement': 20649629, 'flou': 20649630, 'Carton_brun': 20649631, 'plastique': 20649632, 'autre_refus': 20649633}]} input_args_next_step : {1338377060: ('0.03332995789479865',), 1338377045: ('0.03332995789479865',), 1338377042: ('0.03332995789479865',), 1338377038: ('0.03332995789479865',), 1338377000: ('0.03332995789479865',), 1338376994: ('0.03332995789479865',), 1338376991: ('0.03332995789479865',), 1338376989: ('0.03332995789479865',), 1338376949: ('0.03332995789479865',), 1338376937: ('0.03332995789479865',), 1338376934: ('0.03332995789479865',), 1338376933: ('0.03332995789479865',), 1338376931: ('0.03332995789479865',), 1338376929: ('0.03332995789479865',), 20649585: ()} output_args : {20649585: [{'papier': 20649622, 'mal_croppe': 20649623, 'metal': 20649624, 'kraft': 20649625, 'cartonnette': 20649626, 'Carton_gris': 20649627, 'Teint_Dans_La_Masse': 20649628, 'environnement': 20649629, 'flou': 20649630, 'Carton_brun': 20649631, 'plastique': 20649632, 'autre_refus': 20649633}]} args : 20649585 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 :15, first value : ('0.03332995789479865',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20649585) 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 (1338377060,1338377045,1338377042,1338377038,1338377000,1338376994,1338376991,1338376989,1338376949,1338376937,1338376934,1338376933,1338376931,1338376929) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338376929 begin to download photo : 1338376934 begin to download photo : 1338376989 begin to download photo : 1338377000 begin to download photo : 1338377045 download finish for photo 1338376929 begin to download photo : 1338376931 download finish for photo 1338376934 begin to download photo : 1338376937 download finish for photo 1338376989 begin to download photo : 1338376991 download finish for photo 1338377000 begin to download photo : 1338377038 download finish for photo 1338377045 begin to download photo : 1338377060 download finish for photo 1338376931 begin to download photo : 1338376933 download finish for photo 1338376991 begin to download photo : 1338376994 download finish for photo 1338376937 begin to download photo : 1338376949 download finish for photo 1338377038 begin to download photo : 1338377042 download finish for photo 1338377060 download finish for photo 1338376933 download finish for photo 1338376994 download finish for photo 1338376949 download finish for photo 1338377042 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette206496231739904299/ imagette206496241739904299/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P20649585_18-02-2025_19_44_59.pdf 20649623 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=20649623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206496231739904299 20649624 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=20649624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206496241739904299 20649625 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=20649625 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376666: '1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226457_0.png', 1338376705: '1739903731_363078_1338376438_2fbffa8ae0e00d25b37cda0f39c5fbbd_rle_crop_3679226752_0.png', 1338376812: '1739903953_366105_1338376760_0497ffdab5d9006a4d91879a3565280d_rle_crop_3679229410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/5e87b8644a0bc4ac4b30a56a56dcc6b3_17585696.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/3ec7561bde337a379bcdb0b19bbab35d_49172212.png change filename to text .imagette206496251739904299/ imagette206496251739904299/1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226457_0.png.png imagette206496251739904299/1739903731_363078_1338376438_2fbffa8ae0e00d25b37cda0f39c5fbbd_rle_crop_3679226752_0.png.png imagette206496251739904299/1739903953_366105_1338376760_0497ffdab5d9006a4d91879a3565280d_rle_crop_3679229410_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/bb260b34db580f3df02ca2d5e484fc68_35817731.png imagette206496251739904299 20649626 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=20649626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376661: '1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226452_0.png', 1338376662: '1739903712_362863_1338376435_6895dc66e15a687aba0d09373781ea8a_rle_crop_3679226472_0.png', 1338376663: '1739903712_362863_1338376433_87e9e2189afb8e3b64de4d1af35d16d4_rle_crop_3679226481_0.png', 1338376878: '1739903990_366604_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229829_0.png', 1338376880: '1739903990_366604_1338376737_fdea5720f3dc28ded99ab5053fc99ee7_rle_crop_3679229862_0.png', 1338376958: '1739904072_368274_1338376816_ec5579db81b97235901c91235064ca90_rle_crop_3679230389_0.png', 1338376959: '1739904072_368274_1338376816_ec5579db81b97235901c91235064ca90_rle_crop_3679230385_0.png', 1338377004: '1739904113_368748_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229829_0.png', 1338377005: '1739904113_368748_1338376737_fdea5720f3dc28ded99ab5053fc99ee7_rle_crop_3679229862_0.png', 1338377023: '1739904174_370627_1338376895_bfe6b8e07bd39348ae3433a6abdcf582_rle_crop_3679231386_0.png', 1338377024: '1739904174_370627_1338376881_fe969dd0ecd5e9d6d3cba1d252000f91_rle_crop_3679231431_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/e4ab038492dd5f428cea1f494826c933_63511283.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/fb199bf4506731adb0d4cdd832469379_14159940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8777befa1ea3f7ce2ce7426918312da2_78592450.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c1e4661c262cd28c3b815fd88dc4bbba_86742587.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7b929ae0b3caddc8fffb90adf4dbbd8d_30120897.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8852f0c87de8f10eefe03ffcc47f70cf_14264239.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/4de57b1332771d9748c7ee70218702d0_93675922.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c1e4661c262cd28c3b815fd88dc4bbba_96836430.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7b929ae0b3caddc8fffb90adf4dbbd8d_30517599.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/10fae0eef519dbba4b226d41c76a7f0d_54499865.png change filename to text .imagette206496261739904299/ imagette206496261739904299/1739903990_366604_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229829_0.png.png imagette206496261739904299/1739904113_368748_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229829_0.png.png imagette206496261739904299/1739904174_370627_1338376895_bfe6b8e07bd39348ae3433a6abdcf582_rle_crop_3679231386_0.png.png imagette206496261739904299/1739903712_362863_1338376433_87e9e2189afb8e3b64de4d1af35d16d4_rle_crop_3679226481_0.png.png imagette206496261739904299/1739903990_366604_1338376737_fdea5720f3dc28ded99ab5053fc99ee7_rle_crop_3679229862_0.png.png imagette206496261739904299/1739903712_362863_1338376435_6895dc66e15a687aba0d09373781ea8a_rle_crop_3679226472_0.png.png imagette206496261739904299/1739904174_370627_1338376881_fe969dd0ecd5e9d6d3cba1d252000f91_rle_crop_3679231431_0.png.png imagette206496261739904299/1739904072_368274_1338376816_ec5579db81b97235901c91235064ca90_rle_crop_3679230385_0.png.png imagette206496261739904299/1739904113_368748_1338376737_fdea5720f3dc28ded99ab5053fc99ee7_rle_crop_3679229862_0.png.png imagette206496261739904299/1739904072_368274_1338376816_ec5579db81b97235901c91235064ca90_rle_crop_3679230389_0.png.png imagette206496261739904299/1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226452_0.png.png imagette206496301739904300/ wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/9e4596416bf791d40d96fdab948f5fc1_57509542.png imagette206496261739904299 20649630 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=20649630 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette206496301739904300 20649632 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=20649632 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376811: '1739903953_366105_1338376762_cd7313b6fd8df821f78860f65cd3ec6a_rle_crop_3679229386_0.png', 1338377025: '1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231415_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/37f6921bf07890171582ff3f0479fbb6_31732366.png change filename to text .imagette206496321739904300/ imagette206496321739904300/1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231415_0.png.png imagette206496321739904300/1739903953_366105_1338376762_cd7313b6fd8df821f78860f65cd3ec6a_rle_crop_3679229386_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/06add990252059b0d655a1cb50986be9_97092388.png imagette206496321739904300 20649633 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=20649633 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376696: '1739903731_363078_1338376265_7c53cf8afb031dc99f62bc07539e0d93_rle_crop_3679226800_0.png', 1338376749: '1739903832_364723_1338376687_e75563c6f9dbfbb35b7ca32a345b5eb8_rle_crop_3679228707_0.png', 1338376875: '1739903990_366604_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229836_0.png', 1338376876: '1739903990_366604_1338376733_ca906627c3f93af3901dd493668308b2_rle_crop_3679229892_0.png', 1338376877: '1739903990_366604_1338376730_d3075190ccb68c8c8cc751fb79fd4173_rle_crop_3679229906_0.png', 1338377001: '1739904113_368748_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229836_0.png', 1338377002: '1739904113_368748_1338376733_ca906627c3f93af3901dd493668308b2_rle_crop_3679229892_0.png', 1338377003: '1739904113_368748_1338376730_d3075190ccb68c8c8cc751fb79fd4173_rle_crop_3679229906_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8faf76d83e471f6771df7c730c4c23fe_30765975.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/9d659956c1cb3f22ecccaf73f90f6cee_82161820.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8b1f24d6b54212fa9a0cc126f69c9492_9573856.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/fdab95d371017d19b640e048a891bb49_7543576.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/efe7e0469aabe1bf71a80ffcab7ad89e_8578738.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8b1f24d6b54212fa9a0cc126f69c9492_23368780.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/fdab95d371017d19b640e048a891bb49_22242209.png change filename to text .imagette206496331739904300/ imagette206496331739904300/1739903990_366604_1338376730_d3075190ccb68c8c8cc751fb79fd4173_rle_crop_3679229906_0.png.png imagette206496331739904300/1739903832_364723_1338376687_e75563c6f9dbfbb35b7ca32a345b5eb8_rle_crop_3679228707_0.png.png imagette206496331739904300/1739903731_363078_1338376265_7c53cf8afb031dc99f62bc07539e0d93_rle_crop_3679226800_0.png.png imagette206496331739904300/1739904113_368748_1338376733_ca906627c3f93af3901dd493668308b2_rle_crop_3679229892_0.png.png imagette206496331739904300/1739904113_368748_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229836_0.png.png imagette206496331739904300/1739903990_366604_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229836_0.png.png imagette206496331739904300/1739904113_368748_1338376730_d3075190ccb68c8c8cc751fb79fd4173_rle_crop_3679229906_0.png.png imagette206496331739904300/1739903990_366604_1338376733_ca906627c3f93af3901dd493668308b2_rle_crop_3679229892_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/efe7e0469aabe1bf71a80ffcab7ad89e_16955634.png imagette206496331739904300 20649627 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=20649627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376658: '1739903712_362863_1338376435_6895dc66e15a687aba0d09373781ea8a_rle_crop_3679226467_0.png', 1338376698: '1739903731_363078_1338376288_c1aed361b8fb318ad9acd0da5269b55e_rle_crop_3679226791_0.png', 1338376699: '1739903731_363078_1338376265_7c53cf8afb031dc99f62bc07539e0d93_rle_crop_3679226804_0.png', 1338376700: '1739903731_363078_1338376265_7c53cf8afb031dc99f62bc07539e0d93_rle_crop_3679226799_0.png', 1338376942: '1739904072_368274_1338376826_b5c56a0aa2a7992ea4bddd0d5063e033_rle_crop_3679230323_0.png', 1338376974: '1739904090_368482_1338376785_a64a416cb8b6de88fed4fa2fbf57c08b_rle_crop_3679230432_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/fc8079ead463a327c48f147b5be59040_14907661.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/b56c95df2a653d0124a02a821bdad3c1_85550752.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f6db3afc345cf270988ca79da3ec2c75_14168677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/dcf67c9441a7003477ddc332b2eddfce_76926233.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/865da221a743b41573d692fd9a82fd7c_68504926.png change filename to text .imagette206496271739904301/ imagette206496271739904301/1739903731_363078_1338376288_c1aed361b8fb318ad9acd0da5269b55e_rle_crop_3679226791_0.png.png imagette206496271739904301/1739903712_362863_1338376435_6895dc66e15a687aba0d09373781ea8a_rle_crop_3679226467_0.png.png imagette206496271739904301/1739904072_368274_1338376826_b5c56a0aa2a7992ea4bddd0d5063e033_rle_crop_3679230323_0.png.png imagette206496271739904301/1739903731_363078_1338376265_7c53cf8afb031dc99f62bc07539e0d93_rle_crop_3679226799_0.png.png imagette206496271739904301/1739903731_363078_1338376265_7c53cf8afb031dc99f62bc07539e0d93_rle_crop_3679226804_0.png.png imagette206496271739904301/1739904090_368482_1338376785_a64a416cb8b6de88fed4fa2fbf57c08b_rle_crop_3679230432_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0cafea29e8aa376096f48db226334c63_51028121.png imagette206496271739904301 20649628 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=20649628 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376938: '1739904072_368274_1338376826_b5c56a0aa2a7992ea4bddd0d5063e033_rle_crop_3679230321_0.png', 1338377022: '1739904174_370627_1338376871_00b3fb084553217fb59a4696b86d93f3_rle_crop_3679231447_0.png', 1338377021: '1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231418_0.png', 1338377020: '1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231422_0.png', 1338377019: '1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231424_0.png', 1338377018: '1739904174_370627_1338376887_e765b0d7e3347e41f52b0a70c71dbafb_rle_crop_3679231407_0.png', 1338377017: '1739904174_370627_1338376895_bfe6b8e07bd39348ae3433a6abdcf582_rle_crop_3679231390_0.png', 1338376997: '1739904113_368748_1338376729_6bb4ef9a9bebe74c724386536a91c3ee_rle_crop_3679229917_0.png', 1338376996: '1739904113_368748_1338376739_3ad5b0a080946039fb01d2d5a86369e6_rle_crop_3679229853_0.png', 1338376995: '1739904113_368748_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229837_0.png', 1338376941: '1739904072_368274_1338376816_ec5579db81b97235901c91235064ca90_rle_crop_3679230388_0.png', 1338376940: '1739904072_368274_1338376820_148174d872bcbb3fccd565b4747f8b44_rle_crop_3679230363_0.png', 1338376939: '1739904072_368274_1338376823_1d4c0fe45291b9ab241436e45bf74d97_rle_crop_3679230346_0.png', 1338376656: '1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226455_0.png', 1338376874: '1739903990_366604_1338376729_6bb4ef9a9bebe74c724386536a91c3ee_rle_crop_3679229917_0.png', 1338376873: '1739903990_366604_1338376739_3ad5b0a080946039fb01d2d5a86369e6_rle_crop_3679229853_0.png', 1338376872: '1739903990_366604_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229837_0.png', 1338376814: '1739903971_366293_1338376740_21b72df38756b09d26b936a259517099_rle_crop_3679229463_0.png', 1338376813: '1739903971_366293_1338376740_21b72df38756b09d26b936a259517099_rle_crop_3679229462_0.png', 1338376810: '1739903953_366105_1338376758_59d60d499fff4f35a742ff5ce3b7e9d4_rle_crop_3679229434_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/05254cf16cd284ac5a3b6cf5e37fac0f_14462735.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/e266e44addf69a99d1048fa956863823_46889892.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f62471b5c365972e584b5f6b75795ed5_9760766.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7121dce63949808f2ba22d998b1e645c_58154594.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/2b087f8a0b3c6a93e6d588d839df3e9d_67222952.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/625066317193b959617408d5b2124e55_52128439.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/f7561baa3847c700f22b641f6429b9fb_49334490.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/e1f8e42656822ccdfb5e4f0daa167043_2187091.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/41e58cc63591d14570e9f3fcd1483d96_59835282.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/bb6002fc2cf101a65441e10e8112a4d1_18706531.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0f7f370f0d15661b429fea719b128a21_33770132.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/1744f54475432f8a5ed393b9957f0202_39758675.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/613afa5221d756d7edea4d57333e1a26_78954863.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/9f69fd34f5027543667669930a256ff5_22369932.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/e1f8e42656822ccdfb5e4f0daa167043_37579679.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/41e58cc63591d14570e9f3fcd1483d96_75300789.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/bb6002fc2cf101a65441e10e8112a4d1_22684225.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/0ce485721382467cc1507736c909af02_77669168.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/4849b07e61771711e01f49326494d1e8_79355620.png change filename to text .imagette206496281739904301/ imagette206496281739904301/1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231418_0.png.png imagette206496281739904301/1739904072_368274_1338376820_148174d872bcbb3fccd565b4747f8b44_rle_crop_3679230363_0.png.png imagette206496281739904301/1739903971_366293_1338376740_21b72df38756b09d26b936a259517099_rle_crop_3679229463_0.png.png imagette206496281739904301/1739904174_370627_1338376895_bfe6b8e07bd39348ae3433a6abdcf582_rle_crop_3679231390_0.png.png imagette206496281739904301/1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231424_0.png.png imagette206496281739904301/1739904113_368748_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229837_0.png.png imagette206496281739904301/1739904072_368274_1338376826_b5c56a0aa2a7992ea4bddd0d5063e033_rle_crop_3679230321_0.png.png imagette206496281739904301/1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226455_0.png.png imagette206496281739904301/1739903990_366604_1338376766_0eb2cd5c60e8e31c0dfa21da2ced2d68_rle_crop_3679229837_0.png.png imagette206496281739904301/1739903990_366604_1338376739_3ad5b0a080946039fb01d2d5a86369e6_rle_crop_3679229853_0.png.png imagette206496281739904301/1739904072_368274_1338376816_ec5579db81b97235901c91235064ca90_rle_crop_3679230388_0.png.png imagette206496281739904301/1739904072_368274_1338376823_1d4c0fe45291b9ab241436e45bf74d97_rle_crop_3679230346_0.png.png imagette206496281739904301/1739904174_370627_1338376883_f4ce64293720a9498e03d41beb133a2d_rle_crop_3679231422_0.png.png imagette206496281739904301/1739904174_370627_1338376887_e765b0d7e3347e41f52b0a70c71dbafb_rle_crop_3679231407_0.png.png imagette206496281739904301/1739903990_366604_1338376729_6bb4ef9a9bebe74c724386536a91c3ee_rle_crop_3679229917_0.png.png imagette206496281739904301/1739903971_366293_1338376740_21b72df38756b09d26b936a259517099_rle_crop_3679229462_0.png.png imagette206496281739904301/1739904174_370627_1338376871_00b3fb084553217fb59a4696b86d93f3_rle_crop_3679231447_0.png.png imagette206496281739904301/1739903953_366105_1338376758_59d60d499fff4f35a742ff5ce3b7e9d4_rle_crop_3679229434_0.png.png imagette206496281739904301/1739904113_368748_1338376739_3ad5b0a080946039fb01d2d5a86369e6_rle_crop_3679229853_0.png.png imagette206496281739904301/1739904113_368748_1338376729_6bb4ef9a9bebe74c724386536a91c3ee_rle_crop_3679229917_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/011678b84a0bbb57c536bc60cce3aa78_77483324.png imagette206496281739904301 20649631 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=20649631 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338376664: '1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226461_0.png', 1338376701: '1739903731_363078_1338376438_2fbffa8ae0e00d25b37cda0f39c5fbbd_rle_crop_3679226755_0.png', 1338376702: '1739903731_363078_1338376291_8f7ac409275cb2d41e85a5b7efd42d6a_rle_crop_3679226775_0.png', 1338376703: '1739903731_363078_1338376288_c1aed361b8fb318ad9acd0da5269b55e_rle_crop_3679226789_0.png', 1338376704: '1739903731_363078_1338376288_c1aed361b8fb318ad9acd0da5269b55e_rle_crop_3679226793_0.png', 1338376960: '1739904072_368274_1338376826_b5c56a0aa2a7992ea4bddd0d5063e033_rle_crop_3679230322_0.png', 1338376961: '1739904072_368274_1338376823_1d4c0fe45291b9ab241436e45bf74d97_rle_crop_3679230344_0.png', 1338376962: '1739904072_368274_1338376823_1d4c0fe45291b9ab241436e45bf74d97_rle_crop_3679230347_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/11412b6e8cb8d4e907bf815dea2acce6_68846278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/57b8200751d6580cec22ccce847b2ded_862190.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/77e740d159de5a47cb122fb304183e7a_77583175.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/75b11aaec6b2600450c8920e3fc34252_27302480.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/1e24af3d2d52c00fd93f2c2f7498187d_80227642.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/6973a46e66c4727099b39f0961d16656_53819428.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/89d721a5e88bbe392371f9c36f348c02_18757966.png change filename to text .imagette206496311739904302/ imagette206496311739904302/1739903712_362863_1338376437_dc6668c999791c2e8684c7239f28f561_rle_crop_3679226461_0.png.png imagette206496311739904302/1739903731_363078_1338376291_8f7ac409275cb2d41e85a5b7efd42d6a_rle_crop_3679226775_0.png.png imagette206496311739904302/1739903731_363078_1338376438_2fbffa8ae0e00d25b37cda0f39c5fbbd_rle_crop_3679226755_0.png.png imagette206496311739904302/1739904072_368274_1338376823_1d4c0fe45291b9ab241436e45bf74d97_rle_crop_3679230344_0.png.png imagette206496311739904302/1739904072_368274_1338376826_b5c56a0aa2a7992ea4bddd0d5063e033_rle_crop_3679230322_0.png.png imagette206496311739904302/1739904072_368274_1338376823_1d4c0fe45291b9ab241436e45bf74d97_rle_crop_3679230347_0.png.png imagette206496311739904302/1739903731_363078_1338376288_c1aed361b8fb318ad9acd0da5269b55e_rle_crop_3679226789_0.png.png imagette206496311739904302/1739903731_363078_1338376288_c1aed361b8fb318ad9acd0da5269b55e_rle_crop_3679226793_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8103a3ea9de88b723b173214136c728f_44571566.png imagette206496311739904302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20649585 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20649634,20649635,20649636,20649637,20649638,20649639,20649640,20649641,20649642,20649643,20649644,20649645?tags=papier,mal_croppe,metal,kraft,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,flou,Carton_brun,plastique,autre_refus your option no_mail is active, we will not send the real mail to your client args[1338377060] : ('0.03332995789479865',) no score found for photo 1338377060 We are sending mail with results at report@fotonower.com args[1338377045] : ('0.03332995789479865',) no score found for photo 1338377045 We are sending mail with results at report@fotonower.com args[1338377042] : ('0.03332995789479865',) no score found for photo 1338377042 We are sending mail with results at report@fotonower.com args[1338377038] : ('0.03332995789479865',) no score found for photo 1338377038 We are sending mail with results at report@fotonower.com args[1338377000] : ('0.03332995789479865',) no score found for photo 1338377000 We are sending mail with results at report@fotonower.com args[1338376994] : ('0.03332995789479865',) no score found for photo 1338376994 We are sending mail with results at report@fotonower.com args[1338376991] : ('0.03332995789479865',) no score found for photo 1338376991 We are sending mail with results at report@fotonower.com args[1338376989] : ('0.03332995789479865',) no score found for photo 1338376989 We are sending mail with results at report@fotonower.com args[1338376949] : ('0.03332995789479865',) no score found for photo 1338376949 We are sending mail with results at report@fotonower.com args[1338376937] : ('0.03332995789479865',) no score found for photo 1338376937 We are sending mail with results at report@fotonower.com args[1338376934] : ('0.03332995789479865',) no score found for photo 1338376934 We are sending mail with results at report@fotonower.com args[1338376933] : ('0.03332995789479865',) no score found for photo 1338376933 We are sending mail with results at report@fotonower.com args[1338376931] : ('0.03332995789479865',) no score found for photo 1338376931 We are sending mail with results at report@fotonower.com args[1338376929] : ('0.03332995789479865',) no score found for photo 1338376929 We are sending mail with results at report@fotonower.com refus_total : 0.03332995789479865 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=20649585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 error for generate pdf : 'mal_croppe' After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20649585]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] map_info['map_portfolio_photo'] : {20649585: [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929, 1338376905, 1338376895, 1338376887, 1338376883, 1338376881, 1338376871, 1338376830, 1338376826, 1338376823, 1338376820, 1338376816, 1338376787, 1338376785, 1338376784, 1338376766, 1338376762, 1338376760, 1338376758, 1338376740, 1338376739, 1338376737, 1338376733, 1338376730, 1338376729, 1338376692, 1338376689, 1338376687, 1338376638, 1338376636, 1338376634, 1338376438, 1338376437, 1338376435, 1338376433, 1338376432, 1338376291, 1338376288, 1338376265, 1338376264, 1338376208]} final : False mtd_id 4302 list_pids : [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] 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, '2597414') ('4302', '20649585', '1338377060', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '20649585', '1338377060', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414')] time used for this insertion : 0.014287710189819336 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.76218581199646 time spend to save output : 0.014594078063964844 total time spend for step 4 : 3.776779890060425 step5:split_time_score Tue Feb 18 19:45:03 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 : ['20649585'] 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 : [('20649585',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20649585) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338377045: {'path': 'temp/1739904299_870249_1338377045_da844996b31442991540919e8cc05c5b.jpg', 'extension': 'jpg'}, 1338377060: {'path': 'temp/1739904299_870249_1338377060_0a35b852d5fac333c4c8c1517ff6d06d.jpg', 'extension': 'jpg'}, 1338376929: {'path': 'temp/1739904299_870249_1338376929_d860512a1a6a6b6cfaa6138a73da701e.jpg', 'extension': 'jpg'}, 1338376931: {'path': 'temp/1739904299_870249_1338376931_5c046081f900018e757a3b7fabd61459.jpg', 'extension': 'jpg'}, 1338376933: {'path': 'temp/1739904299_870249_1338376933_c1a0e01d1e05cdd45eb01686c2eb064d.jpg', 'extension': 'jpg'}, 1338376989: {'path': 'temp/1739904299_870249_1338376989_47f4d7216d6c514c6ed317ed8fd58389.jpg', 'extension': 'jpg'}, 1338376991: {'path': 'temp/1739904299_870249_1338376991_393a201b5a797391fd38b6f8cfd30507.jpg', 'extension': 'jpg'}, 1338376994: {'path': 'temp/1739904299_870249_1338376994_b59b2898722a03b3e6efc4dfec59e6b0.jpg', 'extension': 'jpg'}, 1338376934: {'path': 'temp/1739904299_870249_1338376934_91747152173945b128a3a51f3668afd3.jpg', 'extension': 'jpg'}, 1338376937: {'path': 'temp/1739904299_870249_1338376937_2d80074f43ca829e4aea564c98fd194b.jpg', 'extension': 'jpg'}, 1338376949: {'path': 'temp/1739904299_870249_1338376949_6f5c6cda2ac308f166aa0aa9a49c9fb1.jpg', 'extension': 'jpg'}, 1338377000: {'path': 'temp/1739904299_870249_1338377000_b3ab673bb7f4a67a9225f57f8fa1cace.jpg', 'extension': 'jpg'}, 1338377038: {'path': 'temp/1739904299_870249_1338377038_c8f2fa22ca6e3145cac436ad50312111.jpg', 'extension': 'jpg'}, 1338377042: {'path': 'temp/1739904299_870249_1338377042_8607b97bef575af85ece7cea1d792aa2.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 = 20649585; (('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 = 20649585 group by h (('19', 54),) 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=20649585 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 (20649585) 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 (20649585) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18022025 20649585 Nombre de photos uploadées : 54 / 23040 (0%) 18022025 20649585 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 18022025 20649585 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1338376208, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/33517cf48e56964feed56324adffda46.jpg', 'username': None, 'uploaded_at': 1739903526, 'text': 'image_18022025_19_31_04_10157.jpg'}, {'photo_id': 1338376291, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/8f7ac409275cb2d41e85a5b7efd42d6a.jpg', 'username': None, 'uploaded_at': 1739903587, 'text': 'image_18022025_19_32_14_010142m0.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1338376288, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/c1aed361b8fb318ad9acd0da5269b55e.jpg', 'username': None, 'uploaded_at': 1739903587, 'text': 'image_18022025_19_32_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338376265, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/18/7c53cf8afb031dc99f62bc07539e0d93.jpg', 'username': None, 'uploaded_at': 1739903587, 'text': 'image_18022025_19_32_33_009137m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024261474609375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20649585, '2025-02-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1609467,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02243328094482422 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= 1609467 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1609467, 'dashboard_run_id': 1618835, 'mtr_portfolio_id': 20647549, 'dashboard_result_id': 8958530, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647587, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1618835, 'mtr_portfolio_id': 20648298, 'dashboard_result_id': 8958531, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20648302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20648303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20648304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20648305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20648306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20648307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20648308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20648309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20648310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20648311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20648312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20648313, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1618835, 'mtr_portfolio_id': 20649026, 'dashboard_result_id': 8958532, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20649035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649042, 'pht': 3726}}"}, {'dashboat_entry_day': 1609467, 'dashboard_run_id': 1618835, 'mtr_portfolio_id': 20649585, 'dashboard_result_id': 8958533, '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_P20649585_18-02-2025_19_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20649622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649633, '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 = 20647549 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': 2597297, 'mtr_portfolio_id': 20647549, 'created_at': datetime.datetime(2025, 2, 18, 19, 2, 57), 'result': '0.0416374154977994', 'result_long': None, 'result_double': None}] Qualite : 0.0416374154977994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20647549 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20647549%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20647549 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647587, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20647549 and dashboard_run_id = 1618835 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`=20647549 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8958530, 0.0416374154977994, "{'max_time_prod_two_photos': 0, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20647576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20647577, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20647578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20647579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20647580, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20647581, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20647582, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20647583, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20647584, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20647585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20647586, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20647587, 'pht': 3726}, 'url_report': ''}") 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 = 20648298 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': 2597345, 'mtr_portfolio_id': 20648298, 'created_at': datetime.datetime(2025, 2, 18, 19, 17), 'result': '0.03799289322438351', 'result_long': None, 'result_double': None}] Qualite : 0.03799289322438351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20648298 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20648298%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20648298 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20648302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20648303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20648304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20648305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20648306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20648307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20648308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20648309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20648310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20648311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20648312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20648313, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20648298 and dashboard_run_id = 1618835 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`=20648298 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8958531, 0.03799289322438351, "{'max_time_prod_two_photos': 0, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20648302, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20648303, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20648304, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20648305, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20648306, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20648307, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20648308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20648309, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20648310, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20648311, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20648312, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20648313, 'pht': 3726}, 'url_report': ''}") 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 = 20649026 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': 2597379, 'mtr_portfolio_id': 20649026, 'created_at': datetime.datetime(2025, 2, 18, 19, 35), 'result': '0.035756524315015366', 'result_long': None, 'result_double': None}] Qualite : 0.035756524315015366 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20649026 order by file_id desc limit 1 select url from MTRUser.mtr_files where text like '%20649026%' order by file_id desc limit 1 find url: select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20649026 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20649035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649042, 'pht': 3726}, 'url_report': ''}" where mtr_portfolio_id = 20649026 and dashboard_run_id = 1618835 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`=20649026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8958532, 0.035756524315015366, "{'max_time_prod_two_photos': 0, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20649035, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649037, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649040, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649042, 'pht': 3726}, 'url_report': ''}") 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 = 20649585 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': 2597414, 'mtr_portfolio_id': 20649585, 'created_at': datetime.datetime(2025, 2, 18, 19, 44, 58), 'result': '0.03332995789479865', 'result_long': None, 'result_double': None}] Qualite : 0.03332995789479865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20649585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20649585_18-02-2025_19_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20649585 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_P20649585_18-02-2025_19_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20649622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649633, 'pht': 3726}}" where mtr_portfolio_id = 20649585 and dashboard_run_id = 1618835 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`=20649585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8958533, 0.03332995789479865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20649585_18-02-2025_19_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20649622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20649623, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20649624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20649625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20649626, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20649627, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20649628, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20649629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20649630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20649631, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20649632, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20649633, '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 (20647549,20648298,20649026,20649585) result : ((1338371388,), (1338371390,), (1338371419,), (1338371421,), (1338371424,), (1338371427,), (1338371429,), (1338371438,), (1338371709,), (1338371800,), (1338371803,), (1338371830,), (1338371943,), (1338371944,), (1338371948,), (1338371950,), (1338371978,), (1338371980,), (1338371983,), (1338371988,), (1338372009,), (1338372018,), (1338372127,), (1338372130,), (1338372133,), (1338372134,), (1338372289,), (1338372332,), (1338372377,), (1338372790,), (1338372799,), (1338372804,), (1338372810,), (1338372815,), (1338372832,), (1338372841,), (1338372844,), (1338372849,), (1338372851,), (1338372871,), (1338372873,), (1338372881,), (1338372885,), (1338372921,), (1338372923,), (1338372926,), (1338372928,), (1338372964,), (1338372966,), (1338372969,), (1338372971,), (1338372973,), (1338373116,), (1338373120,), (1338373124,), (1338373129,), (1338373148,), (1338373166,), (1338373168,), (1338373173,), (1338373194,), (1338373189,), (1338373192,), (1338373218,), (1338373219,), (1338373220,), (1338373222,), (1338373227,), (1338373237,), (1338373255,), (1338373256,), (1338373258,), (1338373284,), (1338373440,), (1338373782,), (1338373825,), (1338373847,), (1338373895,), (1338373909,), (1338373912,), (1338373927,), (1338373932,), (1338373934,), (1338373951,), (1338373953,), (1338373961,), (1338373966,), (1338373993,), (1338373997,), (1338374001,), (1338374003,), (1338374030,), (1338374032,), (1338374035,), (1338374057,), (1338374061,), (1338374065,), (1338374088,), (1338374090,), (1338374094,), (1338374096,), (1338374102,), (1338374106,), (1338374119,), (1338374120,), (1338374122,), (1338374124,), (1338374179,), (1338374181,), (1338374183,), (1338374185,), (1338374213,), (1338374216,), (1338374219,), (1338374239,), (1338374253,), (1338374262,), (1338374265,), (1338374272,), (1338374299,), (1338374301,), (1338374303,), (1338374306,), (1338374331,), (1338374332,), (1338374335,), (1338374341,), (1338374357,), (1338374365,), (1338374554,), (1338374389,), (1338374391,), (1338374399,), (1338374738,), (1338374810,), (1338374825,), (1338374891,), (1338374899,), (1338374901,), (1338374903,), (1338374905,), (1338374907,), (1338374924,), (1338374925,), (1338374927,), (1338374929,), (1338374931,), (1338374973,), (1338374974,), (1338374976,), (1338374978,), (1338375024,), (1338375025,), (1338375027,), (1338375029,), (1338375031,), (1338375076,), (1338375077,), (1338375079,), (1338375084,), (1338375282,), (1338375283,), (1338375285,), (1338375383,), (1338375385,), (1338376295,), (1338376208,), (1338376264,), (1338376265,), (1338376288,), (1338376291,), (1338376432,), (1338376433,), (1338376435,), (1338376437,), (1338376438,), (1338376634,), (1338376636,), (1338376638,), (1338376687,), (1338376689,), (1338376692,), (1338376729,), (1338376730,), (1338376733,), (1338376737,), (1338376739,), (1338376740,), (1338376758,), (1338376760,), (1338376762,), (1338376766,), (1338376784,), (1338376785,), (1338376787,), (1338376816,), (1338376820,), (1338376823,), (1338376826,), (1338376830,), (1338376871,), (1338376881,), (1338376883,), (1338376887,), (1338376895,), (1338376905,), (1338376929,), (1338376931,), (1338376933,), (1338376934,), (1338376937,), (1338376949,), (1338376989,), (1338376991,), (1338376994,), (1338377000,), (1338377038,), (1338377042,), (1338377045,), (1338377060,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18022025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20649585]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] map_info['map_portfolio_photo'] : {20649585: [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929, 1338376905, 1338376895, 1338376887, 1338376883, 1338376881, 1338376871, 1338376830, 1338376826, 1338376823, 1338376820, 1338376816, 1338376787, 1338376785, 1338376784, 1338376766, 1338376762, 1338376760, 1338376758, 1338376740, 1338376739, 1338376737, 1338376733, 1338376730, 1338376729, 1338376692, 1338376689, 1338376687, 1338376638, 1338376636, 1338376634, 1338376438, 1338376437, 1338376435, 1338376433, 1338376432, 1338376291, 1338376288, 1338376265, 1338376264, 1338376208]} final : True mtd_id 4302 list_pids : [1338377060, 1338377045, 1338377042, 1338377038, 1338377000, 1338376994, 1338376991, 1338376989, 1338376949, 1338376937, 1338376934, 1338376933, 1338376931, 1338376929] Looping around the photos to save general results len do output : 1 /20649585Didn'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, '2597414') ('4302', '20649585', '1338377060', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414') ('4302', None, None, None, None, None, None, None, '2597414') ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20649585', 'None', None, None, None, None, '2597414'), ('4302', '20649585', '1338377060', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377045', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377042', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377038', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338377000', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376994', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376991', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376989', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376949', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376937', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376934', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376933', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376931', None, None, None, None, None, '2597414'), ('4302', '20649585', '1338376929', None, None, None, None, None, '2597414')] time used for this insertion : 0.014553546905517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5220439434051514 time spend to save output : 0.014895200729370117 total time spend for step 5 : 2.5369391441345215 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 (2597414) 1.88user 2.05system 0:11.42elapsed 34%CPU (0avgtext+0avgdata 152180maxresident)k 5232inputs+14320outputs (68major+60520minor)pagefaults 0swaps