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 : 3482492 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 (2791020) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2791020) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659888 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2791020'] with mtr_portfolio_ids : ['22659888'] and first list_photo_ids : [] new path : /proc/3482492/ Name: python3 Umask: 0002 State: R (running) Tgid: 3482492 Ngid: 0 Pid: 3482492 PPid: 3482491 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3482492 NSpid: 3482492 NSpgid: 3478761 NSsid: 3478761 VmPeak: 1107212 kB VmSize: 1107212 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99236 kB VmRSS: 99236 kB RssAnon: 60192 kB RssFile: 39044 kB RssShmem: 0 kB VmData: 865960 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 47 nonvoluntary_ctxt_switches: 97 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3482492', 'Ngid': '0', 'Pid': '3482492', 'PPid': '3482491', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3482492', 'NSpid': '3482492', 'NSpgid': '3478761', 'NSsid': '3478761', 'VmPeak': '1107212 kB', 'VmSize': '1107212 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99236 kB', 'VmRSS': '99236 kB', 'RssAnon': '60192 kB', 'RssFile': '39044 kB', 'RssShmem': '0 kB', 'VmData': '865960 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '47', 'nonvoluntary_ctxt_switches': '97'} ('datou_batch_current', '3482492', '1107212', '0', '1107212', '865960', '99236', b'', 'marlene', '2791020') 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 (22659888) 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 (2791020 ) ) 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 (22659888) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1355949089, 'portfolio_id': 22659888}, {'photo_id': 1355949040, 'portfolio_id': 22659888}, {'photo_id': 1355949037, 'portfolio_id': 22659888}, {'photo_id': 1355949035, 'portfolio_id': 22659888}, {'photo_id': 1355949033, 'portfolio_id': 22659888}, {'photo_id': 1355949030, 'portfolio_id': 22659888}, {'photo_id': 1355949027, 'portfolio_id': 22659888}, {'photo_id': 1355949003, 'portfolio_id': 22659888}, {'photo_id': 1355948997, 'portfolio_id': 22659888}, {'photo_id': 1355948992, 'portfolio_id': 22659888}, {'photo_id': 1355948974, 'portfolio_id': 22659888}, {'photo_id': 1355948971, 'portfolio_id': 22659888}, {'photo_id': 1355948967, 'portfolio_id': 22659888}, {'photo_id': 1355948915, 'portfolio_id': 22659888}, {'photo_id': 1355948911, 'portfolio_id': 22659888}, {'photo_id': 1355948875, 'portfolio_id': 22659888}, {'photo_id': 1355948873, 'portfolio_id': 22659888}, {'photo_id': 1355948870, 'portfolio_id': 22659888}, {'photo_id': 1355948830, 'portfolio_id': 22659888}, {'photo_id': 1355948827, 'portfolio_id': 22659888}, {'photo_id': 1355948745, 'portfolio_id': 22659888}, {'photo_id': 1355948741, 'portfolio_id': 22659888}, {'photo_id': 1355948738, 'portfolio_id': 22659888}, {'photo_id': 1355948687, 'portfolio_id': 22659888}, {'photo_id': 1355948684, 'portfolio_id': 22659888}, {'photo_id': 1355948680, 'portfolio_id': 22659888}, {'photo_id': 1355948643, 'portfolio_id': 22659888}, {'photo_id': 1355948640, 'portfolio_id': 22659888}, {'photo_id': 1355948636, 'portfolio_id': 22659888}, {'photo_id': 1355948631, 'portfolio_id': 22659888}, {'photo_id': 1355948586, 'portfolio_id': 22659888}, {'photo_id': 1355948583, 'portfolio_id': 22659888}, {'photo_id': 1355948553, 'portfolio_id': 22659888}, {'photo_id': 1355948548, 'portfolio_id': 22659888}, {'photo_id': 1355948543, 'portfolio_id': 22659888}, {'photo_id': 1355948540, 'portfolio_id': 22659888}, {'photo_id': 1355948538, 'portfolio_id': 22659888}, {'photo_id': 1355948536, 'portfolio_id': 22659888}, {'photo_id': 1355948487, 'portfolio_id': 22659888}, {'photo_id': 1355948485, 'portfolio_id': 22659888}, {'photo_id': 1355948481, 'portfolio_id': 22659888}, {'photo_id': 1355948477, 'portfolio_id': 22659888}, {'photo_id': 1355948442, 'portfolio_id': 22659888}, {'photo_id': 1355948438, 'portfolio_id': 22659888}, {'photo_id': 1355948434, 'portfolio_id': 22659888}, {'photo_id': 1355948430, 'portfolio_id': 22659888}, {'photo_id': 1355948426, 'portfolio_id': 22659888}, {'photo_id': 1355948388, 'portfolio_id': 22659888}, {'photo_id': 1355948384, 'portfolio_id': 22659888}, {'photo_id': 1355948379, 'portfolio_id': 22659888}, {'photo_id': 1355948376, 'portfolio_id': 22659888}, {'photo_id': 1355948373, 'portfolio_id': 22659888}, {'photo_id': 1355948325, 'portfolio_id': 22659888}, {'photo_id': 1355948322, 'portfolio_id': 22659888}, {'photo_id': 1355948317, 'portfolio_id': 22659888}, {'photo_id': 1355948312, 'portfolio_id': 22659888}, {'photo_id': 1355948306, 'portfolio_id': 22659888}, {'photo_id': 1355948268, 'portfolio_id': 22659888}, {'photo_id': 1355948258, 'portfolio_id': 22659888}, {'photo_id': 1355948255, 'portfolio_id': 22659888}, {'photo_id': 1355948249, 'portfolio_id': 22659888}] map_portfolio_id_photo_id: {22659888: [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967, 1355948915, 1355948911, 1355948875, 1355948873, 1355948870, 1355948830, 1355948827, 1355948745, 1355948741, 1355948738, 1355948687, 1355948684, 1355948680, 1355948643, 1355948640, 1355948636, 1355948631, 1355948586, 1355948583, 1355948553, 1355948548, 1355948543, 1355948540, 1355948538, 1355948536, 1355948487, 1355948485, 1355948481, 1355948477, 1355948442, 1355948438, 1355948434, 1355948430, 1355948426, 1355948388, 1355948384, 1355948379, 1355948376, 1355948373, 1355948325, 1355948322, 1355948317, 1355948312, 1355948306, 1355948268, 1355948258, 1355948255, 1355948249]} ##### 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.016405344009399414 #### 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 Mon May 5 07:16:57 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 (22659888) 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 : 22659888 get user id for portfolio 22659888 get sub ptf for main ptf 22659888, type 3726 and hashtags ['papier', 'autre_refus', 'mal_croppe', 'Carton_gris', 'flou', 'cartonnette', 'plastique', 'Carton_brun', 'Teint_Dans_La_Masse', 'kraft', 'metal', 'environnement'] 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`=22659888 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','mal_croppe','Carton_gris','flou','cartonnette','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','environnement')) 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`=22659888 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','mal_croppe','Carton_gris','flou','cartonnette','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22659888, 'sub_port_id': 22659917, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082324, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'metal': {'main_port_id': 22659888, 'sub_port_id': 22659918, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082325, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'mal_croppe': {'main_port_id': 22659888, 'sub_port_id': 22659919, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082326, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'kraft': {'main_port_id': 22659888, 'sub_port_id': 22659920, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082327, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'autre_refus': {'main_port_id': 22659888, 'sub_port_id': 22659921, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082328, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'Carton_gris': {'main_port_id': 22659888, 'sub_port_id': 22659922, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082329, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'flou': {'main_port_id': 22659888, 'sub_port_id': 22659923, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082330, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22659888, 'sub_port_id': 22659924, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082331, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'cartonnette': {'main_port_id': 22659888, 'sub_port_id': 22659925, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082332, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'papier': {'main_port_id': 22659888, 'sub_port_id': 22659926, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082333, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'Carton_brun': {'main_port_id': 22659888, 'sub_port_id': 22659927, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082334, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}, 'plastique': {'main_port_id': 22659888, 'sub_port_id': 22659928, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082335, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22659917 , 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=22659888 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 (22659917) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659918 , 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=22659888 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 (22659918) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659919 , 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=22659888 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 (22659919) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659920 , 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=22659888 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 (22659920) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659921 , 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=22659888 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 (22659921) result : ((1355948610,), (1355948621,), (1355948659,), (1355948886,), (1355948984,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659922 , 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=22659888 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 (22659922) result : ((1355948409,), (1355948510,), (1355948622,), (1355948724,), (1355948725,), (1355948851,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659923 , 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=22659888 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 (22659923) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659924 , 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=22659888 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 (22659924) result : ((1355948508,), (1355948509,), (1355948519,), (1355948520,), (1355948521,), (1355948522,), (1355948523,), (1355948524,), (1355948560,), (1355948561,), (1355948609,), (1355948657,), (1355948721,), (1355948773,), (1355948850,), (1355948856,), (1355948937,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659925 , 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=22659888 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 (22659925) result : ((1355948412,), (1355948413,), (1355948414,), (1355948415,), (1355948416,), (1355948526,), (1355948527,), (1355948529,), (1355948612,), (1355948726,), (1355948939,), (1355948940,), (1355948949,), (1355948951,), (1355948985,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659926 , 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=22659888 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 (22659926) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659927 , 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=22659888 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 (22659927) result : ((1355948614,), (1355948615,), (1355948616,), (1355948617,), (1355948623,), (1355948728,), (1355948888,), (1355948955,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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 22659928 , 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=22659888 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 (22659928) result : ((1355948418,), (1355948619,), (1355948625,), (1355948626,), (1355948859,), (1355948860,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22659888) result : ((1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) 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`=22659888 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','mal_croppe','Carton_gris','flou','cartonnette','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','environnement')) 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`=22659888 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','autre_refus','mal_croppe','Carton_gris','flou','cartonnette','plastique','Carton_brun','Teint_Dans_La_Masse','kraft','metal','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22659888, 'sub_port_id': 22659929, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082336, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'metal': {'main_port_id': 22659888, 'sub_port_id': 22659930, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082337, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'mal_croppe': {'main_port_id': 22659888, 'sub_port_id': 22659931, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082338, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'kraft': {'main_port_id': 22659888, 'sub_port_id': 22659932, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082339, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'autre_refus': {'main_port_id': 22659888, 'sub_port_id': 22659933, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082340, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'Carton_gris': {'main_port_id': 22659888, 'sub_port_id': 22659934, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082341, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'flou': {'main_port_id': 22659888, 'sub_port_id': 22659935, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082342, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 22659888, 'sub_port_id': 22659936, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082343, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'cartonnette': {'main_port_id': 22659888, 'sub_port_id': 22659937, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082344, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'papier': {'main_port_id': 22659888, 'sub_port_id': 22659938, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082345, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'Carton_brun': {'main_port_id': 22659888, 'sub_port_id': 22659939, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082346, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}, 'plastique': {'main_port_id': 22659888, 'sub_port_id': 22659940, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15082347, 'last_updated_at': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 5, 7, 14, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 5, 7, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659919 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659932,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659920 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659921 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659934,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659922 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659935,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659923 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659936,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659924 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659937,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659925 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659938,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659926 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659939,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659927 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22659940,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22659928 lien utilise dans velours : https://www.fotonower.com/velours/22659929,22659930,22659931,22659932,22659933,22659934,22659935,22659936,22659937,22659938,22659939,22659940?tags=environnement,metal,mal_croppe,kraft,autre_refus,Carton_gris,flou,Teint_Dans_La_Masse,cartonnette,papier,Carton_brun,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22659888]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] map_info['map_portfolio_photo'] : {22659888: [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967, 1355948915, 1355948911, 1355948875, 1355948873, 1355948870, 1355948830, 1355948827, 1355948745, 1355948741, 1355948738, 1355948687, 1355948684, 1355948680, 1355948643, 1355948640, 1355948636, 1355948631, 1355948586, 1355948583, 1355948553, 1355948548, 1355948543, 1355948540, 1355948538, 1355948536, 1355948487, 1355948485, 1355948481, 1355948477, 1355948442, 1355948438, 1355948434, 1355948430, 1355948426, 1355948388, 1355948384, 1355948379, 1355948376, 1355948373, 1355948325, 1355948322, 1355948317, 1355948312, 1355948306, 1355948268, 1355948258, 1355948255, 1355948249]} final : False mtd_id 4302 list_pids : [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] Looping around the photos to save general results len do output : 1 /22659888. 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, '2791020') ('4302', '22659888', '1355949089', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22659888', "{'environnement': 22659917, 'metal': 22659918, 'mal_croppe': 22659919, 'kraft': 22659920, 'autre_refus': 22659921, 'Carton_gris': 22659922, 'flou': 22659923, 'Teint_Dans_La_Masse': 22659924, 'cartonnette': 22659925, 'papier': 22659926, 'Carton_brun': 22659927, 'plastique': 22659928}", None, None, None, None, '2791020'), ('4302', '22659888', '1355949089', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020')] time used for this insertion : 0.14382410049438477 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4724674224853516 time spend to save output : 0.14419198036193848 total time spend for step 1 : 1.61665940284729 step2:final Mon May 5 07:16: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 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 (22659888) 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 22659888 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355948268,1355948258,1355948255,1355948249,1355948325,1355948322,1355948317,1355948312,1355948306,1355948388,1355948384,1355948379,1355948376,1355948373,1355948442,1355948438,1355948434,1355948430,1355948426,1355948487,1355948485,1355948481,1355948477,1355948553,1355948548,1355948543,1355948540,1355948538,1355948536,1355948586,1355948583,1355948643,1355948640,1355948636,1355948631,1355948687,1355948684,1355948680,1355948745,1355948741,1355948738,1355948830,1355948827,1355948875,1355948873,1355948870,1355948915,1355948911,1355949003,1355948997,1355948992,1355948974,1355948971,1355948967,1355949040,1355949037,1355949035,1355949033,1355949030,1355949027,1355949089); 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([22659888]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} new output for save of step final : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] map_info['map_portfolio_photo'] : {22659888: [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967, 1355948915, 1355948911, 1355948875, 1355948873, 1355948870, 1355948830, 1355948827, 1355948745, 1355948741, 1355948738, 1355948687, 1355948684, 1355948680, 1355948643, 1355948640, 1355948636, 1355948631, 1355948586, 1355948583, 1355948553, 1355948548, 1355948543, 1355948540, 1355948538, 1355948536, 1355948487, 1355948485, 1355948481, 1355948477, 1355948442, 1355948438, 1355948434, 1355948430, 1355948426, 1355948388, 1355948384, 1355948379, 1355948376, 1355948373, 1355948325, 1355948322, 1355948317, 1355948312, 1355948306, 1355948268, 1355948258, 1355948255, 1355948249]} final : False mtd_id 4302 list_pids : [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] Looping around the photos to save general results len do output : 13 /1355949089.Didn't retrieve data . /1355949040.Didn't retrieve data . /1355949037.Didn't retrieve data . /1355949035.Didn't retrieve data . /1355949033.Didn't retrieve data . /1355949030.Didn't retrieve data . /1355949027.Didn't retrieve data . /1355949003.Didn't retrieve data . /1355948997.Didn't retrieve data . /1355948992.Didn't retrieve data . /1355948974.Didn't retrieve data . /1355948971.Didn't retrieve data . /1355948967.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, '2791020') ('4302', '22659888', '1355949089', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22659888', '1355949089', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949040', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949037', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949035', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949033', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949030', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949027', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355949003', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355948997', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355948992', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355948974', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355948971', '0.0353694812987911', None, None, None, None, '2791020'), ('4302', '22659888', '1355948967', '0.0353694812987911', None, None, None, None, '2791020')] time used for this insertion : 0.015761613845825195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07198596000671387 time spend to save output : 0.01651144027709961 total time spend for step 2 : 0.08849740028381348 step3:velours_tree Mon May 5 07:16: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 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 : {22659888: [{'environnement': 22659917, 'metal': 22659918, 'mal_croppe': 22659919, 'kraft': 22659920, 'autre_refus': 22659921, 'Carton_gris': 22659922, 'flou': 22659923, 'Teint_Dans_La_Masse': 22659924, 'cartonnette': 22659925, 'papier': 22659926, 'Carton_brun': 22659927, 'plastique': 22659928}]} input_args_next_step : {22659888: ()} output_args : {22659888: [{'environnement': 22659917, 'metal': 22659918, 'mal_croppe': 22659919, 'kraft': 22659920, 'autre_refus': 22659921, 'Carton_gris': 22659922, 'flou': 22659923, 'Teint_Dans_La_Masse': 22659924, 'cartonnette': 22659925, 'papier': 22659926, 'Carton_brun': 22659927, 'plastique': 22659928}]} args : 22659888 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 : ({'environnement': 22659917, 'metal': 22659918, 'mal_croppe': 22659919, 'kraft': 22659920, 'autre_refus': 22659921, 'Carton_gris': 22659922, 'flou': 22659923, 'Teint_Dans_La_Masse': 22659924, 'cartonnette': 22659925, 'papier': 22659926, 'Carton_brun': 22659927, 'plastique': 22659928},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22659888) 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([22659888]) 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.3280923366546631 time spend to save output : 5.412101745605469e-05 total time spend for step 3 : 0.32814645767211914 step4:send_mail_cod Mon May 5 07:16: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 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 : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} input_args_next_step : {1355949089: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949089 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949040 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949037 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949035 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949033 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949030 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949027 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355949003 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355948997 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355948992 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355948974 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355948971 depend.output_id : 0 input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ()} output_args : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',)} args : 1355948967 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 : {22659888: [{'environnement': 22659917, 'metal': 22659918, 'mal_croppe': 22659919, 'kraft': 22659920, 'autre_refus': 22659921, 'Carton_gris': 22659922, 'flou': 22659923, 'Teint_Dans_La_Masse': 22659924, 'cartonnette': 22659925, 'papier': 22659926, 'Carton_brun': 22659927, 'plastique': 22659928}]} input_args_next_step : {1355949089: ('0.0353694812987911',), 1355949040: ('0.0353694812987911',), 1355949037: ('0.0353694812987911',), 1355949035: ('0.0353694812987911',), 1355949033: ('0.0353694812987911',), 1355949030: ('0.0353694812987911',), 1355949027: ('0.0353694812987911',), 1355949003: ('0.0353694812987911',), 1355948997: ('0.0353694812987911',), 1355948992: ('0.0353694812987911',), 1355948974: ('0.0353694812987911',), 1355948971: ('0.0353694812987911',), 1355948967: ('0.0353694812987911',), 22659888: ()} output_args : {22659888: [{'environnement': 22659917, 'metal': 22659918, 'mal_croppe': 22659919, 'kraft': 22659920, 'autre_refus': 22659921, 'Carton_gris': 22659922, 'flou': 22659923, 'Teint_Dans_La_Masse': 22659924, 'cartonnette': 22659925, 'papier': 22659926, 'Carton_brun': 22659927, 'plastique': 22659928}]} args : 22659888 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 :14, first value : ('0.0353694812987911',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22659888) 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 (1355949089,1355949040,1355949037,1355949035,1355949033,1355949030,1355949027,1355949003,1355948997,1355948992,1355948974,1355948971,1355948967) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355948967 begin to download photo : 1355948992 begin to download photo : 1355949027 begin to download photo : 1355949035 begin to download photo : 1355949089 download finish for photo 1355949089 download finish for photo 1355949035 begin to download photo : 1355949037 download finish for photo 1355949027 begin to download photo : 1355949030 download finish for photo 1355948967 begin to download photo : 1355948971 download finish for photo 1355948992 begin to download photo : 1355948997 download finish for photo 1355949037 begin to download photo : 1355949040 download finish for photo 1355948971 begin to download photo : 1355948974 download finish for photo 1355948997 begin to download photo : 1355949003 download finish for photo 1355949030 begin to download photo : 1355949033 download finish for photo 1355948974 download finish for photo 1355949003 download finish for photo 1355949033 download finish for photo 1355949040 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette226599181746422220/ imagette226599191746422220/ imagette226599201746422220/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22659888_05-05-2025_07_17_00.pdf 22659918 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=22659918 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226599181746422220 22659919 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=22659919 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226599191746422220 22659920 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=22659920 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226599201746422220 22659921 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=22659921 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355948610: '1746421632_392264_1355948438_5e3f2ec82dd89933691bd07c371ddf41_rle_crop_3784112998_0.png', 1355948621: '1746421647_1039462_1355948477_35d5e1455ef0347b360e8167b01b33dd_rle_crop_3784113066_0.png', 1355948659: '1746421693_392828_1355948442_8d926ea6295d28a8d1b437a2d9237ae5_rle_crop_3784113117_0.png', 1355948886: '1746421933_395654_1355948687_71f89951e5e413915c297cfa9e557a4e_rle_crop_3784114331_0.png', 1355948984: '1746422051_396874_1355948830_8516b74b8c3639474bda772970e3e28a_rle_crop_3784114546_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6976698f40d3303dce932e024ce8752f_90845582.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6919a6e01b5a613357d4ae536aeb27ff_9259025.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/edfcf22c6d9e59c20037aea170b93bf4_5018594.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ca609a931db7034a74edce1d990b7d99_21374351.png change filename to text .imagette226599211746422220/ imagette226599211746422220/1746421647_1039462_1355948477_35d5e1455ef0347b360e8167b01b33dd_rle_crop_3784113066_0.png.png imagette226599211746422220/1746421933_395654_1355948687_71f89951e5e413915c297cfa9e557a4e_rle_crop_3784114331_0.png.png imagette226599211746422220/1746422051_396874_1355948830_8516b74b8c3639474bda772970e3e28a_rle_crop_3784114546_0.png.png imagette226599211746422220/1746421632_392264_1355948438_5e3f2ec82dd89933691bd07c371ddf41_rle_crop_3784112998_0.png.png imagette226599211746422220/1746421693_392828_1355948442_8d926ea6295d28a8d1b437a2d9237ae5_rle_crop_3784113117_0.png.png imagette226599231746422220/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/f99a086ff351d2d10602bdd6a04bc9fb_13591956.png imagette226599211746422220 22659923 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=22659923 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226599231746422220 22659925 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=22659925 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355948412: '1746421393_389854_1355948268_c31cb85fe810f839e99200c51c9946a8_rle_crop_3784112357_0.png', 1355948413: '1746421393_389854_1355948268_c31cb85fe810f839e99200c51c9946a8_rle_crop_3784112355_0.png', 1355948414: '1746421393_389854_1355948258_7be58b2e91a75223b3609440682704ab_rle_crop_3784112368_0.png', 1355948415: '1746421393_389854_1355948255_b6be45aaab2801d6f3959e047a9b2bfd_rle_crop_3784112389_0.png', 1355948416: '1746421393_389854_1355948249_ae4f06934e71a3e1de8b605cac3a7b9e_rle_crop_3784112416_0.png', 1355948526: '1746421526_1034471_1355948317_af7894a3b5409a63b884ec9955764f4d_rle_crop_3784112742_0.png', 1355948527: '1746421526_1034471_1355948317_af7894a3b5409a63b884ec9955764f4d_rle_crop_3784112739_0.png', 1355948529: '1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112760_0.png', 1355948612: '1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113011_0.png', 1355948726: '1746421766_1042073_1355948631_9217662f1711f4c8ce471ae608d1dea6_rle_crop_3784113965_0.png', 1355948939: '1746421993_396323_1355948873_cbb5240b15440e1cba0e9f3f6794e88a_rle_crop_3784114462_0.png', 1355948940: '1746421993_396323_1355948870_cae258803c1c0ad7e4e15bf5249d0541_rle_crop_3784114470_0.png', 1355948949: '1746422007_1048563_1355948875_46e409fedef9e14716ca3e648931724a_rle_crop_3784114490_0.png', 1355948951: '1746422007_1048563_1355948827_6425f65ad7ed53394521b58261529a9e_rle_crop_3784114502_0.png', 1355948985: '1746422051_396874_1355948830_8516b74b8c3639474bda772970e3e28a_rle_crop_3784114547_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/459cbe5de1bd0800cace662052dbec95_41649952.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/953906ba691ae647f116c2b66cfea4b2_63677374.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5f690da7d7d61a1cb72b67dd184aa369_48838722.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/0e8579fa4ee7c3ae31ab3dbeb8a7470d_89017157.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/a65ce2074fc86f5499e0ef86da15d4c3_71665535.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5847640fd3f36004ab6af38617bbb70b_73263921.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/bedafab94956d4b58ba952cd1c2c43b2_37684713.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/2949845a79b342efd29bef2dddc83178_91546047.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/2529130eff65a73cb8485c0dd5311238_50101329.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/4a7b0a8c01d1466af74a4eb34299a568_39049290.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ddaed8047993aee2b127deaaa54db2e8_77210713.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/da3ecbd4dddbd8b5e05f28cf18d0907f_87019857.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/18268bc6df26a606f854d1cc4ae0d47d_13623837.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5adbea4ac85004cef064f861ba6c4a31_86018494.png change filename to text .imagette226599251746422220/ imagette226599251746422220/1746422007_1048563_1355948827_6425f65ad7ed53394521b58261529a9e_rle_crop_3784114502_0.png.png imagette226599251746422220/1746421393_389854_1355948258_7be58b2e91a75223b3609440682704ab_rle_crop_3784112368_0.png.png imagette226599251746422220/1746421993_396323_1355948873_cbb5240b15440e1cba0e9f3f6794e88a_rle_crop_3784114462_0.png.png imagette226599251746422220/1746422051_396874_1355948830_8516b74b8c3639474bda772970e3e28a_rle_crop_3784114547_0.png.png imagette226599251746422220/1746421766_1042073_1355948631_9217662f1711f4c8ce471ae608d1dea6_rle_crop_3784113965_0.png.png imagette226599251746422220/1746421393_389854_1355948249_ae4f06934e71a3e1de8b605cac3a7b9e_rle_crop_3784112416_0.png.png imagette226599251746422220/1746421393_389854_1355948255_b6be45aaab2801d6f3959e047a9b2bfd_rle_crop_3784112389_0.png.png imagette226599251746422220/1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112760_0.png.png imagette226599251746422220/1746421526_1034471_1355948317_af7894a3b5409a63b884ec9955764f4d_rle_crop_3784112739_0.png.png imagette226599251746422220/1746421526_1034471_1355948317_af7894a3b5409a63b884ec9955764f4d_rle_crop_3784112742_0.png.png imagette226599251746422220/1746422007_1048563_1355948875_46e409fedef9e14716ca3e648931724a_rle_crop_3784114490_0.png.png imagette226599251746422220/1746421393_389854_1355948268_c31cb85fe810f839e99200c51c9946a8_rle_crop_3784112357_0.png.png imagette226599251746422220/1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113011_0.png.png imagette226599251746422220/1746421993_396323_1355948870_cae258803c1c0ad7e4e15bf5249d0541_rle_crop_3784114470_0.png.png imagette226599251746422220/1746421393_389854_1355948268_c31cb85fe810f839e99200c51c9946a8_rle_crop_3784112355_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/9c467fec43268e3253e22b06b531e53c_28893773.png imagette226599251746422220 22659928 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=22659928 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355948418: '1746421393_389854_1355948258_7be58b2e91a75223b3609440682704ab_rle_crop_3784112363_0.png', 1355948619: '1746421632_392264_1355948430_6b0aa3c774cdab1cc0637e98203f15d4_rle_crop_3784113025_0.png', 1355948625: '1746421647_1039462_1355948485_d53328af4aae9e685b8fe7debc3437fc_rle_crop_3784113035_0.png', 1355948626: '1746421647_1039462_1355948477_35d5e1455ef0347b360e8167b01b33dd_rle_crop_3784113068_0.png', 1355948859: '1746421887_1045034_1355948684_9fa4a48df3a68d844038909024c6a557_rle_crop_3784114294_0.png', 1355948860: '1746421887_1045034_1355948680_3685841a910e6bfcb7071af3a7695acf_rle_crop_3784114304_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c95f2ecf0fdb3a457791525c34d66cb8_28364983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/e35678520835a6b9d9f68b23f9b6e379_26446435.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/32d1db90f077cbbbdb1f122e637dc772_35400601.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/7984c59957e0eb0933f208860cff3420_62323736.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/4e8118e8b24474afa33b13ebf47f4c64_82086732.png change filename to text .imagette226599281746422221/ imagette226599281746422221/1746421393_389854_1355948258_7be58b2e91a75223b3609440682704ab_rle_crop_3784112363_0.png.png imagette226599281746422221/1746421632_392264_1355948430_6b0aa3c774cdab1cc0637e98203f15d4_rle_crop_3784113025_0.png.png imagette226599281746422221/1746421647_1039462_1355948485_d53328af4aae9e685b8fe7debc3437fc_rle_crop_3784113035_0.png.png imagette226599281746422221/1746421647_1039462_1355948477_35d5e1455ef0347b360e8167b01b33dd_rle_crop_3784113068_0.png.png imagette226599281746422221/1746421887_1045034_1355948684_9fa4a48df3a68d844038909024c6a557_rle_crop_3784114294_0.png.png imagette226599281746422221/1746421887_1045034_1355948680_3685841a910e6bfcb7071af3a7695acf_rle_crop_3784114304_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/191c04ed0501f4d98b54cf7aa0632311_81698074.png imagette226599281746422221 22659922 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=22659922 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355948409: '1746421393_389854_1355948255_b6be45aaab2801d6f3959e047a9b2bfd_rle_crop_3784112387_0.png', 1355948510: '1746421513_391047_1355948379_d9185941170bc3830641f2519a726fa3_rle_crop_3784112675_0.png', 1355948622: '1746421647_1039462_1355948485_d53328af4aae9e685b8fe7debc3437fc_rle_crop_3784113030_0.png', 1355948724: '1746421766_1042073_1355948640_30afc07eee1538f6de2412c8d9cd8dd3_rle_crop_3784113936_0.png', 1355948725: '1746421766_1042073_1355948640_30afc07eee1538f6de2412c8d9cd8dd3_rle_crop_3784113928_0.png', 1355948851: '1746421873_395086_1355948738_3ce8e3919b5cc57269989d9593d5ff26_rle_crop_3784114273_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/83a23a37de5b776e4504cf2aaef95505_4988802.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/236d78f5bc78677a7a29501b4c167d59_90068898.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6474bd5861f95a65cfce8c42cf820330_41450886.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/e05b4981d8c682f181a501bf16c34744_52356748.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b788760d32116fb9ad89978df0f15b8d_58243394.png change filename to text .imagette226599221746422221/ imagette226599221746422221/1746421766_1042073_1355948640_30afc07eee1538f6de2412c8d9cd8dd3_rle_crop_3784113928_0.png.png imagette226599221746422221/1746421873_395086_1355948738_3ce8e3919b5cc57269989d9593d5ff26_rle_crop_3784114273_0.png.png imagette226599221746422221/1746421513_391047_1355948379_d9185941170bc3830641f2519a726fa3_rle_crop_3784112675_0.png.png imagette226599221746422221/1746421766_1042073_1355948640_30afc07eee1538f6de2412c8d9cd8dd3_rle_crop_3784113936_0.png.png imagette226599221746422221/1746421647_1039462_1355948485_d53328af4aae9e685b8fe7debc3437fc_rle_crop_3784113030_0.png.png imagette226599221746422221/1746421393_389854_1355948255_b6be45aaab2801d6f3959e047a9b2bfd_rle_crop_3784112387_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/19206c606ebcd3cf44272bc69b9a0961_50444560.png imagette226599221746422221 22659924 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=22659924 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355948560: '1746421573_391631_1355948325_2fd66c2e9e17c1157b2300d668cb8100_rle_crop_3784112820_0.png', 1355948937: '1746421993_396323_1355948870_cae258803c1c0ad7e4e15bf5249d0541_rle_crop_3784114475_0.png', 1355948856: '1746421887_1045034_1355948680_3685841a910e6bfcb7071af3a7695acf_rle_crop_3784114305_0.png', 1355948850: '1746421873_395086_1355948738_3ce8e3919b5cc57269989d9593d5ff26_rle_crop_3784114270_0.png', 1355948773: '1746421811_394484_1355948643_4494591b3742504dad0da77dc312e22b_rle_crop_3784114120_0.png', 1355948721: '1746421766_1042073_1355948636_222f4e261020cc4e78e9a8aa1c4a5168_rle_crop_3784113956_0.png', 1355948657: '1746421693_392828_1355948442_8d926ea6295d28a8d1b437a2d9237ae5_rle_crop_3784113123_0.png', 1355948609: '1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113016_0.png', 1355948561: '1746421573_391631_1355948325_2fd66c2e9e17c1157b2300d668cb8100_rle_crop_3784112821_0.png', 1355948508: '1746421513_391047_1355948379_d9185941170bc3830641f2519a726fa3_rle_crop_3784112684_0.png', 1355948524: '1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112758_0.png', 1355948523: '1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112754_0.png', 1355948522: '1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112761_0.png', 1355948521: '1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112757_0.png', 1355948520: '1746421526_1034471_1355948317_af7894a3b5409a63b884ec9955764f4d_rle_crop_3784112746_0.png', 1355948519: '1746421526_1034471_1355948322_44f9d4e533c7c26b53be4ead8e5513a3_rle_crop_3784112729_0.png', 1355948509: '1746421513_391047_1355948376_1ae81331a0f9d9bb41e2944c331a2271_rle_crop_3784112701_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/6b2f7de3f13a1016edc39a9458375826_13339873.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/17ee8d6a1b73b8ca52b927b74921100c_56142672.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/9efb25f61e3d368b30427a2ba5a91efb_43168984.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/a1312e975815e12bf8596afcd31d0b63_76373921.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b701cd842d7002d014ea3431cb7e3263_5737291.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c3038c6f47acb8895f6236cb73f91c5a_74693594.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c32b0844ad9d2e32f02e0d7934284b93_63744196.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/2a7189ef906718c34cca2bb757cf71d3_55620458.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/00ccb0b23dc5fdc5a720abaff27ab30f_31448137.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/15bf5c1f54c247d7b9dc027770967dd3_54624005.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/a82385f11103d8dfc037ea0b877e31b8_37912442.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/f826e49e645ea135efe44aa443c48ec4_12989024.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/e398eccda2e6abced163d1fabc706696_60283588.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/800f0bcdee13931762c846f039a44b78_61240340.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/aec18ec355f9c772321604a781e4d6d7_11917483.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/180acd1a3531238abccd5cf509e110a5_97251184.png change filename to text .imagette226599241746422222/ imagette226599241746422222/1746421573_391631_1355948325_2fd66c2e9e17c1157b2300d668cb8100_rle_crop_3784112821_0.png.png imagette226599241746422222/1746421873_395086_1355948738_3ce8e3919b5cc57269989d9593d5ff26_rle_crop_3784114270_0.png.png imagette226599241746422222/1746421993_396323_1355948870_cae258803c1c0ad7e4e15bf5249d0541_rle_crop_3784114475_0.png.png imagette226599241746422222/1746421887_1045034_1355948680_3685841a910e6bfcb7071af3a7695acf_rle_crop_3784114305_0.png.png imagette226599241746422222/1746421811_394484_1355948643_4494591b3742504dad0da77dc312e22b_rle_crop_3784114120_0.png.png imagette226599241746422222/1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112757_0.png.png imagette226599241746422222/1746421513_391047_1355948379_d9185941170bc3830641f2519a726fa3_rle_crop_3784112684_0.png.png imagette226599241746422222/1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113016_0.png.png imagette226599241746422222/1746421513_391047_1355948376_1ae81331a0f9d9bb41e2944c331a2271_rle_crop_3784112701_0.png.png imagette226599241746422222/1746421526_1034471_1355948322_44f9d4e533c7c26b53be4ead8e5513a3_rle_crop_3784112729_0.png.png imagette226599241746422222/1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112758_0.png.png imagette226599241746422222/1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112761_0.png.png imagette226599241746422222/1746421693_392828_1355948442_8d926ea6295d28a8d1b437a2d9237ae5_rle_crop_3784113123_0.png.png imagette226599241746422222/1746421526_1034471_1355948312_169d0d8528949b183e255a66410eec91_rle_crop_3784112754_0.png.png imagette226599241746422222/1746421526_1034471_1355948317_af7894a3b5409a63b884ec9955764f4d_rle_crop_3784112746_0.png.png imagette226599241746422222/1746421766_1042073_1355948636_222f4e261020cc4e78e9a8aa1c4a5168_rle_crop_3784113956_0.png.png imagette226599241746422222/1746421573_391631_1355948325_2fd66c2e9e17c1157b2300d668cb8100_rle_crop_3784112820_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/93e52727fcceb3e67e33eeb19e02ac31_91177503.png imagette226599241746422222 22659927 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=22659927 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355948614: '1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113013_0.png', 1355948615: '1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113012_0.png', 1355948616: '1746421632_392264_1355948430_6b0aa3c774cdab1cc0637e98203f15d4_rle_crop_3784113020_0.png', 1355948617: '1746421632_392264_1355948426_fbfc572230f9312b337a7ef615234563_rle_crop_3784113047_0.png', 1355948623: '1746421647_1039462_1355948477_35d5e1455ef0347b360e8167b01b33dd_rle_crop_3784113070_0.png', 1355948728: '1746421766_1042073_1355948640_30afc07eee1538f6de2412c8d9cd8dd3_rle_crop_3784113938_0.png', 1355948888: '1746421933_395654_1355948687_71f89951e5e413915c297cfa9e557a4e_rle_crop_3784114335_0.png', 1355948955: '1746422007_1048563_1355948827_6425f65ad7ed53394521b58261529a9e_rle_crop_3784114509_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/724861c90f65bdae97743388b02d2a17_14114885.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/d84f0940416a5ddeee06472a664f27f0_17349660.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c62a8426cfe69f2f51f2e844a23e079a_40955482.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/e9310a0b0a72662724b654c17f97bd93_87881829.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ddaf9a244cdd2a41e4bd18946b1dfef5_90603235.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/3d1d5d6e23da0a632b2282cf30deb61c_18593629.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/5de08b44e4729a28de1fe996ddd53c70_65462105.png change filename to text .imagette226599271746422222/ imagette226599271746422222/1746421647_1039462_1355948477_35d5e1455ef0347b360e8167b01b33dd_rle_crop_3784113070_0.png.png imagette226599271746422222/1746422007_1048563_1355948827_6425f65ad7ed53394521b58261529a9e_rle_crop_3784114509_0.png.png imagette226599271746422222/1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113012_0.png.png imagette226599271746422222/1746421766_1042073_1355948640_30afc07eee1538f6de2412c8d9cd8dd3_rle_crop_3784113938_0.png.png imagette226599271746422222/1746421632_392264_1355948430_6b0aa3c774cdab1cc0637e98203f15d4_rle_crop_3784113020_0.png.png imagette226599271746422222/1746421632_392264_1355948426_fbfc572230f9312b337a7ef615234563_rle_crop_3784113047_0.png.png imagette226599271746422222/1746421933_395654_1355948687_71f89951e5e413915c297cfa9e557a4e_rle_crop_3784114335_0.png.png imagette226599271746422222/1746421632_392264_1355948434_8cbcaba04f2e61b27873de6a2d2bfa00_rle_crop_3784113013_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/21961508f2ac667086f00f40a101745e_92046339.png imagette226599271746422222 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22659888 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22659929,22659930,22659931,22659932,22659933,22659934,22659935,22659936,22659937,22659938,22659939,22659940?tags=environnement,metal,mal_croppe,kraft,autre_refus,Carton_gris,flou,Teint_Dans_La_Masse,cartonnette,papier,Carton_brun,plastique your option no_mail is active, we will not send the real mail to your client args[1355949089] : ('0.0353694812987911',) no score found for photo 1355949089 We are sending mail with results at report@fotonower.com args[1355949040] : ('0.0353694812987911',) no score found for photo 1355949040 We are sending mail with results at report@fotonower.com args[1355949037] : ('0.0353694812987911',) no score found for photo 1355949037 We are sending mail with results at report@fotonower.com args[1355949035] : ('0.0353694812987911',) no score found for photo 1355949035 We are sending mail with results at report@fotonower.com args[1355949033] : ('0.0353694812987911',) no score found for photo 1355949033 We are sending mail with results at report@fotonower.com args[1355949030] : ('0.0353694812987911',) no score found for photo 1355949030 We are sending mail with results at report@fotonower.com args[1355949027] : ('0.0353694812987911',) no score found for photo 1355949027 We are sending mail with results at report@fotonower.com args[1355949003] : ('0.0353694812987911',) no score found for photo 1355949003 We are sending mail with results at report@fotonower.com args[1355948997] : ('0.0353694812987911',) no score found for photo 1355948997 We are sending mail with results at report@fotonower.com args[1355948992] : ('0.0353694812987911',) no score found for photo 1355948992 We are sending mail with results at report@fotonower.com args[1355948974] : ('0.0353694812987911',) no score found for photo 1355948974 We are sending mail with results at report@fotonower.com args[1355948971] : ('0.0353694812987911',) no score found for photo 1355948971 We are sending mail with results at report@fotonower.com args[1355948967] : ('0.0353694812987911',) no score found for photo 1355948967 We are sending mail with results at report@fotonower.com refus_total : 0.0353694812987911 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=22659888 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_P22659888_05-05-2025_07_17_00.pdf results_Auto_P22659888_05-05-2025_07_17_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_05-05-2025_07_17_00.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','22659888','results_Auto_P22659888_05-05-2025_07_17_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_05-05-2025_07_17_00.pdf','pdf','','0.26','0.0353694812987911') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22659888]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] map_info['map_portfolio_photo'] : {22659888: [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967, 1355948915, 1355948911, 1355948875, 1355948873, 1355948870, 1355948830, 1355948827, 1355948745, 1355948741, 1355948738, 1355948687, 1355948684, 1355948680, 1355948643, 1355948640, 1355948636, 1355948631, 1355948586, 1355948583, 1355948553, 1355948548, 1355948543, 1355948540, 1355948538, 1355948536, 1355948487, 1355948485, 1355948481, 1355948477, 1355948442, 1355948438, 1355948434, 1355948430, 1355948426, 1355948388, 1355948384, 1355948379, 1355948376, 1355948373, 1355948325, 1355948322, 1355948317, 1355948312, 1355948306, 1355948268, 1355948258, 1355948255, 1355948249]} final : False mtd_id 4302 list_pids : [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] 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, '2791020') ('4302', '22659888', '1355949089', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22659888', '1355949089', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020')] time used for this insertion : 0.05711102485656738 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.857243537902832 time spend to save output : 0.057424068450927734 total time spend for step 4 : 4.91466760635376 step5:split_time_score Mon May 5 07:17:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22659888'] 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 : [('22659888',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22659888) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355949089: {'path': 'temp/1746422219_3482492_1355949089_813af86945edcfe4a71add1aaa638f8d.jpg', 'extension': 'jpg'}, 1355948967: {'path': 'temp/1746422219_3482492_1355948967_95e445d5338ab0cf2b21b82a4da69f76.jpg', 'extension': 'jpg'}, 1355948971: {'path': 'temp/1746422219_3482492_1355948971_986bd3404022d957fe6ba30b93c74319.jpg', 'extension': 'jpg'}, 1355948974: {'path': 'temp/1746422219_3482492_1355948974_cc6a2a7b7ceaaf9e74b9d5511888a376.jpg', 'extension': 'jpg'}, 1355948992: {'path': 'temp/1746422219_3482492_1355948992_04758fdb87bb07d34391092cf6522968.jpg', 'extension': 'jpg'}, 1355948997: {'path': 'temp/1746422219_3482492_1355948997_e9dddf2aa4391aca3f6396b664d6cd22.jpg', 'extension': 'jpg'}, 1355949003: {'path': 'temp/1746422219_3482492_1355949003_9dce83bcd11b806ab84cf1cde7e08fcb.jpg', 'extension': 'jpg'}, 1355949027: {'path': 'temp/1746422219_3482492_1355949027_b9b4896efd7016bb76dfbfff061d52a3.jpg', 'extension': 'jpg'}, 1355949030: {'path': 'temp/1746422219_3482492_1355949030_f80934350f31031f8d8c3b95051f914a.jpg', 'extension': 'jpg'}, 1355949033: {'path': 'temp/1746422219_3482492_1355949033_84ae8ef6e93887bd7ded69442ff05a16.jpg', 'extension': 'jpg'}, 1355949035: {'path': 'temp/1746422219_3482492_1355949035_5585e49885dfc487ac54af20e0770904.jpg', 'extension': 'jpg'}, 1355949037: {'path': 'temp/1746422219_3482492_1355949037_cb2c8f2a8c5019ad0dfbfe37767fb961.jpg', 'extension': 'jpg'}, 1355949040: {'path': 'temp/1746422219_3482492_1355949040_6ceee0242552de864fb6688fd31f6fdc.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 = 22659888; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 22659888 group by h (('07', 61),) 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=22659888 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 (22659888) 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 (22659888) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05052025 22659888 Nombre de photos uploadées : 61 / 23040 (0%) 05052025 22659888 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 05052025 22659888 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1355948268, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/c31cb85fe810f839e99200c51c9946a8.jpg', 'username': None, 'uploaded_at': 1746421267, 'text': 'image_05052025_07_00_14_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355948258, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/7be58b2e91a75223b3609440682704ab.jpg', 'username': None, 'uploaded_at': 1746421267, 'text': 'image_05052025_07_00_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355948255, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/b6be45aaab2801d6f3959e047a9b2bfd.jpg', 'username': None, 'uploaded_at': 1746421267, 'text': 'image_05052025_07_00_33_009123m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355948249, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/5/ae4f06934e71a3e1de8b605cac3a7b9e.jpg', 'username': None, 'uploaded_at': 1746421267, 'text': 'image_05052025_07_00_43_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.9141387939453125e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002147197723388672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22659888, '2025-05-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1773347,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024462223052978516 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= 1773347 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22656512, 'dashboard_result_id': 10282896, '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_P22656512_05-05-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22656738, 'dashboard_result_id': 10282897, '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_P22656738_05-05-2025_05_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22657101, 'dashboard_result_id': 10282898, '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_P22657101_05-05-2025_05_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22657344, 'dashboard_result_id': 10282899, '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_P22657344_05-05-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22658111, 'dashboard_result_id': 10282900, '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_P22658111_05-05-2025_06_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22658598, 'dashboard_result_id': 10282901, '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_P22658598_05-05-2025_06_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22658886, 'dashboard_result_id': 10282902, '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_P22658886_05-05-2025_06_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22659324, 'dashboard_result_id': 10282903, '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_P22659324_05-05-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, 'pht': 3726}}"}, {'dashboat_entry_day': 1773347, 'dashboard_run_id': 1780958, 'mtr_portfolio_id': 22659888, 'dashboard_result_id': 10282904, '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_P22659888_05-05-2025_07_15_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, '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 = 22656512 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': 2790605, 'mtr_portfolio_id': 22656512, 'created_at': datetime.datetime(2025, 5, 5, 5, 16, 59), 'result': '0.04721398970370186', 'result_long': None, 'result_double': None}] Qualite : 0.04721398970370186 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22656512 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656512_05-05-2025_05_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22656512 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_P22656512_05-05-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, 'pht': 3726}}" where mtr_portfolio_id = 22656512 and dashboard_run_id = 1780958 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`=22656512 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282896, 0.04721398970370186, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656512_05-05-2025_05_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656513, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656514, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656515, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656516, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656517, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656519, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656520, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656521, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656522, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656523, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656524, '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 = 22656738 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': 2790633, 'mtr_portfolio_id': 22656738, 'created_at': datetime.datetime(2025, 5, 5, 5, 33, 2), 'result': '0.044902825441404885', 'result_long': None, 'result_double': None}] Qualite : 0.044902825441404885 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22656738 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656738_05-05-2025_05_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22656738 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_P22656738_05-05-2025_05_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, 'pht': 3726}}" where mtr_portfolio_id = 22656738 and dashboard_run_id = 1780958 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`=22656738 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282897, 0.044902825441404885, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22656738_05-05-2025_05_33_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22656768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22656769, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22656770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22656771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22656772, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22656773, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22656774, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22656775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22656776, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22656777, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22656778, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22656779, '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 = 22657101 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': 2790682, 'mtr_portfolio_id': 22657101, 'created_at': datetime.datetime(2025, 5, 5, 5, 48, 59), 'result': '0.03862693518375298', 'result_long': None, 'result_double': None}] Qualite : 0.03862693518375298 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22657101 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657101_05-05-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22657101 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_P22657101_05-05-2025_05_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, 'pht': 3726}}" where mtr_portfolio_id = 22657101 and dashboard_run_id = 1780958 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`=22657101 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282898, 0.03862693518375298, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657101_05-05-2025_05_49_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22657131, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657132, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657133, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657136, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657137, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657138, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657139, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657140, '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 = 22657344 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': 2790724, 'mtr_portfolio_id': 22657344, 'created_at': datetime.datetime(2025, 5, 5, 6, 2, 59), 'result': '0.033258579014462025', 'result_long': None, 'result_double': None}] Qualite : 0.033258579014462025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22657344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657344_05-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22657344 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_P22657344_05-05-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, 'pht': 3726}}" where mtr_portfolio_id = 22657344 and dashboard_run_id = 1780958 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`=22657344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282899, 0.033258579014462025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22657344_05-05-2025_06_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22657378, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22657379, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22657380, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22657381, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22657382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22657383, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22657384, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22657385, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22657386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22657387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22657388, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22657389, '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 = 22658111 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': 2790822, 'mtr_portfolio_id': 22658111, 'created_at': datetime.datetime(2025, 5, 5, 6, 21), 'result': '0.03594302952275285', 'result_long': None, 'result_double': None}] Qualite : 0.03594302952275285 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658111 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658111_05-05-2025_06_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658111 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_P22658111_05-05-2025_06_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, 'pht': 3726}}" where mtr_portfolio_id = 22658111 and dashboard_run_id = 1780958 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`=22658111 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282900, 0.03594302952275285, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658111_05-05-2025_06_21_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658142, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658145, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658147, '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 = 22658598 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': 2790864, 'mtr_portfolio_id': 22658598, 'created_at': datetime.datetime(2025, 5, 5, 6, 35, 1), 'result': '0.04051986389735096', 'result_long': None, 'result_double': None}] Qualite : 0.04051986389735096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658598 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658598_05-05-2025_06_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658598 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_P22658598_05-05-2025_06_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, 'pht': 3726}}" where mtr_portfolio_id = 22658598 and dashboard_run_id = 1780958 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`=22658598 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282901, 0.04051986389735096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658598_05-05-2025_06_35_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658626, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658628, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658630, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658631, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658633, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658634, '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 = 22658886 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': 2790904, 'mtr_portfolio_id': 22658886, 'created_at': datetime.datetime(2025, 5, 5, 6, 48, 57), 'result': '0.02953903300490826', 'result_long': None, 'result_double': None}] Qualite : 0.02953903300490826 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22658886 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658886_05-05-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22658886 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_P22658886_05-05-2025_06_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, 'pht': 3726}}" where mtr_portfolio_id = 22658886 and dashboard_run_id = 1780957 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`=22658886 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282902, 0.02953903300490826, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22658886_05-05-2025_06_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22658911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22658912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22658913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22658914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22658915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22658916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22658917, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22658918, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22658919, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22658920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22658921, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22658922, '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 = 22659324 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': 2790952, 'mtr_portfolio_id': 22659324, 'created_at': datetime.datetime(2025, 5, 5, 7, 3), 'result': '0.04018381532901907', 'result_long': None, 'result_double': None}] Qualite : 0.04018381532901907 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22659324 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659324_05-05-2025_07_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22659324 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_P22659324_05-05-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, 'pht': 3726}}" where mtr_portfolio_id = 22659324 and dashboard_run_id = 1780957 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`=22659324 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282903, 0.04018381532901907, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659324_05-05-2025_07_03_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22659330, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659331, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659332, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659335, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659336, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659338, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659341, '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 = 22659888 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': 2791020, 'mtr_portfolio_id': 22659888, 'created_at': datetime.datetime(2025, 5, 5, 7, 16, 59), 'result': '0.0353694812987911', 'result_long': None, 'result_double': None}] Qualite : 0.0353694812987911 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22659888 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_05-05-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22659888 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_P22659888_05-05-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, 'pht': 3726}}" where mtr_portfolio_id = 22659888 and dashboard_run_id = 1780957 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`=22659888 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10282904, 0.0353694812987911, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22659888_05-05-2025_07_17_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22659917, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22659918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22659919, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22659920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22659921, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22659922, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22659923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22659924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22659925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22659926, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22659927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22659928, '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 (22656512,22656738,22657101,22657344,22658111,22658598,22658886,22659324,22659888) result : ((1355938842,), (1355938860,), (1355938880,), (1355938885,), (1355938918,), (1355938921,), (1355938993,), (1355938995,), (1355939010,), (1355939023,), (1355939025,), (1355939314,), (1355939315,), (1355939317,), (1355939355,), (1355939358,), (1355939360,), (1355939385,), (1355939387,), (1355939389,), (1355939405,), (1355939407,), (1355939409,), (1355939411,), (1355939426,), (1355939431,), (1355939434,), (1355939436,), (1355939438,), (1355939454,), (1355939456,), (1355939457,), (1355939458,), (1355939478,), (1355939479,), (1355939480,), (1355939575,), (1355939554,), (1355939558,), (1355939658,), (1355939661,), (1355939759,), (1355939760,), (1355939761,), (1355939889,), (1355939891,), (1355939893,), (1355939897,), (1355939899,), (1355939919,), (1355939973,), (1355940115,), (1355940162,), (1355940163,), (1355940164,), (1355940181,), (1355940182,), (1355940183,), (1355940184,), (1355940186,), (1355940188,), (1355940209,), (1355940212,), (1355940214,), (1355940216,), (1355940219,), (1355940238,), (1355940240,), (1355940241,), (1355940242,), (1355940277,), (1355940268,), (1355940270,), (1355940271,), (1355940272,), (1355940275,), (1355940301,), (1355940302,), (1355940303,), (1355940304,), (1355940306,), (1355940308,), (1355940338,), (1355940339,), (1355940340,), (1355940341,), (1355940383,), (1355940384,), (1355940385,), (1355940386,), (1355940388,), (1355940390,), (1355940413,), (1355940415,), (1355940417,), (1355940418,), (1355940442,), (1355940443,), (1355940444,), (1355940445,), (1355940446,), (1355940448,), (1355940467,), (1355940468,), (1355940469,), (1355940470,), (1355940492,), (1355940493,), (1355940494,), (1355940495,), (1355940497,), (1355940523,), (1355940524,), (1355940526,), (1355940529,), (1355940532,), (1355940534,), (1355940552,), (1355940553,), (1355940554,), (1355940555,), (1355940581,), (1355940582,), (1355940583,), (1355940584,), (1355940586,), (1355940588,), (1355940605,), (1355940606,), (1355940607,), (1355940608,), (1355940610,), (1355940612,), (1355940634,), (1355940636,), (1355940638,), (1355940639,), (1355940663,), (1355940665,), (1355940666,), (1355940668,), (1355940670,), (1355940672,), (1355940690,), (1355940691,), (1355940692,), (1355940693,), (1355940721,), (1355940714,), (1355940715,), (1355940716,), (1355940717,), (1355940742,), (1355940744,), (1355940745,), (1355940746,), (1355940747,), (1355940748,), (1355940761,), (1355940762,), (1355940763,), (1355940764,), (1355940796,), (1355940799,), (1355940801,), (1355940804,), (1355940807,), (1355940810,), (1355940829,), (1355940831,), (1355940833,), (1355940835,), (1355940866,), (1355940868,), (1355940870,), (1355940874,), (1355940877,), (1355940905,), (1355940906,), (1355940909,), (1355940911,), (1355940914,), (1355940917,), (1355940933,), (1355940935,), (1355940937,), (1355940939,), (1355940968,), (1355940970,), (1355940972,), (1355940975,), (1355940979,), (1355940983,), (1355940997,), (1355940999,), (1355941002,), (1355941005,), (1355941036,), (1355941038,), (1355941040,), (1355941042,), (1355941045,), (1355941048,), (1355941063,), (1355941065,), (1355941066,), (1355941068,), (1355941096,), (1355941099,), (1355941101,), (1355941102,), (1355941105,), (1355941108,), (1355941941,), (1355941946,), (1355941950,), (1355941955,), (1355942006,), (1355942035,), (1355942068,), (1355942143,), (1355942137,), (1355942793,), (1355943242,), (1355943296,), (1355943323,), (1355943679,), (1355943705,), (1355944150,), (1355944203,), (1355944253,), (1355944676,), (1355944686,), (1355944687,), (1355944692,), (1355944758,), (1355944779,), (1355944809,), (1355944836,), (1355944863,), (1355944866,), (1355945132,), (1355945165,), (1355945194,), (1355945225,), (1355945254,), (1355945282,), (1355945379,), (1355945381,), (1355945382,), (1355945384,), (1355945386,), (1355945523,), (1355945524,), (1355945525,), (1355945526,), (1355945527,), (1355945530,), (1355945557,), (1355945558,), (1355945559,), (1355945560,), (1355945588,), (1355945590,), (1355945591,), (1355945593,), (1355945595,), (1355945597,), (1355945627,), (1355945629,), (1355945630,), (1355945659,), (1355945660,), (1355945662,), (1355945663,), (1355945666,), (1355945670,), (1355945715,), (1355945707,), (1355945709,), (1355945710,), (1355945711,), (1355945713,), (1355945739,), (1355945740,), (1355945741,), (1355945778,), (1355945781,), (1355945783,), (1355945784,), (1355945786,), (1355945788,), (1355945811,), (1355945812,), (1355945813,), (1355945814,), (1355945817,), (1355945819,), (1355945846,), (1355945849,), (1355945851,), (1355945852,), (1355945885,), (1355945887,), (1355945888,), (1355945890,), (1355945892,), (1355945895,), (1355945917,), (1355945918,), (1355945919,), (1355945930,), (1355945943,), (1355945945,), (1355945946,), (1355945947,), (1355945950,), (1355945970,), (1355945971,), (1355945972,), (1355945973,), (1355945976,), (1355945980,), (1355946001,), (1355946003,), (1355946004,), (1355946006,), (1355946033,), (1355946035,), (1355946036,), (1355946039,), (1355946042,), (1355946049,), (1355946065,), (1355946067,), (1355946068,), (1355946070,), (1355946072,), (1355946110,), (1355946112,), (1355946113,), (1355946115,), (1355946117,), (1355946139,), (1355946141,), (1355946142,), (1355946146,), (1355946149,), (1355946154,), (1355946198,), (1355946201,), (1355946203,), (1355946208,), (1355946241,), (1355946237,), (1355946238,), (1355946239,), (1355946240,), (1355946264,), (1355946266,), (1355946269,), (1355946290,), (1355946292,), (1355946293,), (1355946295,), (1355946299,), (1355946318,), (1355946320,), (1355946322,), (1355946324,), (1355946328,), (1355946331,), (1355946354,), (1355946358,), (1355946360,), (1355946365,), (1355946387,), (1355946391,), (1355946393,), (1355946398,), (1355946402,), (1355946407,), (1355946429,), (1355946430,), (1355946431,), (1355946432,), (1355946473,), (1355946475,), (1355946477,), (1355946479,), (1355946483,), (1355946487,), (1355946512,), (1355946513,), (1355946515,), (1355946516,), (1355946547,), (1355946549,), (1355946550,), (1355946551,), (1355946554,), (1355946583,), (1355946584,), (1355946585,), (1355946586,), (1355946590,), (1355946622,), (1355946624,), (1355946625,), (1355946626,), (1355946659,), (1355946661,), (1355946662,), (1355946663,), (1355946667,), (1355946710,), (1355946715,), (1355946718,), (1355946721,), (1355946725,), (1355946757,), (1355946759,), (1355946760,), (1355946762,), (1355946766,), (1355946825,), (1355946808,), (1355946811,), (1355946819,), (1355946846,), (1355946847,), (1355946850,), (1355946890,), (1355946892,), (1355946893,), (1355946894,), (1355946895,), (1355946898,), (1355946923,), (1355946926,), (1355946929,), (1355946932,), (1355946959,), (1355946963,), (1355946965,), (1355946967,), (1355946971,), (1355946975,), (1355947017,), (1355947020,), (1355947023,), (1355947028,), (1355947031,), (1355947063,), (1355947066,), (1355947069,), (1355947075,), (1355947081,), (1355947085,), (1355947112,), (1355947115,), (1355947118,), (1355947121,), (1355947126,), (1355947129,), (1355947166,), (1355947168,), (1355947170,), (1355947172,), (1355947175,), (1355947221,), (1355947226,), (1355947229,), (1355947231,), (1355947236,), (1355947241,), (1355947274,), (1355947276,), (1355947278,), (1355947282,), (1355947286,), (1355947358,), (1355947389,), (1355947415,), (1355947440,), (1355947463,), (1355947466,), (1355947623,), (1355947650,), (1355947676,), (1355947703,), (1355948154,), (1355948161,), (1355948192,), (1355948196,), (1355948227,), (1355948230,), (1355948275,), (1355948249,), (1355948255,), (1355948258,), (1355948268,), (1355948306,), (1355948312,), (1355948317,), (1355948322,), (1355948325,), (1355948373,), (1355948376,), (1355948379,), (1355948384,), (1355948388,), (1355948426,), (1355948430,), (1355948434,), (1355948438,), (1355948442,), (1355948477,), (1355948481,), (1355948485,), (1355948487,), (1355948536,), (1355948538,), (1355948540,), (1355948543,), (1355948548,), (1355948553,), (1355948583,), (1355948586,), (1355948631,), (1355948636,), (1355948640,), (1355948643,), (1355948680,), (1355948684,), (1355948687,), (1355948738,), (1355948741,), (1355948745,), (1355948827,), (1355948830,), (1355948870,), (1355948873,), (1355948875,), (1355948911,), (1355948915,), (1355948967,), (1355948971,), (1355948974,), (1355948992,), (1355948997,), (1355949003,), (1355949027,), (1355949030,), (1355949033,), (1355949035,), (1355949037,), (1355949040,), (1355949089,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05052025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22659888]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] map_info['map_portfolio_photo'] : {22659888: [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967, 1355948915, 1355948911, 1355948875, 1355948873, 1355948870, 1355948830, 1355948827, 1355948745, 1355948741, 1355948738, 1355948687, 1355948684, 1355948680, 1355948643, 1355948640, 1355948636, 1355948631, 1355948586, 1355948583, 1355948553, 1355948548, 1355948543, 1355948540, 1355948538, 1355948536, 1355948487, 1355948485, 1355948481, 1355948477, 1355948442, 1355948438, 1355948434, 1355948430, 1355948426, 1355948388, 1355948384, 1355948379, 1355948376, 1355948373, 1355948325, 1355948322, 1355948317, 1355948312, 1355948306, 1355948268, 1355948258, 1355948255, 1355948249]} final : True mtd_id 4302 list_pids : [1355949089, 1355949040, 1355949037, 1355949035, 1355949033, 1355949030, 1355949027, 1355949003, 1355948997, 1355948992, 1355948974, 1355948971, 1355948967] Looping around the photos to save general results len do output : 1 /22659888Didn'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, '2791020') ('4302', '22659888', '1355949089', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020') ('4302', None, None, None, None, None, None, None, '2791020') ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22659888', 'None', None, None, None, None, '2791020'), ('4302', '22659888', '1355949089', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949040', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949037', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949035', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949033', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949030', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949027', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355949003', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948997', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948992', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948974', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948971', None, None, None, None, None, '2791020'), ('4302', '22659888', '1355948967', None, None, None, None, None, '2791020')] time used for this insertion : 0.018491506576538086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7128827571868896 time spend to save output : 0.01876378059387207 total time spend for step 5 : 0.7316465377807617 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 (2791020) 2.28user 2.27system 0:10.43elapsed 43%CPU (0avgtext+0avgdata 161340maxresident)k 192inputs+14080outputs (25major+75920minor)pagefaults 0swaps