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 : 944335 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 (3309311) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3309311) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092724 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3309311'] with mtr_portfolio_ids : ['25092724'] and first list_photo_ids : [] new path : /proc/944335/ Name: python3 Umask: 0002 State: R (running) Tgid: 944335 Ngid: 0 Pid: 944335 PPid: 944334 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 944335 NSpid: 944335 NSpgid: 928325 NSsid: 928325 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98284 kB VmRSS: 98284 kB RssAnon: 59792 kB RssFile: 38492 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '944335', 'Ngid': '0', 'Pid': '944335', 'PPid': '944334', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '944335', 'NSpid': '944335', 'NSpgid': '928325', 'NSsid': '928325', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98284 kB', 'VmRSS': '98284 kB', 'RssAnon': '59792 kB', 'RssFile': '38492 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '944335', '1106884', '0', '1106884', '865636', '98284', b'', 'marlene', '3309311') 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 (25092724) 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 (3309311 ) ) 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 (25092724) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372712740, 'portfolio_id': 25092724}, {'photo_id': 1372711966, 'portfolio_id': 25092724}, {'photo_id': 1372711942, 'portfolio_id': 25092724}, {'photo_id': 1372711910, 'portfolio_id': 25092724}, {'photo_id': 1372711875, 'portfolio_id': 25092724}, {'photo_id': 1372711836, 'portfolio_id': 25092724}, {'photo_id': 1372711806, 'portfolio_id': 25092724}, {'photo_id': 1372711606, 'portfolio_id': 25092724}, {'photo_id': 1372711582, 'portfolio_id': 25092724}, {'photo_id': 1372711558, 'portfolio_id': 25092724}, {'photo_id': 1372711533, 'portfolio_id': 25092724}, {'photo_id': 1372711508, 'portfolio_id': 25092724}, {'photo_id': 1372711483, 'portfolio_id': 25092724}, {'photo_id': 1372711356, 'portfolio_id': 25092724}, {'photo_id': 1372711353, 'portfolio_id': 25092724}, {'photo_id': 1372711350, 'portfolio_id': 25092724}, {'photo_id': 1372711349, 'portfolio_id': 25092724}, {'photo_id': 1372711346, 'portfolio_id': 25092724}, {'photo_id': 1372711343, 'portfolio_id': 25092724}, {'photo_id': 1372711322, 'portfolio_id': 25092724}, {'photo_id': 1372711321, 'portfolio_id': 25092724}, {'photo_id': 1372711320, 'portfolio_id': 25092724}, {'photo_id': 1372711319, 'portfolio_id': 25092724}, {'photo_id': 1372711317, 'portfolio_id': 25092724}, {'photo_id': 1372711315, 'portfolio_id': 25092724}, {'photo_id': 1372711309, 'portfolio_id': 25092724}, {'photo_id': 1372711298, 'portfolio_id': 25092724}, {'photo_id': 1372711297, 'portfolio_id': 25092724}, {'photo_id': 1372711296, 'portfolio_id': 25092724}, {'photo_id': 1372711295, 'portfolio_id': 25092724}, {'photo_id': 1372711294, 'portfolio_id': 25092724}, {'photo_id': 1372711292, 'portfolio_id': 25092724}, {'photo_id': 1372711253, 'portfolio_id': 25092724}, {'photo_id': 1372711239, 'portfolio_id': 25092724}, {'photo_id': 1372711238, 'portfolio_id': 25092724}, {'photo_id': 1372711237, 'portfolio_id': 25092724}, {'photo_id': 1372711236, 'portfolio_id': 25092724}, {'photo_id': 1372711232, 'portfolio_id': 25092724}, {'photo_id': 1372711204, 'portfolio_id': 25092724}, {'photo_id': 1372711198, 'portfolio_id': 25092724}, {'photo_id': 1372711196, 'portfolio_id': 25092724}, {'photo_id': 1372711193, 'portfolio_id': 25092724}, {'photo_id': 1372711191, 'portfolio_id': 25092724}, {'photo_id': 1372711189, 'portfolio_id': 25092724}, {'photo_id': 1372711186, 'portfolio_id': 25092724}, {'photo_id': 1372711168, 'portfolio_id': 25092724}, {'photo_id': 1372711154, 'portfolio_id': 25092724}, {'photo_id': 1372711153, 'portfolio_id': 25092724}, {'photo_id': 1372711151, 'portfolio_id': 25092724}, {'photo_id': 1372711149, 'portfolio_id': 25092724}, {'photo_id': 1372711147, 'portfolio_id': 25092724}, {'photo_id': 1372711136, 'portfolio_id': 25092724}, {'photo_id': 1372711059, 'portfolio_id': 25092724}, {'photo_id': 1372711057, 'portfolio_id': 25092724}, {'photo_id': 1372711056, 'portfolio_id': 25092724}, {'photo_id': 1372711054, 'portfolio_id': 25092724}, {'photo_id': 1372711052, 'portfolio_id': 25092724}, {'photo_id': 1372711051, 'portfolio_id': 25092724}, {'photo_id': 1372711040, 'portfolio_id': 25092724}, {'photo_id': 1372711039, 'portfolio_id': 25092724}, {'photo_id': 1372711038, 'portfolio_id': 25092724}, {'photo_id': 1372711036, 'portfolio_id': 25092724}, {'photo_id': 1372711032, 'portfolio_id': 25092724}, {'photo_id': 1372711021, 'portfolio_id': 25092724}] map_portfolio_id_photo_id: {25092724: [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806, 1372711606, 1372711582, 1372711558, 1372711533, 1372711508, 1372711483, 1372711356, 1372711353, 1372711350, 1372711349, 1372711346, 1372711343, 1372711322, 1372711321, 1372711320, 1372711319, 1372711317, 1372711315, 1372711309, 1372711298, 1372711297, 1372711296, 1372711295, 1372711294, 1372711292, 1372711253, 1372711239, 1372711238, 1372711237, 1372711236, 1372711232, 1372711204, 1372711198, 1372711196, 1372711193, 1372711191, 1372711189, 1372711186, 1372711168, 1372711154, 1372711153, 1372711151, 1372711149, 1372711147, 1372711136, 1372711059, 1372711057, 1372711056, 1372711054, 1372711052, 1372711051, 1372711040, 1372711039, 1372711038, 1372711036, 1372711032, 1372711021]} ##### 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.01548147201538086 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Sat Jul 19 04:00:58 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 (25092724) 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 : 25092724 get user id for portfolio 25092724 get sub ptf for main ptf 25092724, type 3726 and hashtags ['papier', 'plastique', 'autre_refus', 'kraft', 'flou', 'cartonnette', 'Teint_Dans_La_Masse', 'Carton_gris', 'Carton_brun', 'environnement', 'metal', 'mal_croppe'] 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`=25092724 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','Carton_brun','environnement','metal','mal_croppe')) 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`=25092724 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','Carton_brun','environnement','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25092724, 'sub_port_id': 25092751, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918551, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'Carton_brun': {'main_port_id': 25092724, 'sub_port_id': 25092752, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918552, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'plastique': {'main_port_id': 25092724, 'sub_port_id': 25092753, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918553, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'Teint_Dans_La_Masse': {'main_port_id': 25092724, 'sub_port_id': 25092754, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918554, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'metal': {'main_port_id': 25092724, 'sub_port_id': 25092755, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918555, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'environnement': {'main_port_id': 25092724, 'sub_port_id': 25092756, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918556, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'kraft': {'main_port_id': 25092724, 'sub_port_id': 25092757, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918557, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'Carton_gris': {'main_port_id': 25092724, 'sub_port_id': 25092758, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918558, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'cartonnette': {'main_port_id': 25092724, 'sub_port_id': 25092759, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918559, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'mal_croppe': {'main_port_id': 25092724, 'sub_port_id': 25092760, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918560, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'autre_refus': {'main_port_id': 25092724, 'sub_port_id': 25092761, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918561, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}, 'flou': {'main_port_id': 25092724, 'sub_port_id': 25092762, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918562, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25092751 , 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=25092724 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 (25092751) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092752 , 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=25092724 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 (25092752) result : ((1372711127,), (1372712742,), (1372712743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092753 , 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=25092724 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 (25092753) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092754 , 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=25092724 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 (25092754) result : ((1372711182,), (1372711183,), (1372711223,), (1372711225,), (1372711226,), (1372711227,), (1372711228,), (1372711257,), (1372711258,), (1372711357,), (1372711798,), (1372711800,), (1372711802,), (1372711804,), (1372711807,), (1372711809,), (1372712203,), (1372712206,), (1372712209,), (1372712732,), (1372712733,), (1372712734,), (1372712735,), (1372712736,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092755 , 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=25092724 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 (25092755) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092756 , 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=25092724 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 (25092756) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092757 , 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=25092724 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 (25092757) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092758 , 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=25092724 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 (25092758) result : ((1372711123,), (1372711124,), (1372711823,), (1372711825,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092759 , 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=25092724 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 (25092759) result : ((1372711125,), (1372711358,), (1372711359,), (1372712223,), (1372712225,), (1372712227,), (1372712738,), (1372712739,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092760 , 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=25092724 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 (25092760) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092761 , 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=25092724 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 (25092761) result : ((1372712737,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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 25092762 , 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=25092724 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 (25092762) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25092724) result : ((1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) 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`=25092724 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','Carton_brun','environnement','metal','mal_croppe')) 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`=25092724 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','autre_refus','kraft','flou','cartonnette','Teint_Dans_La_Masse','Carton_gris','Carton_brun','environnement','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 25092724, 'sub_port_id': 25092763, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918563, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'Carton_brun': {'main_port_id': 25092724, 'sub_port_id': 25092764, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918564, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'plastique': {'main_port_id': 25092724, 'sub_port_id': 25092765, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918565, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 25092724, 'sub_port_id': 25092766, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918566, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'metal': {'main_port_id': 25092724, 'sub_port_id': 25092767, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918567, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'environnement': {'main_port_id': 25092724, 'sub_port_id': 25092768, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918568, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'kraft': {'main_port_id': 25092724, 'sub_port_id': 25092769, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918569, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'Carton_gris': {'main_port_id': 25092724, 'sub_port_id': 25092770, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918570, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'cartonnette': {'main_port_id': 25092724, 'sub_port_id': 25092771, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918571, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'mal_croppe': {'main_port_id': 25092724, 'sub_port_id': 25092772, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918572, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'autre_refus': {'main_port_id': 25092724, 'sub_port_id': 25092773, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918573, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 49, 2), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}, 'flou': {'main_port_id': 25092724, 'sub_port_id': 25092774, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16918574, 'last_updated_at': datetime.datetime(2025, 7, 19, 3, 58, 31), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 3, 58, 31), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 3, 49, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092773,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092761 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25092774,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25092762 lien utilise dans velours : https://www.fotonower.com/velours/25092763,25092764,25092765,25092766,25092767,25092768,25092769,25092770,25092771,25092772,25092773,25092774?tags=papier,Carton_brun,plastique,Teint_Dans_La_Masse,metal,environnement,kraft,Carton_gris,cartonnette,mal_croppe,autre_refus,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25092724]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] map_info['map_portfolio_photo'] : {25092724: [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806, 1372711606, 1372711582, 1372711558, 1372711533, 1372711508, 1372711483, 1372711356, 1372711353, 1372711350, 1372711349, 1372711346, 1372711343, 1372711322, 1372711321, 1372711320, 1372711319, 1372711317, 1372711315, 1372711309, 1372711298, 1372711297, 1372711296, 1372711295, 1372711294, 1372711292, 1372711253, 1372711239, 1372711238, 1372711237, 1372711236, 1372711232, 1372711204, 1372711198, 1372711196, 1372711193, 1372711191, 1372711189, 1372711186, 1372711168, 1372711154, 1372711153, 1372711151, 1372711149, 1372711147, 1372711136, 1372711059, 1372711057, 1372711056, 1372711054, 1372711052, 1372711051, 1372711040, 1372711039, 1372711038, 1372711036, 1372711032, 1372711021]} final : False mtd_id 4302 list_pids : [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] Looping around the photos to save general results len do output : 1 /25092724. 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, '3309311') ('4302', '25092724', '1372712740', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25092724', "{'papier': 25092751, 'Carton_brun': 25092752, 'plastique': 25092753, 'Teint_Dans_La_Masse': 25092754, 'metal': 25092755, 'environnement': 25092756, 'kraft': 25092757, 'Carton_gris': 25092758, 'cartonnette': 25092759, 'mal_croppe': 25092760, 'autre_refus': 25092761, 'flou': 25092762}", None, None, None, None, '3309311'), ('4302', '25092724', '1372712740', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311')] time used for this insertion : 0.13404583930969238 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8361494541168213 time spend to save output : 0.1343986988067627 total time spend for step 1 : 1.970548152923584 step2:final Sat Jul 19 04:01:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25092724) 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 25092724 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372711040,1372711039,1372711038,1372711036,1372711032,1372711021,1372711059,1372711057,1372711056,1372711054,1372711052,1372711051,1372711154,1372711153,1372711151,1372711149,1372711147,1372711136,1372711168,1372711198,1372711196,1372711193,1372711191,1372711189,1372711186,1372711204,1372711253,1372711239,1372711238,1372711237,1372711236,1372711232,1372711298,1372711297,1372711296,1372711295,1372711294,1372711292,1372711309,1372711322,1372711321,1372711320,1372711319,1372711317,1372711315,1372711356,1372711353,1372711350,1372711349,1372711346,1372711343,1372711606,1372711582,1372711558,1372711533,1372711508,1372711483,1372711966,1372711942,1372711910,1372711875,1372711836,1372711806,1372712740); 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([25092724]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} new output for save of step final : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] map_info['map_portfolio_photo'] : {25092724: [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806, 1372711606, 1372711582, 1372711558, 1372711533, 1372711508, 1372711483, 1372711356, 1372711353, 1372711350, 1372711349, 1372711346, 1372711343, 1372711322, 1372711321, 1372711320, 1372711319, 1372711317, 1372711315, 1372711309, 1372711298, 1372711297, 1372711296, 1372711295, 1372711294, 1372711292, 1372711253, 1372711239, 1372711238, 1372711237, 1372711236, 1372711232, 1372711204, 1372711198, 1372711196, 1372711193, 1372711191, 1372711189, 1372711186, 1372711168, 1372711154, 1372711153, 1372711151, 1372711149, 1372711147, 1372711136, 1372711059, 1372711057, 1372711056, 1372711054, 1372711052, 1372711051, 1372711040, 1372711039, 1372711038, 1372711036, 1372711032, 1372711021]} final : False mtd_id 4302 list_pids : [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] Looping around the photos to save general results len do output : 7 /1372712740.Didn't retrieve data . /1372711966.Didn't retrieve data . /1372711942.Didn't retrieve data . /1372711910.Didn't retrieve data . /1372711875.Didn't retrieve data . /1372711836.Didn't retrieve data . /1372711806.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, '3309311') ('4302', '25092724', '1372712740', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '25092724', '1372712740', '0.03814601374395793', None, None, None, None, '3309311'), ('4302', '25092724', '1372711966', '0.03814601374395793', None, None, None, None, '3309311'), ('4302', '25092724', '1372711942', '0.03814601374395793', None, None, None, None, '3309311'), ('4302', '25092724', '1372711910', '0.03814601374395793', None, None, None, None, '3309311'), ('4302', '25092724', '1372711875', '0.03814601374395793', None, None, None, None, '3309311'), ('4302', '25092724', '1372711836', '0.03814601374395793', None, None, None, None, '3309311'), ('4302', '25092724', '1372711806', '0.03814601374395793', None, None, None, None, '3309311')] time used for this insertion : 0.2077629566192627 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.620654821395874 time spend to save output : 0.20824050903320312 total time spend for step 2 : 0.8288953304290771 step3:velours_tree Sat Jul 19 04:01:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25092724: [{'papier': 25092751, 'Carton_brun': 25092752, 'plastique': 25092753, 'Teint_Dans_La_Masse': 25092754, 'metal': 25092755, 'environnement': 25092756, 'kraft': 25092757, 'Carton_gris': 25092758, 'cartonnette': 25092759, 'mal_croppe': 25092760, 'autre_refus': 25092761, 'flou': 25092762}]} input_args_next_step : {25092724: ()} output_args : {25092724: [{'papier': 25092751, 'Carton_brun': 25092752, 'plastique': 25092753, 'Teint_Dans_La_Masse': 25092754, 'metal': 25092755, 'environnement': 25092756, 'kraft': 25092757, 'Carton_gris': 25092758, 'cartonnette': 25092759, 'mal_croppe': 25092760, 'autre_refus': 25092761, 'flou': 25092762}]} args : 25092724 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 25092751, 'Carton_brun': 25092752, 'plastique': 25092753, 'Teint_Dans_La_Masse': 25092754, 'metal': 25092755, 'environnement': 25092756, 'kraft': 25092757, 'Carton_gris': 25092758, 'cartonnette': 25092759, 'mal_croppe': 25092760, 'autre_refus': 25092761, 'flou': 25092762},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25092724) 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([25092724]) 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.3470015525817871 time spend to save output : 4.076957702636719e-05 total time spend for step 3 : 0.3470423221588135 step4:send_mail_cod Sat Jul 19 04:01:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} input_args_next_step : {1372712740: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372712740 depend.output_id : 0 input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372711966 depend.output_id : 0 input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372711942 depend.output_id : 0 input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372711910 depend.output_id : 0 input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372711875 depend.output_id : 0 input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372711836 depend.output_id : 0 input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ()} output_args : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',)} args : 1372711806 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 : {25092724: [{'papier': 25092751, 'Carton_brun': 25092752, 'plastique': 25092753, 'Teint_Dans_La_Masse': 25092754, 'metal': 25092755, 'environnement': 25092756, 'kraft': 25092757, 'Carton_gris': 25092758, 'cartonnette': 25092759, 'mal_croppe': 25092760, 'autre_refus': 25092761, 'flou': 25092762}]} input_args_next_step : {1372712740: ('0.03814601374395793',), 1372711966: ('0.03814601374395793',), 1372711942: ('0.03814601374395793',), 1372711910: ('0.03814601374395793',), 1372711875: ('0.03814601374395793',), 1372711836: ('0.03814601374395793',), 1372711806: ('0.03814601374395793',), 25092724: ()} output_args : {25092724: [{'papier': 25092751, 'Carton_brun': 25092752, 'plastique': 25092753, 'Teint_Dans_La_Masse': 25092754, 'metal': 25092755, 'environnement': 25092756, 'kraft': 25092757, 'Carton_gris': 25092758, 'cartonnette': 25092759, 'mal_croppe': 25092760, 'autre_refus': 25092761, 'flou': 25092762}]} args : 25092724 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 :8, first value : ('0.03814601374395793',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25092724) 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 (1372712740,1372711966,1372711942,1372711910,1372711875,1372711836,1372711806) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372711806 begin to download photo : 1372711875 begin to download photo : 1372711942 begin to download photo : 1372712740 download finish for photo 1372711942 begin to download photo : 1372711966 download finish for photo 1372711806 begin to download photo : 1372711836 download finish for photo 1372712740 download finish for photo 1372711875 begin to download photo : 1372711910 download finish for photo 1372711836 download finish for photo 1372711966 download finish for photo 1372711910 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette250927531752890461/ imagette250927551752890461/ imagette250927571752890461/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P25092724_19-07-2025_04_01_01.pdf 25092753 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=25092753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250927531752890461 25092755 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=25092755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250927551752890461 25092757 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=25092757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250927571752890461 25092759 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=25092759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372711125: '1752889646_3279007_1372711040_2c64813cca7b3d6b49282896d7900424_rle_crop_3886849041_0.png', 1372711358: '1752890165_932035_1372711236_fe2208cdf06bd863d5abb5514cbc2c32_rle_crop_3886856009_0.png', 1372711359: '1752890165_932035_1372711232_45d053f26a2eb43806a8e45e7be8b259_rle_crop_3886856925_0.png', 1372712223: '1752890287_938030_1372711298_595c79cb4076ccd29ed603d7a2e0a066_rle_crop_3886861165_0.png', 1372712225: '1752890287_938030_1372711298_595c79cb4076ccd29ed603d7a2e0a066_rle_crop_3886861166_0.png', 1372712227: '1752890287_938030_1372711294_8a388f8d0b589edf9271286c95ec091a_rle_crop_3886861229_0.png', 1372712738: '1752890366_3292272_1372711942_a091280c08190ec85ad706aace5e3f69_rle_crop_3886861388_0.png', 1372712739: '1752890366_3292272_1372711875_466e976b7cdc0fbe310dfc0e6baaac0b_rle_crop_3886861404_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/c27125f0614a729c81e5cf63e2913a71_3428918.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/b223ab3161ad3151241f2c362eb33f54_22680156.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/6a5473889cc5cbd2b165107f690b05a0_26175852.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/264e685583d66a497a39e69758414433_92761079.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/ded179bb66373c01ef0d98f991002e2d_93518249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/b88edac2e8fdc14aa621f98fda600f5c_22300108.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/00692599bf3a9930f5e9b6e50d19b7e3_1962140.png change filename to text .imagette250927591752890461/ imagette250927591752890461/1752890366_3292272_1372711875_466e976b7cdc0fbe310dfc0e6baaac0b_rle_crop_3886861404_0.png.png imagette250927591752890461/1752889646_3279007_1372711040_2c64813cca7b3d6b49282896d7900424_rle_crop_3886849041_0.png.png imagette250927591752890461/1752890165_932035_1372711232_45d053f26a2eb43806a8e45e7be8b259_rle_crop_3886856925_0.png.png imagette250927591752890461/1752890366_3292272_1372711942_a091280c08190ec85ad706aace5e3f69_rle_crop_3886861388_0.png.png imagette250927591752890461/1752890287_938030_1372711298_595c79cb4076ccd29ed603d7a2e0a066_rle_crop_3886861166_0.png.png imagette250927591752890461/1752890287_938030_1372711298_595c79cb4076ccd29ed603d7a2e0a066_rle_crop_3886861165_0.png.png imagette250927591752890461/1752890165_932035_1372711236_fe2208cdf06bd863d5abb5514cbc2c32_rle_crop_3886856009_0.png.png imagette250927591752890461/1752890287_938030_1372711294_8a388f8d0b589edf9271286c95ec091a_rle_crop_3886861229_0.png.png imagette250927601752890461/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/c339375c1d1091640d49837d6c1819d6_84653589.png imagette250927591752890461 25092760 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=25092760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250927601752890461 25092761 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=25092761 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372712737: '1752890366_3292272_1372711806_ebc498510a36c316dc92becaaa162375_rle_crop_3886861421_0.png'} change filename to text .imagette250927611752890461/ imagette250927611752890461/1752890366_3292272_1372711806_ebc498510a36c316dc92becaaa162375_rle_crop_3886861421_0.png.png imagette250927621752890462/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/1fd76cc81dc2c23c6b870a7597090998_53821381.png imagette250927611752890461 25092762 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=25092762 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250927621752890462 25092752 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=25092752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372711127: '1752889646_3279007_1372711039_194aaeb1b4225ec9d80b7fae4f1d19ba_rle_crop_3886849050_0.png', 1372712742: '1752890366_3292272_1372711966_0e2fd5d511ea281d298cd8b846804eb4_rle_crop_3886861374_0.png', 1372712743: '1752890366_3292272_1372711806_ebc498510a36c316dc92becaaa162375_rle_crop_3886861423_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/a829d5136846ee48b5cd11b38da694db_68705233.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/046c703f4e43e0c32b8f3ab4afa5c25f_34989792.png change filename to text .imagette250927521752890462/ imagette250927521752890462/1752889646_3279007_1372711039_194aaeb1b4225ec9d80b7fae4f1d19ba_rle_crop_3886849050_0.png.png imagette250927521752890462/1752890366_3292272_1372711806_ebc498510a36c316dc92becaaa162375_rle_crop_3886861423_0.png.png imagette250927521752890462/1752890366_3292272_1372711966_0e2fd5d511ea281d298cd8b846804eb4_rle_crop_3886861374_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/505e4fe4d9959381f3ea4536ad1fcaa0_57734433.png imagette250927521752890462 25092754 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=25092754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372711802: '1752890247_3289451_1372711321_723b0d9354d9902e4c20c71edf869e4a_rle_crop_3886860960_0.png', 1372712736: '1752890366_3292272_1372711806_ebc498510a36c316dc92becaaa162375_rle_crop_3886861426_0.png', 1372712735: '1752890366_3292272_1372711836_fd0066f6946ccc3e4d61236c3747c7b9_rle_crop_3886861416_0.png', 1372712734: '1752890366_3292272_1372711875_466e976b7cdc0fbe310dfc0e6baaac0b_rle_crop_3886861405_0.png', 1372712733: '1752890366_3292272_1372711910_16a10372e72e3b114f104cccbb1fa841_rle_crop_3886861396_0.png', 1372712732: '1752890366_3292272_1372711942_a091280c08190ec85ad706aace5e3f69_rle_crop_3886861387_0.png', 1372712209: '1752890287_938030_1372711295_7001126d8491769746cbf6cf12debafd_rle_crop_3886861218_0.png', 1372712206: '1752890287_938030_1372711296_0204ef5bd8876b81061764b340a874dc_rle_crop_3886861198_0.png', 1372712203: '1752890287_938030_1372711297_c6ba06f83e6483abdfae1fee99669743_rle_crop_3886861181_0.png', 1372711809: '1752890247_3289451_1372711317_da9bcc16f5d78ff8982e8313065774a5_rle_crop_3886860996_0.png', 1372711807: '1752890247_3289451_1372711319_16cc696c2d4a4a0a4c9ff1fad1c68593_rle_crop_3886860983_0.png', 1372711804: '1752890247_3289451_1372711320_01d3253f419f997e805fd087b9285bcc_rle_crop_3886860972_0.png', 1372711182: '1752889768_3281811_1372711051_2bce9f644156329d996ffeeda462393e_rle_crop_3886849474_0.png', 1372711800: '1752890247_3289451_1372711322_6bb4a7fa5e21e2c384790030c7f8b021_rle_crop_3886860948_0.png', 1372711798: '1752890247_3289451_1372711322_6bb4a7fa5e21e2c384790030c7f8b021_rle_crop_3886860953_0.png', 1372711357: '1752890165_932035_1372711237_522fe07425424b859e39291d480dc533_rle_crop_3886856000_0.png', 1372711258: '1752889927_924637_1372711147_0a060c7550747738429511c2fce5a5f6_rle_crop_3886850911_0.png', 1372711257: '1752889927_924637_1372711149_d73f285dce2462734a5fb74b3e48ef66_rle_crop_3886850898_0.png', 1372711228: '1752889886_3284680_1372711189_fc082cc27570ba05cf3f82f682184a81_rle_crop_3886850451_0.png', 1372711227: '1752889886_3284680_1372711191_5da45a75b133affe84e08229ee1207ac_rle_crop_3886850433_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/d55a2f1e02d5676e79030f0c7c44e833_87692773.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/9ee184a86e98a224e8cd87cfcb94ae26_50613714.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/e7aa61a1d6958c0217a6263e34d4e07f_46070137.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/ef28b96b803525ea64a9c413612f1760_33775716.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/59055c9f629a6412f4d7e4293b26752a_35419021.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/3bbe889de5fba20037e2f29d6dd64f74_4528439.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/a3cdb477713fa43eb306414b2e9c5e0b_174432.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/8f8e96092c0c7c5e3fc669ab4b1bda2f_66255073.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/66929cff22931447616e55d3cb5b2ef0_290902.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/c99f5dba4a691200c68cf97f1af836a2_25278183.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/148d2b2f08ea3f9a37ec7604aee05818_56639461.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/17345c893ea70da32c8d917aca4a1f1e_70062809.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/a889780bc989ba261cece5d9e373c1dd_42001087.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/d1f54fbb73ce8f2332c2626690e757dc_7141345.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/8859bac91b54be0d88703b60a1b16018_33955233.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/1712b06288374648e4925ac9277cd53e_86082277.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/56d27d6da6164346873d9b7b59f0f29c_41863704.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/502dac6565328d38c00d2f973037da16_88458485.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/5a5a5abca13acabc2b55707f29a74ea9_75013903.png change filename to text .imagette250927541752890462/ imagette250927541752890462/1752890366_3292272_1372711910_16a10372e72e3b114f104cccbb1fa841_rle_crop_3886861396_0.png.png imagette250927541752890462/1752890247_3289451_1372711322_6bb4a7fa5e21e2c384790030c7f8b021_rle_crop_3886860953_0.png.png imagette250927541752890462/1752890247_3289451_1372711322_6bb4a7fa5e21e2c384790030c7f8b021_rle_crop_3886860948_0.png.png imagette250927541752890462/1752890366_3292272_1372711806_ebc498510a36c316dc92becaaa162375_rle_crop_3886861426_0.png.png imagette250927541752890462/1752889886_3284680_1372711191_5da45a75b133affe84e08229ee1207ac_rle_crop_3886850433_0.png.png imagette250927541752890462/1752889927_924637_1372711147_0a060c7550747738429511c2fce5a5f6_rle_crop_3886850911_0.png.png imagette250927541752890462/1752889768_3281811_1372711051_2bce9f644156329d996ffeeda462393e_rle_crop_3886849474_0.png.png imagette250927541752890462/1752890247_3289451_1372711320_01d3253f419f997e805fd087b9285bcc_rle_crop_3886860972_0.png.png imagette250927541752890462/1752890366_3292272_1372711942_a091280c08190ec85ad706aace5e3f69_rle_crop_3886861387_0.png.png imagette250927541752890462/1752890247_3289451_1372711319_16cc696c2d4a4a0a4c9ff1fad1c68593_rle_crop_3886860983_0.png.png imagette250927541752890462/1752890366_3292272_1372711836_fd0066f6946ccc3e4d61236c3747c7b9_rle_crop_3886861416_0.png.png imagette250927541752890462/1752890287_938030_1372711296_0204ef5bd8876b81061764b340a874dc_rle_crop_3886861198_0.png.png imagette250927541752890462/1752889927_924637_1372711149_d73f285dce2462734a5fb74b3e48ef66_rle_crop_3886850898_0.png.png imagette250927541752890462/1752890287_938030_1372711297_c6ba06f83e6483abdfae1fee99669743_rle_crop_3886861181_0.png.png imagette250927541752890462/1752890287_938030_1372711295_7001126d8491769746cbf6cf12debafd_rle_crop_3886861218_0.png.png imagette250927541752890462/1752889886_3284680_1372711189_fc082cc27570ba05cf3f82f682184a81_rle_crop_3886850451_0.png.png imagette250927541752890462/1752890247_3289451_1372711317_da9bcc16f5d78ff8982e8313065774a5_rle_crop_3886860996_0.png.png imagette250927541752890462/1752890366_3292272_1372711875_466e976b7cdc0fbe310dfc0e6baaac0b_rle_crop_3886861405_0.png.png imagette250927541752890462/1752890247_3289451_1372711321_723b0d9354d9902e4c20c71edf869e4a_rle_crop_3886860960_0.png.png imagette250927541752890462/1752890165_932035_1372711237_522fe07425424b859e39291d480dc533_rle_crop_3886856000_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/7a87e43a84bc9ec84c5507246c8586c5_27496821.png imagette250927541752890462 25092758 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=25092758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372711123: '1752889646_3279007_1372711038_1d1695b40c2cbba4789d1edbf395962f_rle_crop_3886849061_0.png', 1372711124: '1752889646_3279007_1372711038_1d1695b40c2cbba4789d1edbf395962f_rle_crop_3886849062_0.png', 1372711823: '1752890247_3289451_1372711319_16cc696c2d4a4a0a4c9ff1fad1c68593_rle_crop_3886860981_0.png', 1372711825: '1752890247_3289451_1372711317_da9bcc16f5d78ff8982e8313065774a5_rle_crop_3886860993_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/2f6c09b8b76a967a2d0b39594fe72df9_577459.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/6f6d0077770978a0468db456b99acf8f_73819595.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/e0b13e96c100fce23d81a414d44bb75b_48382650.png change filename to text .imagette250927581752890463/ imagette250927581752890463/1752889646_3279007_1372711038_1d1695b40c2cbba4789d1edbf395962f_rle_crop_3886849062_0.png.png imagette250927581752890463/1752889646_3279007_1372711038_1d1695b40c2cbba4789d1edbf395962f_rle_crop_3886849061_0.png.png imagette250927581752890463/1752890247_3289451_1372711317_da9bcc16f5d78ff8982e8313065774a5_rle_crop_3886860993_0.png.png imagette250927581752890463/1752890247_3289451_1372711319_16cc696c2d4a4a0a4c9ff1fad1c68593_rle_crop_3886860981_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/368b98fa2ee6b8ae36e9e3bcb63fffd8_79020473.png imagette250927581752890463 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25092724 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25092763,25092764,25092765,25092766,25092767,25092768,25092769,25092770,25092771,25092772,25092773,25092774?tags=papier,Carton_brun,plastique,Teint_Dans_La_Masse,metal,environnement,kraft,Carton_gris,cartonnette,mal_croppe,autre_refus,flou your option no_mail is active, we will not send the real mail to your client args[1372712740] : ('0.03814601374395793',) no score found for photo 1372712740 We are sending mail with results at report@fotonower.com args[1372711966] : ('0.03814601374395793',) no score found for photo 1372711966 We are sending mail with results at report@fotonower.com args[1372711942] : ('0.03814601374395793',) no score found for photo 1372711942 We are sending mail with results at report@fotonower.com args[1372711910] : ('0.03814601374395793',) no score found for photo 1372711910 We are sending mail with results at report@fotonower.com args[1372711875] : ('0.03814601374395793',) no score found for photo 1372711875 We are sending mail with results at report@fotonower.com args[1372711836] : ('0.03814601374395793',) no score found for photo 1372711836 We are sending mail with results at report@fotonower.com args[1372711806] : ('0.03814601374395793',) no score found for photo 1372711806 We are sending mail with results at report@fotonower.com refus_total : 0.03814601374395793 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=25092724 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_P25092724_19-07-2025_04_01_01.pdf results_Auto_P25092724_19-07-2025_04_01_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092724_19-07-2025_04_01_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25092724','results_Auto_P25092724_19-07-2025_04_01_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092724_19-07-2025_04_01_01.pdf','pdf','','0.15','0.03814601374395793') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25092724]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] map_info['map_portfolio_photo'] : {25092724: [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806, 1372711606, 1372711582, 1372711558, 1372711533, 1372711508, 1372711483, 1372711356, 1372711353, 1372711350, 1372711349, 1372711346, 1372711343, 1372711322, 1372711321, 1372711320, 1372711319, 1372711317, 1372711315, 1372711309, 1372711298, 1372711297, 1372711296, 1372711295, 1372711294, 1372711292, 1372711253, 1372711239, 1372711238, 1372711237, 1372711236, 1372711232, 1372711204, 1372711198, 1372711196, 1372711193, 1372711191, 1372711189, 1372711186, 1372711168, 1372711154, 1372711153, 1372711151, 1372711149, 1372711147, 1372711136, 1372711059, 1372711057, 1372711056, 1372711054, 1372711052, 1372711051, 1372711040, 1372711039, 1372711038, 1372711036, 1372711032, 1372711021]} final : False mtd_id 4302 list_pids : [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] 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, '3309311') ('4302', '25092724', '1372712740', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '25092724', '1372712740', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311')] time used for this insertion : 0.07973217964172363 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.205894708633423 time spend to save output : 0.07993602752685547 total time spend for step 4 : 3.2858307361602783 step5:split_time_score Sat Jul 19 04:01: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 : ['25092724'] 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 : [('25092724',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25092724) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372712740: {'path': 'temp/1752890461_944335_1372712740_2aa44b502466a980fff29c8e9eaca393.jpg', 'extension': 'jpg'}, 1372711806: {'path': 'temp/1752890461_944335_1372711806_ebc498510a36c316dc92becaaa162375.jpg', 'extension': 'jpg'}, 1372711836: {'path': 'temp/1752890461_944335_1372711836_fd0066f6946ccc3e4d61236c3747c7b9.jpg', 'extension': 'jpg'}, 1372711942: {'path': 'temp/1752890461_944335_1372711942_a091280c08190ec85ad706aace5e3f69.jpg', 'extension': 'jpg'}, 1372711966: {'path': 'temp/1752890461_944335_1372711966_0e2fd5d511ea281d298cd8b846804eb4.jpg', 'extension': 'jpg'}, 1372711875: {'path': 'temp/1752890461_944335_1372711875_466e976b7cdc0fbe310dfc0e6baaac0b.jpg', 'extension': 'jpg'}, 1372711910: {'path': 'temp/1752890461_944335_1372711910_16a10372e72e3b114f104cccbb1fa841.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 = 25092724; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25092724 group by h (('03', 64),) 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=25092724 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 (25092724) 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 (25092724) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19072025 25092724 Nombre de photos uploadées : 64 / 23040 (0%) 19072025 25092724 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 19072025 25092724 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1372711040, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/2c64813cca7b3d6b49282896d7900424.jpg', 'username': None, 'uploaded_at': 1752889563, 'text': 'image_19072025_03_45_04_010155m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1372711039, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/194aaeb1b4225ec9d80b7fae4f1d19ba.jpg', 'username': None, 'uploaded_at': 1752889563, 'text': 'image_19072025_03_45_14_010143m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372711038, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/1d1695b40c2cbba4789d1edbf395962f.jpg', 'username': None, 'uploaded_at': 1752889563, 'text': 'image_19072025_03_45_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1372711036, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/c939d91f619b21e51801d9c9c1b6b275.jpg', 'username': None, 'uploaded_at': 1752889563, 'text': 'image_19072025_03_45_34_010133m0.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.0030930042266845703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25092724, '2025-07-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1989719,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03578305244445801 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= 1989719 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25086929, 'dashboard_result_id': 12752201, '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_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25087248, 'dashboard_result_id': 12752202, '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_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25087671, 'dashboard_result_id': 12752203, '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_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25088014, 'dashboard_result_id': 12752204, '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_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25088320, 'dashboard_result_id': 12752205, '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_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25088797, 'dashboard_result_id': 12752206, '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_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25089158, 'dashboard_result_id': 12752207, '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_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25089573, 'dashboard_result_id': 12752208, '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_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25090044, 'dashboard_result_id': 12752209, '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_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25090451, 'dashboard_result_id': 12752210, '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_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25090846, 'dashboard_result_id': 12752211, '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_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25091167, 'dashboard_result_id': 12752212, '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_P25091167_19-07-2025_02_59_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25091570, 'dashboard_result_id': 12752213, '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_P25091570_19-07-2025_03_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091606, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25092012, 'dashboard_result_id': 12752214, '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_P25092012_19-07-2025_03_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25092023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092027, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25092310, 'dashboard_result_id': 12752215, '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_P25092310_19-07-2025_03_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25092340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092348, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997589, 'mtr_portfolio_id': 25092724, 'dashboard_result_id': 12752216, '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_P25092724_19-07-2025_03_57_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25092751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092762, '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 = 25086929 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': 3308718, 'mtr_portfolio_id': 25086929, 'created_at': datetime.datetime(2025, 7, 19, 2, 45, 27), 'result': '0.03913204905862356', 'result_long': None, 'result_double': None}] Qualite : 0.03913204905862356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25086929 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086929_19-07-2025_02_45_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25086929 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_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, 'pht': 3726}}" where mtr_portfolio_id = 25086929 and dashboard_run_id = 1997589 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`=25086929 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752201, 0.03913204905862356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, '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 = 25087248 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': 3308754, 'mtr_portfolio_id': 25087248, 'created_at': datetime.datetime(2025, 7, 19, 0, 31), 'result': '0.03972843254770483', 'result_long': None, 'result_double': None}] Qualite : 0.03972843254770483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25087248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087248_19-07-2025_00_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25087248 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_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, 'pht': 3726}}" where mtr_portfolio_id = 25087248 and dashboard_run_id = 1997589 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`=25087248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752202, 0.03972843254770483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, '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 = 25087671 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': 3308796, 'mtr_portfolio_id': 25087671, 'created_at': datetime.datetime(2025, 7, 19, 0, 46, 58), 'result': '0.040614766647832784', 'result_long': None, 'result_double': None}] Qualite : 0.040614766647832784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25087671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087671_19-07-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25087671 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_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, 'pht': 3726}}" where mtr_portfolio_id = 25087671 and dashboard_run_id = 1997589 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`=25087671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752203, 0.040614766647832784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, '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 = 25088014 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': 3308829, 'mtr_portfolio_id': 25088014, 'created_at': datetime.datetime(2025, 7, 19, 2, 44, 28), 'result': '0.03743177972534913', 'result_long': None, 'result_double': None}] Qualite : 0.03743177972534913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088014_19-07-2025_02_44_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088014 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_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, 'pht': 3726}}" where mtr_portfolio_id = 25088014 and dashboard_run_id = 1997589 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`=25088014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752204, 0.03743177972534913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, '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 = 25088320 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': 3308880, 'mtr_portfolio_id': 25088320, 'created_at': datetime.datetime(2025, 7, 19, 1, 16, 59), 'result': '0.02487109510281073', 'result_long': None, 'result_double': None}] Qualite : 0.02487109510281073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088320_19-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088320 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_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, 'pht': 3726}}" where mtr_portfolio_id = 25088320 and dashboard_run_id = 1997589 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`=25088320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752205, 0.02487109510281073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, '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 = 25088797 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': 3308919, 'mtr_portfolio_id': 25088797, 'created_at': datetime.datetime(2025, 7, 19, 1, 33, 29), 'result': '0.009828328214066689', 'result_long': None, 'result_double': None}] Qualite : 0.009828328214066689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088797_19-07-2025_01_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088797 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_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, 'pht': 3726}}" where mtr_portfolio_id = 25088797 and dashboard_run_id = 1997589 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`=25088797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752206, 0.009828328214066689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, '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 = 25089158 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': 3308955, 'mtr_portfolio_id': 25089158, 'created_at': datetime.datetime(2025, 7, 19, 1, 46, 29), 'result': '0.025093452418744777', 'result_long': None, 'result_double': None}] Qualite : 0.025093452418744777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25089158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089158_19-07-2025_01_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25089158 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_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, 'pht': 3726}}" where mtr_portfolio_id = 25089158 and dashboard_run_id = 1997589 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`=25089158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752207, 0.025093452418744777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, '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 = 25089573 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': 3308998, 'mtr_portfolio_id': 25089573, 'created_at': datetime.datetime(2025, 7, 19, 2, 0, 59), 'result': '0.043765417373542455', 'result_long': None, 'result_double': None}] Qualite : 0.043765417373542455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25089573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089573_19-07-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25089573 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_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, 'pht': 3726}}" where mtr_portfolio_id = 25089573 and dashboard_run_id = 1997589 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`=25089573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752208, 0.043765417373542455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, '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 = 25090044 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': 3309042, 'mtr_portfolio_id': 25090044, 'created_at': datetime.datetime(2025, 7, 19, 2, 16, 57), 'result': '0.05976591413501777', 'result_long': None, 'result_double': None}] Qualite : 0.05976591413501777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090044_19-07-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090044 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_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, 'pht': 3726}}" where mtr_portfolio_id = 25090044 and dashboard_run_id = 1997589 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`=25090044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752209, 0.05976591413501777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, '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 = 25090451 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': 3309076, 'mtr_portfolio_id': 25090451, 'created_at': datetime.datetime(2025, 7, 19, 2, 32, 57), 'result': '0.03597129188925794', 'result_long': None, 'result_double': None}] Qualite : 0.03597129188925794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090451_19-07-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090451 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_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, 'pht': 3726}}" where mtr_portfolio_id = 25090451 and dashboard_run_id = 1997589 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`=25090451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752210, 0.03597129188925794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, '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 = 25090846 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': 3309113, 'mtr_portfolio_id': 25090846, 'created_at': datetime.datetime(2025, 7, 19, 2, 46, 29), 'result': '0.03264356474414739', 'result_long': None, 'result_double': None}] Qualite : 0.03264356474414739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090846_19-07-2025_02_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090846 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_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, 'pht': 3726}}" where mtr_portfolio_id = 25090846 and dashboard_run_id = 1997589 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`=25090846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752211, 0.03264356474414739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, '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 = 25091167 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': 3309148, 'mtr_portfolio_id': 25091167, 'created_at': datetime.datetime(2025, 7, 19, 3, 2, 59), 'result': '0.08928014043983437', 'result_long': None, 'result_double': None}] Qualite : 0.08928014043983437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25091167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091167_19-07-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25091167 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_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, 'pht': 3726}}" where mtr_portfolio_id = 25091167 and dashboard_run_id = 1997589 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`=25091167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752212, 0.08928014043983437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, '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 = 25091570 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': 3309199, 'mtr_portfolio_id': 25091570, 'created_at': datetime.datetime(2025, 7, 19, 3, 16, 59), 'result': '0.06689929877924278', 'result_long': None, 'result_double': None}] Qualite : 0.06689929877924278 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25091570 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091570_19-07-2025_03_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25091570 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_P25091570_19-07-2025_03_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091606, 'pht': 3726}}" where mtr_portfolio_id = 25091570 and dashboard_run_id = 1997589 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`=25091570 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752213, 0.06689929877924278, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091570_19-07-2025_03_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091596, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091600, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091601, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091602, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091603, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091605, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091606, '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 = 25092012 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': 3309233, 'mtr_portfolio_id': 25092012, 'created_at': datetime.datetime(2025, 7, 19, 3, 32, 59), 'result': '0.04139019372831136', 'result_long': None, 'result_double': None}] Qualite : 0.04139019372831136 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25092012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092012_19-07-2025_03_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25092012 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_P25092012_19-07-2025_03_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25092023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092027, 'pht': 3726}}" where mtr_portfolio_id = 25092012 and dashboard_run_id = 1997591 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`=25092012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752214, 0.04139019372831136, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092012_19-07-2025_03_33_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092017, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092018, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092020, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092021, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25092023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092027, '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 = 25092310 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': 3309268, 'mtr_portfolio_id': 25092310, 'created_at': datetime.datetime(2025, 7, 19, 3, 46, 28), 'result': '0.028833609325186246', 'result_long': None, 'result_double': None}] Qualite : 0.028833609325186246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25092310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092310_19-07-2025_03_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25092310 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_P25092310_19-07-2025_03_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25092340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092348, 'pht': 3726}}" where mtr_portfolio_id = 25092310 and dashboard_run_id = 1997591 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`=25092310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752215, 0.028833609325186246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092310_19-07-2025_03_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092337, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092339, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25092340, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092348, '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 = 25092724 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': 3309311, 'mtr_portfolio_id': 25092724, 'created_at': datetime.datetime(2025, 7, 19, 4, 1), 'result': '0.03814601374395793', 'result_long': None, 'result_double': None}] Qualite : 0.03814601374395793 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25092724 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092724_19-07-2025_04_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25092724 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_P25092724_19-07-2025_04_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25092751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092762, 'pht': 3726}}" where mtr_portfolio_id = 25092724 and dashboard_run_id = 1997591 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`=25092724 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12752216, 0.03814601374395793, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25092724_19-07-2025_04_01_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25092751, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25092752, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25092753, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25092754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25092755, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25092756, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25092757, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25092758, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25092759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25092760, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25092761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25092762, '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 (25086929,25087248,25087671,25088014,25088320,25088797,25089158,25089573,25090044,25090451,25090846,25091167,25091570,25092012,25092310,25092724) result : ((1372693349,), (1372693595,), (1372693784,), (1372693800,), (1372693802,), (1372693803,), (1372693812,), (1372693819,), (1372693842,), (1372693845,), (1372693848,), (1372693850,), (1372693853,), (1372693856,), (1372693870,), (1372693872,), (1372693873,), (1372693874,), (1372693887,), (1372693895,), (1372693938,), (1372693943,), (1372693947,), (1372693949,), (1372693951,), (1372693953,), (1372693979,), (1372693983,), (1372693987,), (1372693990,), (1372693992,), (1372693993,), (1372694037,), (1372694041,), (1372694043,), (1372694046,), (1372694048,), (1372694050,), (1372694076,), (1372694080,), (1372694083,), (1372694085,), (1372694087,), (1372694089,), (1372694108,), (1372694113,), (1372694117,), (1372694119,), (1372694121,), (1372694123,), (1372694144,), (1372694162,), (1372694193,), (1372694222,), (1372694224,), (1372694225,), (1372694226,), (1372694228,), (1372694230,), (1372694239,), (1372694243,), (1372694246,), (1372694248,), (1372694250,), (1372694252,), (1372702577,), (1372702623,), (1372694274,), (1372694277,), (1372694280,), (1372694282,), (1372694284,), (1372694286,), (1372694305,), (1372694312,), (1372694326,), (1372694327,), (1372694328,), (1372694334,), (1372694405,), (1372694409,), (1372694410,), (1372694412,), (1372694413,), (1372694415,), (1372694457,), (1372694469,), (1372694474,), (1372694476,), (1372694478,), (1372694505,), (1372694573,), (1372694592,), (1372694622,), (1372694639,), (1372694642,), (1372694645,), (1372694662,), (1372694664,), (1372694666,), (1372694667,), (1372694668,), (1372694669,), (1372694691,), (1372694735,), (1372694737,), (1372694739,), (1372694740,), (1372694741,), (1372694742,), (1372694773,), (1372694779,), (1372694781,), (1372694782,), (1372694784,), (1372694786,), (1372694813,), (1372694816,), (1372694819,), (1372694822,), (1372694824,), (1372694826,), (1372694847,), (1372694852,), (1372694854,), (1372694856,), (1372694857,), (1372694859,), (1372694873,), (1372694876,), (1372694879,), (1372694881,), (1372694882,), (1372694883,), (1372694934,), (1372694967,), (1372694971,), (1372694972,), (1372694975,), (1372694977,), (1372694980,), (1372695004,), (1372695014,), (1372695021,), (1372695026,), (1372695029,), (1372695031,), (1372695068,), (1372695071,), (1372695074,), (1372695076,), (1372695079,), (1372695082,), (1372695104,), (1372695145,), (1372695148,), (1372695150,), (1372695152,), (1372695154,), (1372695156,), (1372695171,), (1372695174,), (1372695176,), (1372695178,), (1372695180,), (1372695181,), (1372695199,), (1372695255,), (1372695284,), (1372695286,), (1372695287,), (1372695289,), (1372695291,), (1372695295,), (1372695365,), (1372695370,), (1372695393,), (1372695405,), (1372695415,), (1372695427,), (1372695496,), (1372695498,), (1372695511,), (1372695535,), (1372695564,), (1372695575,), (1372695612,), (1372695616,), (1372695620,), (1372695622,), (1372695623,), (1372695624,), (1372695664,), (1372695690,), (1372695723,), (1372695725,), (1372695727,), (1372695728,), (1372695729,), (1372695730,), (1372695795,), (1372695799,), (1372695801,), (1372695803,), (1372695805,), (1372695807,), (1372695828,), (1372695831,), (1372695835,), (1372695837,), (1372695839,), (1372695841,), (1372695861,), (1372695866,), (1372695869,), (1372695874,), (1372695878,), (1372695881,), (1372695898,), (1372695900,), (1372695901,), (1372695906,), (1372695912,), (1372695913,), (1372695949,), (1372695960,), (1372695964,), (1372695967,), (1372695969,), (1372695973,), (1372695976,), (1372696022,), (1372696024,), (1372696027,), (1372696031,), (1372696034,), (1372696037,), (1372696062,), (1372696095,), (1372696126,), (1372696127,), (1372696128,), (1372696129,), (1372696131,), (1372696133,), (1372696150,), (1372696153,), (1372696156,), (1372696158,), (1372696160,), (1372696163,), (1372696176,), (1372696179,), (1372696181,), (1372696194,), (1372696195,), (1372696196,), (1372696205,), (1372696207,), (1372696209,), (1372696211,), (1372696213,), (1372696215,), (1372696229,), (1372696232,), (1372696233,), (1372696236,), (1372696238,), (1372696243,), (1372696267,), (1372696268,), (1372696269,), (1372696281,), (1372696305,), (1372696353,), (1372697902,), (1372698532,), (1372702525,), (1372698458,), (1372698464,), (1372698500,), (1372698523,), (1372698525,), (1372698582,), (1372698606,), (1372698608,), (1372698610,), (1372698612,), (1372698614,), (1372698615,), (1372698770,), (1372698804,), (1372698834,), (1372698863,), (1372698892,), (1372698921,), (1372699184,), (1372699210,), (1372699234,), (1372699235,), (1372699236,), (1372699237,), (1372699398,), (1372699400,), (1372699428,), (1372699441,), (1372699443,), (1372699446,), (1372699462,), (1372699464,), (1372699467,), (1372699470,), (1372699472,), (1372699490,), (1372699525,), (1372699530,), (1372699532,), (1372699535,), (1372699537,), (1372699538,), (1372699555,), (1372699557,), (1372699558,), (1372699560,), (1372699562,), (1372699564,), (1372699584,), (1372699587,), (1372699590,), (1372699592,), (1372699594,), (1372699597,), (1372699629,), (1372699641,), (1372699693,), (1372699695,), (1372699697,), (1372699698,), (1372699699,), (1372699701,), (1372699718,), (1372699720,), (1372699721,), (1372699722,), (1372699724,), (1372699727,), (1372699737,), (1372699740,), (1372699742,), (1372699744,), (1372699746,), (1372699748,), (1372699764,), (1372699766,), (1372699768,), (1372699770,), (1372699771,), (1372699772,), (1372699798,), (1372699802,), (1372699803,), (1372699804,), (1372699805,), (1372699807,), (1372699887,), (1372699894,), (1372699896,), (1372699898,), (1372699900,), (1372699902,), (1372699921,), (1372699924,), (1372699927,), (1372699930,), (1372699933,), (1372699938,), (1372699955,), (1372699960,), (1372699963,), (1372699964,), (1372699965,), (1372699966,), (1372699984,), (1372699986,), (1372699989,), (1372699992,), (1372699996,), (1372700000,), (1372700010,), (1372700032,), (1372700034,), (1372700036,), (1372700037,), (1372700038,), (1372700039,), (1372700046,), (1372700048,), (1372700050,), (1372700051,), (1372700054,), (1372700056,), (1372700068,), (1372700070,), (1372700071,), (1372700073,), (1372700077,), (1372700079,), (1372700092,), (1372700095,), (1372700096,), (1372700098,), (1372700099,), (1372700101,), (1372700119,), (1372700121,), (1372700122,), (1372700125,), (1372700126,), (1372700128,), (1372700142,), (1372700143,), (1372700144,), (1372700145,), (1372700146,), (1372700148,), (1372700162,), (1372700165,), (1372700168,), (1372700171,), (1372700174,), (1372700176,), (1372700201,), (1372700204,), (1372700207,), (1372700209,), (1372700211,), (1372700212,), (1372700241,), (1372700244,), (1372700247,), (1372700248,), (1372700251,), (1372700253,), (1372700303,), (1372700346,), (1372700348,), (1372700350,), (1372700351,), (1372700352,), (1372700353,), (1372700376,), (1372700379,), (1372700381,), (1372700384,), (1372700385,), (1372700387,), (1372700399,), (1372700401,), (1372700402,), (1372700403,), (1372700404,), (1372700406,), (1372700429,), (1372700434,), (1372700436,), (1372700441,), (1372700444,), (1372700450,), (1372700467,), (1372700470,), (1372700473,), (1372700475,), (1372700478,), (1372700480,), (1372700490,), (1372700492,), (1372700495,), (1372700499,), (1372700503,), (1372700518,), (1372700542,), (1372700546,), (1372700548,), (1372700550,), (1372700553,), (1372700556,), (1372700572,), (1372700577,), (1372700580,), (1372700592,), (1372700600,), (1372700610,), (1372700656,), (1372700674,), (1372700693,), (1372700696,), (1372700699,), (1372700700,), (1372700701,), (1372700702,), (1372700727,), (1372700731,), (1372700733,), (1372700735,), (1372700736,), (1372700739,), (1372700754,), (1372700757,), (1372700759,), (1372700762,), (1372700764,), (1372700765,), (1372700778,), (1372700779,), (1372700780,), (1372700783,), (1372700787,), (1372700789,), (1372700819,), (1372700822,), (1372700825,), (1372700827,), (1372700843,), (1372700844,), (1372700875,), (1372700877,), (1372700878,), (1372700879,), (1372700880,), (1372700881,), (1372700898,), (1372700900,), (1372700903,), (1372700904,), (1372700906,), (1372700908,), (1372700929,), (1372700933,), (1372700936,), (1372700939,), (1372700942,), (1372700944,), (1372700969,), (1372700970,), (1372700972,), (1372700974,), (1372700976,), (1372700978,), (1372700991,), (1372701014,), (1372701016,), (1372701018,), (1372701020,), (1372701021,), (1372701022,), (1372701063,), (1372701078,), (1372701084,), (1372701089,), (1372701090,), (1372701108,), (1372701219,), (1372701223,), (1372701257,), (1372701264,), (1372701268,), (1372701305,), (1372701321,), (1372701324,), (1372701327,), (1372701399,), (1372701406,), (1372701408,), (1372701425,), (1372701427,), (1372701429,), (1372701430,), (1372701432,), (1372701434,), (1372701445,), (1372701450,), (1372701456,), (1372701459,), (1372701463,), (1372701465,), (1372702470,), (1372703157,), (1372703674,), (1372703881,), (1372703884,), (1372703892,), (1372703933,), (1372703994,), (1372704035,), (1372704443,), (1372704685,), (1372704711,), (1372704738,), (1372704759,), (1372704770,), (1372704771,), (1372704857,), (1372704860,), (1372704864,), (1372704867,), (1372704870,), (1372704873,), (1372704891,), (1372704894,), (1372704897,), (1372704905,), (1372704907,), (1372704910,), (1372704928,), (1372704932,), (1372704935,), (1372704937,), (1372704939,), (1372704941,), (1372704963,), (1372705072,), (1372705169,), (1372705170,), (1372705172,), (1372705225,), (1372705229,), (1372705231,), (1372705302,), (1372705321,), (1372705574,), (1372705576,), (1372705577,), (1372705579,), (1372705581,), (1372705584,), (1372705600,), (1372705608,), (1372705610,), (1372705615,), (1372705617,), (1372705627,), (1372705676,), (1372705678,), (1372705680,), (1372705682,), (1372705684,), (1372705686,), (1372705712,), (1372705714,), (1372705716,), (1372705718,), (1372705720,), (1372705724,), (1372705751,), (1372705753,), (1372705754,), (1372705755,), (1372705757,), (1372705762,), (1372705830,), (1372705844,), (1372705860,), (1372705864,), (1372705866,), (1372705868,), (1372705945,), (1372705953,), (1372705956,), (1372705960,), (1372705962,), (1372705963,), (1372705985,), (1372705987,), (1372705989,), (1372705990,), (1372705991,), (1372706000,), (1372706020,), (1372706063,), (1372706067,), (1372706070,), (1372706072,), (1372706074,), (1372706076,), (1372706109,), (1372706111,), (1372706112,), (1372706114,), (1372706117,), (1372706120,), (1372706139,), (1372706144,), (1372706148,), (1372706151,), (1372706154,), (1372706156,), (1372706181,), (1372706185,), (1372706188,), (1372706190,), (1372706191,), (1372706192,), (1372706222,), (1372706228,), (1372706232,), (1372706235,), (1372706237,), (1372706239,), (1372706271,), (1372706275,), (1372706281,), (1372706283,), (1372706286,), (1372706288,), (1372706334,), (1372706337,), (1372706341,), (1372706353,), (1372706357,), (1372706361,), (1372706384,), (1372706388,), (1372706391,), (1372706393,), (1372706395,), (1372706397,), (1372706430,), (1372706432,), (1372706433,), (1372706436,), (1372706438,), (1372706441,), (1372706450,), (1372706502,), (1372706504,), (1372706507,), (1372706509,), (1372706510,), (1372706511,), (1372706529,), (1372706532,), (1372706534,), (1372706537,), (1372706538,), (1372706540,), (1372706565,), (1372706594,), (1372706612,), (1372706618,), (1372706628,), (1372706636,), (1372706641,), (1372706646,), (1372706673,), (1372706676,), (1372706678,), (1372706680,), (1372706682,), (1372706683,), (1372706698,), (1372706700,), (1372706702,), (1372706704,), (1372706706,), (1372706722,), (1372706753,), (1372706773,), (1372706822,), (1372706845,), (1372706868,), (1372706883,), (1372706889,), (1372706890,), (1372706891,), (1372706909,), (1372706912,), (1372706915,), (1372706917,), (1372706919,), (1372706921,), (1372706939,), (1372706941,), (1372706952,), (1372706956,), (1372706957,), (1372706958,), (1372706981,), (1372706983,), (1372706985,), (1372706988,), (1372706991,), (1372706995,), (1372707004,), (1372707007,), (1372707010,), (1372707013,), (1372707015,), (1372707018,), (1372707072,), (1372707079,), (1372707082,), (1372707084,), (1372707085,), (1372707086,), (1372707101,), (1372707104,), (1372707107,), (1372707110,), (1372707114,), (1372707115,), (1372707123,), (1372707126,), (1372707128,), (1372707131,), (1372707133,), (1372707135,), (1372707153,), (1372707163,), (1372707217,), (1372707219,), (1372707221,), (1372707223,), (1372707225,), (1372707227,), (1372707237,), (1372707239,), (1372707240,), (1372707243,), (1372707244,), (1372707247,), (1372707261,), (1372707264,), (1372707267,), (1372707269,), (1372707271,), (1372707272,), (1372707279,), (1372707280,), (1372707282,), (1372707284,), (1372707285,), (1372707286,), (1372707299,), (1372707302,), (1372707305,), (1372707306,), (1372707307,), (1372707308,), (1372707345,), (1372707347,), (1372707350,), (1372707352,), (1372707353,), (1372707354,), (1372708258,), (1372708284,), (1372708309,), (1372708333,), (1372708359,), (1372708388,), (1372708902,), (1372708957,), (1372709016,), (1372709091,), (1372709148,), (1372709181,), (1372709499,), (1372709660,), (1372709664,), (1372709666,), (1372709669,), (1372709671,), (1372709672,), (1372709679,), (1372709681,), (1372709683,), (1372709684,), (1372709685,), (1372709686,), (1372709697,), (1372709698,), (1372709700,), (1372709702,), (1372709724,), (1372709725,), (1372709747,), (1372709751,), (1372709754,), (1372709755,), (1372709757,), (1372709759,), (1372709771,), (1372709773,), (1372709774,), (1372709776,), (1372709779,), (1372709781,), (1372709838,), (1372709841,), (1372709843,), (1372709845,), (1372709849,), (1372709852,), (1372709867,), (1372709870,), (1372709871,), (1372709873,), (1372709874,), (1372709875,), (1372709891,), (1372709893,), (1372709894,), (1372709896,), (1372709897,), (1372709898,), (1372709905,), (1372709908,), (1372709912,), (1372709914,), (1372709916,), (1372709917,), (1372709930,), (1372709944,), (1372709966,), (1372709977,), (1372709980,), (1372709993,), (1372709995,), (1372710005,), (1372710006,), (1372710008,), (1372710009,), (1372710012,), (1372710015,), (1372710037,), (1372710038,), (1372710039,), (1372710040,), (1372710041,), (1372710044,), (1372710068,), (1372710070,), (1372710072,), (1372710074,), (1372710075,), (1372710076,), (1372710100,), (1372710137,), (1372710218,), (1372710244,), (1372710248,), (1372710252,), (1372710254,), (1372710256,), (1372710258,), (1372710270,), (1372710293,), (1372710315,), (1372710317,), (1372710318,), (1372710331,), (1372710332,), (1372710333,), (1372710344,), (1372710346,), (1372710348,), (1372710349,), (1372710350,), (1372710351,), (1372710372,), (1372710399,), (1372710402,), (1372710405,), (1372710406,), (1372710408,), (1372710409,), (1372710423,), (1372710425,), (1372710427,), (1372710428,), (1372710429,), (1372710431,), (1372710441,), (1372710443,), (1372710444,), (1372710446,), (1372710447,), (1372710448,), (1372710460,), (1372710464,), (1372710467,), (1372710470,), (1372710479,), (1372710488,), (1372710491,), (1372710494,), (1372710497,), (1372710503,), (1372710510,), (1372710517,), (1372710531,), (1372710556,), (1372710568,), (1372710586,), (1372710590,), (1372710598,), (1372710600,), (1372710602,), (1372710604,), (1372710619,), (1372710620,), (1372710622,), (1372710626,), (1372710629,), (1372710639,), (1372710651,), (1372710653,), (1372710656,), (1372710657,), (1372710659,), (1372710661,), (1372710677,), (1372710678,), (1372710680,), (1372710682,), (1372710684,), (1372710685,), (1372710723,), (1372710726,), (1372710728,), (1372710744,), (1372710755,), (1372710760,), (1372710779,), (1372710781,), (1372710782,), (1372710786,), (1372710788,), (1372710797,), (1372710838,), (1372710841,), (1372710843,), (1372710846,), (1372710848,), (1372710849,), (1372710863,), (1372710865,), (1372710866,), (1372710868,), (1372710869,), (1372710870,), (1372710871,), (1372710935,), (1372710936,), (1372710937,), (1372710938,), (1372710939,), (1372710940,), (1372710959,), (1372710961,), (1372710963,), (1372710965,), (1372710966,), (1372710967,), (1372710992,), (1372710996,), (1372710998,), (1372711000,), (1372711002,), (1372711003,), (1372711021,), (1372711032,), (1372711036,), (1372711038,), (1372711039,), (1372711040,), (1372711051,), (1372711052,), (1372711054,), (1372711056,), (1372711057,), (1372711059,), (1372711136,), (1372711147,), (1372711149,), (1372711151,), (1372711153,), (1372711154,), (1372711168,), (1372711186,), (1372711189,), (1372711191,), (1372711193,), (1372711196,), (1372711198,), (1372711204,), (1372711232,), (1372711236,), (1372711237,), (1372711238,), (1372711239,), (1372711253,), (1372711292,), (1372711294,), (1372711295,), (1372711296,), (1372711297,), (1372711298,), (1372711309,), (1372711315,), (1372711317,), (1372711319,), (1372711320,), (1372711321,), (1372711322,), (1372711343,), (1372711346,), (1372711349,), (1372711350,), (1372711353,), (1372711356,), (1372711483,), (1372711508,), (1372711533,), (1372711558,), (1372711582,), (1372711606,), (1372711806,), (1372711836,), (1372711875,), (1372711910,), (1372711942,), (1372711966,), (1372712740,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19072025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25092724]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] map_info['map_portfolio_photo'] : {25092724: [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806, 1372711606, 1372711582, 1372711558, 1372711533, 1372711508, 1372711483, 1372711356, 1372711353, 1372711350, 1372711349, 1372711346, 1372711343, 1372711322, 1372711321, 1372711320, 1372711319, 1372711317, 1372711315, 1372711309, 1372711298, 1372711297, 1372711296, 1372711295, 1372711294, 1372711292, 1372711253, 1372711239, 1372711238, 1372711237, 1372711236, 1372711232, 1372711204, 1372711198, 1372711196, 1372711193, 1372711191, 1372711189, 1372711186, 1372711168, 1372711154, 1372711153, 1372711151, 1372711149, 1372711147, 1372711136, 1372711059, 1372711057, 1372711056, 1372711054, 1372711052, 1372711051, 1372711040, 1372711039, 1372711038, 1372711036, 1372711032, 1372711021]} final : True mtd_id 4302 list_pids : [1372712740, 1372711966, 1372711942, 1372711910, 1372711875, 1372711836, 1372711806] Looping around the photos to save general results len do output : 1 /25092724Didn'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, '3309311') ('4302', '25092724', '1372712740', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311') ('4302', None, None, None, None, None, None, None, '3309311') ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '25092724', 'None', None, None, None, None, '3309311'), ('4302', '25092724', '1372712740', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711966', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711942', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711910', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711875', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711836', None, None, None, None, None, '3309311'), ('4302', '25092724', '1372711806', None, None, None, None, None, '3309311')] time used for this insertion : 0.08970212936401367 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2941160202026367 time spend to save output : 0.08992671966552734 total time spend for step 5 : 2.384042739868164 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 (3309311) 2.09user 2.32system 0:11.99elapsed 36%CPU (0avgtext+0avgdata 157924maxresident)k 152inputs+7072outputs (4major+64006minor)pagefaults 0swaps