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 : 986648 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 (3273993) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3273993) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866369 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3273993'] with mtr_portfolio_ids : ['24866369'] and first list_photo_ids : [] new path : /proc/986648/ Name: python3 Umask: 0002 State: R (running) Tgid: 986648 Ngid: 0 Pid: 986648 PPid: 986647 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 986648 NSpid: 986648 NSpgid: 983227 NSsid: 983227 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98668 kB VmRSS: 98668 kB RssAnon: 59804 kB RssFile: 38864 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 48 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '986648', 'Ngid': '0', 'Pid': '986648', 'PPid': '986647', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '986648', 'NSpid': '986648', 'NSpgid': '983227', 'NSsid': '983227', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98668 kB', 'VmRSS': '98668 kB', 'RssAnon': '59804 kB', 'RssFile': '38864 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '48', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '986648', '1106868', '0', '1106868', '865620', '98668', b'', 'marlene', '3273993') 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 (24866369) 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 (3273993 ) ) 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 (24866369) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371766277, 'portfolio_id': 24866369}, {'photo_id': 1371766261, 'portfolio_id': 24866369}, {'photo_id': 1371766196, 'portfolio_id': 24866369}, {'photo_id': 1371766175, 'portfolio_id': 24866369}, {'photo_id': 1371766122, 'portfolio_id': 24866369}, {'photo_id': 1371766105, 'portfolio_id': 24866369}, {'photo_id': 1371766030, 'portfolio_id': 24866369}, {'photo_id': 1371766023, 'portfolio_id': 24866369}, {'photo_id': 1371765937, 'portfolio_id': 24866369}, {'photo_id': 1371765933, 'portfolio_id': 24866369}, {'photo_id': 1371765866, 'portfolio_id': 24866369}, {'photo_id': 1371765863, 'portfolio_id': 24866369}, {'photo_id': 1371764978, 'portfolio_id': 24866369}, {'photo_id': 1371764958, 'portfolio_id': 24866369}, {'photo_id': 1371764913, 'portfolio_id': 24866369}, {'photo_id': 1371764887, 'portfolio_id': 24866369}, {'photo_id': 1371764868, 'portfolio_id': 24866369}, {'photo_id': 1371764836, 'portfolio_id': 24866369}, {'photo_id': 1371764267, 'portfolio_id': 24866369}, {'photo_id': 1371764216, 'portfolio_id': 24866369}, {'photo_id': 1371764170, 'portfolio_id': 24866369}, {'photo_id': 1371764140, 'portfolio_id': 24866369}, {'photo_id': 1371764112, 'portfolio_id': 24866369}, {'photo_id': 1371764086, 'portfolio_id': 24866369}, {'photo_id': 1371763926, 'portfolio_id': 24866369}, {'photo_id': 1371763925, 'portfolio_id': 24866369}, {'photo_id': 1371763924, 'portfolio_id': 24866369}, {'photo_id': 1371763921, 'portfolio_id': 24866369}, {'photo_id': 1371763916, 'portfolio_id': 24866369}, {'photo_id': 1371763904, 'portfolio_id': 24866369}, {'photo_id': 1371763888, 'portfolio_id': 24866369}, {'photo_id': 1371763819, 'portfolio_id': 24866369}, {'photo_id': 1371763738, 'portfolio_id': 24866369}, {'photo_id': 1371763692, 'portfolio_id': 24866369}, {'photo_id': 1371763663, 'portfolio_id': 24866369}, {'photo_id': 1371763659, 'portfolio_id': 24866369}, {'photo_id': 1371763324, 'portfolio_id': 24866369}, {'photo_id': 1371763317, 'portfolio_id': 24866369}, {'photo_id': 1371763315, 'portfolio_id': 24866369}, {'photo_id': 1371763312, 'portfolio_id': 24866369}, {'photo_id': 1371763288, 'portfolio_id': 24866369}, {'photo_id': 1371763239, 'portfolio_id': 24866369}, {'photo_id': 1371762662, 'portfolio_id': 24866369}, {'photo_id': 1371762599, 'portfolio_id': 24866369}, {'photo_id': 1371762520, 'portfolio_id': 24866369}, {'photo_id': 1371762429, 'portfolio_id': 24866369}, {'photo_id': 1371762372, 'portfolio_id': 24866369}, {'photo_id': 1371762342, 'portfolio_id': 24866369}, {'photo_id': 1371762174, 'portfolio_id': 24866369}, {'photo_id': 1371762123, 'portfolio_id': 24866369}, {'photo_id': 1371762094, 'portfolio_id': 24866369}, {'photo_id': 1371762069, 'portfolio_id': 24866369}, {'photo_id': 1371762042, 'portfolio_id': 24866369}, {'photo_id': 1371762013, 'portfolio_id': 24866369}] map_portfolio_id_photo_id: {24866369: [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836, 1371764267, 1371764216, 1371764170, 1371764140, 1371764112, 1371764086, 1371763926, 1371763925, 1371763924, 1371763921, 1371763916, 1371763904, 1371763888, 1371763819, 1371763738, 1371763692, 1371763663, 1371763659, 1371763324, 1371763317, 1371763315, 1371763312, 1371763288, 1371763239, 1371762662, 1371762599, 1371762520, 1371762429, 1371762372, 1371762342, 1371762174, 1371762123, 1371762094, 1371762069, 1371762042, 1371762013]} ##### 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.01602482795715332 #### 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 Sat Jul 12 01:24:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24866369) 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 : 24866369 get user id for portfolio 24866369 get sub ptf for main ptf 24866369, type 3726 and hashtags ['kraft', 'environnement', 'Carton_gris', 'cartonnette', 'Carton_brun', 'mal_croppe', 'metal', 'papier', 'plastique', 'flou', 'Teint_Dans_La_Masse', 'autre_refus'] 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`=24866369 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Carton_gris','cartonnette','Carton_brun','mal_croppe','metal','papier','plastique','flou','Teint_Dans_La_Masse','autre_refus')) 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`=24866369 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Carton_gris','cartonnette','Carton_brun','mal_croppe','metal','papier','plastique','flou','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24866369, 'sub_port_id': 24866430, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739710, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'plastique': {'main_port_id': 24866369, 'sub_port_id': 24866432, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739711, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 24866369, 'sub_port_id': 24866433, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739712, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'Carton_brun': {'main_port_id': 24866369, 'sub_port_id': 24866434, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739713, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'environnement': {'main_port_id': 24866369, 'sub_port_id': 24866435, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739714, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'kraft': {'main_port_id': 24866369, 'sub_port_id': 24866437, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739715, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'metal': {'main_port_id': 24866369, 'sub_port_id': 24866438, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739716, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'mal_croppe': {'main_port_id': 24866369, 'sub_port_id': 24866440, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739717, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'papier': {'main_port_id': 24866369, 'sub_port_id': 24866441, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739718, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'Carton_gris': {'main_port_id': 24866369, 'sub_port_id': 24866442, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739719, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'autre_refus': {'main_port_id': 24866369, 'sub_port_id': 24866443, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739720, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}, 'cartonnette': {'main_port_id': 24866369, 'sub_port_id': 24866445, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739721, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24866430 , 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=24866369 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 (24866430) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866432 , 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=24866369 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 (24866432) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866433 , 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=24866369 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 (24866433) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866434 , 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=24866369 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 (24866434) result : ((1371763960,), (1371764573,), (1371764577,), (1371765285,), (1371765291,), (1371765297,), (1371766408,), (1371766411,), (1371766415,), (1371766645,), (1371766646,), (1371766647,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866435 , 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=24866369 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 (24866435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866437 , 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=24866369 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 (24866437) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866438 , 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=24866369 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 (24866438) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866440 , 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=24866369 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 (24866440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866441 , 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=24866369 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 (24866441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866442 , 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=24866369 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 (24866442) result : ((1371763954,), (1371763955,), (1371763957,), (1371763958,), (1371763959,), (1371764515,), (1371764521,), (1371764525,), (1371764530,), (1371764534,), (1371764538,), (1371764542,), (1371764546,), (1371765208,), (1371765213,), (1371765218,), (1371765224,), (1371765229,), (1371765234,), (1371765240,), (1371766391,), (1371766394,), (1371766397,), (1371766399,), (1371766401,), (1371766404,), (1371766406,), (1371766636,), (1371766637,), (1371766638,), (1371766639,), (1371766640,), (1371766641,), (1371766643,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866443 , 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=24866369 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 (24866443) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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 24866445 , 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=24866369 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 (24866445) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24866369) result : ((1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) 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`=24866369 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Carton_gris','cartonnette','Carton_brun','mal_croppe','metal','papier','plastique','flou','Teint_Dans_La_Masse','autre_refus')) 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`=24866369 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Carton_gris','cartonnette','Carton_brun','mal_croppe','metal','papier','plastique','flou','Teint_Dans_La_Masse','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24866369, 'sub_port_id': 24866446, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739734, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'plastique': {'main_port_id': 24866369, 'sub_port_id': 24866447, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739735, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24866369, 'sub_port_id': 24866448, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739736, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'Carton_brun': {'main_port_id': 24866369, 'sub_port_id': 24866449, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739737, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'environnement': {'main_port_id': 24866369, 'sub_port_id': 24866450, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739738, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'kraft': {'main_port_id': 24866369, 'sub_port_id': 24866451, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739739, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'metal': {'main_port_id': 24866369, 'sub_port_id': 24866452, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739740, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'mal_croppe': {'main_port_id': 24866369, 'sub_port_id': 24866453, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739741, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'papier': {'main_port_id': 24866369, 'sub_port_id': 24866454, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739742, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'Carton_gris': {'main_port_id': 24866369, 'sub_port_id': 24866455, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739743, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'autre_refus': {'main_port_id': 24866369, 'sub_port_id': 24866456, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739744, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 18, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}, 'cartonnette': {'main_port_id': 24866369, 'sub_port_id': 24866457, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16739745, 'last_updated_at': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 12, 1, 23, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 12, 1, 18, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866430 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866454,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866441 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866455,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866442 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866456,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866443 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24866457,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24866445 lien utilise dans velours : https://www.fotonower.com/velours/24866446,24866447,24866448,24866449,24866450,24866451,24866452,24866453,24866454,24866455,24866456,24866457?tags=flou,plastique,Teint_Dans_La_Masse,Carton_brun,environnement,kraft,metal,mal_croppe,papier,Carton_gris,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24866369]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] map_info['map_portfolio_photo'] : {24866369: [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836, 1371764267, 1371764216, 1371764170, 1371764140, 1371764112, 1371764086, 1371763926, 1371763925, 1371763924, 1371763921, 1371763916, 1371763904, 1371763888, 1371763819, 1371763738, 1371763692, 1371763663, 1371763659, 1371763324, 1371763317, 1371763315, 1371763312, 1371763288, 1371763239, 1371762662, 1371762599, 1371762520, 1371762429, 1371762372, 1371762342, 1371762174, 1371762123, 1371762094, 1371762069, 1371762042, 1371762013]} final : False mtd_id 4302 list_pids : [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] Looping around the photos to save general results len do output : 1 /24866369. 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, '3273993') ('4302', '24866369', '1371766277', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24866369', "{'flou': 24866430, 'plastique': 24866432, 'Teint_Dans_La_Masse': 24866433, 'Carton_brun': 24866434, 'environnement': 24866435, 'kraft': 24866437, 'metal': 24866438, 'mal_croppe': 24866440, 'papier': 24866441, 'Carton_gris': 24866442, 'autre_refus': 24866443, 'cartonnette': 24866445}", None, None, None, None, '3273993'), ('4302', '24866369', '1371766277', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993')] time used for this insertion : 0.12212705612182617 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5906741619110107 time spend to save output : 0.12254023551940918 total time spend for step 1 : 1.71321439743042 step2:final Sat Jul 12 01:25:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24866369) 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 24866369 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371762174,1371762123,1371762094,1371762069,1371762042,1371762013,1371762662,1371762599,1371762520,1371762429,1371762372,1371762342,1371763324,1371763317,1371763315,1371763312,1371763288,1371763239,1371763888,1371763819,1371763738,1371763692,1371763663,1371763659,1371763926,1371763925,1371763924,1371763921,1371763916,1371763904,1371764267,1371764216,1371764170,1371764140,1371764112,1371764086,1371764978,1371764958,1371764913,1371764887,1371764868,1371764836,1371766261,1371766277,1371766175,1371766196,1371766105,1371766122,1371766023,1371766030,1371765933,1371765937,1371765863,1371765866); 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([24866369]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} new output for save of step final : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] map_info['map_portfolio_photo'] : {24866369: [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836, 1371764267, 1371764216, 1371764170, 1371764140, 1371764112, 1371764086, 1371763926, 1371763925, 1371763924, 1371763921, 1371763916, 1371763904, 1371763888, 1371763819, 1371763738, 1371763692, 1371763663, 1371763659, 1371763324, 1371763317, 1371763315, 1371763312, 1371763288, 1371763239, 1371762662, 1371762599, 1371762520, 1371762429, 1371762372, 1371762342, 1371762174, 1371762123, 1371762094, 1371762069, 1371762042, 1371762013]} final : False mtd_id 4302 list_pids : [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] Looping around the photos to save general results len do output : 18 /1371766277.Didn't retrieve data . /1371766261.Didn't retrieve data . /1371766196.Didn't retrieve data . /1371766175.Didn't retrieve data . /1371766122.Didn't retrieve data . /1371766105.Didn't retrieve data . /1371766030.Didn't retrieve data . /1371766023.Didn't retrieve data . /1371765937.Didn't retrieve data . /1371765933.Didn't retrieve data . /1371765866.Didn't retrieve data . /1371765863.Didn't retrieve data . /1371764978.Didn't retrieve data . /1371764958.Didn't retrieve data . /1371764913.Didn't retrieve data . /1371764887.Didn't retrieve data . /1371764868.Didn't retrieve data . /1371764836.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, '3273993') ('4302', '24866369', '1371766277', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24866369', '1371766277', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766261', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766196', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766175', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766122', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766105', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766030', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371766023', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371765937', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371765933', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371765866', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371765863', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371764978', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371764958', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371764913', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371764887', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371764868', '0.047842012925245564', None, None, None, None, '3273993'), ('4302', '24866369', '1371764836', '0.047842012925245564', None, None, None, None, '3273993')] time used for this insertion : 0.015467405319213867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.29497742652893066 time spend to save output : 0.016260147094726562 total time spend for step 2 : 0.3112375736236572 step3:velours_tree Sat Jul 12 01:25:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {24866369: [{'flou': 24866430, 'plastique': 24866432, 'Teint_Dans_La_Masse': 24866433, 'Carton_brun': 24866434, 'environnement': 24866435, 'kraft': 24866437, 'metal': 24866438, 'mal_croppe': 24866440, 'papier': 24866441, 'Carton_gris': 24866442, 'autre_refus': 24866443, 'cartonnette': 24866445}]} input_args_next_step : {24866369: ()} output_args : {24866369: [{'flou': 24866430, 'plastique': 24866432, 'Teint_Dans_La_Masse': 24866433, 'Carton_brun': 24866434, 'environnement': 24866435, 'kraft': 24866437, 'metal': 24866438, 'mal_croppe': 24866440, 'papier': 24866441, 'Carton_gris': 24866442, 'autre_refus': 24866443, 'cartonnette': 24866445}]} args : 24866369 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 : ({'flou': 24866430, 'plastique': 24866432, 'Teint_Dans_La_Masse': 24866433, 'Carton_brun': 24866434, 'environnement': 24866435, 'kraft': 24866437, 'metal': 24866438, 'mal_croppe': 24866440, 'papier': 24866441, 'Carton_gris': 24866442, 'autre_refus': 24866443, 'cartonnette': 24866445},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24866369) 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([24866369]) 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.35243797302246094 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.35248708724975586 step4:send_mail_cod Sat Jul 12 01:25:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} input_args_next_step : {1371766277: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766277 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766261 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766196 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766175 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766122 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766105 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766030 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371766023 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371765937 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371765933 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371765866 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371765863 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371764978 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371764958 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371764913 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371764887 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371764868 depend.output_id : 0 input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ()} output_args : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',)} args : 1371764836 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 : {24866369: [{'flou': 24866430, 'plastique': 24866432, 'Teint_Dans_La_Masse': 24866433, 'Carton_brun': 24866434, 'environnement': 24866435, 'kraft': 24866437, 'metal': 24866438, 'mal_croppe': 24866440, 'papier': 24866441, 'Carton_gris': 24866442, 'autre_refus': 24866443, 'cartonnette': 24866445}]} input_args_next_step : {1371766277: ('0.047842012925245564',), 1371766261: ('0.047842012925245564',), 1371766196: ('0.047842012925245564',), 1371766175: ('0.047842012925245564',), 1371766122: ('0.047842012925245564',), 1371766105: ('0.047842012925245564',), 1371766030: ('0.047842012925245564',), 1371766023: ('0.047842012925245564',), 1371765937: ('0.047842012925245564',), 1371765933: ('0.047842012925245564',), 1371765866: ('0.047842012925245564',), 1371765863: ('0.047842012925245564',), 1371764978: ('0.047842012925245564',), 1371764958: ('0.047842012925245564',), 1371764913: ('0.047842012925245564',), 1371764887: ('0.047842012925245564',), 1371764868: ('0.047842012925245564',), 1371764836: ('0.047842012925245564',), 24866369: ()} output_args : {24866369: [{'flou': 24866430, 'plastique': 24866432, 'Teint_Dans_La_Masse': 24866433, 'Carton_brun': 24866434, 'environnement': 24866435, 'kraft': 24866437, 'metal': 24866438, 'mal_croppe': 24866440, 'papier': 24866441, 'Carton_gris': 24866442, 'autre_refus': 24866443, 'cartonnette': 24866445}]} args : 24866369 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :19, first value : ('0.047842012925245564',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24866369) 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 (1371766277,1371766261,1371766196,1371766175,1371766122,1371766105,1371766030,1371766023,1371765937,1371765933,1371765866,1371765863,1371764978,1371764958,1371764913,1371764887,1371764868,1371764836) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371764836 begin to download photo : 1371764958 begin to download photo : 1371765933 begin to download photo : 1371766105 begin to download photo : 1371766261 download finish for photo 1371764958 begin to download photo : 1371764978 download finish for photo 1371766105 begin to download photo : 1371766122 download finish for photo 1371764836 begin to download photo : 1371764868 download finish for photo 1371766261 begin to download photo : 1371766277 download finish for photo 1371765933 begin to download photo : 1371765937 download finish for photo 1371764978 begin to download photo : 1371765863 download finish for photo 1371766122 begin to download photo : 1371766175 download finish for photo 1371764868 begin to download photo : 1371764887 download finish for photo 1371766277 download finish for photo 1371765937 begin to download photo : 1371766023 download finish for photo 1371764887 begin to download photo : 1371764913 download finish for photo 1371765863 begin to download photo : 1371765866 download finish for photo 1371766175 begin to download photo : 1371766196 download finish for photo 1371766023 begin to download photo : 1371766030 download finish for photo 1371764913 download finish for photo 1371765866 download finish for photo 1371766196 download finish for photo 1371766030 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette248664301752276302/ imagette248664321752276302/ imagette248664371752276302/ imagette248664381752276302/ imagette248664401752276302/ imagette248664431752276302/ imagette248664451752276302/ imagette248664331752276302/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P24866369_12-07-2025_01_25_02.pdf 24866430 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=24866430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664301752276302 24866432 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=24866432 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664321752276302 24866437 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=24866437 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664371752276302 24866438 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=24866438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664381752276302 24866440 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=24866440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664401752276302 24866443 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=24866443 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664431752276302 24866445 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=24866445 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664451752276302 24866433 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=24866433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette248664331752276302 24866434 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=24866434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371763960: '1752276005_3821214_1371762429_69feafe2787a141b8d7d66fc6956a5f4_rle_crop_3880805281_0.png', 1371764573: '1752276086_2077624_1371763925_73abef0bf97b736d173c1ff3c70bfcef_rle_crop_3880807014_0.png', 1371764577: '1752276086_2077624_1371763904_559aa6474319bf62dcfeeb6ff3807172_rle_crop_3880807073_0.png', 1371765285: '1752276126_3829598_1371763738_85b9f419cd5599808683e7e25f2f86c8_rle_crop_3880809937_0.png', 1371765291: '1752276126_3829598_1371763692_915a1b44d3e223a3d6f0c8f4038a5390_rle_crop_3880809948_0.png', 1371765297: '1752276126_3829598_1371763663_8c01acc418270dcb036b6aad1c702e4a_rle_crop_3880809957_0.png', 1371766408: '1752276207_2080701_1371764216_12a70697dbe83ae5713be0eb85fc9399_rle_crop_3880810104_0.png', 1371766411: '1752276207_2080701_1371764112_0648034656701a6af764e896ec1f29bd_rle_crop_3880810137_0.png', 1371766415: '1752276207_2080701_1371764086_ca219fb126c5cb134694fab94b2a3823_rle_crop_3880810148_0.png', 1371766645: '1752276247_3834585_1371763317_3582ecc2c19b8f657b4387eba9c1aaf4_rle_crop_3880810388_0.png', 1371766646: '1752276247_3834585_1371763315_1faa18825eb61c3301e151161b98776d_rle_crop_3880810397_0.png', 1371766647: '1752276247_3834585_1371763288_47d5c3f78586e70441f3a3f57f423193_rle_crop_3880810416_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c764b15dafcb32f56c072d3bf3b3ca88_61519204.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f8cf7b57abfdf65cb252a7bb2bd67bdb_56755797.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/6000e79e9cefb805dd8e0db377b3553f_64031799.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/af7da8645d0c528b1606cc937bfe286a_28353874.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/66eb12d0221dea446952b4df4ed7f290_86301935.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ded8ba13709d9c5d4e021719788e0a3b_91879974.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/a53c3ea3c7ad22267488b61aecf43802_42455178.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/501082036709c208345da0035fbf5019_54662933.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/018c5a8ef89236963534f84a386fcc0e_71873238.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f9960545b7f6978f94c92d374d1175bf_24558915.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1768bcec30c240094006f5772d3b9a8a_9887634.png change filename to text .imagette248664341752276302/ imagette248664341752276302/1752276207_2080701_1371764216_12a70697dbe83ae5713be0eb85fc9399_rle_crop_3880810104_0.png.png imagette248664341752276302/1752276207_2080701_1371764112_0648034656701a6af764e896ec1f29bd_rle_crop_3880810137_0.png.png imagette248664341752276302/1752276207_2080701_1371764086_ca219fb126c5cb134694fab94b2a3823_rle_crop_3880810148_0.png.png imagette248664341752276302/1752276247_3834585_1371763315_1faa18825eb61c3301e151161b98776d_rle_crop_3880810397_0.png.png imagette248664341752276302/1752276247_3834585_1371763288_47d5c3f78586e70441f3a3f57f423193_rle_crop_3880810416_0.png.png imagette248664341752276302/1752276005_3821214_1371762429_69feafe2787a141b8d7d66fc6956a5f4_rle_crop_3880805281_0.png.png imagette248664341752276302/1752276126_3829598_1371763692_915a1b44d3e223a3d6f0c8f4038a5390_rle_crop_3880809948_0.png.png imagette248664341752276302/1752276126_3829598_1371763663_8c01acc418270dcb036b6aad1c702e4a_rle_crop_3880809957_0.png.png imagette248664341752276302/1752276126_3829598_1371763738_85b9f419cd5599808683e7e25f2f86c8_rle_crop_3880809937_0.png.png imagette248664341752276302/1752276086_2077624_1371763925_73abef0bf97b736d173c1ff3c70bfcef_rle_crop_3880807014_0.png.png imagette248664341752276302/1752276086_2077624_1371763904_559aa6474319bf62dcfeeb6ff3807172_rle_crop_3880807073_0.png.png imagette248664341752276302/1752276247_3834585_1371763317_3582ecc2c19b8f657b4387eba9c1aaf4_rle_crop_3880810388_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/32cd4d1247e012322f2aba24a84c700e_61337091.png imagette248664341752276302 24866442 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=24866442 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371766406: '1752276207_2080701_1371764086_ca219fb126c5cb134694fab94b2a3823_rle_crop_3880810144_0.png', 1371765234: '1752276126_3829598_1371763663_8c01acc418270dcb036b6aad1c702e4a_rle_crop_3880809955_0.png', 1371765240: '1752276126_3829598_1371763659_fd790b93a003b841f47cdf0013466d15_rle_crop_3880809965_0.png', 1371766391: '1752276207_2080701_1371764267_9815f3e5acbe0f328eb337fcd2d5c766_rle_crop_3880810094_0.png', 1371766394: '1752276207_2080701_1371764216_12a70697dbe83ae5713be0eb85fc9399_rle_crop_3880810103_0.png', 1371766397: '1752276207_2080701_1371764170_b5bb1057dfaf424cea3522ee4a88a5ab_rle_crop_3880810114_0.png', 1371766399: '1752276207_2080701_1371764140_2e1677a568429fffd765e166fc34324b_rle_crop_3880810126_0.png', 1371766401: '1752276207_2080701_1371764140_2e1677a568429fffd765e166fc34324b_rle_crop_3880810125_0.png', 1371766404: '1752276207_2080701_1371764112_0648034656701a6af764e896ec1f29bd_rle_crop_3880810135_0.png', 1371765229: '1752276126_3829598_1371763692_915a1b44d3e223a3d6f0c8f4038a5390_rle_crop_3880809947_0.png', 1371766636: '1752276247_3834585_1371763324_856fa6be4cea865e32be0ad3e7d4aad8_rle_crop_3880810375_0.png', 1371766637: '1752276247_3834585_1371763317_3582ecc2c19b8f657b4387eba9c1aaf4_rle_crop_3880810385_0.png', 1371766638: '1752276247_3834585_1371763315_1faa18825eb61c3301e151161b98776d_rle_crop_3880810394_0.png', 1371766639: '1752276247_3834585_1371763315_1faa18825eb61c3301e151161b98776d_rle_crop_3880810393_0.png', 1371766640: '1752276247_3834585_1371763312_2e6d72932f842f4e531270ab562917ce_rle_crop_3880810404_0.png', 1371766641: '1752276247_3834585_1371763312_2e6d72932f842f4e531270ab562917ce_rle_crop_3880810403_0.png', 1371766643: '1752276247_3834585_1371763239_bc9d82ccef5e6d263def631bc051cc47_rle_crop_3880810421_0.png', 1371764534: '1752276086_2077624_1371763924_9c844019498d373dcde9845cb2a82fe6_rle_crop_3880807027_0.png', 1371763955: '1752276005_3821214_1371762662_682ccaeb8286396570ea143f0069ac12_rle_crop_3880805250_0.png', 1371763957: '1752276005_3821214_1371762520_3968def52330fa42d17020ceb6cdcb46_rle_crop_3880805269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/9cee9530841a038b95354a168cba429c_293894.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c0499e901f62ce67776990e7955ac2de_6968373.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/23710a963f9c0133dcf85ddb9f7f1195_7465669.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f111526a402e5238249f1c6cc937a475_19776563.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/11313e81ac7112021c455a2c5e58fd83_9838496.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/059117e882be7ded17548991a5890d7e_14192920.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5f8eeb5761b9f52a49a931f71ab07200_80707460.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/c196658dc98ba3ec41426b757b61ed8b_54282043.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/8806cd457ca16ec768f99b814b3bbe71_61938322.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/225bdf8d7d37a6687d6d7ff0501e0afd_57523023.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/ae5e3ef4a293c1b94cd005b5cb59eba7_28654242.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/e2acfa03651a9120d54a51b144deacae_1463705.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/4c323af13827c8314d929dea604269e5_18467557.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/32daa64469ba6b05069682250880b562_86830072.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/196fe44f43816372af96abcac7a275a7_85644717.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/f372a37ff6c4cca55c3f61e8d199c203_75648677.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/52a6842ce3701457e56e93bb876b36f2_36085544.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1104834ddc9570d0435eee2e9a25f0b6_74692646.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/403f8d2713f5d323605099104c47c94b_23066472.png change filename to text .imagette248664421752276302/ imagette248664421752276302/1752276086_2077624_1371763924_9c844019498d373dcde9845cb2a82fe6_rle_crop_3880807027_0.png.png imagette248664421752276302/1752276207_2080701_1371764216_12a70697dbe83ae5713be0eb85fc9399_rle_crop_3880810103_0.png.png imagette248664421752276302/1752276247_3834585_1371763317_3582ecc2c19b8f657b4387eba9c1aaf4_rle_crop_3880810385_0.png.png imagette248664421752276302/1752276247_3834585_1371763315_1faa18825eb61c3301e151161b98776d_rle_crop_3880810394_0.png.png imagette248664421752276302/1752276207_2080701_1371764170_b5bb1057dfaf424cea3522ee4a88a5ab_rle_crop_3880810114_0.png.png imagette248664421752276302/1752276247_3834585_1371763312_2e6d72932f842f4e531270ab562917ce_rle_crop_3880810403_0.png.png imagette248664421752276302/1752276247_3834585_1371763324_856fa6be4cea865e32be0ad3e7d4aad8_rle_crop_3880810375_0.png.png imagette248664421752276302/1752276207_2080701_1371764112_0648034656701a6af764e896ec1f29bd_rle_crop_3880810135_0.png.png imagette248664421752276302/1752276005_3821214_1371762520_3968def52330fa42d17020ceb6cdcb46_rle_crop_3880805269_0.png.png imagette248664421752276302/1752276247_3834585_1371763312_2e6d72932f842f4e531270ab562917ce_rle_crop_3880810404_0.png.png imagette248664421752276302/1752276126_3829598_1371763692_915a1b44d3e223a3d6f0c8f4038a5390_rle_crop_3880809947_0.png.png imagette248664421752276302/1752276247_3834585_1371763315_1faa18825eb61c3301e151161b98776d_rle_crop_3880810393_0.png.png imagette248664421752276302/1752276247_3834585_1371763239_bc9d82ccef5e6d263def631bc051cc47_rle_crop_3880810421_0.png.png imagette248664421752276302/1752276126_3829598_1371763659_fd790b93a003b841f47cdf0013466d15_rle_crop_3880809965_0.png.png imagette248664421752276302/1752276207_2080701_1371764140_2e1677a568429fffd765e166fc34324b_rle_crop_3880810125_0.png.png imagette248664421752276302/1752276005_3821214_1371762662_682ccaeb8286396570ea143f0069ac12_rle_crop_3880805250_0.png.png imagette248664421752276302/1752276207_2080701_1371764267_9815f3e5acbe0f328eb337fcd2d5c766_rle_crop_3880810094_0.png.png imagette248664421752276302/1752276207_2080701_1371764140_2e1677a568429fffd765e166fc34324b_rle_crop_3880810126_0.png.png imagette248664421752276302/1752276126_3829598_1371763663_8c01acc418270dcb036b6aad1c702e4a_rle_crop_3880809955_0.png.png imagette248664421752276302/1752276207_2080701_1371764086_ca219fb126c5cb134694fab94b2a3823_rle_crop_3880810144_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/119738ec8d9c71ff10982d817528249e_42602741.png imagette248664421752276302 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24866369 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24866446,24866447,24866448,24866449,24866450,24866451,24866452,24866453,24866454,24866455,24866456,24866457?tags=flou,plastique,Teint_Dans_La_Masse,Carton_brun,environnement,kraft,metal,mal_croppe,papier,Carton_gris,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1371766277] : ('0.047842012925245564',) no score found for photo 1371766277 We are sending mail with results at report@fotonower.com args[1371766261] : ('0.047842012925245564',) no score found for photo 1371766261 We are sending mail with results at report@fotonower.com args[1371766196] : ('0.047842012925245564',) no score found for photo 1371766196 We are sending mail with results at report@fotonower.com args[1371766175] : ('0.047842012925245564',) no score found for photo 1371766175 We are sending mail with results at report@fotonower.com args[1371766122] : ('0.047842012925245564',) no score found for photo 1371766122 We are sending mail with results at report@fotonower.com args[1371766105] : ('0.047842012925245564',) no score found for photo 1371766105 We are sending mail with results at report@fotonower.com args[1371766030] : ('0.047842012925245564',) no score found for photo 1371766030 We are sending mail with results at report@fotonower.com args[1371766023] : ('0.047842012925245564',) no score found for photo 1371766023 We are sending mail with results at report@fotonower.com args[1371765937] : ('0.047842012925245564',) no score found for photo 1371765937 We are sending mail with results at report@fotonower.com args[1371765933] : ('0.047842012925245564',) no score found for photo 1371765933 We are sending mail with results at report@fotonower.com args[1371765866] : ('0.047842012925245564',) no score found for photo 1371765866 We are sending mail with results at report@fotonower.com args[1371765863] : ('0.047842012925245564',) no score found for photo 1371765863 We are sending mail with results at report@fotonower.com args[1371764978] : ('0.047842012925245564',) no score found for photo 1371764978 We are sending mail with results at report@fotonower.com args[1371764958] : ('0.047842012925245564',) no score found for photo 1371764958 We are sending mail with results at report@fotonower.com args[1371764913] : ('0.047842012925245564',) no score found for photo 1371764913 We are sending mail with results at report@fotonower.com args[1371764887] : ('0.047842012925245564',) no score found for photo 1371764887 We are sending mail with results at report@fotonower.com args[1371764868] : ('0.047842012925245564',) no score found for photo 1371764868 We are sending mail with results at report@fotonower.com args[1371764836] : ('0.047842012925245564',) no score found for photo 1371764836 We are sending mail with results at report@fotonower.com refus_total : 0.047842012925245564 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=24866369 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_P24866369_12-07-2025_01_25_02.pdf results_Auto_P24866369_12-07-2025_01_25_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_25_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24866369','results_Auto_P24866369_12-07-2025_01_25_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_25_02.pdf','pdf','','0.21','0.047842012925245564') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24866369]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] map_info['map_portfolio_photo'] : {24866369: [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836, 1371764267, 1371764216, 1371764170, 1371764140, 1371764112, 1371764086, 1371763926, 1371763925, 1371763924, 1371763921, 1371763916, 1371763904, 1371763888, 1371763819, 1371763738, 1371763692, 1371763663, 1371763659, 1371763324, 1371763317, 1371763315, 1371763312, 1371763288, 1371763239, 1371762662, 1371762599, 1371762520, 1371762429, 1371762372, 1371762342, 1371762174, 1371762123, 1371762094, 1371762069, 1371762042, 1371762013]} final : False mtd_id 4302 list_pids : [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] 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, '3273993') ('4302', '24866369', '1371766277', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24866369', '1371766277', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993')] time used for this insertion : 0.016830921173095703 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.027994155883789 time spend to save output : 0.017107486724853516 total time spend for step 4 : 4.045101642608643 step5:split_time_score Sat Jul 12 01:25:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24866369'] 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 : [('24866369',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24866369) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371766261: {'path': 'temp/1752276301_986648_1371766261_6e5c7139e7e1c94b976431d68c40514a.jpg', 'extension': 'jpg'}, 1371766277: {'path': 'temp/1752276301_986648_1371766277_9bb09adcf4baa7c2a67bb76075db616a.jpg', 'extension': 'jpg'}, 1371764836: {'path': 'temp/1752276301_986648_1371764836_df0cf878f097a66a114e11fbc5710641.jpg', 'extension': 'jpg'}, 1371764868: {'path': 'temp/1752276301_986648_1371764868_3405dabb8ff38099f0280bc7498165ae.jpg', 'extension': 'jpg'}, 1371764887: {'path': 'temp/1752276301_986648_1371764887_d863c88a45b8eb89bb63e85c80f9b8fe.jpg', 'extension': 'jpg'}, 1371764913: {'path': 'temp/1752276301_986648_1371764913_4e92db0d9fe5325dbca25352bfd28f90.jpg', 'extension': 'jpg'}, 1371764958: {'path': 'temp/1752276301_986648_1371764958_3f69ff6c2797c86ef083d17cc328167d.jpg', 'extension': 'jpg'}, 1371764978: {'path': 'temp/1752276301_986648_1371764978_84d818e7e0d1b17376bb233d98fe494f.jpg', 'extension': 'jpg'}, 1371765863: {'path': 'temp/1752276301_986648_1371765863_c5ed3b29f7d6581302cdf32caf12f485.jpg', 'extension': 'jpg'}, 1371765866: {'path': 'temp/1752276301_986648_1371765866_9556014364f112693c2b52c1638df3a1.jpg', 'extension': 'jpg'}, 1371766105: {'path': 'temp/1752276301_986648_1371766105_7ec1c2e65f642fd87b873720156813eb.jpg', 'extension': 'jpg'}, 1371766122: {'path': 'temp/1752276301_986648_1371766122_7f96cc21dbc54016c9e0281d35678622.jpg', 'extension': 'jpg'}, 1371766175: {'path': 'temp/1752276301_986648_1371766175_546e0268553afbaba446a3eae98c188a.jpg', 'extension': 'jpg'}, 1371766196: {'path': 'temp/1752276301_986648_1371766196_32d630537682733e7551b9b23b1ed16a.jpg', 'extension': 'jpg'}, 1371765933: {'path': 'temp/1752276301_986648_1371765933_131ac4119cc528796b62b58e7b8fd224.jpg', 'extension': 'jpg'}, 1371765937: {'path': 'temp/1752276301_986648_1371765937_be949b4255a2b7a739d843d58f92c40e.jpg', 'extension': 'jpg'}, 1371766023: {'path': 'temp/1752276301_986648_1371766023_51b6538ebc9e4af30036e9a99c90277c.jpg', 'extension': 'jpg'}, 1371766030: {'path': 'temp/1752276301_986648_1371766030_2d3f26f33b21f2d25cb3dcc33f320049.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 = 24866369; (('arc_en_ciel_jrm_live',), ('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 = 24866369 group by h (('01', 54),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24866369 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 (24866369) 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 (24866369) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 12072025 24866369 Nombre de photos uploadées : 54 / 23040 (0%) 12072025 24866369 Nombre de photos taguées (types de déchets): 0 / 54 (0%) 12072025 24866369 Nombre de photos taguées (volume) : 0 / 54 (0%) [{'photo_id': 1371762174, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/1a7ea978595669554f9b9c0b48a1ac1a.jpg', 'username': None, 'uploaded_at': 1752275787, 'text': 'image_12072025_01_15_04_10144.jpg'}, {'photo_id': 1371762123, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/e5c1b75bbc31a47f87483c7218e350c4.jpg', 'username': None, 'uploaded_at': 1752275787, 'text': 'image_12072025_01_15_14_10140.jpg'}, {'photo_id': 1371762094, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/5127c7cb51f185f723324ba37be84ae5.jpg', 'username': None, 'uploaded_at': 1752275787, 'text': 'image_12072025_01_15_23_9124.jpg'}, {'photo_id': 1371762069, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/12/96aee9cdaa3690af41b50859f153c472.jpg', 'username': None, 'uploaded_at': 1752275787, 'text': 'image_12072025_01_15_33_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002295255661010742 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24866369, '2025-07-12' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1972167,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03166985511779785 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= 1972167 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979636, 'mtr_portfolio_id': 24862874, 'dashboard_result_id': 12449448, '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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979636, 'mtr_portfolio_id': 24863716, 'dashboard_result_id': 12449449, '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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979636, 'mtr_portfolio_id': 24864264, 'dashboard_result_id': 12449450, '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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979636, 'mtr_portfolio_id': 24864799, 'dashboard_result_id': 12449451, '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_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979636, 'mtr_portfolio_id': 24865363, 'dashboard_result_id': 12449452, '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_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, 'pht': 3726}}"}, {'dashboat_entry_day': 1972167, 'dashboard_run_id': 1979636, 'mtr_portfolio_id': 24866369, 'dashboard_result_id': 12449453, '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_P24866369_12-07-2025_01_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, '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 = 24862874 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': 3273672, 'mtr_portfolio_id': 24862874, 'created_at': datetime.datetime(2025, 7, 12, 0, 16, 59), 'result': '0.037367531886799636', 'result_long': None, 'result_double': None}] Qualite : 0.037367531886799636 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24862874 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24862874 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_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, 'pht': 3726}}" where mtr_portfolio_id = 24862874 and dashboard_run_id = 1979636 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`=24862874 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449448, 0.037367531886799636, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24862874_12-07-2025_00_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24862879, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24862880, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24862881, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24862882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24862883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24862884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24862885, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24862886, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24862887, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24862888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24862889, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24862890, '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 = 24863716 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': 3273753, 'mtr_portfolio_id': 24863716, 'created_at': datetime.datetime(2025, 7, 12, 0, 32, 58), 'result': '0.03280463110763884', 'result_long': None, 'result_double': None}] Qualite : 0.03280463110763884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24863716 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24863716 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_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, 'pht': 3726}}" where mtr_portfolio_id = 24863716 and dashboard_run_id = 1979636 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`=24863716 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449449, 0.03280463110763884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24863716_12-07-2025_00_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 24863736, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24863737, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24863738, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24863739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24863740, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24863741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24863742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24863743, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24863744, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24863745, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24863746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24863747, '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 = 24864264 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': 3273801, 'mtr_portfolio_id': 24864264, 'created_at': datetime.datetime(2025, 7, 12, 0, 46, 56), 'result': '0.045803300599373216', 'result_long': None, 'result_double': None}] Qualite : 0.045803300599373216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864264 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_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, 'pht': 3726}}" where mtr_portfolio_id = 24864264 and dashboard_run_id = 1979638 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`=24864264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449450, 0.045803300599373216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864264_12-07-2025_00_46_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864292, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864297, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864298, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24864300, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864302, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864303, '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 = 24864799 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': 3273845, 'mtr_portfolio_id': 24864799, 'created_at': datetime.datetime(2025, 7, 12, 1, 2, 58), 'result': '0.05501512360551966', 'result_long': None, 'result_double': None}] Qualite : 0.05501512360551966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24864799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_01_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24864799 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_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, 'pht': 3726}}" where mtr_portfolio_id = 24864799 and dashboard_run_id = 1979638 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`=24864799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449451, 0.05501512360551966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24864799_12-07-2025_01_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24864803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24864804, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24864805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24864806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24864807, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24864808, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24864809, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24864810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24864811, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24864812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24864813, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24864814, '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 = 24865363 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': 3273898, 'mtr_portfolio_id': 24865363, 'created_at': datetime.datetime(2025, 7, 12, 1, 16, 59), 'result': '0.03769358954030426', 'result_long': None, 'result_double': None}] Qualite : 0.03769358954030426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24865363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24865363_12-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24865363 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_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, 'pht': 3726}}" where mtr_portfolio_id = 24865363 and dashboard_run_id = 1979638 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`=24865363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449452, 0.03769358954030426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24865363_12-07-2025_01_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24865438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24865439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24865440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24865441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24865442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24865443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24865444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24865445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24865446, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24865447, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24865448, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24865449, '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 = 24866369 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': 3273993, 'mtr_portfolio_id': 24866369, 'created_at': datetime.datetime(2025, 7, 12, 1, 25, 1), 'result': '0.047842012925245564', 'result_long': None, 'result_double': None}] Qualite : 0.047842012925245564 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24866369 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_25_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24866369 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_P24866369_12-07-2025_01_25_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, 'pht': 3726}}" where mtr_portfolio_id = 24866369 and dashboard_run_id = 1979638 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`=24866369 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12449453, 0.047842012925245564, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24866369_12-07-2025_01_25_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24866430, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24866432, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24866433, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24866434, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24866435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24866437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24866438, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24866440, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24866441, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24866442, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24866443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24866445, '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 (24862874,24863716,24864264,24864799,24865363,24866369) result : ((1371742379,), (1371742409,), (1371742439,), (1371742467,), (1371742493,), (1371742810,), (1371742839,), (1371742869,), (1371742894,), (1371742918,), (1371742943,), (1371743083,), (1371743084,), (1371743103,), (1371743104,), (1371743131,), (1371743137,), (1371743164,), (1371743167,), (1371743191,), (1371743196,), (1371743220,), (1371743223,), (1371743306,), (1371743309,), (1371743312,), (1371743340,), (1371743358,), (1371743368,), (1371743470,), (1371743474,), (1371743479,), (1371743505,), (1371743531,), (1371743558,), (1371743769,), (1371743777,), (1371743781,), (1371743786,), (1371743808,), (1371743836,), (1371743987,), (1371744038,), (1371744092,), (1371744216,), (1371744321,), (1371744440,), (1371744789,), (1371744950,), (1371745105,), (1371745166,), (1371745248,), (1371745345,), (1371745593,), (1371745621,), (1371745663,), (1371745726,), (1371745808,), (1371745824,), (1371746189,), (1371746240,), (1371746298,), (1371746311,), (1371746325,), (1371746331,), (1371746501,), (1371746504,), (1371746508,), (1371746512,), (1371746515,), (1371746520,), (1371746569,), (1371746583,), (1371746607,), (1371746632,), (1371746659,), (1371746685,), (1371746815,), (1371746817,), (1371746818,), (1371746838,), (1371746843,), (1371746854,), (1371747126,), (1371747160,), (1371747186,), (1371747211,), (1371747235,), (1371747269,), (1371747638,), (1371747660,), (1371747687,), (1371747705,), (1371747710,), (1371747716,), (1371747773,), (1371747803,), (1371747842,), (1371747869,), (1371747882,), (1371747883,), (1371748191,), (1371748226,), (1371748292,), (1371748342,), (1371748367,), (1371748380,), (1371748740,), (1371748777,), (1371748817,), (1371748841,), (1371748871,), (1371748900,), (1371749035,), (1371749067,), (1371749121,), (1371749168,), (1371749218,), (1371749277,), (1371749616,), (1371749631,), (1371749649,), (1371749652,), (1371749653,), (1371749657,), (1371749730,), (1371749732,), (1371749735,), (1371749737,), (1371749739,), (1371749741,), (1371749784,), (1371749788,), (1371749791,), (1371749794,), (1371749799,), (1371749804,), (1371749818,), (1371749821,), (1371749823,), (1371749826,), (1371749829,), (1371749833,), (1371749877,), (1371749879,), (1371749883,), (1371749887,), (1371749891,), (1371749895,), (1371749945,), (1371749947,), (1371749949,), (1371749950,), (1371749970,), (1371749981,), (1371750000,), (1371750004,), (1371750007,), (1371750022,), (1371750048,), (1371750075,), (1371750384,), (1371750395,), (1371750398,), (1371750403,), (1371750406,), (1371750407,), (1371750451,), (1371750455,), (1371750459,), (1371750462,), (1371750467,), (1371750470,), (1371750523,), (1371750526,), (1371750528,), (1371750533,), (1371750538,), (1371750545,), (1371750621,), (1371750663,), (1371750711,), (1371750754,), (1371750800,), (1371750854,), (1371751193,), (1371751204,), (1371751218,), (1371751221,), (1371751224,), (1371751226,), (1371751298,), (1371751302,), (1371751313,), (1371751317,), (1371751321,), (1371751326,), (1371751335,), (1371751336,), (1371751343,), (1371751344,), (1371751351,), (1371751353,), (1371751356,), (1371751358,), (1371751362,), (1371751366,), (1371751374,), (1371751376,), (1371751394,), (1371751397,), (1371751399,), (1371751413,), (1371751421,), (1371751428,), (1371751438,), (1371751467,), (1371751472,), (1371751476,), (1371751480,), (1371751484,), (1371751492,), (1371751493,), (1371751495,), (1371751496,), (1371751498,), (1371751499,), (1371751501,), (1371751502,), (1371751504,), (1371751505,), (1371751508,), (1371751509,), (1371751527,), (1371751539,), (1371751544,), (1371751548,), (1371751552,), (1371751555,), (1371751613,), (1371751618,), (1371751622,), (1371751639,), (1371751665,), (1371751689,), (1371752002,), (1371752028,), (1371752051,), (1371752078,), (1371752104,), (1371752129,), (1371752184,), (1371752189,), (1371752193,), (1371752195,), (1371752198,), (1371752201,), (1371752337,), (1371752367,), (1371752392,), (1371752421,), (1371752446,), (1371752477,), (1371752620,), (1371752626,), (1371752631,), (1371752635,), (1371752639,), (1371752642,), (1371752818,), (1371752820,), (1371752824,), (1371752828,), (1371752832,), (1371752834,), (1371753104,), (1371753112,), (1371753115,), (1371753118,), (1371753120,), (1371753122,), (1371753173,), (1371753174,), (1371753177,), (1371753178,), (1371753182,), (1371753183,), (1371753189,), (1371753191,), (1371753200,), (1371753202,), (1371753207,), (1371753210,), (1371753216,), (1371753218,), (1371753221,), (1371753224,), (1371753228,), (1371753234,), (1371753581,), (1371753610,), (1371753640,), (1371753666,), (1371753691,), (1371753720,), (1371753908,), (1371753911,), (1371753915,), (1371753917,), (1371753921,), (1371753923,), (1371753927,), (1371753929,), (1371753931,), (1371753934,), (1371753935,), (1371753936,), (1371753944,), (1371753948,), (1371753952,), (1371753956,), (1371753961,), (1371753967,), (1371754076,), (1371754100,), (1371754130,), (1371754157,), (1371754182,), (1371754210,), (1371754604,), (1371754634,), (1371754669,), (1371754697,), (1371754727,), (1371754764,), (1371754875,), (1371754886,), (1371754892,), (1371754895,), (1371754905,), (1371754932,), (1371755073,), (1371755086,), (1371755089,), (1371755092,), (1371755095,), (1371755096,), (1371755158,), (1371755163,), (1371755165,), (1371755167,), (1371755169,), (1371755172,), (1371755218,), (1371755219,), (1371755221,), (1371755222,), (1371755226,), (1371755227,), (1371755229,), (1371755231,), (1371755232,), (1371755234,), (1371755237,), (1371755239,), (1371755249,), (1371755254,), (1371755259,), (1371755263,), (1371755266,), (1371755270,), (1371755321,), (1371755325,), (1371755332,), (1371755364,), (1371755411,), (1371755496,), (1371755650,), (1371755722,), (1371755786,), (1371755844,), (1371755870,), (1371755897,), (1371756004,), (1371756031,), (1371756036,), (1371756052,), (1371756079,), (1371756151,), (1371756377,), (1371756421,), (1371756510,), (1371756560,), (1371756623,), (1371756665,), (1371757110,), (1371757119,), (1371757123,), (1371757129,), (1371757172,), (1371757216,), (1371757558,), (1371757570,), (1371757572,), (1371757574,), (1371757576,), (1371757626,), (1371757629,), (1371757631,), (1371757634,), (1371757637,), (1371757640,), (1371757661,), (1371757663,), (1371757666,), (1371757668,), (1371757671,), (1371757675,), (1371757691,), (1371757694,), (1371757699,), (1371757702,), (1371757703,), (1371757706,), (1371757734,), (1371757736,), (1371757739,), (1371757743,), (1371757745,), (1371757750,), (1371757776,), (1371757779,), (1371757781,), (1371757783,), (1371757786,), (1371757789,), (1371757825,), (1371757830,), (1371757835,), (1371757839,), (1371757844,), (1371757849,), (1371757862,), (1371757870,), (1371757885,), (1371757908,), (1371757934,), (1371757961,), (1371758310,), (1371758334,), (1371758359,), (1371758382,), (1371758386,), (1371758404,), (1371758485,), (1371758498,), (1371758510,), (1371758552,), (1371758596,), (1371758636,), (1371759065,), (1371759135,), (1371759194,), (1371759254,), (1371759329,), (1371759391,), (1371760020,), (1371760075,), (1371760108,), (1371760146,), (1371760171,), (1371760195,), (1371760545,), (1371760549,), (1371760570,), (1371760576,), (1371760588,), (1371760593,), (1371760596,), (1371760598,), (1371760600,), (1371760602,), (1371760605,), (1371760607,), (1371760730,), (1371760833,), (1371760936,), (1371760993,), (1371761086,), (1371761140,), (1371761572,), (1371761631,), (1371761679,), (1371761682,), (1371761684,), (1371761687,), (1371762013,), (1371762042,), (1371762069,), (1371762094,), (1371762123,), (1371762174,), (1371762342,), (1371762372,), (1371762429,), (1371762520,), (1371762599,), (1371762662,), (1371763239,), (1371763288,), (1371763312,), (1371763315,), (1371763317,), (1371763324,), (1371763659,), (1371763663,), (1371763692,), (1371763738,), (1371763819,), (1371763888,), (1371763904,), (1371763916,), (1371763921,), (1371763924,), (1371763925,), (1371763926,), (1371764086,), (1371764112,), (1371764140,), (1371764170,), (1371764216,), (1371764267,), (1371764836,), (1371764868,), (1371764887,), (1371764913,), (1371764958,), (1371764978,), (1371765863,), (1371765866,), (1371765933,), (1371765937,), (1371766023,), (1371766030,), (1371766105,), (1371766122,), (1371766175,), (1371766196,), (1371766261,), (1371766277,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'12072025': {'nb_upload': 54, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24866369]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] map_info['map_portfolio_photo'] : {24866369: [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836, 1371764267, 1371764216, 1371764170, 1371764140, 1371764112, 1371764086, 1371763926, 1371763925, 1371763924, 1371763921, 1371763916, 1371763904, 1371763888, 1371763819, 1371763738, 1371763692, 1371763663, 1371763659, 1371763324, 1371763317, 1371763315, 1371763312, 1371763288, 1371763239, 1371762662, 1371762599, 1371762520, 1371762429, 1371762372, 1371762342, 1371762174, 1371762123, 1371762094, 1371762069, 1371762042, 1371762013]} final : True mtd_id 4302 list_pids : [1371766277, 1371766261, 1371766196, 1371766175, 1371766122, 1371766105, 1371766030, 1371766023, 1371765937, 1371765933, 1371765866, 1371765863, 1371764978, 1371764958, 1371764913, 1371764887, 1371764868, 1371764836] Looping around the photos to save general results len do output : 1 /24866369Didn'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, '3273993') ('4302', '24866369', '1371766277', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993') ('4302', None, None, None, None, None, None, None, '3273993') ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24866369', 'None', None, None, None, None, '3273993'), ('4302', '24866369', '1371766277', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766261', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766196', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766175', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766122', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766105', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766030', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371766023', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765937', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765933', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765866', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371765863', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764978', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764958', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764913', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764887', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764868', None, None, None, None, None, '3273993'), ('4302', '24866369', '1371764836', None, None, None, None, None, '3273993')] time used for this insertion : 0.26873159408569336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5345718860626221 time spend to save output : 0.26900410652160645 total time spend for step 5 : 0.8035759925842285 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 (3273993) 2.20user 1.80system 0:10.56elapsed 37%CPU (0avgtext+0avgdata 160028maxresident)k 304inputs+12456outputs (0major+73077minor)pagefaults 0swaps