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 : 253404 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 (3262300) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3262300) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775410 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3262300'] with mtr_portfolio_ids : ['24775410'] and first list_photo_ids : [] new path : /proc/253404/ Name: python3 Umask: 0002 State: R (running) Tgid: 253404 Ngid: 0 Pid: 253404 PPid: 253403 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 253404 NSpid: 253404 NSpgid: 252111 NSsid: 252111 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100064 kB VmRSS: 100064 kB RssAnon: 59816 kB RssFile: 40248 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 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: 45 nonvoluntary_ctxt_switches: 80 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '253404', 'Ngid': '0', 'Pid': '253404', 'PPid': '253403', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '253404', 'NSpid': '253404', 'NSpgid': '252111', 'NSsid': '252111', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100064 kB', 'VmRSS': '100064 kB', 'RssAnon': '59816 kB', 'RssFile': '40248 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', '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': '45', 'nonvoluntary_ctxt_switches': '80'} ('datou_batch_current', '253404', '1106868', '0', '1106868', '865620', '100064', b'', 'marlene', '3262300') 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 (24775410) 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 (3262300 ) ) 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 (24775410) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371457576, 'portfolio_id': 24775410}, {'photo_id': 1371457573, 'portfolio_id': 24775410}, {'photo_id': 1371457571, 'portfolio_id': 24775410}, {'photo_id': 1371457569, 'portfolio_id': 24775410}, {'photo_id': 1371457568, 'portfolio_id': 24775410}, {'photo_id': 1371457567, 'portfolio_id': 24775410}, {'photo_id': 1371457566, 'portfolio_id': 24775410}, {'photo_id': 1371457564, 'portfolio_id': 24775410}, {'photo_id': 1371457562, 'portfolio_id': 24775410}, {'photo_id': 1371457561, 'portfolio_id': 24775410}, {'photo_id': 1371457553, 'portfolio_id': 24775410}, {'photo_id': 1371457552, 'portfolio_id': 24775410}, {'photo_id': 1371457544, 'portfolio_id': 24775410}, {'photo_id': 1371457543, 'portfolio_id': 24775410}, {'photo_id': 1371457540, 'portfolio_id': 24775410}, {'photo_id': 1371457539, 'portfolio_id': 24775410}, {'photo_id': 1371457535, 'portfolio_id': 24775410}, {'photo_id': 1371457534, 'portfolio_id': 24775410}, {'photo_id': 1371457497, 'portfolio_id': 24775410}, {'photo_id': 1371457495, 'portfolio_id': 24775410}, {'photo_id': 1371457492, 'portfolio_id': 24775410}, {'photo_id': 1371457488, 'portfolio_id': 24775410}, {'photo_id': 1371457484, 'portfolio_id': 24775410}, {'photo_id': 1371457481, 'portfolio_id': 24775410}, {'photo_id': 1371457459, 'portfolio_id': 24775410}, {'photo_id': 1371457456, 'portfolio_id': 24775410}, {'photo_id': 1371457454, 'portfolio_id': 24775410}, {'photo_id': 1371457451, 'portfolio_id': 24775410}, {'photo_id': 1371457448, 'portfolio_id': 24775410}, {'photo_id': 1371457447, 'portfolio_id': 24775410}, {'photo_id': 1371457373, 'portfolio_id': 24775410}, {'photo_id': 1371457344, 'portfolio_id': 24775410}, {'photo_id': 1371457335, 'portfolio_id': 24775410}, {'photo_id': 1371457332, 'portfolio_id': 24775410}, {'photo_id': 1371457328, 'portfolio_id': 24775410}, {'photo_id': 1371457311, 'portfolio_id': 24775410}, {'photo_id': 1371457221, 'portfolio_id': 24775410}, {'photo_id': 1371457197, 'portfolio_id': 24775410}, {'photo_id': 1371457171, 'portfolio_id': 24775410}, {'photo_id': 1371457168, 'portfolio_id': 24775410}, {'photo_id': 1371457166, 'portfolio_id': 24775410}, {'photo_id': 1371457122, 'portfolio_id': 24775410}, {'photo_id': 1371456827, 'portfolio_id': 24775410}, {'photo_id': 1371456801, 'portfolio_id': 24775410}, {'photo_id': 1371456773, 'portfolio_id': 24775410}, {'photo_id': 1371456729, 'portfolio_id': 24775410}, {'photo_id': 1371456662, 'portfolio_id': 24775410}, {'photo_id': 1371456613, 'portfolio_id': 24775410}, {'photo_id': 1371456293, 'portfolio_id': 24775410}, {'photo_id': 1371456264, 'portfolio_id': 24775410}, {'photo_id': 1371456237, 'portfolio_id': 24775410}, {'photo_id': 1371456213, 'portfolio_id': 24775410}, {'photo_id': 1371456202, 'portfolio_id': 24775410}, {'photo_id': 1371456194, 'portfolio_id': 24775410}, {'photo_id': 1371456177, 'portfolio_id': 24775410}, {'photo_id': 1371456176, 'portfolio_id': 24775410}, {'photo_id': 1371456174, 'portfolio_id': 24775410}, {'photo_id': 1371456173, 'portfolio_id': 24775410}, {'photo_id': 1371456172, 'portfolio_id': 24775410}, {'photo_id': 1371456171, 'portfolio_id': 24775410}, {'photo_id': 1371456169, 'portfolio_id': 24775410}, {'photo_id': 1371456168, 'portfolio_id': 24775410}, {'photo_id': 1371456166, 'portfolio_id': 24775410}, {'photo_id': 1371456165, 'portfolio_id': 24775410}, {'photo_id': 1371456162, 'portfolio_id': 24775410}, {'photo_id': 1371456161, 'portfolio_id': 24775410}, {'photo_id': 1371456115, 'portfolio_id': 24775410}, {'photo_id': 1371456114, 'portfolio_id': 24775410}, {'photo_id': 1371456112, 'portfolio_id': 24775410}, {'photo_id': 1371456109, 'portfolio_id': 24775410}, {'photo_id': 1371456106, 'portfolio_id': 24775410}, {'photo_id': 1371456104, 'portfolio_id': 24775410}, {'photo_id': 1371456079, 'portfolio_id': 24775410}, {'photo_id': 1371456075, 'portfolio_id': 24775410}, {'photo_id': 1371456071, 'portfolio_id': 24775410}, {'photo_id': 1371456068, 'portfolio_id': 24775410}, {'photo_id': 1371456066, 'portfolio_id': 24775410}, {'photo_id': 1371456058, 'portfolio_id': 24775410}] map_portfolio_id_photo_id: {24775410: [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534, 1371457497, 1371457495, 1371457492, 1371457488, 1371457484, 1371457481, 1371457459, 1371457456, 1371457454, 1371457451, 1371457448, 1371457447, 1371457373, 1371457344, 1371457335, 1371457332, 1371457328, 1371457311, 1371457221, 1371457197, 1371457171, 1371457168, 1371457166, 1371457122, 1371456827, 1371456801, 1371456773, 1371456729, 1371456662, 1371456613, 1371456293, 1371456264, 1371456237, 1371456213, 1371456202, 1371456194, 1371456177, 1371456176, 1371456174, 1371456173, 1371456172, 1371456171, 1371456169, 1371456168, 1371456166, 1371456165, 1371456162, 1371456161, 1371456115, 1371456114, 1371456112, 1371456109, 1371456106, 1371456104, 1371456079, 1371456075, 1371456071, 1371456068, 1371456066, 1371456058]} ##### 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.015268564224243164 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Jul 10 00:42:56 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 (24775410) 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 : 24775410 get user id for portfolio 24775410 get sub ptf for main ptf 24775410, type 3726 and hashtags ['papier', 'mal_croppe', 'flou', 'Carton_brun', 'kraft', 'plastique', 'Teint_Dans_La_Masse', 'environnement', 'autre_refus', 'metal', 'Carton_gris', 'cartonnette'] 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`=24775410 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','flou','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','environnement','autre_refus','metal','Carton_gris','cartonnette')) 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`=24775410 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','flou','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','environnement','autre_refus','metal','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 24775410, 'sub_port_id': 24775437, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659853, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'metal': {'main_port_id': 24775410, 'sub_port_id': 24775438, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659854, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'papier': {'main_port_id': 24775410, 'sub_port_id': 24775439, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659855, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'Carton_gris': {'main_port_id': 24775410, 'sub_port_id': 24775440, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659856, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'environnement': {'main_port_id': 24775410, 'sub_port_id': 24775441, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659857, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'autre_refus': {'main_port_id': 24775410, 'sub_port_id': 24775442, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659858, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'cartonnette': {'main_port_id': 24775410, 'sub_port_id': 24775443, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659859, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'mal_croppe': {'main_port_id': 24775410, 'sub_port_id': 24775444, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659860, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 24775410, 'sub_port_id': 24775445, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659861, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'plastique': {'main_port_id': 24775410, 'sub_port_id': 24775446, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659862, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'flou': {'main_port_id': 24775410, 'sub_port_id': 24775447, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659863, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}, 'Carton_brun': {'main_port_id': 24775410, 'sub_port_id': 24775448, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659864, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775437 , 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=24775410 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 (24775437) result : ((1371457516,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775438 , 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=24775410 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 (24775438) result : ((1371457186,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775439 , 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=24775410 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 (24775439) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775440 , 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=24775410 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 (24775440) result : ((1371457093,), (1371457094,), (1371457173,), (1371457505,), (1371457555,), (1371457556,), (1371457557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775441 , 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=24775410 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 (24775441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775442 , 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=24775410 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 (24775442) result : ((1371457090,), (1371457091,), (1371457439,), (1371457504,), (1371457551,), (1371457963,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775443 , 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=24775410 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 (24775443) result : ((1371456181,), (1371457096,), (1371457097,), (1371457098,), (1371457099,), (1371457100,), (1371457101,), (1371457102,), (1371457103,), (1371457104,), (1371457105,), (1371457179,), (1371457435,), (1371457436,), (1371457506,), (1371457507,), (1371457508,), (1371457695,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775444 , 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=24775410 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 (24775444) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775445 , 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=24775410 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 (24775445) result : ((1371457088,), (1371457089,), (1371457170,), (1371457499,), (1371457500,), (1371457501,), (1371457502,), (1371457546,), (1371457547,), (1371457548,), (1371457549,), (1371457550,), (1371457960,), (1371457961,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775446 , 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=24775410 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 (24775446) result : ((1371457109,), (1371457113,), (1371457117,), (1371457121,), (1371457438,), (1371457559,), (1371457560,), (1371457702,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775447 , 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=24775410 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 (24775447) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24775448 , 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=24775410 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 (24775448) result : ((1371457106,), (1371457107,), (1371457510,), (1371457511,), (1371457512,), (1371457513,), (1371457514,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24775410) result : ((1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24775410 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','flou','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','environnement','autre_refus','metal','Carton_gris','cartonnette')) 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`=24775410 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','flou','Carton_brun','kraft','plastique','Teint_Dans_La_Masse','environnement','autre_refus','metal','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 24775410, 'sub_port_id': 24775449, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659865, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'metal': {'main_port_id': 24775410, 'sub_port_id': 24775450, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659866, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'papier': {'main_port_id': 24775410, 'sub_port_id': 24775451, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659867, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'Carton_gris': {'main_port_id': 24775410, 'sub_port_id': 24775452, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659868, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'environnement': {'main_port_id': 24775410, 'sub_port_id': 24775453, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659869, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'autre_refus': {'main_port_id': 24775410, 'sub_port_id': 24775454, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659870, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'cartonnette': {'main_port_id': 24775410, 'sub_port_id': 24775455, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659871, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'mal_croppe': {'main_port_id': 24775410, 'sub_port_id': 24775456, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659872, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 24775410, 'sub_port_id': 24775457, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659873, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'plastique': {'main_port_id': 24775410, 'sub_port_id': 24775458, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659874, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'flou': {'main_port_id': 24775410, 'sub_port_id': 24775459, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659875, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}, 'Carton_brun': {'main_port_id': 24775410, 'sub_port_id': 24775460, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16659876, 'last_updated_at': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_desc': datetime.datetime(2025, 7, 10, 0, 40, 32), 'last_updated_at_asc': datetime.datetime(2025, 7, 10, 0, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775444 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775445 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775458,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775446 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775459,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775447 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24775460,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24775448 lien utilise dans velours : https://www.fotonower.com/velours/24775449,24775450,24775451,24775452,24775453,24775454,24775455,24775456,24775457,24775458,24775459,24775460?tags=kraft,metal,papier,Carton_gris,environnement,autre_refus,cartonnette,mal_croppe,Teint_Dans_La_Masse,plastique,flou,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24775410]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] map_info['map_portfolio_photo'] : {24775410: [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534, 1371457497, 1371457495, 1371457492, 1371457488, 1371457484, 1371457481, 1371457459, 1371457456, 1371457454, 1371457451, 1371457448, 1371457447, 1371457373, 1371457344, 1371457335, 1371457332, 1371457328, 1371457311, 1371457221, 1371457197, 1371457171, 1371457168, 1371457166, 1371457122, 1371456827, 1371456801, 1371456773, 1371456729, 1371456662, 1371456613, 1371456293, 1371456264, 1371456237, 1371456213, 1371456202, 1371456194, 1371456177, 1371456176, 1371456174, 1371456173, 1371456172, 1371456171, 1371456169, 1371456168, 1371456166, 1371456165, 1371456162, 1371456161, 1371456115, 1371456114, 1371456112, 1371456109, 1371456106, 1371456104, 1371456079, 1371456075, 1371456071, 1371456068, 1371456066, 1371456058]} final : False mtd_id 4302 list_pids : [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] Looping around the photos to save general results len do output : 1 /24775410. 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, '3262300') ('4302', '24775410', '1371457576', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '24775410', "{'kraft': 24775437, 'metal': 24775438, 'papier': 24775439, 'Carton_gris': 24775440, 'environnement': 24775441, 'autre_refus': 24775442, 'cartonnette': 24775443, 'mal_croppe': 24775444, 'Teint_Dans_La_Masse': 24775445, 'plastique': 24775446, 'flou': 24775447, 'Carton_brun': 24775448}", None, None, None, None, '3262300'), ('4302', '24775410', '1371457576', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300')] time used for this insertion : 0.02604055404663086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5060291290283203 time spend to save output : 0.026400327682495117 total time spend for step 1 : 1.5324294567108154 step2:final Thu Jul 10 00:42: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 (24775410) 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 24775410 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371456079,1371456075,1371456071,1371456068,1371456066,1371456058,1371456115,1371456114,1371456112,1371456109,1371456106,1371456104,1371456176,1371456177,1371456173,1371456174,1371456171,1371456172,1371456168,1371456169,1371456166,1371456165,1371456162,1371456161,1371456293,1371456264,1371456237,1371456213,1371456202,1371456194,1371456827,1371456801,1371456773,1371456729,1371456662,1371456613,1371457221,1371457197,1371457171,1371457168,1371457166,1371457122,1371457373,1371457344,1371457335,1371457332,1371457328,1371457311,1371457459,1371457456,1371457454,1371457451,1371457448,1371457447,1371457497,1371457495,1371457492,1371457488,1371457484,1371457481,1371457566,1371457564,1371457562,1371457561,1371457553,1371457552,1371457544,1371457543,1371457540,1371457539,1371457535,1371457534,1371457576,1371457573,1371457571,1371457569,1371457568,1371457567); 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([24775410]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} new output for save of step final : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] map_info['map_portfolio_photo'] : {24775410: [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534, 1371457497, 1371457495, 1371457492, 1371457488, 1371457484, 1371457481, 1371457459, 1371457456, 1371457454, 1371457451, 1371457448, 1371457447, 1371457373, 1371457344, 1371457335, 1371457332, 1371457328, 1371457311, 1371457221, 1371457197, 1371457171, 1371457168, 1371457166, 1371457122, 1371456827, 1371456801, 1371456773, 1371456729, 1371456662, 1371456613, 1371456293, 1371456264, 1371456237, 1371456213, 1371456202, 1371456194, 1371456177, 1371456176, 1371456174, 1371456173, 1371456172, 1371456171, 1371456169, 1371456168, 1371456166, 1371456165, 1371456162, 1371456161, 1371456115, 1371456114, 1371456112, 1371456109, 1371456106, 1371456104, 1371456079, 1371456075, 1371456071, 1371456068, 1371456066, 1371456058]} final : False mtd_id 4302 list_pids : [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] Looping around the photos to save general results len do output : 18 /1371457576.Didn't retrieve data . /1371457573.Didn't retrieve data . /1371457571.Didn't retrieve data . /1371457569.Didn't retrieve data . /1371457568.Didn't retrieve data . /1371457567.Didn't retrieve data . /1371457566.Didn't retrieve data . /1371457564.Didn't retrieve data . /1371457562.Didn't retrieve data . /1371457561.Didn't retrieve data . /1371457553.Didn't retrieve data . /1371457552.Didn't retrieve data . /1371457544.Didn't retrieve data . /1371457543.Didn't retrieve data . /1371457540.Didn't retrieve data . /1371457539.Didn't retrieve data . /1371457535.Didn't retrieve data . /1371457534.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, '3262300') ('4302', '24775410', '1371457576', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '24775410', '1371457576', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457573', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457571', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457569', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457568', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457567', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457566', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457564', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457562', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457561', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457553', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457552', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457544', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457543', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457540', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457539', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457535', '0.034780708331556276', None, None, None, None, '3262300'), ('4302', '24775410', '1371457534', '0.034780708331556276', None, None, None, None, '3262300')] time used for this insertion : 0.01822972297668457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07794904708862305 time spend to save output : 0.019004344940185547 total time spend for step 2 : 0.0969533920288086 step3:velours_tree Thu Jul 10 00:42: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 : {24775410: [{'kraft': 24775437, 'metal': 24775438, 'papier': 24775439, 'Carton_gris': 24775440, 'environnement': 24775441, 'autre_refus': 24775442, 'cartonnette': 24775443, 'mal_croppe': 24775444, 'Teint_Dans_La_Masse': 24775445, 'plastique': 24775446, 'flou': 24775447, 'Carton_brun': 24775448}]} input_args_next_step : {24775410: ()} output_args : {24775410: [{'kraft': 24775437, 'metal': 24775438, 'papier': 24775439, 'Carton_gris': 24775440, 'environnement': 24775441, 'autre_refus': 24775442, 'cartonnette': 24775443, 'mal_croppe': 24775444, 'Teint_Dans_La_Masse': 24775445, 'plastique': 24775446, 'flou': 24775447, 'Carton_brun': 24775448}]} args : 24775410 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 24775437, 'metal': 24775438, 'papier': 24775439, 'Carton_gris': 24775440, 'environnement': 24775441, 'autre_refus': 24775442, 'cartonnette': 24775443, 'mal_croppe': 24775444, 'Teint_Dans_La_Masse': 24775445, 'plastique': 24775446, 'flou': 24775447, 'Carton_brun': 24775448},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24775410) 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([24775410]) 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.30336618423461914 time spend to save output : 8.416175842285156e-05 total time spend for step 3 : 0.303450345993042 step4:send_mail_cod Thu Jul 10 00:42:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} input_args_next_step : {1371457576: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457576 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457573 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457571 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457569 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457568 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457567 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457566 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457564 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457562 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457561 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457553 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457552 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457544 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457543 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457540 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457539 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457535 depend.output_id : 0 input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ()} output_args : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',)} args : 1371457534 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 : {24775410: [{'kraft': 24775437, 'metal': 24775438, 'papier': 24775439, 'Carton_gris': 24775440, 'environnement': 24775441, 'autre_refus': 24775442, 'cartonnette': 24775443, 'mal_croppe': 24775444, 'Teint_Dans_La_Masse': 24775445, 'plastique': 24775446, 'flou': 24775447, 'Carton_brun': 24775448}]} input_args_next_step : {1371457576: ('0.034780708331556276',), 1371457573: ('0.034780708331556276',), 1371457571: ('0.034780708331556276',), 1371457569: ('0.034780708331556276',), 1371457568: ('0.034780708331556276',), 1371457567: ('0.034780708331556276',), 1371457566: ('0.034780708331556276',), 1371457564: ('0.034780708331556276',), 1371457562: ('0.034780708331556276',), 1371457561: ('0.034780708331556276',), 1371457553: ('0.034780708331556276',), 1371457552: ('0.034780708331556276',), 1371457544: ('0.034780708331556276',), 1371457543: ('0.034780708331556276',), 1371457540: ('0.034780708331556276',), 1371457539: ('0.034780708331556276',), 1371457535: ('0.034780708331556276',), 1371457534: ('0.034780708331556276',), 24775410: ()} output_args : {24775410: [{'kraft': 24775437, 'metal': 24775438, 'papier': 24775439, 'Carton_gris': 24775440, 'environnement': 24775441, 'autre_refus': 24775442, 'cartonnette': 24775443, 'mal_croppe': 24775444, 'Teint_Dans_La_Masse': 24775445, 'plastique': 24775446, 'flou': 24775447, 'Carton_brun': 24775448}]} args : 24775410 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 :19, first value : ('0.034780708331556276',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24775410) 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 (1371457576,1371457573,1371457571,1371457569,1371457568,1371457567,1371457566,1371457564,1371457562,1371457561,1371457553,1371457552,1371457544,1371457543,1371457540,1371457539,1371457535,1371457534) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371457534 begin to download photo : 1371457543 begin to download photo : 1371457561 begin to download photo : 1371457567 begin to download photo : 1371457573 download finish for photo 1371457567 begin to download photo : 1371457568 download finish for photo 1371457543 begin to download photo : 1371457544 download finish for photo 1371457573 begin to download photo : 1371457576 download finish for photo 1371457534 begin to download photo : 1371457535 download finish for photo 1371457561 begin to download photo : 1371457562 download finish for photo 1371457544 begin to download photo : 1371457552 download finish for photo 1371457568 begin to download photo : 1371457569 download finish for photo 1371457562 begin to download photo : 1371457564 download finish for photo 1371457576 download finish for photo 1371457535 begin to download photo : 1371457539 download finish for photo 1371457569 begin to download photo : 1371457571 download finish for photo 1371457564 begin to download photo : 1371457566 download finish for photo 1371457552 begin to download photo : 1371457553 download finish for photo 1371457539 begin to download photo : 1371457540 download finish for photo 1371457566 download finish for photo 1371457571 download finish for photo 1371457553 download finish for photo 1371457540 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P24775410_10-07-2025_00_42_59.pdf 24775437 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=24775437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457516: '1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758844_0.png'} change filename to text .imagette247754371752100979/ imagette247754371752100979/1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758844_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/566c3159239f18a58f0f28eb0dc7f138_64798624.png imagette247754371752100979 24775438 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=24775438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457186: '1752100565_1979107_1371456104_7e031630d23ae28523c1cfaeb589be2e_rle_crop_3877758043_0.png'} change filename to text .imagette247754381752100979/ imagette247754381752100979/1752100565_1979107_1371456104_7e031630d23ae28523c1cfaeb589be2e_rle_crop_3877758043_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/ab007878f2ffec73e0b57a1a1d9031f3_21499230.png imagette247754381752100979 24775442 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=24775442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457090: '1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757491_0.png', 1371457091: '1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757508_0.png', 1371457439: '1752100647_1984058_1371456613_e6f62e4317c311514c8678afd51be695_rle_crop_3877758575_0.png', 1371457504: '1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758843_0.png', 1371457551: '1752100808_1987333_1371457171_ca302fb095cd5cdb9a669f397ab49542_rle_crop_3877759065_0.png', 1371457963: '1752100927_1990381_1371457495_1348b341bbd4df41f4e94cd2dcc5f15a_rle_crop_3877759355_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/09441910ba2281d2a6686d0f47445aac_41802643.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/09441910ba2281d2a6686d0f47445aac_38426926.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a269c17b53c848f9e9f52a66c544e3a7_72778734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c31ca57966ec50d7e564ff242ce27244_91517427.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/af6749f8293208e5d3a53f63b0f75468_7182375.png change filename to text .imagette247754421752100979/ imagette247754421752100979/1752100927_1990381_1371457495_1348b341bbd4df41f4e94cd2dcc5f15a_rle_crop_3877759355_0.png.png imagette247754421752100979/1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757491_0.png.png imagette247754421752100979/1752100808_1987333_1371457171_ca302fb095cd5cdb9a669f397ab49542_rle_crop_3877759065_0.png.png imagette247754421752100979/1752100647_1984058_1371456613_e6f62e4317c311514c8678afd51be695_rle_crop_3877758575_0.png.png imagette247754421752100979/1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757508_0.png.png imagette247754421752100979/1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758843_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/8a1a7451017d82037093fde7d4395376_27964701.png imagette247754421752100979 24775443 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=24775443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457104: '1752100527_2161226_1371456162_7bf0a040a6769cd122c45f1c39b89cd4_rle_crop_3877757652_0.png', 1371457695: '1752100885_2169860_1371457459_8b85e4c6411f6c81d498faa3324a48ff_rle_crop_3877759186_0.png', 1371457508: '1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758849_0.png', 1371457507: '1752100767_2166800_1371457332_a43ec2e33ec41a691fd16e886540fb79_rle_crop_3877758809_0.png', 1371457506: '1752100767_2166800_1371457335_e7a079408504c20908a2f17575b404d8_rle_crop_3877758801_0.png', 1371457436: '1752100645_2164204_1371456264_c306de2d0fd43b4ebe431da49aeb54c1_rle_crop_3877758519_0.png', 1371457435: '1752100645_2164204_1371456293_61036f2b37efab942cf10f11d3455400_rle_crop_3877758509_0.png', 1371457179: '1752100565_1979107_1371456104_7e031630d23ae28523c1cfaeb589be2e_rle_crop_3877758041_0.png', 1371457105: '1752100527_2161226_1371456161_8f8fbd356bd9480126a2cffb09e29ace_rle_crop_3877757664_0.png', 1371456181: '1752100405_2158491_1371456066_f5041cd6f7af0ae8d22bc4298fda3f95_rle_crop_3877756567_0.png', 1371457103: '1752100527_2161226_1371456165_9c8bfd8eada457f3204c5617ee14f98f_rle_crop_3877757638_0.png', 1371457102: '1752100527_2161226_1371456166_b188b88c0bc1b64ef16152cab44458fa_rle_crop_3877757573_0.png', 1371457101: '1752100527_2161226_1371456168_cdb70e673bbd840a1fb2255b8733c9a0_rle_crop_3877757561_0.png', 1371457100: '1752100527_2161226_1371456169_9e1cbab38efc30e1975c22cbcb51dcca_rle_crop_3877757547_0.png', 1371457099: '1752100527_2161226_1371456171_041ebc62a9cadf21d730d18d11541c62_rle_crop_3877757533_0.png', 1371457098: '1752100527_2161226_1371456172_9bc370671c32d1b8360845ff8bd0e778_rle_crop_3877757523_0.png', 1371457097: '1752100527_2161226_1371456176_1a39175dd79245c5fbedc02353204a93_rle_crop_3877757475_0.png', 1371457096: '1752100527_2161226_1371456177_ea7efacffec867f7718da49274da8665_rle_crop_3877757465_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c180632a607f672bdf5d96857f2df5cb_6068913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/9e1c2ecd2efa086702feb911f7bcea84_9301250.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/bf53bfaea72768890c2fcbff33505a1a_20756257.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/5d1e778f54e0765940353a6794f86d3f_93474775.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/eefe43f27339d7b1b02b5192bc790517_16180477.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/639a530ab4578a831e5c83ae64e4a00d_79733406.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a46607e569aa1680bfc5b275d18ef3f7_41366479.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a1ce477ca3846fbb3939fe1f5f916a4e_17474653.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c180632a607f672bdf5d96857f2df5cb_93612660.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/449b06f8e35d4405717f1c89a5c436fb_60985061.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/b0ba39c037ede522fa3da73627c17260_29920722.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/b0ba39c037ede522fa3da73627c17260_71969220.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/9ad16e94596469d68a89e07bf39b3c82_99264039.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/9ad16e94596469d68a89e07bf39b3c82_74577571.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/3472584a4de98b6a0ffcbd8cf6a7ce7e_43654180.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/3472584a4de98b6a0ffcbd8cf6a7ce7e_83860127.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a1c754d25c2733f68a5ea89f539aca11_43873785.png change filename to text .imagette247754431752100979/ imagette247754431752100979/1752100527_2161226_1371456177_ea7efacffec867f7718da49274da8665_rle_crop_3877757465_0.png.png imagette247754431752100979/1752100527_2161226_1371456161_8f8fbd356bd9480126a2cffb09e29ace_rle_crop_3877757664_0.png.png imagette247754431752100979/1752100527_2161226_1371456165_9c8bfd8eada457f3204c5617ee14f98f_rle_crop_3877757638_0.png.png imagette247754431752100979/1752100527_2161226_1371456166_b188b88c0bc1b64ef16152cab44458fa_rle_crop_3877757573_0.png.png imagette247754431752100979/1752100767_2166800_1371457335_e7a079408504c20908a2f17575b404d8_rle_crop_3877758801_0.png.png imagette247754431752100979/1752100885_2169860_1371457459_8b85e4c6411f6c81d498faa3324a48ff_rle_crop_3877759186_0.png.png imagette247754431752100979/1752100527_2161226_1371456172_9bc370671c32d1b8360845ff8bd0e778_rle_crop_3877757523_0.png.png imagette247754431752100979/1752100767_2166800_1371457332_a43ec2e33ec41a691fd16e886540fb79_rle_crop_3877758809_0.png.png imagette247754431752100979/1752100527_2161226_1371456168_cdb70e673bbd840a1fb2255b8733c9a0_rle_crop_3877757561_0.png.png imagette247754431752100979/1752100405_2158491_1371456066_f5041cd6f7af0ae8d22bc4298fda3f95_rle_crop_3877756567_0.png.png imagette247754431752100979/1752100527_2161226_1371456176_1a39175dd79245c5fbedc02353204a93_rle_crop_3877757475_0.png.png imagette247754431752100979/1752100527_2161226_1371456162_7bf0a040a6769cd122c45f1c39b89cd4_rle_crop_3877757652_0.png.png imagette247754431752100979/1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758849_0.png.png imagette247754431752100979/1752100527_2161226_1371456169_9e1cbab38efc30e1975c22cbcb51dcca_rle_crop_3877757547_0.png.png imagette247754431752100979/1752100527_2161226_1371456171_041ebc62a9cadf21d730d18d11541c62_rle_crop_3877757533_0.png.png imagette247754431752100979/1752100645_2164204_1371456264_c306de2d0fd43b4ebe431da49aeb54c1_rle_crop_3877758519_0.png.png imagette247754431752100979/1752100565_1979107_1371456104_7e031630d23ae28523c1cfaeb589be2e_rle_crop_3877758041_0.png.png imagette247754431752100979/1752100645_2164204_1371456293_61036f2b37efab942cf10f11d3455400_rle_crop_3877758509_0.png.png imagette247754441752100980/ wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a1c754d25c2733f68a5ea89f539aca11_74885992.png imagette247754431752100979 24775444 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=24775444 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247754441752100980 24775446 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=24775446 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457109: '1752100527_2161226_1371456169_9e1cbab38efc30e1975c22cbcb51dcca_rle_crop_3877757541_0.png', 1371457113: '1752100527_2161226_1371456168_cdb70e673bbd840a1fb2255b8733c9a0_rle_crop_3877757555_0.png', 1371457117: '1752100527_2161226_1371456166_b188b88c0bc1b64ef16152cab44458fa_rle_crop_3877757571_0.png', 1371457121: '1752100527_2161226_1371456165_9c8bfd8eada457f3204c5617ee14f98f_rle_crop_3877757636_0.png', 1371457438: '1752100645_2164204_1371456213_de6b3736a96c0f0af55e45a607e845ef_rle_crop_3877758548_0.png', 1371457559: '1752100808_1987333_1371457221_2eb2be7b086f1d87ac21584e6a0bb2d1_rle_crop_3877759039_0.png', 1371457560: '1752100808_1987333_1371457197_6fbb42005212d735209cbbaf97be1712_rle_crop_3877759052_0.png', 1371457702: '1752100885_2169860_1371457459_8b85e4c6411f6c81d498faa3324a48ff_rle_crop_3877759181_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6ca0403886de103b00bc069bc12bfdf4_35411576.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6ca0403886de103b00bc069bc12bfdf4_41329151.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/79a62d99597e0c6e5315a2c562ae3f30_44969885.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/79a62d99597e0c6e5315a2c562ae3f30_11428541.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/f6bba543734d500517bb04a13ad1cd80_50445165.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/27eee4ae6baf6c8e72e5f4ce718dd7fa_93429048.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/50fed58b81731b412d317e8e13a5c012_19885626.png change filename to text .imagette247754461752100980/ imagette247754461752100980/1752100527_2161226_1371456168_cdb70e673bbd840a1fb2255b8733c9a0_rle_crop_3877757555_0.png.png imagette247754461752100980/1752100527_2161226_1371456169_9e1cbab38efc30e1975c22cbcb51dcca_rle_crop_3877757541_0.png.png imagette247754461752100980/1752100808_1987333_1371457221_2eb2be7b086f1d87ac21584e6a0bb2d1_rle_crop_3877759039_0.png.png imagette247754461752100980/1752100645_2164204_1371456213_de6b3736a96c0f0af55e45a607e845ef_rle_crop_3877758548_0.png.png imagette247754461752100980/1752100527_2161226_1371456166_b188b88c0bc1b64ef16152cab44458fa_rle_crop_3877757571_0.png.png imagette247754461752100980/1752100885_2169860_1371457459_8b85e4c6411f6c81d498faa3324a48ff_rle_crop_3877759181_0.png.png imagette247754461752100980/1752100808_1987333_1371457197_6fbb42005212d735209cbbaf97be1712_rle_crop_3877759052_0.png.png imagette247754461752100980/1752100527_2161226_1371456165_9c8bfd8eada457f3204c5617ee14f98f_rle_crop_3877757636_0.png.png imagette247754471752100981/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/d400fcf334531c630e8e461da1bfe45c_30756074.png imagette247754461752100980 24775447 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=24775447 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247754471752100981 24775440 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=24775440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457093: '1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757490_0.png', 1371457094: '1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757507_0.png', 1371457173: '1752100565_1979107_1371456114_3829037770de37a769120737670e08c5_rle_crop_3877757926_0.png', 1371457505: '1752100767_2166800_1371457335_e7a079408504c20908a2f17575b404d8_rle_crop_3877758800_0.png', 1371457555: '1752100808_1987333_1371457168_a68f29f75dbb0fef5197eb0cae5ab632_rle_crop_3877759079_0.png', 1371457556: '1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759096_0.png', 1371457557: '1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759095_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6a3574143b5affbc3803840b253ce6a6_52100768.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6a3574143b5affbc3803840b253ce6a6_60534667.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a4016a8460f3168a790d7c7e469bd99e_13233109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/e9d545ee3d7930a2e8cdd9802782c957_57448118.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/b98d3c5bb69e2333dc1c07823bf8a683_92727865.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/9e7b7641020fbad2616146be4d6f90bc_37386349.png change filename to text .imagette247754401752100981/ imagette247754401752100981/1752100808_1987333_1371457168_a68f29f75dbb0fef5197eb0cae5ab632_rle_crop_3877759079_0.png.png imagette247754401752100981/1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759096_0.png.png imagette247754401752100981/1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757507_0.png.png imagette247754401752100981/1752100565_1979107_1371456114_3829037770de37a769120737670e08c5_rle_crop_3877757926_0.png.png imagette247754401752100981/1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759095_0.png.png imagette247754401752100981/1752100767_2166800_1371457335_e7a079408504c20908a2f17575b404d8_rle_crop_3877758800_0.png.png imagette247754401752100981/1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757490_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c04ee116396c4a820e57ab05ae5a50e2_55022102.png imagette247754401752100981 24775445 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=24775445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457088: '1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757495_0.png', 1371457089: '1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757512_0.png', 1371457170: '1752100565_1979107_1371456114_3829037770de37a769120737670e08c5_rle_crop_3877757934_0.png', 1371457499: '1752100767_2166800_1371457344_74b1335d33d565926a29f582271f5fb0_rle_crop_3877758784_0.png', 1371457500: '1752100767_2166800_1371457328_27df98151432ee5f68f1286f97a53ceb_rle_crop_3877758833_0.png', 1371457501: '1752100767_2166800_1371457328_27df98151432ee5f68f1286f97a53ceb_rle_crop_3877758831_0.png', 1371457502: '1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758848_0.png', 1371457546: '1752100808_1987333_1371457221_2eb2be7b086f1d87ac21584e6a0bb2d1_rle_crop_3877759041_0.png', 1371457547: '1752100808_1987333_1371457197_6fbb42005212d735209cbbaf97be1712_rle_crop_3877759055_0.png', 1371457548: '1752100808_1987333_1371457171_ca302fb095cd5cdb9a669f397ab49542_rle_crop_3877759071_0.png', 1371457549: '1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759099_0.png', 1371457550: '1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759100_0.png', 1371457960: '1752100927_1990381_1371457495_1348b341bbd4df41f4e94cd2dcc5f15a_rle_crop_3877759357_0.png', 1371457961: '1752100927_1990381_1371457488_ac6e10e7adfcaf0a173cc4d86663717a_rle_crop_3877759383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/5bd7c09e9d67323627760716e89f2752_51925831.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/5bd7c09e9d67323627760716e89f2752_69709861.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/2801f5904309ecefe20b3130ddfa04b4_8459648.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/51c95cdce84ea4baccae257432ddaff5_23939256.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/825b38a866e450e5f2a4628f3d0b1203_69716221.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/ae502c74bc183fbad6069b60df5012f1_60377650.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/8ba5d3f86582df92a4c8bd8959701a43_90366515.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/8a5902ade220e65e20fd21c086ab5e35_46113053.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/0ad8e05cc6185b7cbcb14612c5c2e788_66505914.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/6b92de19f436bb881cdf1cc2b6717f31_11945983.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/797338911e1b16b1c10a98a09bc1fb07_96178329.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/d44d3d74a78606cccb4dc75b0d6dc90f_38934216.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/d70df8233854d0bf3653ed1912140f65_30864988.png change filename to text .imagette247754451752100981/ imagette247754451752100981/1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759100_0.png.png imagette247754451752100981/1752100565_1979107_1371456114_3829037770de37a769120737670e08c5_rle_crop_3877757934_0.png.png imagette247754451752100981/1752100808_1987333_1371457221_2eb2be7b086f1d87ac21584e6a0bb2d1_rle_crop_3877759041_0.png.png imagette247754451752100981/1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758848_0.png.png imagette247754451752100981/1752100927_1990381_1371457488_ac6e10e7adfcaf0a173cc4d86663717a_rle_crop_3877759383_0.png.png imagette247754451752100981/1752100767_2166800_1371457328_27df98151432ee5f68f1286f97a53ceb_rle_crop_3877758833_0.png.png imagette247754451752100981/1752100927_1990381_1371457495_1348b341bbd4df41f4e94cd2dcc5f15a_rle_crop_3877759357_0.png.png imagette247754451752100981/1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757512_0.png.png imagette247754451752100981/1752100808_1987333_1371457166_aace05a55f58696b2507fba4538f57b6_rle_crop_3877759099_0.png.png imagette247754451752100981/1752100767_2166800_1371457344_74b1335d33d565926a29f582271f5fb0_rle_crop_3877758784_0.png.png imagette247754451752100981/1752100808_1987333_1371457197_6fbb42005212d735209cbbaf97be1712_rle_crop_3877759055_0.png.png imagette247754451752100981/1752100767_2166800_1371457328_27df98151432ee5f68f1286f97a53ceb_rle_crop_3877758831_0.png.png imagette247754451752100981/1752100808_1987333_1371457171_ca302fb095cd5cdb9a669f397ab49542_rle_crop_3877759071_0.png.png imagette247754451752100981/1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757495_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/ac5d3441c133ef8063ac1eb7dd9fd5b7_67679627.png imagette247754451752100981 24775448 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=24775448 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371457106: '1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757497_0.png', 1371457107: '1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757514_0.png', 1371457510: '1752100767_2166800_1371457335_e7a079408504c20908a2f17575b404d8_rle_crop_3877758799_0.png', 1371457511: '1752100767_2166800_1371457332_a43ec2e33ec41a691fd16e886540fb79_rle_crop_3877758817_0.png', 1371457512: '1752100767_2166800_1371457332_a43ec2e33ec41a691fd16e886540fb79_rle_crop_3877758813_0.png', 1371457513: '1752100767_2166800_1371457328_27df98151432ee5f68f1286f97a53ceb_rle_crop_3877758836_0.png', 1371457514: '1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758853_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/354dc5754f1cc39df6469fd68a485ae4_95482229.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/354dc5754f1cc39df6469fd68a485ae4_76286704.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/517b8903ccf6fd257a86b021f75fe842_13129442.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/a9fc15a06764963b1225880b0c33bba5_53849595.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/8cf2d910ea442116c59e9ce299c3a47b_43510627.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/bd4df6c9adc773ff14c16d279cd1bb48_73280791.png change filename to text .imagette247754481752100982/ imagette247754481752100982/1752100527_2161226_1371456174_12bbe13ef1c9a580b3efd53a5a9eef56_rle_crop_3877757497_0.png.png imagette247754481752100982/1752100767_2166800_1371457332_a43ec2e33ec41a691fd16e886540fb79_rle_crop_3877758817_0.png.png imagette247754481752100982/1752100527_2161226_1371456173_eccbc5a7db1f02bd8fea7a8bc9b3ed78_rle_crop_3877757514_0.png.png imagette247754481752100982/1752100767_2166800_1371457335_e7a079408504c20908a2f17575b404d8_rle_crop_3877758799_0.png.png imagette247754481752100982/1752100767_2166800_1371457311_0f0c037d7a00782aabadef1abe5a9d79_rle_crop_3877758853_0.png.png imagette247754481752100982/1752100767_2166800_1371457328_27df98151432ee5f68f1286f97a53ceb_rle_crop_3877758836_0.png.png imagette247754481752100982/1752100767_2166800_1371457332_a43ec2e33ec41a691fd16e886540fb79_rle_crop_3877758813_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/7186e9a0431dcaa914e6ef600c7b5752_11850135.png imagette247754481752100982 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24775410 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24775449,24775450,24775451,24775452,24775453,24775454,24775455,24775456,24775457,24775458,24775459,24775460?tags=kraft,metal,papier,Carton_gris,environnement,autre_refus,cartonnette,mal_croppe,Teint_Dans_La_Masse,plastique,flou,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1371457576] : ('0.034780708331556276',) no score found for photo 1371457576 We are sending mail with results at report@fotonower.com args[1371457573] : ('0.034780708331556276',) no score found for photo 1371457573 We are sending mail with results at report@fotonower.com args[1371457571] : ('0.034780708331556276',) no score found for photo 1371457571 We are sending mail with results at report@fotonower.com args[1371457569] : ('0.034780708331556276',) no score found for photo 1371457569 We are sending mail with results at report@fotonower.com args[1371457568] : ('0.034780708331556276',) no score found for photo 1371457568 We are sending mail with results at report@fotonower.com args[1371457567] : ('0.034780708331556276',) no score found for photo 1371457567 We are sending mail with results at report@fotonower.com args[1371457566] : ('0.034780708331556276',) no score found for photo 1371457566 We are sending mail with results at report@fotonower.com args[1371457564] : ('0.034780708331556276',) no score found for photo 1371457564 We are sending mail with results at report@fotonower.com args[1371457562] : ('0.034780708331556276',) no score found for photo 1371457562 We are sending mail with results at report@fotonower.com args[1371457561] : ('0.034780708331556276',) no score found for photo 1371457561 We are sending mail with results at report@fotonower.com args[1371457553] : ('0.034780708331556276',) no score found for photo 1371457553 We are sending mail with results at report@fotonower.com args[1371457552] : ('0.034780708331556276',) no score found for photo 1371457552 We are sending mail with results at report@fotonower.com args[1371457544] : ('0.034780708331556276',) no score found for photo 1371457544 We are sending mail with results at report@fotonower.com args[1371457543] : ('0.034780708331556276',) no score found for photo 1371457543 We are sending mail with results at report@fotonower.com args[1371457540] : ('0.034780708331556276',) no score found for photo 1371457540 We are sending mail with results at report@fotonower.com args[1371457539] : ('0.034780708331556276',) no score found for photo 1371457539 We are sending mail with results at report@fotonower.com args[1371457535] : ('0.034780708331556276',) no score found for photo 1371457535 We are sending mail with results at report@fotonower.com args[1371457534] : ('0.034780708331556276',) no score found for photo 1371457534 We are sending mail with results at report@fotonower.com refus_total : 0.034780708331556276 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=24775410 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_42_59.pdf results_Auto_P24775410_10-07-2025_00_42_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_42_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24775410','results_Auto_P24775410_10-07-2025_00_42_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_42_59.pdf','pdf','','0.29','0.034780708331556276') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24775410]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] map_info['map_portfolio_photo'] : {24775410: [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534, 1371457497, 1371457495, 1371457492, 1371457488, 1371457484, 1371457481, 1371457459, 1371457456, 1371457454, 1371457451, 1371457448, 1371457447, 1371457373, 1371457344, 1371457335, 1371457332, 1371457328, 1371457311, 1371457221, 1371457197, 1371457171, 1371457168, 1371457166, 1371457122, 1371456827, 1371456801, 1371456773, 1371456729, 1371456662, 1371456613, 1371456293, 1371456264, 1371456237, 1371456213, 1371456202, 1371456194, 1371456177, 1371456176, 1371456174, 1371456173, 1371456172, 1371456171, 1371456169, 1371456168, 1371456166, 1371456165, 1371456162, 1371456161, 1371456115, 1371456114, 1371456112, 1371456109, 1371456106, 1371456104, 1371456079, 1371456075, 1371456071, 1371456068, 1371456066, 1371456058]} final : False mtd_id 4302 list_pids : [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] 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, '3262300') ('4302', '24775410', '1371457576', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '24775410', '1371457576', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300')] time used for this insertion : 0.014579296112060547 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.436425685882568 time spend to save output : 0.014838933944702148 total time spend for step 4 : 5.4512646198272705 step5:split_time_score Thu Jul 10 00:43:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24775410'] 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 : [('24775410',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24775410) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371457573: {'path': 'temp/1752100978_253404_1371457573_91aa102c5039d79567d6430cf7c8d40f.jpg', 'extension': 'jpg'}, 1371457576: {'path': 'temp/1752100978_253404_1371457576_f632b10242ffe118a138edafef38dfe6.jpg', 'extension': 'jpg'}, 1371457561: {'path': 'temp/1752100978_253404_1371457561_120a750adc4d1dfcddbb6cddd418f4b1.jpg', 'extension': 'jpg'}, 1371457562: {'path': 'temp/1752100978_253404_1371457562_3052107a98575adceb23c676c49fceae.jpg', 'extension': 'jpg'}, 1371457564: {'path': 'temp/1752100978_253404_1371457564_f0ef783675f577465ac427391c58871a.jpg', 'extension': 'jpg'}, 1371457566: {'path': 'temp/1752100978_253404_1371457566_152d3e5c1441a97b52a97254b04637a2.jpg', 'extension': 'jpg'}, 1371457567: {'path': 'temp/1752100978_253404_1371457567_45b32014c1d3cbcc735090dd9935bc77.jpg', 'extension': 'jpg'}, 1371457568: {'path': 'temp/1752100978_253404_1371457568_a797544e0018a6633269623d2f5953f3.jpg', 'extension': 'jpg'}, 1371457569: {'path': 'temp/1752100978_253404_1371457569_3d6c80a55ffcdea13ad290774ec33215.jpg', 'extension': 'jpg'}, 1371457571: {'path': 'temp/1752100978_253404_1371457571_f5cbb9e85b262f76b196ae33afae3569.jpg', 'extension': 'jpg'}, 1371457543: {'path': 'temp/1752100978_253404_1371457543_501ac1e8df42d70e3dcbe33f1e4191fa.jpg', 'extension': 'jpg'}, 1371457544: {'path': 'temp/1752100978_253404_1371457544_03c2922bfcc67fe9560bfb5bc0638ecd.jpg', 'extension': 'jpg'}, 1371457552: {'path': 'temp/1752100978_253404_1371457552_ee8f9cc1036070ed7bec96de6202d6c6.jpg', 'extension': 'jpg'}, 1371457553: {'path': 'temp/1752100978_253404_1371457553_1865afeada4e0d111dc3528186d31f25.jpg', 'extension': 'jpg'}, 1371457534: {'path': 'temp/1752100978_253404_1371457534_aa1be57ffb4921a425e608bcedae73ed.jpg', 'extension': 'jpg'}, 1371457535: {'path': 'temp/1752100978_253404_1371457535_79e6aec1c9d3fd526804149de3629bd1.jpg', 'extension': 'jpg'}, 1371457539: {'path': 'temp/1752100978_253404_1371457539_12ffbd159b69bcd83951c04dc0457539.jpg', 'extension': 'jpg'}, 1371457540: {'path': 'temp/1752100978_253404_1371457540_ff748c507853853a7b99815b208ce3a3.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 = 24775410; (('arc_en_ciel_jrm_live',),) 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 = 24775410 group by h (('00', 78),) 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=24775410 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 (24775410) 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 (24775410) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10072025 24775410 Nombre de photos uploadées : 78 / 23040 (0%) 10072025 24775410 Nombre de photos taguées (types de déchets): 0 / 78 (0%) 10072025 24775410 Nombre de photos taguées (volume) : 0 / 78 (0%) [{'photo_id': 1371456079, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/20e3d04623828008ad46b68575e5a183.jpg', 'username': None, 'uploaded_at': 1752100267, 'text': 'image_10072025_00_30_04_010138m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371456075, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/079208b1e1651c375fab909bfccf4b91.jpg', 'username': None, 'uploaded_at': 1752100267, 'text': 'image_10072025_00_30_14_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371456071, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/c9ecc31d872652fad3761ab97479bff7.jpg', 'username': None, 'uploaded_at': 1752100267, 'text': 'image_10072025_00_30_24_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371456068, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/10/cd71aa38a699c0247239d1a8f5697ce5.jpg', 'username': None, 'uploaded_at': 1752100267, 'text': 'image_10072025_00_30_34_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0034542083740234375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 24775410, '2025-07-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1965220,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02776026725769043 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= 1965220 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1965220, 'dashboard_run_id': 1972741, 'mtr_portfolio_id': 24774220, 'dashboard_result_id': 12335811, '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_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, 'pht': 3726}}"}, {'dashboat_entry_day': 1965220, 'dashboard_run_id': 1972741, 'mtr_portfolio_id': 24774919, 'dashboard_result_id': 12335812, '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_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, 'pht': 3726}}"}, {'dashboat_entry_day': 1965220, 'dashboard_run_id': 1972741, 'mtr_portfolio_id': 24775410, 'dashboard_result_id': 12335813, '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_P24775410_10-07-2025_00_40_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, '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 = 24774220 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': 3262208, 'mtr_portfolio_id': 24774220, 'created_at': datetime.datetime(2025, 7, 10, 0, 16, 57), 'result': '0.0439887508083733', 'result_long': None, 'result_double': None}] Qualite : 0.0439887508083733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24774220 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774220_10-07-2025_00_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24774220 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_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, 'pht': 3726}}" where mtr_portfolio_id = 24774220 and dashboard_run_id = 1972741 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`=24774220 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12335811, 0.0439887508083733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774220_10-07-2025_00_16_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774251, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774252, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774255, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774256, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774257, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774258, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774259, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774260, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774261, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774262, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24774919 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': 3262258, 'mtr_portfolio_id': 24774919, 'created_at': datetime.datetime(2025, 7, 10, 0, 32, 58), 'result': '0.04397998394299902', 'result_long': None, 'result_double': None}] Qualite : 0.04397998394299902 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24774919 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774919_10-07-2025_00_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24774919 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_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, 'pht': 3726}}" where mtr_portfolio_id = 24774919 and dashboard_run_id = 1972741 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`=24774919 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12335812, 0.04397998394299902, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24774919_10-07-2025_00_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24774942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24774943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24774945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24774946, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24774947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24774948, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24774950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24774951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24774952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24774954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24774955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24774956, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 24775410 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': 3262300, 'mtr_portfolio_id': 24775410, 'created_at': datetime.datetime(2025, 7, 10, 0, 42, 58), 'result': '0.034780708331556276', 'result_long': None, 'result_double': None}] Qualite : 0.034780708331556276 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24775410 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_42_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24775410 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_P24775410_10-07-2025_00_42_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, 'pht': 3726}}" where mtr_portfolio_id = 24775410 and dashboard_run_id = 1972741 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`=24775410 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12335813, 0.034780708331556276, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24775410_10-07-2025_00_42_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24775437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24775438, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24775439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24775440, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24775441, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24775442, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24775443, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24775444, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24775445, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24775446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24775447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24775448, '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 (24774220,24774919,24775410) result : ((1371451315,), (1371451337,), (1371451345,), (1371451375,), (1371451396,), (1371451416,), (1371451436,), (1371451438,), (1371451442,), (1371451444,), (1371451447,), (1371451451,), (1371451488,), (1371451491,), (1371451495,), (1371451498,), (1371451502,), (1371451505,), (1371451525,), (1371451528,), (1371451530,), (1371451531,), (1371451541,), (1371451547,), (1371451595,), (1371451623,), (1371451648,), (1371451663,), (1371451665,), (1371451685,), (1371452002,), (1371452052,), (1371452098,), (1371452136,), (1371452175,), (1371452214,), (1371452488,), (1371452515,), (1371452541,), (1371452566,), (1371452573,), (1371452575,), (1371452627,), (1371452631,), (1371452634,), (1371452646,), (1371452691,), (1371452722,), (1371452876,), (1371452878,), (1371452880,), (1371452883,), (1371452887,), (1371452891,), (1371452979,), (1371452981,), (1371452985,), (1371452989,), (1371453001,), (1371453002,), (1371453261,), (1371453276,), (1371453292,), (1371453303,), (1371453325,), (1371453335,), (1371453370,), (1371453372,), (1371453374,), (1371453376,), (1371453378,), (1371453381,), (1371453412,), (1371453414,), (1371453417,), (1371453419,), (1371453422,), (1371453425,), (1371453501,), (1371453512,), (1371453526,), (1371453528,), (1371453538,), (1371453544,), (1371453549,), (1371453551,), (1371453552,), (1371453559,), (1371453561,), (1371453562,), (1371453821,), (1371453831,), (1371453834,), (1371453837,), (1371453839,), (1371453843,), (1371453933,), (1371453936,), (1371453938,), (1371453941,), (1371453943,), (1371453945,), (1371454134,), (1371454153,), (1371454165,), (1371454166,), (1371454172,), (1371454194,), (1371454267,), (1371454294,), (1371454320,), (1371454348,), (1371454389,), (1371454436,), (1371454809,), (1371454836,), (1371454861,), (1371454888,), (1371454912,), (1371454943,), (1371454975,), (1371454976,), (1371454978,), (1371454980,), (1371454982,), (1371455006,), (1371455329,), (1371455354,), (1371455379,), (1371455405,), (1371455431,), (1371455458,), (1371455631,), (1371455635,), (1371455637,), (1371455639,), (1371455640,), (1371455644,), (1371455654,), (1371455657,), (1371455674,), (1371455676,), (1371455677,), (1371455679,), (1371455798,), (1371455799,), (1371455802,), (1371455805,), (1371455808,), (1371455810,), (1371455842,), (1371455847,), (1371455851,), (1371455852,), (1371455856,), (1371455858,), (1371455878,), (1371455879,), (1371455883,), (1371455884,), (1371455887,), (1371455888,), (1371455892,), (1371455893,), (1371455895,), (1371455897,), (1371455900,), (1371455901,), (1371455911,), (1371455914,), (1371455916,), (1371455919,), (1371455922,), (1371455925,), (1371455968,), (1371455970,), (1371455973,), (1371455976,), (1371455978,), (1371455980,), (1371456036,), (1371456040,), (1371456043,), (1371456048,), (1371456052,), (1371456054,), (1371456058,), (1371456066,), (1371456068,), (1371456071,), (1371456075,), (1371456079,), (1371456104,), (1371456106,), (1371456109,), (1371456112,), (1371456114,), (1371456115,), (1371456161,), (1371456162,), (1371456165,), (1371456166,), (1371456168,), (1371456169,), (1371456171,), (1371456172,), (1371456173,), (1371456174,), (1371456176,), (1371456177,), (1371456194,), (1371456202,), (1371456213,), (1371456237,), (1371456264,), (1371456293,), (1371456613,), (1371456662,), (1371456729,), (1371456773,), (1371456801,), (1371456827,), (1371457122,), (1371457166,), (1371457168,), (1371457171,), (1371457197,), (1371457221,), (1371457311,), (1371457328,), (1371457332,), (1371457335,), (1371457344,), (1371457373,), (1371457447,), (1371457448,), (1371457451,), (1371457454,), (1371457456,), (1371457459,), (1371457481,), (1371457484,), (1371457488,), (1371457492,), (1371457495,), (1371457497,), (1371457534,), (1371457535,), (1371457539,), (1371457540,), (1371457543,), (1371457544,), (1371457552,), (1371457553,), (1371457561,), (1371457562,), (1371457564,), (1371457566,), (1371457567,), (1371457568,), (1371457569,), (1371457571,), (1371457573,), (1371457576,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10072025': {'nb_upload': 78, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24775410]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] map_info['map_portfolio_photo'] : {24775410: [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534, 1371457497, 1371457495, 1371457492, 1371457488, 1371457484, 1371457481, 1371457459, 1371457456, 1371457454, 1371457451, 1371457448, 1371457447, 1371457373, 1371457344, 1371457335, 1371457332, 1371457328, 1371457311, 1371457221, 1371457197, 1371457171, 1371457168, 1371457166, 1371457122, 1371456827, 1371456801, 1371456773, 1371456729, 1371456662, 1371456613, 1371456293, 1371456264, 1371456237, 1371456213, 1371456202, 1371456194, 1371456177, 1371456176, 1371456174, 1371456173, 1371456172, 1371456171, 1371456169, 1371456168, 1371456166, 1371456165, 1371456162, 1371456161, 1371456115, 1371456114, 1371456112, 1371456109, 1371456106, 1371456104, 1371456079, 1371456075, 1371456071, 1371456068, 1371456066, 1371456058]} final : True mtd_id 4302 list_pids : [1371457576, 1371457573, 1371457571, 1371457569, 1371457568, 1371457567, 1371457566, 1371457564, 1371457562, 1371457561, 1371457553, 1371457552, 1371457544, 1371457543, 1371457540, 1371457539, 1371457535, 1371457534] Looping around the photos to save general results len do output : 1 /24775410Didn'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, '3262300') ('4302', '24775410', '1371457576', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300') ('4302', None, None, None, None, None, None, None, '3262300') ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '24775410', 'None', None, None, None, None, '3262300'), ('4302', '24775410', '1371457576', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457573', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457571', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457569', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457568', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457567', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457566', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457564', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457562', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457561', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457553', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457552', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457544', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457543', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457540', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457539', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457535', None, None, None, None, None, '3262300'), ('4302', '24775410', '1371457534', None, None, None, None, None, '3262300')] time used for this insertion : 0.014961719512939453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.30058836936950684 time spend to save output : 0.015180587768554688 total time spend for step 5 : 0.3157689571380615 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 (3262300) 2.31user 2.46system 0:09.31elapsed 51%CPU (0avgtext+0avgdata 163184maxresident)k 312inputs+17536outputs (2major+75491minor)pagefaults 0swaps