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 : 2455648 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 (2576087) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2576087) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442935 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2576087'] with mtr_portfolio_ids : ['20442935'] and first list_photo_ids : [] new path : /proc/2455648/ Name: python3 Umask: 0002 State: R (running) Tgid: 2455648 Ngid: 0 Pid: 2455648 PPid: 2455647 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2455648 NSpid: 2455648 NSpgid: 2452690 NSsid: 2452690 VmPeak: 1106924 kB VmSize: 1106924 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98576 kB VmRSS: 98576 kB RssAnon: 59796 kB RssFile: 38780 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 123 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2455648', 'Ngid': '0', 'Pid': '2455648', 'PPid': '2455647', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2455648', 'NSpid': '2455648', 'NSpgid': '2452690', 'NSsid': '2452690', 'VmPeak': '1106924 kB', 'VmSize': '1106924 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98576 kB', 'VmRSS': '98576 kB', 'RssAnon': '59796 kB', 'RssFile': '38780 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '123'} ('datou_batch_current', '2455648', '1106924', '0', '1106924', '865676', '98576', b'', 'marlene', '2576087') 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 (20442935) 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 (2576087 ) ) 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 (20442935) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1336805549, 'portfolio_id': 20442935}, {'photo_id': 1336805544, 'portfolio_id': 20442935}, {'photo_id': 1336805533, 'portfolio_id': 20442935}, {'photo_id': 1336805530, 'portfolio_id': 20442935}, {'photo_id': 1336805527, 'portfolio_id': 20442935}, {'photo_id': 1336805489, 'portfolio_id': 20442935}, {'photo_id': 1336805486, 'portfolio_id': 20442935}, {'photo_id': 1336805483, 'portfolio_id': 20442935}, {'photo_id': 1336805480, 'portfolio_id': 20442935}, {'photo_id': 1336805402, 'portfolio_id': 20442935}, {'photo_id': 1336805396, 'portfolio_id': 20442935}, {'photo_id': 1336805385, 'portfolio_id': 20442935}, {'photo_id': 1336805381, 'portfolio_id': 20442935}, {'photo_id': 1336805379, 'portfolio_id': 20442935}, {'photo_id': 1336805373, 'portfolio_id': 20442935}, {'photo_id': 1336805297, 'portfolio_id': 20442935}, {'photo_id': 1336805293, 'portfolio_id': 20442935}, {'photo_id': 1336805291, 'portfolio_id': 20442935}, {'photo_id': 1336805288, 'portfolio_id': 20442935}, {'photo_id': 1336805286, 'portfolio_id': 20442935}, {'photo_id': 1336805189, 'portfolio_id': 20442935}, {'photo_id': 1336805172, 'portfolio_id': 20442935}, {'photo_id': 1336805126, 'portfolio_id': 20442935}, {'photo_id': 1336805122, 'portfolio_id': 20442935}, {'photo_id': 1336804541, 'portfolio_id': 20442935}, {'photo_id': 1336804536, 'portfolio_id': 20442935}, {'photo_id': 1336804485, 'portfolio_id': 20442935}, {'photo_id': 1336804481, 'portfolio_id': 20442935}, {'photo_id': 1336804478, 'portfolio_id': 20442935}, {'photo_id': 1336804474, 'portfolio_id': 20442935}, {'photo_id': 1336804447, 'portfolio_id': 20442935}, {'photo_id': 1336804443, 'portfolio_id': 20442935}, {'photo_id': 1336804437, 'portfolio_id': 20442935}, {'photo_id': 1336804434, 'portfolio_id': 20442935}, {'photo_id': 1336804392, 'portfolio_id': 20442935}, {'photo_id': 1336804388, 'portfolio_id': 20442935}, {'photo_id': 1336804384, 'portfolio_id': 20442935}, {'photo_id': 1336804381, 'portfolio_id': 20442935}, {'photo_id': 1336804350, 'portfolio_id': 20442935}, {'photo_id': 1336804348, 'portfolio_id': 20442935}, {'photo_id': 1336804344, 'portfolio_id': 20442935}, {'photo_id': 1336804341, 'portfolio_id': 20442935}, {'photo_id': 1336804335, 'portfolio_id': 20442935}, {'photo_id': 1336804326, 'portfolio_id': 20442935}, {'photo_id': 1336804296, 'portfolio_id': 20442935}, {'photo_id': 1336804293, 'portfolio_id': 20442935}, {'photo_id': 1336804290, 'portfolio_id': 20442935}] map_portfolio_id_photo_id: {20442935: [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373, 1336805297, 1336805293, 1336805291, 1336805288, 1336805286, 1336805189, 1336805172, 1336805126, 1336805122, 1336804541, 1336804536, 1336804485, 1336804481, 1336804478, 1336804474, 1336804447, 1336804443, 1336804437, 1336804434, 1336804392, 1336804388, 1336804384, 1336804381, 1336804350, 1336804348, 1336804344, 1336804341, 1336804335, 1336804326, 1336804296, 1336804293, 1336804290]} ##### 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.01562786102294922 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Feb 11 12:10:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20442935) 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 : 20442935 get user id for portfolio 20442935 get sub ptf for main ptf 20442935, type 3726 and hashtags ['environnement', 'autre_refus', 'cartonnette', 'Carton_gris', 'metal', 'Teint_Dans_La_Masse', 'papier', 'kraft', 'plastique', 'mal_croppe', 'Carton_brun', 'flou'] 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`=20442935 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','Teint_Dans_La_Masse','papier','kraft','plastique','mal_croppe','Carton_brun','flou')) 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`=20442935 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','Teint_Dans_La_Masse','papier','kraft','plastique','mal_croppe','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20442935, 'sub_port_id': 20442943, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117962, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'plastique': {'main_port_id': 20442935, 'sub_port_id': 20442944, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117963, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'flou': {'main_port_id': 20442935, 'sub_port_id': 20442945, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117964, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'environnement': {'main_port_id': 20442935, 'sub_port_id': 20442946, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117965, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'metal': {'main_port_id': 20442935, 'sub_port_id': 20442947, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117966, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'autre_refus': {'main_port_id': 20442935, 'sub_port_id': 20442948, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117967, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'Carton_gris': {'main_port_id': 20442935, 'sub_port_id': 20442949, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117968, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'cartonnette': {'main_port_id': 20442935, 'sub_port_id': 20442950, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117969, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'mal_croppe': {'main_port_id': 20442935, 'sub_port_id': 20442951, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117970, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'papier': {'main_port_id': 20442935, 'sub_port_id': 20442952, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117971, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 20442935, 'sub_port_id': 20442953, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117972, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}, 'Carton_brun': {'main_port_id': 20442935, 'sub_port_id': 20442954, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117973, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20442943 , 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=20442935 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 (20442943) result : ((1336805416,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442944 , 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=20442935 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 (20442944) result : ((1336805283,), (1336805414,), (1336805517,), (1336805518,), (1336805519,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442945 , 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=20442935 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 (20442945) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442946 , 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=20442935 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 (20442946) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442947 , 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=20442935 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 (20442947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442948 , 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=20442935 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 (20442948) result : ((1336805190,), (1336805398,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442949 , 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=20442935 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 (20442949) result : ((1336805192,), (1336805193,), (1336805194,), (1336805278,), (1336805308,), (1336805403,), (1336805404,), (1336805405,), (1336805511,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442950 , 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=20442935 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 (20442950) result : ((1336805195,), (1336805196,), (1336805280,), (1336805309,), (1336805406,), (1336805407,), (1336805408,), (1336805409,), (1336805514,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442951 , 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=20442935 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 (20442951) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442952 , 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=20442935 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 (20442952) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442953 , 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=20442935 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 (20442953) result : ((1336805185,), (1336805307,), (1336805397,), (1336805508,), (1336805509,), (1336805510,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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 20442954 , 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=20442935 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 (20442954) result : ((1336805281,), (1336805282,), (1336805316,), (1336805317,), (1336805412,), (1336805515,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20442935) result : ((1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) 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`=20442935 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','Teint_Dans_La_Masse','papier','kraft','plastique','mal_croppe','Carton_brun','flou')) 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`=20442935 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','cartonnette','Carton_gris','metal','Teint_Dans_La_Masse','papier','kraft','plastique','mal_croppe','Carton_brun','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 20442935, 'sub_port_id': 20442955, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117974, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'plastique': {'main_port_id': 20442935, 'sub_port_id': 20442956, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117975, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'flou': {'main_port_id': 20442935, 'sub_port_id': 20442957, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117976, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'environnement': {'main_port_id': 20442935, 'sub_port_id': 20442958, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117977, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'metal': {'main_port_id': 20442935, 'sub_port_id': 20442959, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117978, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'autre_refus': {'main_port_id': 20442935, 'sub_port_id': 20442960, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117979, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'Carton_gris': {'main_port_id': 20442935, 'sub_port_id': 20442961, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117980, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'cartonnette': {'main_port_id': 20442935, 'sub_port_id': 20442962, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117981, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'mal_croppe': {'main_port_id': 20442935, 'sub_port_id': 20442963, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117982, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'papier': {'main_port_id': 20442935, 'sub_port_id': 20442964, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117983, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20442935, 'sub_port_id': 20442965, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117984, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}, 'Carton_brun': {'main_port_id': 20442935, 'sub_port_id': 20442966, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13117985, 'last_updated_at': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 2, 11, 12, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 2, 11, 12, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442957,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442953 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20442966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20442954 lien utilise dans velours : https://www.fotonower.com/velours/20442955,20442956,20442957,20442958,20442959,20442960,20442961,20442962,20442963,20442964,20442965,20442966?tags=kraft,plastique,flou,environnement,metal,autre_refus,Carton_gris,cartonnette,mal_croppe,papier,Teint_Dans_La_Masse,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20442935]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] map_info['map_portfolio_photo'] : {20442935: [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373, 1336805297, 1336805293, 1336805291, 1336805288, 1336805286, 1336805189, 1336805172, 1336805126, 1336805122, 1336804541, 1336804536, 1336804485, 1336804481, 1336804478, 1336804474, 1336804447, 1336804443, 1336804437, 1336804434, 1336804392, 1336804388, 1336804384, 1336804381, 1336804350, 1336804348, 1336804344, 1336804341, 1336804335, 1336804326, 1336804296, 1336804293, 1336804290]} final : False mtd_id 4302 list_pids : [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] Looping around the photos to save general results len do output : 1 /20442935. 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, '2576087') ('4302', '20442935', '1336805549', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20442935', "{'kraft': 20442943, 'plastique': 20442944, 'flou': 20442945, 'environnement': 20442946, 'metal': 20442947, 'autre_refus': 20442948, 'Carton_gris': 20442949, 'cartonnette': 20442950, 'mal_croppe': 20442951, 'papier': 20442952, 'Teint_Dans_La_Masse': 20442953, 'Carton_brun': 20442954}", None, None, None, None, '2576087'), ('4302', '20442935', '1336805549', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087')] time used for this insertion : 0.015461444854736328 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.464050054550171 time spend to save output : 0.015836000442504883 total time spend for step 1 : 1.4798860549926758 step2:final Tue Feb 11 12:11:01 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 (20442935) 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 20442935 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1336804296,1336804293,1336804290,1336804350,1336804348,1336804344,1336804341,1336804335,1336804326,1336804392,1336804388,1336804384,1336804381,1336804447,1336804443,1336804437,1336804434,1336804541,1336804536,1336804485,1336804481,1336804478,1336804474,1336805189,1336805172,1336805126,1336805122,1336805297,1336805293,1336805291,1336805288,1336805286,1336805402,1336805396,1336805385,1336805381,1336805379,1336805373,1336805489,1336805486,1336805483,1336805480,1336805549,1336805544,1336805533,1336805530,1336805527); 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([20442935]) Inside saveOutput : final : False verbose : True original output for save of step final : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} new output for save of step final : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] map_info['map_portfolio_photo'] : {20442935: [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373, 1336805297, 1336805293, 1336805291, 1336805288, 1336805286, 1336805189, 1336805172, 1336805126, 1336805122, 1336804541, 1336804536, 1336804485, 1336804481, 1336804478, 1336804474, 1336804447, 1336804443, 1336804437, 1336804434, 1336804392, 1336804388, 1336804384, 1336804381, 1336804350, 1336804348, 1336804344, 1336804341, 1336804335, 1336804326, 1336804296, 1336804293, 1336804290]} final : False mtd_id 4302 list_pids : [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] Looping around the photos to save general results len do output : 15 /1336805549.Didn't retrieve data . /1336805544.Didn't retrieve data . /1336805533.Didn't retrieve data . /1336805530.Didn't retrieve data . /1336805527.Didn't retrieve data . /1336805489.Didn't retrieve data . /1336805486.Didn't retrieve data . /1336805483.Didn't retrieve data . /1336805480.Didn't retrieve data . /1336805402.Didn't retrieve data . /1336805396.Didn't retrieve data . /1336805385.Didn't retrieve data . /1336805381.Didn't retrieve data . /1336805379.Didn't retrieve data . /1336805373.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, '2576087') ('4302', '20442935', '1336805549', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20442935', '1336805549', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805544', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805533', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805530', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805527', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805489', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805486', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805483', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805480', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805402', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805396', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805385', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805381', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805379', '0.029501976765217822', None, None, None, None, '2576087'), ('4302', '20442935', '1336805373', '0.029501976765217822', None, None, None, None, '2576087')] time used for this insertion : 0.01544642448425293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06690263748168945 time spend to save output : 0.016263484954833984 total time spend for step 2 : 0.08316612243652344 step3:velours_tree Tue Feb 11 12:11:01 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 : {20442935: [{'kraft': 20442943, 'plastique': 20442944, 'flou': 20442945, 'environnement': 20442946, 'metal': 20442947, 'autre_refus': 20442948, 'Carton_gris': 20442949, 'cartonnette': 20442950, 'mal_croppe': 20442951, 'papier': 20442952, 'Teint_Dans_La_Masse': 20442953, 'Carton_brun': 20442954}]} input_args_next_step : {20442935: ()} output_args : {20442935: [{'kraft': 20442943, 'plastique': 20442944, 'flou': 20442945, 'environnement': 20442946, 'metal': 20442947, 'autre_refus': 20442948, 'Carton_gris': 20442949, 'cartonnette': 20442950, 'mal_croppe': 20442951, 'papier': 20442952, 'Teint_Dans_La_Masse': 20442953, 'Carton_brun': 20442954}]} args : 20442935 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': 20442943, 'plastique': 20442944, 'flou': 20442945, 'environnement': 20442946, 'metal': 20442947, 'autre_refus': 20442948, 'Carton_gris': 20442949, 'cartonnette': 20442950, 'mal_croppe': 20442951, 'papier': 20442952, 'Teint_Dans_La_Masse': 20442953, 'Carton_brun': 20442954},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20442935) 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([20442935]) 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.34069156646728516 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.34075021743774414 step4:send_mail_cod Tue Feb 11 12:11:01 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 : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} input_args_next_step : {1336805549: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805549 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805544 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805533 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805530 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805527 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805489 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805486 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805483 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805480 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805402 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805396 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805385 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805381 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805379 depend.output_id : 0 input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ()} output_args : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',)} args : 1336805373 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 : {20442935: [{'kraft': 20442943, 'plastique': 20442944, 'flou': 20442945, 'environnement': 20442946, 'metal': 20442947, 'autre_refus': 20442948, 'Carton_gris': 20442949, 'cartonnette': 20442950, 'mal_croppe': 20442951, 'papier': 20442952, 'Teint_Dans_La_Masse': 20442953, 'Carton_brun': 20442954}]} input_args_next_step : {1336805549: ('0.029501976765217822',), 1336805544: ('0.029501976765217822',), 1336805533: ('0.029501976765217822',), 1336805530: ('0.029501976765217822',), 1336805527: ('0.029501976765217822',), 1336805489: ('0.029501976765217822',), 1336805486: ('0.029501976765217822',), 1336805483: ('0.029501976765217822',), 1336805480: ('0.029501976765217822',), 1336805402: ('0.029501976765217822',), 1336805396: ('0.029501976765217822',), 1336805385: ('0.029501976765217822',), 1336805381: ('0.029501976765217822',), 1336805379: ('0.029501976765217822',), 1336805373: ('0.029501976765217822',), 20442935: ()} output_args : {20442935: [{'kraft': 20442943, 'plastique': 20442944, 'flou': 20442945, 'environnement': 20442946, 'metal': 20442947, 'autre_refus': 20442948, 'Carton_gris': 20442949, 'cartonnette': 20442950, 'mal_croppe': 20442951, 'papier': 20442952, 'Teint_Dans_La_Masse': 20442953, 'Carton_brun': 20442954}]} args : 20442935 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.029501976765217822',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20442935) 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 (1336805549,1336805544,1336805533,1336805530,1336805527,1336805489,1336805486,1336805483,1336805480,1336805402,1336805396,1336805385,1336805381,1336805379,1336805373) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1336805373 begin to download photo : 1336805396 begin to download photo : 1336805486 begin to download photo : 1336805533 download finish for photo 1336805533 begin to download photo : 1336805544 download finish for photo 1336805396 begin to download photo : 1336805402 download finish for photo 1336805486 begin to download photo : 1336805489 download finish for photo 1336805373 begin to download photo : 1336805379 download finish for photo 1336805544 begin to download photo : 1336805549 download finish for photo 1336805489 begin to download photo : 1336805527 download finish for photo 1336805379 begin to download photo : 1336805381 download finish for photo 1336805402 begin to download photo : 1336805480 download finish for photo 1336805549 download finish for photo 1336805527 begin to download photo : 1336805530 download finish for photo 1336805480 begin to download photo : 1336805483 download finish for photo 1336805381 begin to download photo : 1336805385 download finish for photo 1336805483 download finish for photo 1336805530 download finish for photo 1336805385 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 : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P20442935_11-02-2025_12_11_02.pdf 20442943 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=20442943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805416: '1739272012_1999568_1336804392_e8e56eec1afbc1697cc5c9600510d423_rle_crop_3669899246_0.png'} change filename to text .imagette204429431739272262/ imagette204429431739272262/1739272012_1999568_1336804392_e8e56eec1afbc1697cc5c9600510d423_rle_crop_3669899246_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/236619bf32fafc55da4919cb05ff5a80_70141426.png imagette204429431739272262 20442944 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=20442944 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805283: '1739271951_1998211_1336804384_5ad4fd7ff19a2094a91bbc60168a45d8_rle_crop_3669898164_0.png', 1336805414: '1739272012_1999568_1336804326_8784a650e1a8aa5a7322866ae3b4f9ac_rle_crop_3669899327_0.png', 1336805517: '1739272114_2002739_1336805172_bb4dde7bed8859ed9e854156c8a65309_rle_crop_3669900255_0.png', 1336805518: '1739272114_2002739_1336805172_bb4dde7bed8859ed9e854156c8a65309_rle_crop_3669900240_0.png', 1336805519: '1739272114_2002739_1336805126_4ff23cce62feaffc99f2a6b93596b6c0_rle_crop_3669900259_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/6e63b463705ad93c8057ea90df7c74ab_68124075.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4a220bcd4f37ccd6b3b5a9aaadb3d66c_25667824.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/c064067c3ea7e302ff67b37c9109712e_13318016.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/de09881cce6372e629a89fc04e646211_93567506.png change filename to text .imagette204429441739272262/ imagette204429441739272262/1739272012_1999568_1336804326_8784a650e1a8aa5a7322866ae3b4f9ac_rle_crop_3669899327_0.png.png imagette204429441739272262/1739272114_2002739_1336805126_4ff23cce62feaffc99f2a6b93596b6c0_rle_crop_3669900259_0.png.png imagette204429441739272262/1739272114_2002739_1336805172_bb4dde7bed8859ed9e854156c8a65309_rle_crop_3669900255_0.png.png imagette204429441739272262/1739272114_2002739_1336805172_bb4dde7bed8859ed9e854156c8a65309_rle_crop_3669900240_0.png.png imagette204429441739272262/1739271951_1998211_1336804384_5ad4fd7ff19a2094a91bbc60168a45d8_rle_crop_3669898164_0.png.png imagette204429451739272262/ imagette204429471739272262/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/75ff7f38a27324561bb42dcca3f37e1b_74438996.png imagette204429441739272262 20442945 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=20442945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204429451739272262 20442947 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=20442947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204429471739272262 20442948 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=20442948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805190: '1739271931_1998001_1336804437_b1b88bbb3d66d708f287aed8aee6b903_rle_crop_3669897398_0.png', 1336805398: '1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899279_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f0405eb965e271a95a6b4f1def66ee64_45214520.png change filename to text .imagette204429481739272262/ imagette204429481739272262/1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899279_0.png.png imagette204429481739272262/1739271931_1998001_1336804437_b1b88bbb3d66d708f287aed8aee6b903_rle_crop_3669897398_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/67981671e2cd82373ed716b67951e21b_11053691.png imagette204429481739272262 20442950 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=20442950 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805195: '1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897404_0.png', 1336805196: '1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897403_0.png', 1336805280: '1739271951_1998211_1336804388_e97d21dfd87eccbc55f74200f2045583_rle_crop_3669898151_0.png', 1336805309: '1739271992_1999187_1336804350_8188d1819fc9a0bcfda8fec5ce06ca14_rle_crop_3669898792_0.png', 1336805406: '1739272012_1999568_1336804392_e8e56eec1afbc1697cc5c9600510d423_rle_crop_3669899249_0.png', 1336805407: '1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899282_0.png', 1336805408: '1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899285_0.png', 1336805409: '1739272012_1999568_1336804335_76ea7481d89dffa429e4ec191040dfc4_rle_crop_3669899306_0.png', 1336805514: '1739272114_2002739_1336805172_bb4dde7bed8859ed9e854156c8a65309_rle_crop_3669900241_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/dac716d32012971b060c8ec73200d316_90222424.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5358dd35a3febb307383e6abb850b6ce_73522452.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/545ac651fb5e7b1000250b20bec21898_40541661.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/5b85fcb735e23408c8cb7936a1fa702f_74764915.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/a3b28bdabbe40b3f78ac6726f96c4f30_2678081.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/d2459a205fe94f6ee11c7e41cd77fbf1_60539035.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/207f565d9e952a89ab64aa8d6ca24a7c_99212961.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/542ec342b65008900b6b4d6dba97ee92_28151772.png change filename to text .imagette204429501739272262/ imagette204429501739272262/1739272012_1999568_1336804392_e8e56eec1afbc1697cc5c9600510d423_rle_crop_3669899249_0.png.png imagette204429501739272262/1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899285_0.png.png imagette204429501739272262/1739271951_1998211_1336804388_e97d21dfd87eccbc55f74200f2045583_rle_crop_3669898151_0.png.png imagette204429501739272262/1739271992_1999187_1336804350_8188d1819fc9a0bcfda8fec5ce06ca14_rle_crop_3669898792_0.png.png imagette204429501739272262/1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899282_0.png.png imagette204429501739272262/1739272012_1999568_1336804335_76ea7481d89dffa429e4ec191040dfc4_rle_crop_3669899306_0.png.png imagette204429501739272262/1739272114_2002739_1336805172_bb4dde7bed8859ed9e854156c8a65309_rle_crop_3669900241_0.png.png imagette204429501739272262/1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897404_0.png.png imagette204429501739272262/1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897403_0.png.png imagette204429511739272263/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/de90ba48b635d20ad9689f754a38eb13_6301760.png imagette204429501739272262 20442951 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=20442951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette204429511739272263 20442949 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=20442949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805192: '1739271931_1998001_1336804443_83814dc93a19db2ba2880490caacfcb0_rle_crop_3669897382_0.png', 1336805193: '1739271931_1998001_1336804437_b1b88bbb3d66d708f287aed8aee6b903_rle_crop_3669897394_0.png', 1336805194: '1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897411_0.png', 1336805278: '1739271951_1998211_1336804384_5ad4fd7ff19a2094a91bbc60168a45d8_rle_crop_3669898169_0.png', 1336805308: '1739271992_1999187_1336804350_8188d1819fc9a0bcfda8fec5ce06ca14_rle_crop_3669898786_0.png', 1336805403: '1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899275_0.png', 1336805404: '1739272012_1999568_1336804341_dc6f773592befde12f5285f6cc66794c_rle_crop_3669899297_0.png', 1336805405: '1739272012_1999568_1336804335_76ea7481d89dffa429e4ec191040dfc4_rle_crop_3669899310_0.png', 1336805511: '1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900275_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8bee5e45eb14784416594f6ee295e594_40697642.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/07b1dc91d8f3ef9993932f9383d32325_69903158.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/9c958f22d1095cde5146a7bb2a01378e_27731946.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f3c54a5b3f8287f637f426cd248982f6_45799396.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/e37c3d02cac6d5579b6101ecb5cd8f6d_33394671.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/c0781c1b5b8470d85ae50d1f3bdc3be6_31528197.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/481fe8bf170c11efb6f6c33ec7daa0e2_95998685.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8569129113a012f1c7244fe8ccde31fe_55191374.png change filename to text .imagette204429491739272263/ imagette204429491739272263/1739272012_1999568_1336804341_dc6f773592befde12f5285f6cc66794c_rle_crop_3669899297_0.png.png imagette204429491739272263/1739272012_1999568_1336804344_4e18299d0d53da248ca9e5a23d1f6448_rle_crop_3669899275_0.png.png imagette204429491739272263/1739271951_1998211_1336804384_5ad4fd7ff19a2094a91bbc60168a45d8_rle_crop_3669898169_0.png.png imagette204429491739272263/1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900275_0.png.png imagette204429491739272263/1739272012_1999568_1336804335_76ea7481d89dffa429e4ec191040dfc4_rle_crop_3669899310_0.png.png imagette204429491739272263/1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897411_0.png.png imagette204429491739272263/1739271992_1999187_1336804350_8188d1819fc9a0bcfda8fec5ce06ca14_rle_crop_3669898786_0.png.png imagette204429491739272263/1739271931_1998001_1336804443_83814dc93a19db2ba2880490caacfcb0_rle_crop_3669897382_0.png.png imagette204429491739272263/1739271931_1998001_1336804437_b1b88bbb3d66d708f287aed8aee6b903_rle_crop_3669897394_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/f8b8989922c7b3d7aa96415d21eae9c8_66032462.png imagette204429491739272263 20442953 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=20442953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805185: '1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897412_0.png', 1336805307: '1739271992_1999187_1336804290_13fbedf65775ac62ea9ef08c4f89f160_rle_crop_3669898855_0.png', 1336805397: '1739272012_1999568_1336804348_c2b9ed8e94db1815968539b6c02b5ed0_rle_crop_3669899264_0.png', 1336805508: '1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900281_0.png', 1336805509: '1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900277_0.png', 1336805510: '1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900280_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/248a4d411c46030236bc8ea26fb7f212_78752057.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/db0bd821d89d0f08c14831f0cb011662_19455988.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/94a0c1d43007f68fdddfa5c3aa858092_56392888.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/cefa26469e15373684b03d0d3b41489b_20346750.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/7281ebbdcbbea86e98672b4c630833fa_73647112.png change filename to text .imagette204429531739272263/ imagette204429531739272263/1739271931_1998001_1336804434_86ee5bf0c041bfa4648926ec316110c9_rle_crop_3669897412_0.png.png imagette204429531739272263/1739271992_1999187_1336804290_13fbedf65775ac62ea9ef08c4f89f160_rle_crop_3669898855_0.png.png imagette204429531739272263/1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900277_0.png.png imagette204429531739272263/1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900280_0.png.png imagette204429531739272263/1739272012_1999568_1336804348_c2b9ed8e94db1815968539b6c02b5ed0_rle_crop_3669899264_0.png.png imagette204429531739272263/1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900281_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/bae6ac2344c2247ecc3fc6c423578e08_68264350.png imagette204429531739272263 20442954 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=20442954 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1336805281: '1739271951_1998211_1336804384_5ad4fd7ff19a2094a91bbc60168a45d8_rle_crop_3669898165_0.png', 1336805282: '1739271951_1998211_1336804381_742c7ebf4eeaa46c6ef0c8456eefea7f_rle_crop_3669898178_0.png', 1336805316: '1739271992_1999187_1336804350_8188d1819fc9a0bcfda8fec5ce06ca14_rle_crop_3669898796_0.png', 1336805317: '1739271992_1999187_1336804290_13fbedf65775ac62ea9ef08c4f89f160_rle_crop_3669898859_0.png', 1336805412: '1739272012_1999568_1336804348_c2b9ed8e94db1815968539b6c02b5ed0_rle_crop_3669899269_0.png', 1336805515: '1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900279_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/4fbd36182d8d4b89077ecfb7ed58f23c_9473945.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/385fa112c85e7d241da5987592a87bb6_66866156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/23f69194e9c9e7b7c6c3fe073d42112c_54692121.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8ebb02b3afb6eb3438dac374020cd095_66303035.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/ccb7dc69181c494bd441e673329c04fb_65330949.png change filename to text .imagette204429541739272263/ imagette204429541739272263/1739271951_1998211_1336804381_742c7ebf4eeaa46c6ef0c8456eefea7f_rle_crop_3669898178_0.png.png imagette204429541739272263/1739272114_2002739_1336805122_459a5dcce03992cda4ed08bca12c80c4_rle_crop_3669900279_0.png.png imagette204429541739272263/1739271951_1998211_1336804384_5ad4fd7ff19a2094a91bbc60168a45d8_rle_crop_3669898165_0.png.png imagette204429541739272263/1739272012_1999568_1336804348_c2b9ed8e94db1815968539b6c02b5ed0_rle_crop_3669899269_0.png.png imagette204429541739272263/1739271992_1999187_1336804290_13fbedf65775ac62ea9ef08c4f89f160_rle_crop_3669898859_0.png.png imagette204429541739272263/1739271992_1999187_1336804350_8188d1819fc9a0bcfda8fec5ce06ca14_rle_crop_3669898796_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/efe0b53bc82a26a849a6956cb14e7b47_95634970.png imagette204429541739272263 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20442935 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20442955,20442956,20442957,20442958,20442959,20442960,20442961,20442962,20442963,20442964,20442965,20442966?tags=kraft,plastique,flou,environnement,metal,autre_refus,Carton_gris,cartonnette,mal_croppe,papier,Teint_Dans_La_Masse,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1336805549] : ('0.029501976765217822',) no score found for photo 1336805549 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805544] : ('0.029501976765217822',) no score found for photo 1336805544 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805533] : ('0.029501976765217822',) no score found for photo 1336805533 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805530] : ('0.029501976765217822',) no score found for photo 1336805530 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805527] : ('0.029501976765217822',) no score found for photo 1336805527 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805489] : ('0.029501976765217822',) no score found for photo 1336805489 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805486] : ('0.029501976765217822',) no score found for photo 1336805486 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805483] : ('0.029501976765217822',) no score found for photo 1336805483 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805480] : ('0.029501976765217822',) no score found for photo 1336805480 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805402] : ('0.029501976765217822',) no score found for photo 1336805402 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805396] : ('0.029501976765217822',) no score found for photo 1336805396 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805385] : ('0.029501976765217822',) no score found for photo 1336805385 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805381] : ('0.029501976765217822',) no score found for photo 1336805381 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805379] : ('0.029501976765217822',) no score found for photo 1336805379 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com args[1336805373] : ('0.029501976765217822',) no score found for photo 1336805373 apple ('0.029501976765217822',) We are sending mail with results at report@fotonower.com refus_total : 0.029501976765217822 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=20442935 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_P20442935_11-02-2025_12_11_02.pdf results_Auto_P20442935_11-02-2025_12_11_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442935_11-02-2025_12_11_02.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','20442935','results_Auto_P20442935_11-02-2025_12_11_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442935_11-02-2025_12_11_02.pdf','pdf','','0.23','0.029501976765217822') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20442935]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] map_info['map_portfolio_photo'] : {20442935: [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373, 1336805297, 1336805293, 1336805291, 1336805288, 1336805286, 1336805189, 1336805172, 1336805126, 1336805122, 1336804541, 1336804536, 1336804485, 1336804481, 1336804478, 1336804474, 1336804447, 1336804443, 1336804437, 1336804434, 1336804392, 1336804388, 1336804384, 1336804381, 1336804350, 1336804348, 1336804344, 1336804341, 1336804335, 1336804326, 1336804296, 1336804293, 1336804290]} final : False mtd_id 4302 list_pids : [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] 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, '2576087') ('4302', '20442935', '1336805549', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20442935', '1336805549', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087')] time used for this insertion : 0.013737678527832031 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.9058737754821777 time spend to save output : 0.014054536819458008 total time spend for step 4 : 3.9199283123016357 step5:split_time_score Tue Feb 11 12:11:05 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 : ['20442935'] 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 : [('20442935',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20442935) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1336805533: {'path': 'temp/1739272261_2455648_1336805533_fe49b9389efcb8f890a8bdc4e164d978.jpg', 'extension': 'jpg'}, 1336805544: {'path': 'temp/1739272261_2455648_1336805544_d0ed8e6ef3993fdf27686c956d3d6c50.jpg', 'extension': 'jpg'}, 1336805549: {'path': 'temp/1739272261_2455648_1336805549_6d8843f3f1c6b87ac238aa8faa7ba535.jpg', 'extension': 'jpg'}, 1336805396: {'path': 'temp/1739272261_2455648_1336805396_1375001b21f72539d255ba27a9070684.jpg', 'extension': 'jpg'}, 1336805402: {'path': 'temp/1739272261_2455648_1336805402_ac196c1681bf4fa34b7085edc5408596.jpg', 'extension': 'jpg'}, 1336805480: {'path': 'temp/1739272261_2455648_1336805480_3ae51d618a27a964678192ee19dbaf10.jpg', 'extension': 'jpg'}, 1336805483: {'path': 'temp/1739272261_2455648_1336805483_55dd4ae3f0ca21f4e8ff8fbe2dff6f05.jpg', 'extension': 'jpg'}, 1336805486: {'path': 'temp/1739272261_2455648_1336805486_06ecf982e45cc7f0f5ba2e305af192a6.jpg', 'extension': 'jpg'}, 1336805489: {'path': 'temp/1739272261_2455648_1336805489_4322827e718ad908605123fb22ed4531.jpg', 'extension': 'jpg'}, 1336805527: {'path': 'temp/1739272261_2455648_1336805527_6b807b16340bcdda1e32ffbaf78d7a76.jpg', 'extension': 'jpg'}, 1336805530: {'path': 'temp/1739272261_2455648_1336805530_1696a27e08a27c547a328cfee6b40e07.jpg', 'extension': 'jpg'}, 1336805373: {'path': 'temp/1739272261_2455648_1336805373_0053f7bfa27aa6e713dd7bda41a14f2c.jpg', 'extension': 'jpg'}, 1336805379: {'path': 'temp/1739272261_2455648_1336805379_e13eea13369cd081ce997f75b9e8e281.jpg', 'extension': 'jpg'}, 1336805381: {'path': 'temp/1739272261_2455648_1336805381_67d52de5df0784fb1fc971d0e6b36a38.jpg', 'extension': 'jpg'}, 1336805385: {'path': 'temp/1739272261_2455648_1336805385_626ca395ee5de0ecd50fac109aaabe32.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 = 20442935; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20442935 group by h (('12', 47),) 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=20442935 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 (20442935) 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 (20442935) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11022025 20442935 Nombre de photos uploadées : 47 / 23040 (0%) 11022025 20442935 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 11022025 20442935 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1336804296, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/bb0e9d4efcddcf7e182d543e83c9ca47.jpg', 'username': None, 'uploaded_at': 1739271667, 'text': 'image_11022025_12_00_04_10142.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336804293, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/bdcd7250735041c868a4302c90e9b504.jpg', 'username': None, 'uploaded_at': 1739271667, 'text': 'image_11022025_12_00_33_10134.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336804290, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/13fbedf65775ac62ea9ef08c4f89f160.jpg', 'username': None, 'uploaded_at': 1739271667, 'text': 'image_11022025_12_00_43_10135.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1336804350, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/11/8188d1819fc9a0bcfda8fec5ce06ca14.jpg', 'username': None, 'uploaded_at': 1739271728, 'text': 'image_11022025_12_00_54_10135.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.5497207641601562e-05 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022084712982177734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20442935, '2025-02-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1593540,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023308515548706055 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= 1593540 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602477, 'mtr_portfolio_id': 20441089, 'dashboard_result_id': 8817298, '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_P20441089_11-02-2025_11_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20441120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20441121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20441122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20441123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20441124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20441125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20441126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20441127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20441128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20441129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20441130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20441131, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602477, 'mtr_portfolio_id': 20442024, 'dashboard_result_id': 8817299, '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_P20442024_11-02-2025_11_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20442051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442060, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602477, 'mtr_portfolio_id': 20442566, 'dashboard_result_id': 8817300, '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_P20442566_11-02-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20442569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442580, 'pht': 3726}}"}, {'dashboat_entry_day': 1593540, 'dashboard_run_id': 1602477, 'mtr_portfolio_id': 20442935, 'dashboard_result_id': 8817301, '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_P20442935_11-02-2025_12_09_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20442947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442954, '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 = 20441089 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': 2575922, 'mtr_portfolio_id': 20441089, 'created_at': datetime.datetime(2025, 2, 11, 11, 33, 1), 'result': '0.03391815450464705', 'result_long': None, 'result_double': None}] Qualite : 0.03391815450464705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20441089 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441089_11-02-2025_11_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20441089 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_P20441089_11-02-2025_11_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20441120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20441121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20441122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20441123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20441124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20441125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20441126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20441127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20441128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20441129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20441130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20441131, 'pht': 3726}}" where mtr_portfolio_id = 20441089 and dashboard_run_id = 1602477 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`=20441089 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8817298, 0.03391815450464705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20441089_11-02-2025_11_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20441120, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20441121, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20441122, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20441123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20441124, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20441125, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20441126, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20441127, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20441128, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20441129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20441130, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20441131, '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 = 20442024 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': 2576011, 'mtr_portfolio_id': 20442024, 'created_at': datetime.datetime(2025, 2, 11, 11, 49), 'result': '0.04272643267552371', 'result_long': None, 'result_double': None}] Qualite : 0.04272643267552371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20442024 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442024_11-02-2025_11_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20442024 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_P20442024_11-02-2025_11_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20442051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442060, 'pht': 3726}}" where mtr_portfolio_id = 20442024 and dashboard_run_id = 1602477 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`=20442024 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8817299, 0.04272643267552371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442024_11-02-2025_11_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442049, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20442051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442053, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442055, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442057, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442058, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442060, '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 = 20442566 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': 2576047, 'mtr_portfolio_id': 20442566, 'created_at': datetime.datetime(2025, 2, 11, 12, 2, 58), 'result': '0.04638577998370643', 'result_long': None, 'result_double': None}] Qualite : 0.04638577998370643 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20442566 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442566_11-02-2025_12_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20442566 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_P20442566_11-02-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20442569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442580, 'pht': 3726}}" where mtr_portfolio_id = 20442566 and dashboard_run_id = 1602477 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`=20442566 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8817300, 0.04638577998370643, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442566_11-02-2025_12_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20442569, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442571, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442574, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442575, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442580, '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 = 20442935 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': 2576087, 'mtr_portfolio_id': 20442935, 'created_at': datetime.datetime(2025, 2, 11, 12, 11, 1), 'result': '0.029501976765217822', 'result_long': None, 'result_double': None}] Qualite : 0.029501976765217822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20442935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442935_11-02-2025_12_11_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20442935 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_P20442935_11-02-2025_12_11_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20442947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442954, 'pht': 3726}}" where mtr_portfolio_id = 20442935 and dashboard_run_id = 1602477 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`=20442935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8817301, 0.029501976765217822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20442935_11-02-2025_12_11_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20442943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20442944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20442945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20442946, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20442947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20442948, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20442949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20442950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20442951, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20442952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20442953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20442954, '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 (20441089,20442024,20442566,20442935) result : ((1336790577,), (1336790579,), (1336790581,), (1336790678,), (1336790685,), (1336790688,), (1336791036,), (1336791037,), (1336791039,), (1336791041,), (1336791081,), (1336791082,), (1336791084,), (1336791086,), (1336791088,), (1336791115,), (1336791120,), (1336791129,), (1336791216,), (1336791218,), (1336791221,), (1336791224,), (1336791246,), (1336791248,), (1336791251,), (1336791254,), (1336791256,), (1336791340,), (1336791344,), (1336791346,), (1336791439,), (1336791460,), (1336791661,), (1336791662,), (1336791664,), (1336791665,), (1336792020,), (1336792026,), (1336792031,), (1336792033,), (1336792244,), (1336792245,), (1336792247,), (1336792255,), (1336792262,), (1336792347,), (1336792349,), (1336792351,), (1336792354,), (1336792395,), (1336792398,), (1336792403,), (1336792408,), (1336792410,), (1336792453,), (1336792456,), (1336792458,), (1336792459,), (1336792495,), (1336792488,), (1336792492,), (1336792546,), (1336792550,), (1336792554,), (1336792575,), (1336792621,), (1336793445,), (1336794311,), (1336794403,), (1336794472,), (1336794503,), (1336794506,), (1336794510,), (1336794514,), (1336794756,), (1336794886,), (1336794939,), (1336795008,), (1336795408,), (1336795414,), (1336795417,), (1336795474,), (1336796777,), (1336796780,), (1336796782,), (1336797195,), (1336797224,), (1336797232,), (1336797908,), (1336797912,), (1336797926,), (1336798162,), (1336798165,), (1336798168,), (1336798278,), (1336798375,), (1336798466,), (1336798518,), (1336798541,), (1336798544,), (1336798548,), (1336798552,), (1336798619,), (1336799489,), (1336799408,), (1336799484,), (1336799487,), (1336799612,), (1336799683,), (1336799764,), (1336799789,), (1336799968,), (1336799973,), (1336799976,), (1336799979,), (1336799981,), (1336801008,), (1336801010,), (1336801018,), (1336801023,), (1336801238,), (1336801240,), (1336801243,), (1336801246,), (1336801248,), (1336801250,), (1336801272,), (1336802796,), (1336802798,), (1336803256,), (1336803278,), (1336803281,), (1336803283,), (1336803287,), (1336803355,), (1336803509,), (1336803510,), (1336803513,), (1336803872,), (1336803946,), (1336803959,), (1336803970,), (1336804220,), (1336804225,), (1336804230,), (1336804236,), (1336804242,), (1336804249,), (1336804260,), (1336804263,), (1336804268,), (1336804273,), (1336804278,), (1336804300,), (1336804290,), (1336804293,), (1336804296,), (1336804326,), (1336804335,), (1336804341,), (1336804344,), (1336804348,), (1336804350,), (1336804381,), (1336804384,), (1336804388,), (1336804392,), (1336804434,), (1336804437,), (1336804443,), (1336804447,), (1336804474,), (1336804478,), (1336804481,), (1336804485,), (1336804536,), (1336804541,), (1336805122,), (1336805126,), (1336805172,), (1336805189,), (1336805286,), (1336805288,), (1336805291,), (1336805293,), (1336805297,), (1336805373,), (1336805379,), (1336805381,), (1336805385,), (1336805396,), (1336805402,), (1336805480,), (1336805483,), (1336805486,), (1336805489,), (1336805527,), (1336805530,), (1336805533,), (1336805544,), (1336805549,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11022025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20442935]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] map_info['map_portfolio_photo'] : {20442935: [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373, 1336805297, 1336805293, 1336805291, 1336805288, 1336805286, 1336805189, 1336805172, 1336805126, 1336805122, 1336804541, 1336804536, 1336804485, 1336804481, 1336804478, 1336804474, 1336804447, 1336804443, 1336804437, 1336804434, 1336804392, 1336804388, 1336804384, 1336804381, 1336804350, 1336804348, 1336804344, 1336804341, 1336804335, 1336804326, 1336804296, 1336804293, 1336804290]} final : True mtd_id 4302 list_pids : [1336805549, 1336805544, 1336805533, 1336805530, 1336805527, 1336805489, 1336805486, 1336805483, 1336805480, 1336805402, 1336805396, 1336805385, 1336805381, 1336805379, 1336805373] Looping around the photos to save general results len do output : 1 /20442935Didn'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, '2576087') ('4302', '20442935', '1336805549', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087') ('4302', None, None, None, None, None, None, None, '2576087') ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20442935', 'None', None, None, None, None, '2576087'), ('4302', '20442935', '1336805549', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805544', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805533', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805530', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805527', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805489', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805486', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805483', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805480', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805402', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805396', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805385', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805381', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805379', None, None, None, None, None, '2576087'), ('4302', '20442935', '1336805373', None, None, None, None, None, '2576087')] time used for this insertion : 0.0146942138671875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33998918533325195 time spend to save output : 0.01499032974243164 total time spend for step 5 : 0.3549795150756836 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 (2576087) 2.21user 2.38system 0:10.33elapsed 44%CPU (0avgtext+0avgdata 159948maxresident)k 3152inputs+13376outputs (20major+76833minor)pagefaults 0swaps