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 : 1404779 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 (2618287) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2618287) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864042 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2618287'] with mtr_portfolio_ids : ['20864042'] and first list_photo_ids : [] new path : /proc/1404779/ Name: python3 Umask: 0002 State: R (running) Tgid: 1404779 Ngid: 0 Pid: 1404779 PPid: 1404775 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1404779 NSpid: 1404779 NSpgid: 1387471 NSsid: 1387471 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99820 kB VmRSS: 99820 kB RssAnon: 59796 kB RssFile: 40024 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 544 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 44 nonvoluntary_ctxt_switches: 198 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1404779', 'Ngid': '0', 'Pid': '1404779', 'PPid': '1404775', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1404779', 'NSpid': '1404779', 'NSpgid': '1387471', 'NSsid': '1387471', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99820 kB', 'VmRSS': '99820 kB', 'RssAnon': '59796 kB', 'RssFile': '40024 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '544 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '44', 'nonvoluntary_ctxt_switches': '198'} ('datou_batch_current', '1404779', '1106932', '0', '1106932', '865680', '99820', b'', 'marlene', '2618287') 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 (20864042) 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 (2618287 ) ) 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 (20864042) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339832957, 'portfolio_id': 20864042}, {'photo_id': 1339832887, 'portfolio_id': 20864042}, {'photo_id': 1339832872, 'portfolio_id': 20864042}, {'photo_id': 1339832270, 'portfolio_id': 20864042}, {'photo_id': 1339832269, 'portfolio_id': 20864042}, {'photo_id': 1339832267, 'portfolio_id': 20864042}, {'photo_id': 1339832266, 'portfolio_id': 20864042}, {'photo_id': 1339832264, 'portfolio_id': 20864042}, {'photo_id': 1339832247, 'portfolio_id': 20864042}, {'photo_id': 1339832205, 'portfolio_id': 20864042}, {'photo_id': 1339832130, 'portfolio_id': 20864042}, {'photo_id': 1339832051, 'portfolio_id': 20864042}, {'photo_id': 1339831972, 'portfolio_id': 20864042}, {'photo_id': 1339831894, 'portfolio_id': 20864042}, {'photo_id': 1339831301, 'portfolio_id': 20864042}, {'photo_id': 1339831298, 'portfolio_id': 20864042}, {'photo_id': 1339831295, 'portfolio_id': 20864042}, {'photo_id': 1339831292, 'portfolio_id': 20864042}, {'photo_id': 1339831277, 'portfolio_id': 20864042}, {'photo_id': 1339831275, 'portfolio_id': 20864042}, {'photo_id': 1339831272, 'portfolio_id': 20864042}, {'photo_id': 1339831196, 'portfolio_id': 20864042}, {'photo_id': 1339831194, 'portfolio_id': 20864042}, {'photo_id': 1339831022, 'portfolio_id': 20864042}, {'photo_id': 1339831018, 'portfolio_id': 20864042}, {'photo_id': 1339830588, 'portfolio_id': 20864042}, {'photo_id': 1339830537, 'portfolio_id': 20864042}, {'photo_id': 1339830523, 'portfolio_id': 20864042}, {'photo_id': 1339830520, 'portfolio_id': 20864042}] map_portfolio_id_photo_id: {20864042: [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894, 1339831301, 1339831298, 1339831295, 1339831292, 1339831277, 1339831275, 1339831272, 1339831196, 1339831194, 1339831022, 1339831018, 1339830588, 1339830537, 1339830523, 1339830520]} ##### 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.01627373695373535 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Feb 27 02:00:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20864042) 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 : 20864042 get user id for portfolio 20864042 get sub ptf for main ptf 20864042, type 3726 and hashtags ['cartonnette', 'autre_refus', 'environnement', 'mal_croppe', 'Carton_gris', 'papier', 'metal', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'plastique', 'kraft'] 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`=20864042 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','environnement','mal_croppe','Carton_gris','papier','metal','flou','Teint_Dans_La_Masse','Carton_brun','plastique','kraft')) 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`=20864042 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','environnement','mal_croppe','Carton_gris','papier','metal','flou','Teint_Dans_La_Masse','Carton_brun','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20864042, 'sub_port_id': 20864067, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496013, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'autre_refus': {'main_port_id': 20864042, 'sub_port_id': 20864068, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496014, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'kraft': {'main_port_id': 20864042, 'sub_port_id': 20864069, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496015, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'plastique': {'main_port_id': 20864042, 'sub_port_id': 20864070, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496016, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'environnement': {'main_port_id': 20864042, 'sub_port_id': 20864071, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496017, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'cartonnette': {'main_port_id': 20864042, 'sub_port_id': 20864072, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496018, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'flou': {'main_port_id': 20864042, 'sub_port_id': 20864073, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496019, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 20864042, 'sub_port_id': 20864074, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496020, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'Carton_gris': {'main_port_id': 20864042, 'sub_port_id': 20864075, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496021, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'metal': {'main_port_id': 20864042, 'sub_port_id': 20864076, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496022, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'mal_croppe': {'main_port_id': 20864042, 'sub_port_id': 20864077, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496023, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}, 'papier': {'main_port_id': 20864042, 'sub_port_id': 20864078, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496024, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 54, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20864067 , 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=20864042 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 (20864067) result : ((1339831151,), (1339831152,), (1339831514,), (1339831924,), (1339832963,), (1339832964,), (1339832965,), (1339833054,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864068 , 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=20864042 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 (20864068) result : ((1339831267,), (1339831494,), (1339831496,), (1339831909,), (1339832927,), (1339832928,), (1339832929,), (1339833299,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864069 , 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=20864042 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 (20864069) result : ((1339833302,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864070 , 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=20864042 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 (20864070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864071 , 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=20864042 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 (20864071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864072 , 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=20864042 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 (20864072) result : ((1339831148,), (1339831268,), (1339832955,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864073 , 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=20864042 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 (20864073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864074 , 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=20864042 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 (20864074) result : ((1339831266,), (1339831476,), (1339831477,), (1339831891,), (1339831893,), (1339832878,), (1339832879,), (1339832881,), (1339832882,), (1339832884,), (1339832959,), (1339833039,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864075 , 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=20864042 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 (20864075) result : ((1339831147,), (1339831271,), (1339832951,), (1339832962,), (1339833300,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864076 , 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=20864042 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 (20864076) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864077 , 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=20864042 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 (20864077) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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 20864078 , 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=20864042 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 (20864078) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20864042) result : ((1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) 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`=20864042 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','environnement','mal_croppe','Carton_gris','papier','metal','flou','Teint_Dans_La_Masse','Carton_brun','plastique','kraft')) 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`=20864042 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','environnement','mal_croppe','Carton_gris','papier','metal','flou','Teint_Dans_La_Masse','Carton_brun','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 20864042, 'sub_port_id': 20864079, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496025, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'autre_refus': {'main_port_id': 20864042, 'sub_port_id': 20864080, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496026, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'kraft': {'main_port_id': 20864042, 'sub_port_id': 20864081, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496027, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'plastique': {'main_port_id': 20864042, 'sub_port_id': 20864082, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496028, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'environnement': {'main_port_id': 20864042, 'sub_port_id': 20864083, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496029, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'cartonnette': {'main_port_id': 20864042, 'sub_port_id': 20864084, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496030, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'flou': {'main_port_id': 20864042, 'sub_port_id': 20864085, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496031, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 20864042, 'sub_port_id': 20864086, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496032, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'Carton_gris': {'main_port_id': 20864042, 'sub_port_id': 20864087, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496033, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'metal': {'main_port_id': 20864042, 'sub_port_id': 20864088, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496034, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'mal_croppe': {'main_port_id': 20864042, 'sub_port_id': 20864089, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496035, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 55, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}, 'papier': {'main_port_id': 20864042, 'sub_port_id': 20864090, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13496036, 'last_updated_at': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_desc': datetime.datetime(2025, 2, 27, 1, 57, 27), 'last_updated_at_asc': datetime.datetime(2025, 2, 27, 1, 55, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864076 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864077 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20864090,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20864078 lien utilise dans velours : https://www.fotonower.com/velours/20864079,20864080,20864081,20864082,20864083,20864084,20864085,20864086,20864087,20864088,20864089,20864090?tags=Carton_brun,autre_refus,kraft,plastique,environnement,cartonnette,flou,Teint_Dans_La_Masse,Carton_gris,metal,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20864042]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] map_info['map_portfolio_photo'] : {20864042: [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894, 1339831301, 1339831298, 1339831295, 1339831292, 1339831277, 1339831275, 1339831272, 1339831196, 1339831194, 1339831022, 1339831018, 1339830588, 1339830537, 1339830523, 1339830520]} final : False mtd_id 4302 list_pids : [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] Looping around the photos to save general results len do output : 1 /20864042. 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, '2618287') ('4302', '20864042', '1339832957', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20864042', "{'Carton_brun': 20864067, 'autre_refus': 20864068, 'kraft': 20864069, 'plastique': 20864070, 'environnement': 20864071, 'cartonnette': 20864072, 'flou': 20864073, 'Teint_Dans_La_Masse': 20864074, 'Carton_gris': 20864075, 'metal': 20864076, 'mal_croppe': 20864077, 'papier': 20864078}", None, None, None, None, '2618287'), ('4302', '20864042', '1339832957', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287')] time used for this insertion : 0.039808034896850586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9187829494476318 time spend to save output : 0.040154457092285156 total time spend for step 1 : 1.958937406539917 step2:final Thu Feb 27 02:00:31 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 (20864042) 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 20864042 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339830537,1339830523,1339830520,1339830588,1339831022,1339831018,1339831196,1339831194,1339831277,1339831275,1339831272,1339831301,1339831298,1339831295,1339831292,1339832247,1339832205,1339832130,1339832051,1339831972,1339831894,1339832270,1339832269,1339832267,1339832266,1339832264,1339832957,1339832887,1339832872); 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([20864042]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} new output for save of step final : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] map_info['map_portfolio_photo'] : {20864042: [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894, 1339831301, 1339831298, 1339831295, 1339831292, 1339831277, 1339831275, 1339831272, 1339831196, 1339831194, 1339831022, 1339831018, 1339830588, 1339830537, 1339830523, 1339830520]} final : False mtd_id 4302 list_pids : [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] Looping around the photos to save general results len do output : 14 /1339832957.Didn't retrieve data . /1339832887.Didn't retrieve data . /1339832872.Didn't retrieve data . /1339832270.Didn't retrieve data . /1339832269.Didn't retrieve data . /1339832267.Didn't retrieve data . /1339832266.Didn't retrieve data . /1339832264.Didn't retrieve data . /1339832247.Didn't retrieve data . /1339832205.Didn't retrieve data . /1339832130.Didn't retrieve data . /1339832051.Didn't retrieve data . /1339831972.Didn't retrieve data . /1339831894.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, '2618287') ('4302', '20864042', '1339832957', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20864042', '1339832957', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832887', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832872', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832270', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832269', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832267', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832266', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832264', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832247', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832205', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832130', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339832051', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339831972', '0.09718667398929781', None, None, None, None, '2618287'), ('4302', '20864042', '1339831894', '0.09718667398929781', None, None, None, None, '2618287')] time used for this insertion : 0.021533966064453125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06933259963989258 time spend to save output : 0.022390127182006836 total time spend for step 2 : 0.09172272682189941 step3:velours_tree Thu Feb 27 02:00:32 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 : {20864042: [{'Carton_brun': 20864067, 'autre_refus': 20864068, 'kraft': 20864069, 'plastique': 20864070, 'environnement': 20864071, 'cartonnette': 20864072, 'flou': 20864073, 'Teint_Dans_La_Masse': 20864074, 'Carton_gris': 20864075, 'metal': 20864076, 'mal_croppe': 20864077, 'papier': 20864078}]} input_args_next_step : {20864042: ()} output_args : {20864042: [{'Carton_brun': 20864067, 'autre_refus': 20864068, 'kraft': 20864069, 'plastique': 20864070, 'environnement': 20864071, 'cartonnette': 20864072, 'flou': 20864073, 'Teint_Dans_La_Masse': 20864074, 'Carton_gris': 20864075, 'metal': 20864076, 'mal_croppe': 20864077, 'papier': 20864078}]} args : 20864042 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 : ({'Carton_brun': 20864067, 'autre_refus': 20864068, 'kraft': 20864069, 'plastique': 20864070, 'environnement': 20864071, 'cartonnette': 20864072, 'flou': 20864073, 'Teint_Dans_La_Masse': 20864074, 'Carton_gris': 20864075, 'metal': 20864076, 'mal_croppe': 20864077, 'papier': 20864078},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20864042) 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([20864042]) 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.2968912124633789 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.29694056510925293 step4:send_mail_cod Thu Feb 27 02:00:32 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 : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} input_args_next_step : {1339832957: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832957 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832887 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832872 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832270 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832269 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832267 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832266 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832264 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832247 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832205 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832130 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339832051 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339831972 depend.output_id : 0 input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ()} output_args : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',)} args : 1339831894 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 : {20864042: [{'Carton_brun': 20864067, 'autre_refus': 20864068, 'kraft': 20864069, 'plastique': 20864070, 'environnement': 20864071, 'cartonnette': 20864072, 'flou': 20864073, 'Teint_Dans_La_Masse': 20864074, 'Carton_gris': 20864075, 'metal': 20864076, 'mal_croppe': 20864077, 'papier': 20864078}]} input_args_next_step : {1339832957: ('0.09718667398929781',), 1339832887: ('0.09718667398929781',), 1339832872: ('0.09718667398929781',), 1339832270: ('0.09718667398929781',), 1339832269: ('0.09718667398929781',), 1339832267: ('0.09718667398929781',), 1339832266: ('0.09718667398929781',), 1339832264: ('0.09718667398929781',), 1339832247: ('0.09718667398929781',), 1339832205: ('0.09718667398929781',), 1339832130: ('0.09718667398929781',), 1339832051: ('0.09718667398929781',), 1339831972: ('0.09718667398929781',), 1339831894: ('0.09718667398929781',), 20864042: ()} output_args : {20864042: [{'Carton_brun': 20864067, 'autre_refus': 20864068, 'kraft': 20864069, 'plastique': 20864070, 'environnement': 20864071, 'cartonnette': 20864072, 'flou': 20864073, 'Teint_Dans_La_Masse': 20864074, 'Carton_gris': 20864075, 'metal': 20864076, 'mal_croppe': 20864077, 'papier': 20864078}]} args : 20864042 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.09718667398929781',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20864042) 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 (1339832957,1339832887,1339832872,1339832270,1339832269,1339832267,1339832266,1339832264,1339832247,1339832205,1339832130,1339832051,1339831972,1339831894) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339831894 begin to download photo : 1339832130 begin to download photo : 1339832264 begin to download photo : 1339832269 begin to download photo : 1339832887 download finish for photo 1339832264 begin to download photo : 1339832266 download finish for photo 1339832269 begin to download photo : 1339832270 download finish for photo 1339832130 begin to download photo : 1339832205 download finish for photo 1339832887 begin to download photo : 1339832957 download finish for photo 1339831894 begin to download photo : 1339831972 download finish for photo 1339832270 begin to download photo : 1339832872 download finish for photo 1339832266 begin to download photo : 1339832267 download finish for photo 1339831972 begin to download photo : 1339832051 download finish for photo 1339832957 download finish for photo 1339832205 begin to download photo : 1339832247 download finish for photo 1339832872 download finish for photo 1339832267 download finish for photo 1339832051 download finish for photo 1339832247 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P20864042_27-02-2025_02_00_32.pdf 20864068 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=20864068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339831267: '1740617633_332834_1339831196_01cafab402d5828b0eaa0456453cea46_rle_crop_3688156583_0.png', 1339831494: '1740617751_334067_1339831277_03dd96de050e3821a722a5aa3fa86513_rle_crop_3688156687_0.png', 1339831496: '1740617751_334067_1339831194_e344aa6cd5f478a17d09b97479822d13_rle_crop_3688156698_0.png', 1339831909: '1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158284_0.png', 1339832927: '1740617873_335290_1339832205_f4ac8d6350f08c4d6700ebeb87110283_rle_crop_3688159333_0.png', 1339832928: '1740617873_335290_1339831972_61be7c6e06ba1f09c552f0b16cad75e5_rle_crop_3688159371_0.png', 1339832929: '1740617873_335290_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592_rle_crop_3688159388_0.png', 1339833299: '1740617990_336558_1339832887_64124864a210a1db3c887cddb330781f_rle_crop_3688159538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/614d01b743aad5aafe1968eafae52cf0_55773610.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/972877bf2c187f73aea5ad329f5cce34_25745200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a3bc906e3e121043ad55b57a7f763083_12505583.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/46cd4f32259a910802604f9d9feff85e_47222814.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/52142c51d7ff45be76e2df47f7b8f233_29448326.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/bcd892b49ec9d98ecdc60b6ea6ad695b_44312558.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/258ad623b5f920d18ea4479a6c72d6a5_99272497.png change filename to text .imagette208640681740618032/ imagette208640681740618032/1740617633_332834_1339831196_01cafab402d5828b0eaa0456453cea46_rle_crop_3688156583_0.png.png imagette208640681740618032/1740617873_335290_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592_rle_crop_3688159388_0.png.png imagette208640681740618032/1740617990_336558_1339832887_64124864a210a1db3c887cddb330781f_rle_crop_3688159538_0.png.png imagette208640681740618032/1740617751_334067_1339831194_e344aa6cd5f478a17d09b97479822d13_rle_crop_3688156698_0.png.png imagette208640681740618032/1740617873_335290_1339832205_f4ac8d6350f08c4d6700ebeb87110283_rle_crop_3688159333_0.png.png imagette208640681740618032/1740617751_334067_1339831277_03dd96de050e3821a722a5aa3fa86513_rle_crop_3688156687_0.png.png imagette208640681740618032/1740617873_335290_1339831972_61be7c6e06ba1f09c552f0b16cad75e5_rle_crop_3688159371_0.png.png imagette208640681740618032/1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158284_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a3df7aca929ea2e12e303f408bb0356e_71550128.png imagette208640681740618032 20864069 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=20864069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339833302: '1740617990_336558_1339832887_64124864a210a1db3c887cddb330781f_rle_crop_3688159544_0.png'} change filename to text .imagette208640691740618033/ imagette208640691740618033/1740617990_336558_1339832887_64124864a210a1db3c887cddb330781f_rle_crop_3688159544_0.png.png imagette208640701740618033/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/e279061c29a6b0f7c8daec17d1a07fa3_70081912.png imagette208640691740618033 20864070 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=20864070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208640701740618033 20864072 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=20864072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339831148: '1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153517_0.png', 1339831268: '1740617633_332834_1339831018_eef347311ed20235506a32c8c583c335_rle_crop_3688156596_0.png', 1339832955: '1740617873_335290_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592_rle_crop_3688159396_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/8c19faa2738ec478f877b20214b4ae85_51853602.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/338ea37a9f469b22792ac26fe7c7ea6b_99006458.png change filename to text .imagette208640721740618033/ imagette208640721740618033/1740617873_335290_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592_rle_crop_3688159396_0.png.png imagette208640721740618033/1740617633_332834_1339831018_eef347311ed20235506a32c8c583c335_rle_crop_3688156596_0.png.png imagette208640721740618033/1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153517_0.png.png imagette208640731740618033/ imagette208640761740618033/ imagette208640771740618033/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1004583f4819aad9b3ec3bec61e0467b_92796943.png imagette208640721740618033 20864073 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=20864073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208640731740618033 20864076 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=20864076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208640761740618033 20864077 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=20864077 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208640771740618033 20864067 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=20864067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339831151: '1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153521_0.png', 1339831152: '1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153520_0.png', 1339831514: '1740617751_334067_1339831194_e344aa6cd5f478a17d09b97479822d13_rle_crop_3688156700_0.png', 1339831924: '1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158290_0.png', 1339832963: '1740617892_335509_1339832247_341b51fb91bf479ff3e2655d1737315d_rle_crop_3688159406_0.png', 1339832964: '1740617892_335509_1339831298_f6fd084a7d41e7b24424d9f8a20edeb0_rle_crop_3688159420_0.png', 1339832965: '1740617892_335509_1339831295_935b8568c8e99024b10409c8f8a9b15d_rle_crop_3688159435_0.png', 1339833054: '1740617913_335737_1339831301_a639323d048b71bf2b69411b16c16f12_rle_crop_3688159474_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/3a5915cca8e55f1f812748ae7963031a_26082558.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/f4838fe302e50188994cdff933717644_77962925.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/7c2a3cc805ff1b36b81edcf9bd53c88b_79131741.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/288eebb6d79a4779dfdc0d9734a5f7ae_53993488.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/815160ad7eb1910aa3317ce9373b860e_980536.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/0194c9c0bae4bafc5c8c12b0f1b20617_13493103.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/032bd9222085602008c7d8b61ab042ab_38357887.png change filename to text .imagette208640671740618033/ imagette208640671740618033/1740617892_335509_1339832247_341b51fb91bf479ff3e2655d1737315d_rle_crop_3688159406_0.png.png imagette208640671740618033/1740617892_335509_1339831295_935b8568c8e99024b10409c8f8a9b15d_rle_crop_3688159435_0.png.png imagette208640671740618033/1740617913_335737_1339831301_a639323d048b71bf2b69411b16c16f12_rle_crop_3688159474_0.png.png imagette208640671740618033/1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158290_0.png.png imagette208640671740618033/1740617751_334067_1339831194_e344aa6cd5f478a17d09b97479822d13_rle_crop_3688156700_0.png.png imagette208640671740618033/1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153521_0.png.png imagette208640671740618033/1740617892_335509_1339831298_f6fd084a7d41e7b24424d9f8a20edeb0_rle_crop_3688159420_0.png.png imagette208640671740618033/1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153520_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c4e87b61c00f8c88483bb4e641dc1176_76659156.png imagette208640671740618033 20864074 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=20864074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339831266: '1740617633_332834_1339831018_eef347311ed20235506a32c8c583c335_rle_crop_3688156605_0.png', 1339831476: '1740617751_334067_1339831277_03dd96de050e3821a722a5aa3fa86513_rle_crop_3688156689_0.png', 1339831477: '1740617751_334067_1339831194_e344aa6cd5f478a17d09b97479822d13_rle_crop_3688156703_0.png', 1339831891: '1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158288_0.png', 1339831893: '1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158289_0.png', 1339832878: '1740617873_335290_1339832205_f4ac8d6350f08c4d6700ebeb87110283_rle_crop_3688159335_0.png', 1339832879: '1740617873_335290_1339832205_f4ac8d6350f08c4d6700ebeb87110283_rle_crop_3688159338_0.png', 1339832881: '1740617873_335290_1339832130_422c43091a2a30400670ce0407c3f786_rle_crop_3688159345_0.png', 1339832882: '1740617873_335290_1339831972_61be7c6e06ba1f09c552f0b16cad75e5_rle_crop_3688159376_0.png', 1339832884: '1740617873_335290_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592_rle_crop_3688159398_0.png', 1339832959: '1740617892_335509_1339831298_f6fd084a7d41e7b24424d9f8a20edeb0_rle_crop_3688159423_0.png', 1339833039: '1740617913_335737_1339831301_a639323d048b71bf2b69411b16c16f12_rle_crop_3688159476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/fdb6da8f72e199363629dda8819c0bfe_92839763.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a33a6beb3e2b32b0784241e2c9bdec60_12290648.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/71a7dc74da49ae35478aed0caac50a51_98600478.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/254063b5951898c232a7f5ee320eb4ad_8005750.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/275c66f89d6079ba4ae0e7b17476dce9_49059521.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/1bc075dd5db44fc108a837cbe62b73e5_2813114.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/43697fdc1e510ba2f3bb8ee11b9a2948_1161015.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/72378df782fc063afdc488398e363c8d_51215119.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/4f42cfb4350802addd593391a20175e2_47119332.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b6abdd286e23c49ab89ca4d5abd07c5d_58497014.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/b97c5e0647b4b3a960ed67ad30a73a51_57873452.png change filename to text .imagette208640741740618033/ imagette208640741740618033/1740617633_332834_1339831018_eef347311ed20235506a32c8c583c335_rle_crop_3688156605_0.png.png imagette208640741740618033/1740617751_334067_1339831194_e344aa6cd5f478a17d09b97479822d13_rle_crop_3688156703_0.png.png imagette208640741740618033/1740617892_335509_1339831298_f6fd084a7d41e7b24424d9f8a20edeb0_rle_crop_3688159423_0.png.png imagette208640741740618033/1740617873_335290_1339832205_f4ac8d6350f08c4d6700ebeb87110283_rle_crop_3688159338_0.png.png imagette208640741740618033/1740617873_335290_1339832205_f4ac8d6350f08c4d6700ebeb87110283_rle_crop_3688159335_0.png.png imagette208640741740618033/1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158288_0.png.png imagette208640741740618033/1740617873_335290_1339831972_61be7c6e06ba1f09c552f0b16cad75e5_rle_crop_3688159376_0.png.png imagette208640741740618033/1740617913_335737_1339831301_a639323d048b71bf2b69411b16c16f12_rle_crop_3688159476_0.png.png imagette208640741740618033/1740617873_335290_1339832130_422c43091a2a30400670ce0407c3f786_rle_crop_3688159345_0.png.png imagette208640741740618033/1740617772_334297_1339831275_a4b7558462cdd95a92481105ba8e4825_rle_crop_3688158289_0.png.png imagette208640741740618033/1740617751_334067_1339831277_03dd96de050e3821a722a5aa3fa86513_rle_crop_3688156689_0.png.png imagette208640741740618033/1740617873_335290_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592_rle_crop_3688159398_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/28e6bbe04188c89b262e4367bff617c6_28534065.png imagette208640741740618033 20864075 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=20864075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339831147: '1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153519_0.png', 1339831271: '1740617653_333104_1339830588_a8167ec5ae3f2796a8bcb91414cd604b_rle_crop_3688156620_0.png', 1339832951: '1740617873_335290_1339832130_422c43091a2a30400670ce0407c3f786_rle_crop_3688159348_0.png', 1339832962: '1740617892_335509_1339831298_f6fd084a7d41e7b24424d9f8a20edeb0_rle_crop_3688159416_0.png', 1339833300: '1740617990_336558_1339832872_441496a6e39706ce68ba58cd30e21c67_rle_crop_3688159554_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/71389e52eec63c1d5db71ec3de569059_81443225.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/01ff3319660674ba9a1b23157095be11_68886679.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/da18c271377d16c316876fa595dbab6b_28385018.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a67a9a842b57f6603dcd56a668a7b3f6_91658754.png change filename to text .imagette208640751740618035/ imagette208640751740618035/1740617990_336558_1339832872_441496a6e39706ce68ba58cd30e21c67_rle_crop_3688159554_0.png.png imagette208640751740618035/1740617892_335509_1339831298_f6fd084a7d41e7b24424d9f8a20edeb0_rle_crop_3688159416_0.png.png imagette208640751740618035/1740617314_330272_1339830523_70730ed30974f08716c6a855b1914523_rle_crop_3688153519_0.png.png imagette208640751740618035/1740617653_333104_1339830588_a8167ec5ae3f2796a8bcb91414cd604b_rle_crop_3688156620_0.png.png imagette208640751740618035/1740617873_335290_1339832130_422c43091a2a30400670ce0407c3f786_rle_crop_3688159348_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2b6157c10a24f2dcf008322e53e3d8ae_99634888.png imagette208640751740618035 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20864042 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20864079,20864080,20864081,20864082,20864083,20864084,20864085,20864086,20864087,20864088,20864089,20864090?tags=Carton_brun,autre_refus,kraft,plastique,environnement,cartonnette,flou,Teint_Dans_La_Masse,Carton_gris,metal,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1339832957] : ('0.09718667398929781',) no score found for photo 1339832957 We are sending mail with results at report@fotonower.com args[1339832887] : ('0.09718667398929781',) no score found for photo 1339832887 We are sending mail with results at report@fotonower.com args[1339832872] : ('0.09718667398929781',) no score found for photo 1339832872 We are sending mail with results at report@fotonower.com args[1339832270] : ('0.09718667398929781',) no score found for photo 1339832270 We are sending mail with results at report@fotonower.com args[1339832269] : ('0.09718667398929781',) no score found for photo 1339832269 We are sending mail with results at report@fotonower.com args[1339832267] : ('0.09718667398929781',) no score found for photo 1339832267 We are sending mail with results at report@fotonower.com args[1339832266] : ('0.09718667398929781',) no score found for photo 1339832266 We are sending mail with results at report@fotonower.com args[1339832264] : ('0.09718667398929781',) no score found for photo 1339832264 We are sending mail with results at report@fotonower.com args[1339832247] : ('0.09718667398929781',) no score found for photo 1339832247 We are sending mail with results at report@fotonower.com args[1339832205] : ('0.09718667398929781',) no score found for photo 1339832205 We are sending mail with results at report@fotonower.com args[1339832130] : ('0.09718667398929781',) no score found for photo 1339832130 We are sending mail with results at report@fotonower.com args[1339832051] : ('0.09718667398929781',) no score found for photo 1339832051 We are sending mail with results at report@fotonower.com args[1339831972] : ('0.09718667398929781',) no score found for photo 1339831972 We are sending mail with results at report@fotonower.com args[1339831894] : ('0.09718667398929781',) no score found for photo 1339831894 We are sending mail with results at report@fotonower.com refus_total : 0.09718667398929781 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=20864042 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_P20864042_27-02-2025_02_00_32.pdf results_Auto_P20864042_27-02-2025_02_00_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20864042_27-02-2025_02_00_32.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','20864042','results_Auto_P20864042_27-02-2025_02_00_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20864042_27-02-2025_02_00_32.pdf','pdf','','0.25','0.09718667398929781') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20864042]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] map_info['map_portfolio_photo'] : {20864042: [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894, 1339831301, 1339831298, 1339831295, 1339831292, 1339831277, 1339831275, 1339831272, 1339831196, 1339831194, 1339831022, 1339831018, 1339830588, 1339830537, 1339830523, 1339830520]} final : False mtd_id 4302 list_pids : [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] 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, '2618287') ('4302', '20864042', '1339832957', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20864042', '1339832957', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287')] time used for this insertion : 0.11029696464538574 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.550446033477783 time spend to save output : 0.11064004898071289 total time spend for step 4 : 4.661086082458496 step5:split_time_score Thu Feb 27 02:00:36 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 : ['20864042'] 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 : [('20864042',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20864042) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339832887: {'path': 'temp/1740618032_1404779_1339832887_64124864a210a1db3c887cddb330781f.jpg', 'extension': 'jpg'}, 1339832957: {'path': 'temp/1740618032_1404779_1339832957_628c8b7a2a56f5cfc7c7850b69f070bc.jpg', 'extension': 'jpg'}, 1339832269: {'path': 'temp/1740618032_1404779_1339832269_9132bfe76115d97b9e8716e0da2e14c4.jpg', 'extension': 'jpg'}, 1339832270: {'path': 'temp/1740618032_1404779_1339832270_c68e6078173c51bf18af26e242c7847d.jpg', 'extension': 'jpg'}, 1339832872: {'path': 'temp/1740618032_1404779_1339832872_441496a6e39706ce68ba58cd30e21c67.jpg', 'extension': 'jpg'}, 1339832264: {'path': 'temp/1740618032_1404779_1339832264_71a8ece889b3ca35ec7451dbe0a1e651.jpg', 'extension': 'jpg'}, 1339832266: {'path': 'temp/1740618032_1404779_1339832266_c55a9b06e30de4d0639ece58a5d528dd.jpg', 'extension': 'jpg'}, 1339832267: {'path': 'temp/1740618032_1404779_1339832267_70e5a01f5f5e0a204dac00bec54c606d.jpg', 'extension': 'jpg'}, 1339831894: {'path': 'temp/1740618032_1404779_1339831894_a5e9ba8cf11b327d5dcb7d2a670b5592.jpg', 'extension': 'jpg'}, 1339831972: {'path': 'temp/1740618032_1404779_1339831972_61be7c6e06ba1f09c552f0b16cad75e5.jpg', 'extension': 'jpg'}, 1339832051: {'path': 'temp/1740618032_1404779_1339832051_8f2ad87217cc571f87c67bed0c7a16a0.jpg', 'extension': 'jpg'}, 1339832130: {'path': 'temp/1740618032_1404779_1339832130_422c43091a2a30400670ce0407c3f786.jpg', 'extension': 'jpg'}, 1339832205: {'path': 'temp/1740618032_1404779_1339832205_f4ac8d6350f08c4d6700ebeb87110283.jpg', 'extension': 'jpg'}, 1339832247: {'path': 'temp/1740618032_1404779_1339832247_341b51fb91bf479ff3e2655d1737315d.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 = 20864042; (('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 = 20864042 group by h (('01', 29),) 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=20864042 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 (20864042) 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 (20864042) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27022025 20864042 Nombre de photos uploadées : 29 / 23040 (0%) 27022025 20864042 Nombre de photos taguées (types de déchets): 0 / 29 (0%) 27022025 20864042 Nombre de photos taguées (volume) : 0 / 29 (0%) [{'photo_id': 1339830537, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/2463106f7b7a014213f318cdd2bfa29d.jpg', 'username': None, 'uploaded_at': 1740617196, 'text': 'image_27022025_01_45_03_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339830523, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/70730ed30974f08716c6a855b1914523.jpg', 'username': None, 'uploaded_at': 1740617196, 'text': 'image_27022025_01_45_13_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339830520, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/c0e95ef82a6d4f82635c65c27a8a9954.jpg', 'username': None, 'uploaded_at': 1740617196, 'text': 'image_27022025_01_45_24_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339830588, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/27/a8167ec5ae3f2796a8bcb91414cd604b.jpg', 'username': None, 'uploaded_at': 1740617256, 'text': 'image_27022025_01_45_53_009132m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002799510955810547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20864042, '2025-02-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1627066,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02404642105102539 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= 1627066 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1627066, 'dashboard_run_id': 1634697, 'mtr_portfolio_id': 20863329, 'dashboard_result_id': 9091255, '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_P20863329_27-02-2025_01_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20863355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20863356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20863357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20863358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20863359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20863360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20863361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20863362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20863363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20863364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20863365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20863366, 'pht': 3726}}"}, {'dashboat_entry_day': 1627066, 'dashboard_run_id': 1634697, 'mtr_portfolio_id': 20864042, 'dashboard_result_id': 9091256, '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_P20864042_27-02-2025_01_57_28.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20864067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20864068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20864069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20864070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20864071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20864072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20864073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20864074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20864075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20864076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20864077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20864078, '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 = 20863329 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': 2618249, 'mtr_portfolio_id': 20863329, 'created_at': datetime.datetime(2025, 2, 27, 1, 52, 59), 'result': '0.10856709746310422', 'result_long': None, 'result_double': None}] Qualite : 0.10856709746310422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20863329 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20863329_27-02-2025_01_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20863329 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_P20863329_27-02-2025_01_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20863355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20863356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20863357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20863358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20863359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20863360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20863361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20863362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20863363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20863364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20863365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20863366, 'pht': 3726}}" where mtr_portfolio_id = 20863329 and dashboard_run_id = 1634697 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`=20863329 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9091255, 0.10856709746310422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20863329_27-02-2025_01_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20863355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20863356, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20863357, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20863358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20863359, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20863360, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20863361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20863362, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20863363, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20863364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20863365, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20863366, '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 = 20864042 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': 2618287, 'mtr_portfolio_id': 20864042, 'created_at': datetime.datetime(2025, 2, 27, 2, 0, 32), 'result': '0.09718667398929781', 'result_long': None, 'result_double': None}] Qualite : 0.09718667398929781 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20864042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20864042_27-02-2025_02_00_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20864042 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_P20864042_27-02-2025_02_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20864067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20864068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20864069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20864070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20864071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20864072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20864073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20864074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20864075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20864076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20864077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20864078, 'pht': 3726}}" where mtr_portfolio_id = 20864042 and dashboard_run_id = 1634697 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`=20864042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9091256, 0.09718667398929781, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20864042_27-02-2025_02_00_32.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20864067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20864068, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20864069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20864070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20864071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20864072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20864073, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20864074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20864075, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20864076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20864077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20864078, '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 (20863329,20864042) result : ((1339828531,), (1339828535,), (1339828563,), (1339828586,), (1339828921,), (1339828935,), (1339828944,), (1339828948,), (1339829075,), (1339829078,), (1339829128,), (1339829131,), (1339829140,), (1339829150,), (1339829198,), (1339829205,), (1339829214,), (1339829218,), (1339829220,), (1339829221,), (1339829337,), (1339829345,), (1339829348,), (1339829385,), (1339829389,), (1339829399,), (1339829403,), (1339829407,), (1339829412,), (1339829415,), (1339829417,), (1339829427,), (1339829430,), (1339829432,), (1339829435,), (1339829443,), (1339829461,), (1339829464,), (1339829468,), (1339829472,), (1339829476,), (1339829490,), (1339829493,), (1339829495,), (1339829498,), (1339829509,), (1339829510,), (1339829533,), (1339829536,), (1339829539,), (1339829541,), (1339829554,), (1339829558,), (1339829568,), (1339829571,), (1339829573,), (1339829592,), (1339829595,), (1339829599,), (1339829602,), (1339829604,), (1339829606,), (1339829736,), (1339829830,), (1339829914,), (1339830225,), (1339830230,), (1339830233,), (1339830273,), (1339830341,), (1339830424,), (1339830543,), (1339830520,), (1339830523,), (1339830537,), (1339830588,), (1339831018,), (1339831022,), (1339831194,), (1339831196,), (1339831272,), (1339831275,), (1339831277,), (1339831292,), (1339831295,), (1339831298,), (1339831301,), (1339831894,), (1339831972,), (1339832051,), (1339832130,), (1339832205,), (1339832247,), (1339832264,), (1339832266,), (1339832267,), (1339832269,), (1339832270,), (1339832872,), (1339832887,), (1339832957,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27022025': {'nb_upload': 29, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20864042]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] map_info['map_portfolio_photo'] : {20864042: [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894, 1339831301, 1339831298, 1339831295, 1339831292, 1339831277, 1339831275, 1339831272, 1339831196, 1339831194, 1339831022, 1339831018, 1339830588, 1339830537, 1339830523, 1339830520]} final : True mtd_id 4302 list_pids : [1339832957, 1339832887, 1339832872, 1339832270, 1339832269, 1339832267, 1339832266, 1339832264, 1339832247, 1339832205, 1339832130, 1339832051, 1339831972, 1339831894] Looping around the photos to save general results len do output : 1 /20864042Didn'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, '2618287') ('4302', '20864042', '1339832957', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287') ('4302', None, None, None, None, None, None, None, '2618287') ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20864042', 'None', None, None, None, None, '2618287'), ('4302', '20864042', '1339832957', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832887', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832872', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832270', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832269', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832267', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832266', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832264', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832247', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832205', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832130', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339832051', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339831972', None, None, None, None, None, '2618287'), ('4302', '20864042', '1339831894', None, None, None, None, None, '2618287')] time used for this insertion : 0.018021821975708008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22591137886047363 time spend to save output : 0.018361330032348633 total time spend for step 5 : 0.24427270889282227 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 (2618287) 2.86user 2.19system 0:11.92elapsed 42%CPU (0avgtext+0avgdata 161456maxresident)k 152inputs+14776outputs (1major+78934minor)pagefaults 0swaps