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 : 2401091 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 (2735678) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2735678) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173731 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2735678'] with mtr_portfolio_ids : ['22173731'] and first list_photo_ids : [] new path : /proc/2401091/ Name: python3 Umask: 0002 State: R (running) Tgid: 2401091 Ngid: 0 Pid: 2401091 PPid: 2401090 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2401091 NSpid: 2401091 NSpgid: 2395964 NSsid: 2395964 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98232 kB VmRSS: 98232 kB RssAnon: 59796 kB RssFile: 38436 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2401091', 'Ngid': '0', 'Pid': '2401091', 'PPid': '2401090', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2401091', 'NSpid': '2401091', 'NSpgid': '2395964', 'NSsid': '2395964', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98232 kB', 'VmRSS': '98232 kB', 'RssAnon': '59796 kB', 'RssFile': '38436 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '53', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2401091', '1106932', '0', '1106932', '865680', '98232', b'', 'marlene', '2735678') 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 (22173731) 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 (2735678 ) ) 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 (22173731) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350829046, 'portfolio_id': 22173731}, {'photo_id': 1350829044, 'portfolio_id': 22173731}, {'photo_id': 1350829003, 'portfolio_id': 22173731}, {'photo_id': 1350828955, 'portfolio_id': 22173731}, {'photo_id': 1350828952, 'portfolio_id': 22173731}, {'photo_id': 1350828948, 'portfolio_id': 22173731}, {'photo_id': 1350828945, 'portfolio_id': 22173731}, {'photo_id': 1350828940, 'portfolio_id': 22173731}, {'photo_id': 1350828935, 'portfolio_id': 22173731}, {'photo_id': 1350828890, 'portfolio_id': 22173731}, {'photo_id': 1350828883, 'portfolio_id': 22173731}, {'photo_id': 1350828876, 'portfolio_id': 22173731}, {'photo_id': 1350828853, 'portfolio_id': 22173731}, {'photo_id': 1350828838, 'portfolio_id': 22173731}, {'photo_id': 1350828831, 'portfolio_id': 22173731}, {'photo_id': 1350828785, 'portfolio_id': 22173731}, {'photo_id': 1350828781, 'portfolio_id': 22173731}, {'photo_id': 1350828779, 'portfolio_id': 22173731}, {'photo_id': 1350828777, 'portfolio_id': 22173731}, {'photo_id': 1350828731, 'portfolio_id': 22173731}, {'photo_id': 1350828726, 'portfolio_id': 22173731}, {'photo_id': 1350828653, 'portfolio_id': 22173731}, {'photo_id': 1350828642, 'portfolio_id': 22173731}, {'photo_id': 1350828637, 'portfolio_id': 22173731}, {'photo_id': 1350828631, 'portfolio_id': 22173731}, {'photo_id': 1350828594, 'portfolio_id': 22173731}, {'photo_id': 1350828587, 'portfolio_id': 22173731}, {'photo_id': 1350828584, 'portfolio_id': 22173731}] map_portfolio_id_photo_id: {22173731: [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} ##### 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.014730453491210938 #### 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 Wed Apr 9 18:36: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 (22173731) 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 : 22173731 get user id for portfolio 22173731 get sub ptf for main ptf 22173731, type 3726 and hashtags ['cartonnette', 'autre_refus', 'kraft', 'metal', 'mal_croppe', 'Carton_gris', 'plastique', 'Carton_brun', 'Teint_Dans_La_Masse', 'flou', 'environnement', 'papier'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','kraft','metal','mal_croppe','Carton_gris','plastique','Carton_brun','Teint_Dans_La_Masse','flou','environnement','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173731 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','kraft','metal','mal_croppe','Carton_gris','plastique','Carton_brun','Teint_Dans_La_Masse','flou','environnement','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22173731, 'sub_port_id': 22173782, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649143, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'mal_croppe': {'main_port_id': 22173731, 'sub_port_id': 22173783, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649144, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'cartonnette': {'main_port_id': 22173731, 'sub_port_id': 22173784, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649145, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'Carton_brun': {'main_port_id': 22173731, 'sub_port_id': 22173785, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649146, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'autre_refus': {'main_port_id': 22173731, 'sub_port_id': 22173786, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649147, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'flou': {'main_port_id': 22173731, 'sub_port_id': 22173787, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649148, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'kraft': {'main_port_id': 22173731, 'sub_port_id': 22173788, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649149, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 22173731, 'sub_port_id': 22173789, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649150, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'environnement': {'main_port_id': 22173731, 'sub_port_id': 22173790, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649151, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'Carton_gris': {'main_port_id': 22173731, 'sub_port_id': 22173791, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649152, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'metal': {'main_port_id': 22173731, 'sub_port_id': 22173792, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649153, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}, 'plastique': {'main_port_id': 22173731, 'sub_port_id': 22173793, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649154, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22173782 , 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=22173731 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 (22173782) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173783 , 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=22173731 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 (22173783) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173784 , 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=22173731 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 (22173784) result : ((1350828877,), (1350829002,), (1350829079,), (1350829080,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173785 , 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=22173731 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 (22173785) result : ((1350828878,), (1350829084,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173786 , 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=22173731 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 (22173786) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173787 , 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=22173731 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 (22173787) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173788 , 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=22173731 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 (22173788) result : ((1350829087,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173789 , 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=22173731 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 (22173789) result : ((1350829068,), (1350829069,), (1350829070,), (1350829071,), (1350829072,), (1350829073,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173790 , 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=22173731 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 (22173790) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173791 , 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=22173731 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 (22173791) result : ((1350828873,), (1350828997,), (1350828998,), (1350829075,), (1350829076,), (1350829077,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173792 , 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=22173731 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 (22173792) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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 22173793 , 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=22173731 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 (22173793) result : ((1350828881,), (1350829085,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22173731) result : ((1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) 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`=22173731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','kraft','metal','mal_croppe','Carton_gris','plastique','Carton_brun','Teint_Dans_La_Masse','flou','environnement','papier')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22173731 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','kraft','metal','mal_croppe','Carton_gris','plastique','Carton_brun','Teint_Dans_La_Masse','flou','environnement','papier')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22173731, 'sub_port_id': 22173794, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649155, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'mal_croppe': {'main_port_id': 22173731, 'sub_port_id': 22173795, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649156, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'cartonnette': {'main_port_id': 22173731, 'sub_port_id': 22173796, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649157, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'Carton_brun': {'main_port_id': 22173731, 'sub_port_id': 22173797, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649158, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'autre_refus': {'main_port_id': 22173731, 'sub_port_id': 22173798, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649159, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'flou': {'main_port_id': 22173731, 'sub_port_id': 22173799, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649160, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'kraft': {'main_port_id': 22173731, 'sub_port_id': 22173800, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649161, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22173731, 'sub_port_id': 22173801, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649162, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'environnement': {'main_port_id': 22173731, 'sub_port_id': 22173802, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649163, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'Carton_gris': {'main_port_id': 22173731, 'sub_port_id': 22173803, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649164, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'metal': {'main_port_id': 22173731, 'sub_port_id': 22173804, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649165, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}, 'plastique': {'main_port_id': 22173731, 'sub_port_id': 22173805, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14649166, 'last_updated_at': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 18, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 18, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173787 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173800,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173788 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173801,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173790 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173803,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173791 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173804,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173792 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22173805,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22173793 lien utilise dans velours : https://www.fotonower.com/velours/22173794,22173795,22173796,22173797,22173798,22173799,22173800,22173801,22173802,22173803,22173804,22173805?tags=papier,mal_croppe,cartonnette,Carton_brun,autre_refus,flou,kraft,Teint_Dans_La_Masse,environnement,Carton_gris,metal,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22173731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] map_info['map_portfolio_photo'] : {22173731: [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : False mtd_id 4302 list_pids : [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] Looping around the photos to save general results len do output : 1 /22173731. 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, '2735678') ('4302', '22173731', '1350829046', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678') 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, '22173731', "{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}", None, None, None, None, '2735678'), ('4302', '22173731', '1350829046', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678')] time used for this insertion : 0.01501917839050293 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.560044765472412 time spend to save output : 0.015373945236206055 total time spend for step 1 : 1.5754187107086182 step2:final Wed Apr 9 18:37:00 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 (22173731) 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 22173731 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350828594,1350828587,1350828584,1350828731,1350828726,1350828653,1350828642,1350828637,1350828631,1350828785,1350828781,1350828779,1350828777,1350828890,1350828883,1350828876,1350828853,1350828838,1350828831,1350828955,1350828952,1350828948,1350828945,1350828940,1350828935,1350829046,1350829044,1350829003); 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([22173731]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} new output for save of step final : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] map_info['map_portfolio_photo'] : {22173731: [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : False mtd_id 4302 list_pids : [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] Looping around the photos to save general results len do output : 15 /1350829046.Didn't retrieve data . /1350829044.Didn't retrieve data . /1350829003.Didn't retrieve data . /1350828955.Didn't retrieve data . /1350828952.Didn't retrieve data . /1350828948.Didn't retrieve data . /1350828945.Didn't retrieve data . /1350828940.Didn't retrieve data . /1350828935.Didn't retrieve data . /1350828890.Didn't retrieve data . /1350828883.Didn't retrieve data . /1350828876.Didn't retrieve data . /1350828853.Didn't retrieve data . /1350828838.Didn't retrieve data . /1350828831.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, '2735678') ('4302', '22173731', '1350829046', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678') 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', '22173731', '1350829046', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350829044', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350829003', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828955', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828952', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828948', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828945', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828940', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828935', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828890', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828883', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828876', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828853', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828838', '0.036042431085602386', None, None, None, None, '2735678'), ('4302', '22173731', '1350828831', '0.036042431085602386', None, None, None, None, '2735678')] time used for this insertion : 0.0175478458404541 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1681509017944336 time spend to save output : 0.018312692642211914 total time spend for step 2 : 0.1864635944366455 step3:velours_tree Wed Apr 9 18:37:00 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 : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} input_args_next_step : {22173731: ()} output_args : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} args : 22173731 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22173731) 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([22173731]) 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.5268573760986328 time spend to save output : 6.222724914550781e-05 total time spend for step 3 : 0.5269196033477783 step4:send_mail_cod Wed Apr 9 18:37: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 : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} input_args_next_step : {1350829046: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350829046 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350829044 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350829003 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828955 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828952 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828948 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828945 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828940 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828935 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828890 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828883 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828876 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828853 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828838 depend.output_id : 0 input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ()} output_args : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',)} args : 1350828831 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 : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} input_args_next_step : {1350829046: ('0.036042431085602386',), 1350829044: ('0.036042431085602386',), 1350829003: ('0.036042431085602386',), 1350828955: ('0.036042431085602386',), 1350828952: ('0.036042431085602386',), 1350828948: ('0.036042431085602386',), 1350828945: ('0.036042431085602386',), 1350828940: ('0.036042431085602386',), 1350828935: ('0.036042431085602386',), 1350828890: ('0.036042431085602386',), 1350828883: ('0.036042431085602386',), 1350828876: ('0.036042431085602386',), 1350828853: ('0.036042431085602386',), 1350828838: ('0.036042431085602386',), 1350828831: ('0.036042431085602386',), 22173731: ()} output_args : {22173731: [{'papier': 22173782, 'mal_croppe': 22173783, 'cartonnette': 22173784, 'Carton_brun': 22173785, 'autre_refus': 22173786, 'flou': 22173787, 'kraft': 22173788, 'Teint_Dans_La_Masse': 22173789, 'environnement': 22173790, 'Carton_gris': 22173791, 'metal': 22173792, 'plastique': 22173793}]} args : 22173731 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.036042431085602386',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22173731) 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 (1350829046,1350829044,1350829003,1350828955,1350828952,1350828948,1350828945,1350828940,1350828935,1350828890,1350828883,1350828876,1350828853,1350828838,1350828831) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350828831 begin to download photo : 1350828883 begin to download photo : 1350828945 begin to download photo : 1350829003 download finish for photo 1350828831 begin to download photo : 1350828838 download finish for photo 1350828945 begin to download photo : 1350828948 download finish for photo 1350828883 begin to download photo : 1350828890 download finish for photo 1350829003 begin to download photo : 1350829044 download finish for photo 1350828890 begin to download photo : 1350828935 download finish for photo 1350828838 begin to download photo : 1350828853 download finish for photo 1350829044 begin to download photo : 1350829046 download finish for photo 1350828948 begin to download photo : 1350828952 download finish for photo 1350828935 begin to download photo : 1350828940 download finish for photo 1350829046 download finish for photo 1350828853 begin to download photo : 1350828876 download finish for photo 1350828952 begin to download photo : 1350828955 download finish for photo 1350828940 download finish for photo 1350828955 download finish for photo 1350828876 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221737831744216621/ length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22173731_09-04-2025_18_37_01.pdf 22173783 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=22173783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737831744216621 22173784 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=22173784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828877: '1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845959_0.png', 1350829002: '1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846867_0.png', 1350829079: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847560_0.png', 1350829080: '1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/104cce7682d92789484a4e0a846d5f5d_24357666.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a378da10834b9b7fb3c36c72eac8d4c3_44263554.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/24783a3885706f62ba13d95b6935fa07_84804381.png change filename to text .imagette221737841744216621/ imagette221737841744216621/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847560_0.png.png imagette221737841744216621/1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847570_0.png.png imagette221737841744216621/1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846867_0.png.png imagette221737841744216621/1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845959_0.png.png imagette221737861744216622/ imagette221737871744216622/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/52e9a3095dc98ade9f4cd9812cd54ce2_35426316.png imagette221737841744216621 22173786 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=22173786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737861744216622 22173787 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=22173787 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737871744216622 22173788 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=22173788 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350829087: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847563_0.png'} change filename to text .imagette221737881744216622/ imagette221737881744216622/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847563_0.png.png imagette221737921744216622/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d15c3c0a1a9baa5453c0efd633c5efae_19496443.png imagette221737881744216622 22173792 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=22173792 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221737921744216622 22173793 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=22173793 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828881: '1744216394_3008664_1350828587_1fda92231508d06690506fcb3ae9d346_rle_crop_3751845935_0.png', 1350829085: '1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3e06819efe83f0d8d7bf93e1b7d3b252_44010733.png change filename to text .imagette221737931744216622/ imagette221737931744216622/1744216394_3008664_1350828587_1fda92231508d06690506fcb3ae9d346_rle_crop_3751845935_0.png.png imagette221737931744216622/1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847274_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/0cd557b49f2ed46a3888a7c6c05f71f8_96036565.png imagette221737931744216622 22173785 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=22173785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828878: '1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845967_0.png', 1350829084: '1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847278_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/79253e6c17154121fd8da1660d3fc4e5_62782162.png change filename to text .imagette221737851744216622/ imagette221737851744216622/1744216532_3010434_1350828653_5b663a75097c32d06f4ff21319115e3b_rle_crop_3751847278_0.png.png imagette221737851744216622/1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845967_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a292128174f570cf3a611e463d3dab71_33340375.png imagette221737851744216622 22173789 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=22173789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350829068: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847562_0.png', 1350829069: '1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847572_0.png', 1350829070: '1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847576_0.png', 1350829071: '1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847603_0.png', 1350829072: '1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847599_0.png', 1350829073: '1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847601_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/825ae40481253585353e9db6c0ea60c1_23195402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/4252a305aadfd515031ad9a594b71b5a_11816872.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/5f2e4ba208ca1f6a2f1379142959a06c_88544125.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fc136449184b110d593bb2d28394240a_63347729.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/75f482a5b6c26dd72e6ef5dab1154e5b_64584428.png change filename to text .imagette221737891744216622/ imagette221737891744216622/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847562_0.png.png imagette221737891744216622/1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847599_0.png.png imagette221737891744216622/1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847576_0.png.png imagette221737891744216622/1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847601_0.png.png imagette221737891744216622/1744216532_3010434_1350828631_0f8a34741ad0b2ddfd34488c77ba3dc2_rle_crop_3751847603_0.png.png imagette221737891744216622/1744216532_3010434_1350828637_30e1c1358862b6c5635488b760d406e8_rle_crop_3751847572_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/fc185daaeac92d285313d4331bcaa993_37763654.png imagette221737891744216622 22173791 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=22173791 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350828873: '1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845958_0.png', 1350828997: '1744216514_3010227_1350828781_0e944b8d047ce95699ef3e5b52ac848b_rle_crop_3751846690_0.png', 1350828998: '1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846869_0.png', 1350829075: '1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847262_0.png', 1350829076: '1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847267_0.png', 1350829077: '1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847559_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/b9e09830e738da32a76705c5a0b918cc_73326388.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/18147a6e18e57376fa420e6167946f4f_42638746.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/17bdaee8bbd825cbc422c1ebc206fc3f_95670289.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/9bc54c4aea2607bff139014216b06cf5_12603832.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/dfdd00ca181639b695c5a4006690d3c0_51123997.png change filename to text .imagette221737911744216622/ imagette221737911744216622/1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847262_0.png.png imagette221737911744216622/1744216514_3010227_1350828777_af7f113d17628a2bcb4354ea1077a9dd_rle_crop_3751846869_0.png.png imagette221737911744216622/1744216514_3010227_1350828781_0e944b8d047ce95699ef3e5b52ac848b_rle_crop_3751846690_0.png.png imagette221737911744216622/1744216532_3010434_1350828642_2d37ab599dfe229cd2c9d13b900ea891_rle_crop_3751847559_0.png.png imagette221737911744216622/1744216394_3008664_1350828584_bcec5265a40ff734f6e6d3cb0a3b1012_rle_crop_3751845958_0.png.png imagette221737911744216622/1744216532_3010434_1350828726_226665dfa884bf85c8b275184417051f_rle_crop_3751847267_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1e1bf35a01eab86fb68166943a730b5d_40857663.png imagette221737911744216622 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22173731 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22173794,22173795,22173796,22173797,22173798,22173799,22173800,22173801,22173802,22173803,22173804,22173805?tags=papier,mal_croppe,cartonnette,Carton_brun,autre_refus,flou,kraft,Teint_Dans_La_Masse,environnement,Carton_gris,metal,plastique your option no_mail is active, we will not send the real mail to your client args[1350829046] : ('0.036042431085602386',) no score found for photo 1350829046 We are sending mail with results at report@fotonower.com args[1350829044] : ('0.036042431085602386',) no score found for photo 1350829044 We are sending mail with results at report@fotonower.com args[1350829003] : ('0.036042431085602386',) no score found for photo 1350829003 We are sending mail with results at report@fotonower.com args[1350828955] : ('0.036042431085602386',) no score found for photo 1350828955 We are sending mail with results at report@fotonower.com args[1350828952] : ('0.036042431085602386',) no score found for photo 1350828952 We are sending mail with results at report@fotonower.com args[1350828948] : ('0.036042431085602386',) no score found for photo 1350828948 We are sending mail with results at report@fotonower.com args[1350828945] : ('0.036042431085602386',) no score found for photo 1350828945 We are sending mail with results at report@fotonower.com args[1350828940] : ('0.036042431085602386',) no score found for photo 1350828940 We are sending mail with results at report@fotonower.com args[1350828935] : ('0.036042431085602386',) no score found for photo 1350828935 We are sending mail with results at report@fotonower.com args[1350828890] : ('0.036042431085602386',) no score found for photo 1350828890 We are sending mail with results at report@fotonower.com args[1350828883] : ('0.036042431085602386',) no score found for photo 1350828883 We are sending mail with results at report@fotonower.com args[1350828876] : ('0.036042431085602386',) no score found for photo 1350828876 We are sending mail with results at report@fotonower.com args[1350828853] : ('0.036042431085602386',) no score found for photo 1350828853 We are sending mail with results at report@fotonower.com args[1350828838] : ('0.036042431085602386',) no score found for photo 1350828838 We are sending mail with results at report@fotonower.com args[1350828831] : ('0.036042431085602386',) no score found for photo 1350828831 We are sending mail with results at report@fotonower.com refus_total : 0.036042431085602386 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=22173731 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_P22173731_09-04-2025_18_37_01.pdf results_Auto_P22173731_09-04-2025_18_37_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_37_01.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','22173731','results_Auto_P22173731_09-04-2025_18_37_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_37_01.pdf','pdf','','0.19','0.036042431085602386') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22173731]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] map_info['map_portfolio_photo'] : {22173731: [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : False mtd_id 4302 list_pids : [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] 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, '2735678') ('4302', '22173731', '1350829046', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678') 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', '22173731', '1350829046', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678')] time used for this insertion : 0.015433788299560547 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.1928882598876953 time spend to save output : 0.015853404998779297 total time spend for step 4 : 3.2087416648864746 step5:split_time_score Wed Apr 9 18:37:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22173731'] 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 : [('22173731',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22173731) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350829003: {'path': 'temp/1744216621_2401091_1350829003_8822f4b93e9aa1363bd031eb745a77bf.jpg', 'extension': 'jpg'}, 1350829044: {'path': 'temp/1744216621_2401091_1350829044_591f8db0f47a67c34a38ca44d31cbf72.jpg', 'extension': 'jpg'}, 1350829046: {'path': 'temp/1744216621_2401091_1350829046_66c14dba537f188c4b29a25274b6aa8f.jpg', 'extension': 'jpg'}, 1350828883: {'path': 'temp/1744216621_2401091_1350828883_6a2ca9fa742551d160cf0c10126aceec.jpg', 'extension': 'jpg'}, 1350828890: {'path': 'temp/1744216621_2401091_1350828890_50c63c5965bd3cbcdda3ab9c068bc662.jpg', 'extension': 'jpg'}, 1350828935: {'path': 'temp/1744216621_2401091_1350828935_f82fdd8494c3d88d2a595aee53b08aec.jpg', 'extension': 'jpg'}, 1350828940: {'path': 'temp/1744216621_2401091_1350828940_c39518c5e6b8e58e45d1ff0826559b4d.jpg', 'extension': 'jpg'}, 1350828945: {'path': 'temp/1744216621_2401091_1350828945_b88ac88406ce17b1f3a59188a33ae38a.jpg', 'extension': 'jpg'}, 1350828948: {'path': 'temp/1744216621_2401091_1350828948_65fca5a012ad92d21b2d4e16084b296b.jpg', 'extension': 'jpg'}, 1350828952: {'path': 'temp/1744216621_2401091_1350828952_cf02a5abf5ba06a52102d036de7e5365.jpg', 'extension': 'jpg'}, 1350828955: {'path': 'temp/1744216621_2401091_1350828955_e077fbe4122c1dda521e12b4f4f4a6f6.jpg', 'extension': 'jpg'}, 1350828831: {'path': 'temp/1744216621_2401091_1350828831_8a06306305904bce5e41cc1621175b6b.jpg', 'extension': 'jpg'}, 1350828838: {'path': 'temp/1744216621_2401091_1350828838_658eeac4f61cfe26450c8bcd50dcd36a.jpg', 'extension': 'jpg'}, 1350828853: {'path': 'temp/1744216621_2401091_1350828853_9b6472e85179e921287ca3c915f24168.jpg', 'extension': 'jpg'}, 1350828876: {'path': 'temp/1744216621_2401091_1350828876_abaa42dc9b629b5f2943ba95a39a1485.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 = 22173731; (('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 = 22173731 group by h (('18', 28),) 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=22173731 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 (22173731) 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 (22173731) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09042025 22173731 Nombre de photos uploadées : 28 / 23040 (0%) 09042025 22173731 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 09042025 22173731 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1350828594, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a735e95135d1f145b73501b85bf270ac.jpg', 'username': None, 'uploaded_at': 1744216267, 'text': 'image_09042025_18_30_24_10134.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350828587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1fda92231508d06690506fcb3ae9d346.jpg', 'username': None, 'uploaded_at': 1744216267, 'text': 'image_09042025_18_30_34_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350828584, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/bcec5265a40ff734f6e6d3cb0a3b1012.jpg', 'username': None, 'uploaded_at': 1744216267, 'text': 'image_09042025_18_30_44_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350828731, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/91dd290d45adf05a0177d73144b45014.jpg', 'username': None, 'uploaded_at': 1744216327, 'text': 'image_09042025_18_30_53_9126.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.430511474609375e-05 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026454925537109375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22173731, '2025-04-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725367,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028191804885864258 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= 1725367 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734708, 'mtr_portfolio_id': 22172422, 'dashboard_result_id': 9952298, '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_P22172422_09-04-2025_18_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172500, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734708, 'mtr_portfolio_id': 22173126, 'dashboard_result_id': 9952299, '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_P22173126_09-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173154, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734708, 'mtr_portfolio_id': 22173731, 'dashboard_result_id': 9952300, '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_P22173731_09-04-2025_18_35_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22173782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173793, '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 = 22172422 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': 2735576, 'mtr_portfolio_id': 22172422, 'created_at': datetime.datetime(2025, 4, 9, 18, 18, 57), 'result': '0.05798453404432712', 'result_long': None, 'result_double': None}] Qualite : 0.05798453404432712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22172422 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172422_09-04-2025_18_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22172422 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_P22172422_09-04-2025_18_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172500, 'pht': 3726}}" where mtr_portfolio_id = 22172422 and dashboard_run_id = 1734708 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`=22172422 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9952298, 0.05798453404432712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22172422_09-04-2025_18_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22172489, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22172490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22172491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22172492, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22172493, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22172494, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22172495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22172496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22172497, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22172498, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22172499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22172500, '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 = 22173126 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': 2735622, 'mtr_portfolio_id': 22173126, 'created_at': datetime.datetime(2025, 4, 9, 18, 32, 57), 'result': '0.05029595177268822', 'result_long': None, 'result_double': None}] Qualite : 0.05029595177268822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173126 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173126_09-04-2025_18_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173126 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_P22173126_09-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173154, 'pht': 3726}}" where mtr_portfolio_id = 22173126 and dashboard_run_id = 1734708 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`=22173126 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9952299, 0.05029595177268822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173126_09-04-2025_18_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173143, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22173144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173146, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173147, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173151, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173153, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173154, '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 = 22173731 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': 2735678, 'mtr_portfolio_id': 22173731, 'created_at': datetime.datetime(2025, 4, 9, 18, 37), 'result': '0.036042431085602386', 'result_long': None, 'result_double': None}] Qualite : 0.036042431085602386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22173731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_37_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22173731 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_P22173731_09-04-2025_18_37_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22173782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173793, 'pht': 3726}}" where mtr_portfolio_id = 22173731 and dashboard_run_id = 1734708 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`=22173731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9952300, 0.036042431085602386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22173731_09-04-2025_18_37_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22173782, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22173783, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22173784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22173785, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22173786, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22173787, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22173788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22173789, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22173790, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22173791, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22173792, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22173793, '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 (22172422,22173126,22173731) result : ((1350822544,), (1350822547,), (1350822555,), (1350822560,), (1350822620,), (1350822626,), (1350822635,), (1350822641,), (1350822684,), (1350822700,), (1350823188,), (1350823257,), (1350823382,), (1350823436,), (1350823502,), (1350823604,), (1350823608,), (1350823611,), (1350823614,), (1350823616,), (1350823619,), (1350823842,), (1350823883,), (1350823895,), (1350824136,), (1350824165,), (1350824191,), (1350824196,), (1350824203,), (1350824216,), (1350824283,), (1350824286,), (1350824287,), (1350824291,), (1350824299,), (1350824454,), (1350824486,), (1350824508,), (1350824530,), (1350824560,), (1350824930,), (1350824952,), (1350824958,), (1350824959,), (1350824963,), (1350824968,), (1350825045,), (1350825047,), (1350825050,), (1350825053,), (1350825078,), (1350825326,), (1350825344,), (1350825347,), (1350825359,), (1350825370,), (1350825374,), (1350825539,), (1350825576,), (1350825581,), (1350825608,), (1350825693,), (1350825975,), (1350825982,), (1350826111,), (1350826073,), (1350826078,), (1350826084,), (1350826088,), (1350826102,), (1350826243,), (1350826251,), (1350826257,), (1350826262,), (1350826267,), (1350826273,), (1350826501,), (1350826573,), (1350826651,), (1350826841,), (1350826846,), (1350826851,), (1350826868,), (1350826872,), (1350827052,), (1350827073,), (1350827117,), (1350827121,), (1350827128,), (1350827187,), (1350827252,), (1350827270,), (1350827274,), (1350827331,), (1350827334,), (1350827366,), (1350827384,), (1350827387,), (1350827400,), (1350827432,), (1350827436,), (1350827488,), (1350827514,), (1350827544,), (1350827561,), (1350827608,), (1350827612,), (1350827615,), (1350827653,), (1350827659,), (1350827663,), (1350827665,), (1350827673,), (1350827677,), (1350827723,), (1350827730,), (1350827741,), (1350827744,), (1350827753,), (1350827757,), (1350827863,), (1350827893,), (1350827903,), (1350828051,), (1350828060,), (1350828066,), (1350828087,), (1350828113,), (1350828317,), (1350828321,), (1350828327,), (1350828354,), (1350828372,), (1350828510,), (1350828519,), (1350828523,), (1350828529,), (1350828532,), (1350828598,), (1350828584,), (1350828587,), (1350828594,), (1350828631,), (1350828637,), (1350828642,), (1350828653,), (1350828726,), (1350828731,), (1350828777,), (1350828779,), (1350828781,), (1350828785,), (1350828831,), (1350828838,), (1350828853,), (1350828876,), (1350828883,), (1350828890,), (1350828935,), (1350828940,), (1350828945,), (1350828948,), (1350828952,), (1350828955,), (1350829003,), (1350829044,), (1350829046,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22173731]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] map_info['map_portfolio_photo'] : {22173731: [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831, 1350828785, 1350828781, 1350828779, 1350828777, 1350828731, 1350828726, 1350828653, 1350828642, 1350828637, 1350828631, 1350828594, 1350828587, 1350828584]} final : True mtd_id 4302 list_pids : [1350829046, 1350829044, 1350829003, 1350828955, 1350828952, 1350828948, 1350828945, 1350828940, 1350828935, 1350828890, 1350828883, 1350828876, 1350828853, 1350828838, 1350828831] Looping around the photos to save general results len do output : 1 /22173731Didn'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, '2735678') ('4302', '22173731', '1350829046', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678') ('4302', None, None, None, None, None, None, None, '2735678') ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678') 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, '22173731', 'None', None, None, None, None, '2735678'), ('4302', '22173731', '1350829046', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829044', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350829003', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828955', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828952', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828948', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828945', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828940', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828935', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828890', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828883', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828876', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828853', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828838', None, None, None, None, None, '2735678'), ('4302', '22173731', '1350828831', None, None, None, None, None, '2735678')] time used for this insertion : 0.01456594467163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3049800395965576 time spend to save output : 0.014867544174194336 total time spend for step 5 : 0.31984758377075195 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 (2735678) 2.45user 2.03system 0:08.90elapsed 50%CPU (0avgtext+0avgdata 159728maxresident)k 59608inputs+11120outputs (197major+77182minor)pagefaults 0swaps