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 : 649102 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 (4073170) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4073170) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28690950 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4073170'] with mtr_portfolio_ids : ['28690950'] and first list_photo_ids : [] new path : /proc/649102/ Name: python3 Umask: 0002 State: R (running) Tgid: 649102 Ngid: 0 Pid: 649102 PPid: 649101 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 649102 NSpid: 649102 NSpgid: 648020 NSsid: 648020 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98692 kB VmRSS: 98692 kB RssAnon: 59904 kB RssFile: 38788 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 44 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '649102', 'Ngid': '0', 'Pid': '649102', 'PPid': '649101', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '649102', 'NSpid': '649102', 'NSpgid': '648020', 'NSsid': '648020', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98692 kB', 'VmRSS': '98692 kB', 'RssAnon': '59904 kB', 'RssFile': '38788 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '44', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '649102', '1106908', '0', '1106884', '865636', '98692', b'', 'marlene', '4073170') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28690950) 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 (4073170 ) ) 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 (28690950) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395138269, 'portfolio_id': 28690950}, {'photo_id': 1395138268, 'portfolio_id': 28690950}, {'photo_id': 1395138267, 'portfolio_id': 28690950}, {'photo_id': 1395138204, 'portfolio_id': 28690950}, {'photo_id': 1395138198, 'portfolio_id': 28690950}, {'photo_id': 1395138139, 'portfolio_id': 28690950}, {'photo_id': 1395138048, 'portfolio_id': 28690950}, {'photo_id': 1395138041, 'portfolio_id': 28690950}, {'photo_id': 1395138038, 'portfolio_id': 28690950}, {'photo_id': 1395137983, 'portfolio_id': 28690950}, {'photo_id': 1395137976, 'portfolio_id': 28690950}, {'photo_id': 1395137884, 'portfolio_id': 28690950}, {'photo_id': 1395137809, 'portfolio_id': 28690950}, {'photo_id': 1395137686, 'portfolio_id': 28690950}, {'photo_id': 1395137667, 'portfolio_id': 28690950}, {'photo_id': 1395137423, 'portfolio_id': 28690950}, {'photo_id': 1395137278, 'portfolio_id': 28690950}, {'photo_id': 1395137179, 'portfolio_id': 28690950}, {'photo_id': 1395137177, 'portfolio_id': 28690950}, {'photo_id': 1395137171, 'portfolio_id': 28690950}, {'photo_id': 1395137169, 'portfolio_id': 28690950}, {'photo_id': 1395137162, 'portfolio_id': 28690950}, {'photo_id': 1395137157, 'portfolio_id': 28690950}, {'photo_id': 1395137152, 'portfolio_id': 28690950}, {'photo_id': 1395137150, 'portfolio_id': 28690950}, {'photo_id': 1395137149, 'portfolio_id': 28690950}, {'photo_id': 1395137147, 'portfolio_id': 28690950}, {'photo_id': 1395137143, 'portfolio_id': 28690950}, {'photo_id': 1395137137, 'portfolio_id': 28690950}, {'photo_id': 1395137124, 'portfolio_id': 28690950}, {'photo_id': 1395137116, 'portfolio_id': 28690950}, {'photo_id': 1395137086, 'portfolio_id': 28690950}, {'photo_id': 1395137084, 'portfolio_id': 28690950}, {'photo_id': 1395137083, 'portfolio_id': 28690950}, {'photo_id': 1395137076, 'portfolio_id': 28690950}, {'photo_id': 1395137055, 'portfolio_id': 28690950}, {'photo_id': 1395137054, 'portfolio_id': 28690950}, {'photo_id': 1395137014, 'portfolio_id': 28690950}, {'photo_id': 1395137006, 'portfolio_id': 28690950}, {'photo_id': 1395137005, 'portfolio_id': 28690950}, {'photo_id': 1395136992, 'portfolio_id': 28690950}, {'photo_id': 1395136990, 'portfolio_id': 28690950}, {'photo_id': 1395136987, 'portfolio_id': 28690950}, {'photo_id': 1395136911, 'portfolio_id': 28690950}, {'photo_id': 1395136869, 'portfolio_id': 28690950}, {'photo_id': 1395136867, 'portfolio_id': 28690950}, {'photo_id': 1395136794, 'portfolio_id': 28690950}, {'photo_id': 1395136700, 'portfolio_id': 28690950}, {'photo_id': 1395136681, 'portfolio_id': 28690950}, {'photo_id': 1395136680, 'portfolio_id': 28690950}, {'photo_id': 1395136605, 'portfolio_id': 28690950}, {'photo_id': 1395136564, 'portfolio_id': 28690950}, {'photo_id': 1395136557, 'portfolio_id': 28690950}, {'photo_id': 1395136551, 'portfolio_id': 28690950}, {'photo_id': 1395136550, 'portfolio_id': 28690950}, {'photo_id': 1395136549, 'portfolio_id': 28690950}, {'photo_id': 1395136543, 'portfolio_id': 28690950}, {'photo_id': 1395136521, 'portfolio_id': 28690950}, {'photo_id': 1395136520, 'portfolio_id': 28690950}, {'photo_id': 1395136485, 'portfolio_id': 28690950}, {'photo_id': 1395136470, 'portfolio_id': 28690950}, {'photo_id': 1395136461, 'portfolio_id': 28690950}, {'photo_id': 1395136381, 'portfolio_id': 28690950}, {'photo_id': 1395136350, 'portfolio_id': 28690950}, {'photo_id': 1395136200, 'portfolio_id': 28690950}, {'photo_id': 1395136166, 'portfolio_id': 28690950}, {'photo_id': 1395136060, 'portfolio_id': 28690950}, {'photo_id': 1395136022, 'portfolio_id': 28690950}, {'photo_id': 1395136016, 'portfolio_id': 28690950}, {'photo_id': 1395136013, 'portfolio_id': 28690950}, {'photo_id': 1395136008, 'portfolio_id': 28690950}, {'photo_id': 1395136005, 'portfolio_id': 28690950}, {'photo_id': 1395136000, 'portfolio_id': 28690950}, {'photo_id': 1395135992, 'portfolio_id': 28690950}] map_portfolio_id_photo_id: {28690950: [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179, 1395137177, 1395137171, 1395137169, 1395137162, 1395137157, 1395137152, 1395137150, 1395137149, 1395137147, 1395137143, 1395137137, 1395137124, 1395137116, 1395137086, 1395137084, 1395137083, 1395137076, 1395137055, 1395137054, 1395137014, 1395137006, 1395137005, 1395136992, 1395136990, 1395136987, 1395136911, 1395136869, 1395136867, 1395136794, 1395136700, 1395136681, 1395136680, 1395136605, 1395136564, 1395136557, 1395136551, 1395136550, 1395136549, 1395136543, 1395136521, 1395136520, 1395136485, 1395136470, 1395136461, 1395136381, 1395136350, 1395136200, 1395136166, 1395136060, 1395136022, 1395136016, 1395136013, 1395136008, 1395136005, 1395136000, 1395135992]} ##### 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.017058610916137695 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Nov 19 04:14: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 (28690950) 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 : 28690950 get user id for portfolio 28690950 get sub ptf for main ptf 28690950, type 3726 and hashtags ['cartonnette', 'papier', 'kraft', 'plastique', 'metal', 'environnement', 'autre_refus', 'flou', 'Carton_gris', 'mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse'] 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`=28690950 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','kraft','plastique','metal','environnement','autre_refus','flou','Carton_gris','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) 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`=28690950 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','kraft','plastique','metal','environnement','autre_refus','flou','Carton_gris','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 28690950, 'sub_port_id': 28691008, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457836, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'flou': {'main_port_id': 28690950, 'sub_port_id': 28691009, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457837, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'Carton_brun': {'main_port_id': 28690950, 'sub_port_id': 28691010, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457838, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'kraft': {'main_port_id': 28690950, 'sub_port_id': 28691011, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457839, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'Carton_gris': {'main_port_id': 28690950, 'sub_port_id': 28691012, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457840, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'cartonnette': {'main_port_id': 28690950, 'sub_port_id': 28691013, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457841, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'plastique': {'main_port_id': 28690950, 'sub_port_id': 28691014, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457842, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'mal_croppe': {'main_port_id': 28690950, 'sub_port_id': 28691015, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457843, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28690950, 'sub_port_id': 28691016, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457844, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'autre_refus': {'main_port_id': 28690950, 'sub_port_id': 28691017, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457845, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'metal': {'main_port_id': 28690950, 'sub_port_id': 28691018, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457846, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'papier': {'main_port_id': 28690950, 'sub_port_id': 28691019, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457847, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691008 , 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=28690950 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 (28691008) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691009 , 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=28690950 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 (28691009) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691010 , 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=28690950 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 (28691010) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691011 , 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=28690950 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 (28691011) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691012 , 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=28690950 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 (28691012) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691013 , 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=28690950 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 (28691013) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691014 , 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=28690950 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 (28691014) result : ((1395137159,), (1395137160,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691015 , 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=28690950 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 (28691015) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691016 , 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=28690950 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 (28691016) result : ((1395137158,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691017 , 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=28690950 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 (28691017) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691018 , 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=28690950 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 (28691018) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28691019 , 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=28690950 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 (28691019) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28690950) result : ((1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) 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 (1395136000,1395136700,1395136200) and cspi.crop_hashtag_id = chi.id; 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`=28690950 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','kraft','plastique','metal','environnement','autre_refus','flou','Carton_gris','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) 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`=28690950 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','kraft','plastique','metal','environnement','autre_refus','flou','Carton_gris','mal_croppe','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 28690950, 'sub_port_id': 28691020, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457848, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'flou': {'main_port_id': 28690950, 'sub_port_id': 28691021, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457849, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'Carton_brun': {'main_port_id': 28690950, 'sub_port_id': 28691022, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457850, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'kraft': {'main_port_id': 28690950, 'sub_port_id': 28691023, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457851, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'Carton_gris': {'main_port_id': 28690950, 'sub_port_id': 28691024, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457852, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'cartonnette': {'main_port_id': 28690950, 'sub_port_id': 28691025, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457853, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'plastique': {'main_port_id': 28690950, 'sub_port_id': 28691026, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457854, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'mal_croppe': {'main_port_id': 28690950, 'sub_port_id': 28691027, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457855, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 28690950, 'sub_port_id': 28691028, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457856, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'autre_refus': {'main_port_id': 28690950, 'sub_port_id': 28691029, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457857, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'metal': {'main_port_id': 28690950, 'sub_port_id': 28691030, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457858, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 5, 27), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}, 'papier': {'main_port_id': 28690950, 'sub_port_id': 28691031, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19457859, 'last_updated_at': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 19, 4, 12, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 19, 4, 5, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691020,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691008 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691021,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691009 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691022,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691010 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691023,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691011 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691024,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691012 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691025,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691013 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691026,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691014 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691027,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691015 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691028,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691016 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691029,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691017 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691030,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691018 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28691031,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28691019 lien utilise dans velours : https://marlene.fotonower.com/velours/28691020,28691021,28691022,28691023,28691024,28691025,28691026,28691027,28691028,28691029,28691030,28691031?tags=environnement,flou,Carton_brun,kraft,Carton_gris,cartonnette,plastique,mal_croppe,Teint_Dans_La_Masse,autre_refus,metal,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28690950]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] map_info['map_portfolio_photo'] : {28690950: [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179, 1395137177, 1395137171, 1395137169, 1395137162, 1395137157, 1395137152, 1395137150, 1395137149, 1395137147, 1395137143, 1395137137, 1395137124, 1395137116, 1395137086, 1395137084, 1395137083, 1395137076, 1395137055, 1395137054, 1395137014, 1395137006, 1395137005, 1395136992, 1395136990, 1395136987, 1395136911, 1395136869, 1395136867, 1395136794, 1395136700, 1395136681, 1395136680, 1395136605, 1395136564, 1395136557, 1395136551, 1395136550, 1395136549, 1395136543, 1395136521, 1395136520, 1395136485, 1395136470, 1395136461, 1395136381, 1395136350, 1395136200, 1395136166, 1395136060, 1395136022, 1395136016, 1395136013, 1395136008, 1395136005, 1395136000, 1395135992]} final : False mtd_id 4302 list_pids : [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] Looping around the photos to save general results len do output : 1 /28690950. 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, '4073170') ('4302', '28690950', '1395138269', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28690950', "{'environnement': 28691008, 'flou': 28691009, 'Carton_brun': 28691010, 'kraft': 28691011, 'Carton_gris': 28691012, 'cartonnette': 28691013, 'plastique': 28691014, 'mal_croppe': 28691015, 'Teint_Dans_La_Masse': 28691016, 'autre_refus': 28691017, 'metal': 28691018, 'papier': 28691019}", None, None, None, None, '4073170'), ('4302', '28690950', '1395138269', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170')] time used for this insertion : 0.016420602798461914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41769981384277344 time spend to save output : 0.016750097274780273 total time spend for step 1 : 0.4344499111175537 step2:final Wed Nov 19 04:14: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 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 (28690950) 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 28690950 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395136200,1395136008,1395136000,1395136022,1395136016,1395135992,1395136521,1395136013,1395136461,1395136005,1395136381,1395136350,1395136166,1395136060,1395136551,1395136549,1395136543,1395136520,1395136485,1395136794,1395136700,1395136470,1395136605,1395136564,1395136557,1395136550,1395137084,1395137083,1395137054,1395137006,1395136990,1395136992,1395136987,1395136911,1395136869,1395137116,1395136867,1395136681,1395136680,1395137086,1395137076,1395137055,1395137162,1395137014,1395137152,1395137005,1395137150,1395137143,1395137137,1395137124,1395137177,1395137171,1395137169,1395137157,1395137149,1395137147,1395138038,1395138269,1395138268,1395137884,1395137686,1395138198,1395138267,1395137423,1395138048,1395138204,1395137976,1395138139,1395137278,1395137809,1395138041,1395137179,1395137667,1395137983); 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([28690950]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} new output for save of step final : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] map_info['map_portfolio_photo'] : {28690950: [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179, 1395137177, 1395137171, 1395137169, 1395137162, 1395137157, 1395137152, 1395137150, 1395137149, 1395137147, 1395137143, 1395137137, 1395137124, 1395137116, 1395137086, 1395137084, 1395137083, 1395137076, 1395137055, 1395137054, 1395137014, 1395137006, 1395137005, 1395136992, 1395136990, 1395136987, 1395136911, 1395136869, 1395136867, 1395136794, 1395136700, 1395136681, 1395136680, 1395136605, 1395136564, 1395136557, 1395136551, 1395136550, 1395136549, 1395136543, 1395136521, 1395136520, 1395136485, 1395136470, 1395136461, 1395136381, 1395136350, 1395136200, 1395136166, 1395136060, 1395136022, 1395136016, 1395136013, 1395136008, 1395136005, 1395136000, 1395135992]} final : False mtd_id 4302 list_pids : [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] Looping around the photos to save general results len do output : 18 /1395138269.Didn't retrieve data . /1395138268.Didn't retrieve data . /1395138267.Didn't retrieve data . /1395138204.Didn't retrieve data . /1395138198.Didn't retrieve data . /1395138139.Didn't retrieve data . /1395138048.Didn't retrieve data . /1395138041.Didn't retrieve data . /1395138038.Didn't retrieve data . /1395137983.Didn't retrieve data . /1395137976.Didn't retrieve data . /1395137884.Didn't retrieve data . /1395137809.Didn't retrieve data . /1395137686.Didn't retrieve data . /1395137667.Didn't retrieve data . /1395137423.Didn't retrieve data . /1395137278.Didn't retrieve data . /1395137179.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, '4073170') ('4302', '28690950', '1395138269', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28690950', '1395138269', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138268', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138267', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138204', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138198', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138139', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138048', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138041', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395138038', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137983', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137976', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137884', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137809', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137686', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137667', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137423', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137278', '0.028210565012606676', None, None, None, None, '4073170'), ('4302', '28690950', '1395137179', '0.028210565012606676', None, None, None, None, '4073170')] time used for this insertion : 0.016226768493652344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06290149688720703 time spend to save output : 0.017018556594848633 total time spend for step 2 : 0.07992005348205566 step3:velours_tree Wed Nov 19 04:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28690950: [{'environnement': 28691008, 'flou': 28691009, 'Carton_brun': 28691010, 'kraft': 28691011, 'Carton_gris': 28691012, 'cartonnette': 28691013, 'plastique': 28691014, 'mal_croppe': 28691015, 'Teint_Dans_La_Masse': 28691016, 'autre_refus': 28691017, 'metal': 28691018, 'papier': 28691019}]} input_args_next_step : {28690950: ()} output_args : {28690950: [{'environnement': 28691008, 'flou': 28691009, 'Carton_brun': 28691010, 'kraft': 28691011, 'Carton_gris': 28691012, 'cartonnette': 28691013, 'plastique': 28691014, 'mal_croppe': 28691015, 'Teint_Dans_La_Masse': 28691016, 'autre_refus': 28691017, 'metal': 28691018, 'papier': 28691019}]} args : 28690950 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 28691008, 'flou': 28691009, 'Carton_brun': 28691010, 'kraft': 28691011, 'Carton_gris': 28691012, 'cartonnette': 28691013, 'plastique': 28691014, 'mal_croppe': 28691015, 'Teint_Dans_La_Masse': 28691016, 'autre_refus': 28691017, 'metal': 28691018, 'papier': 28691019},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28690950) 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([28690950]) 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.27484726905822754 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.27489542961120605 step4:send_mail_cod Wed Nov 19 04:14:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} input_args_next_step : {1395138269: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138269 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138268 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138267 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138204 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138198 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138139 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138048 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138041 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395138038 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137983 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137976 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137884 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137809 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137686 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137667 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137423 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137278 depend.output_id : 0 input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ()} output_args : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',)} args : 1395137179 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 : {28690950: [{'environnement': 28691008, 'flou': 28691009, 'Carton_brun': 28691010, 'kraft': 28691011, 'Carton_gris': 28691012, 'cartonnette': 28691013, 'plastique': 28691014, 'mal_croppe': 28691015, 'Teint_Dans_La_Masse': 28691016, 'autre_refus': 28691017, 'metal': 28691018, 'papier': 28691019}]} input_args_next_step : {1395138269: ('0.028210565012606676',), 1395138268: ('0.028210565012606676',), 1395138267: ('0.028210565012606676',), 1395138204: ('0.028210565012606676',), 1395138198: ('0.028210565012606676',), 1395138139: ('0.028210565012606676',), 1395138048: ('0.028210565012606676',), 1395138041: ('0.028210565012606676',), 1395138038: ('0.028210565012606676',), 1395137983: ('0.028210565012606676',), 1395137976: ('0.028210565012606676',), 1395137884: ('0.028210565012606676',), 1395137809: ('0.028210565012606676',), 1395137686: ('0.028210565012606676',), 1395137667: ('0.028210565012606676',), 1395137423: ('0.028210565012606676',), 1395137278: ('0.028210565012606676',), 1395137179: ('0.028210565012606676',), 28690950: ()} output_args : {28690950: [{'environnement': 28691008, 'flou': 28691009, 'Carton_brun': 28691010, 'kraft': 28691011, 'Carton_gris': 28691012, 'cartonnette': 28691013, 'plastique': 28691014, 'mal_croppe': 28691015, 'Teint_Dans_La_Masse': 28691016, 'autre_refus': 28691017, 'metal': 28691018, 'papier': 28691019}]} args : 28690950 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :19, first value : ('0.028210565012606676',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28690950) 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_view ph WHERE photo_id IN (1395138269,1395138268,1395138267,1395138204,1395138198,1395138139,1395138048,1395138041,1395138038,1395137983,1395137976,1395137884,1395137809,1395137686,1395137667,1395137423,1395137278,1395137179) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395137179 begin to download photo : 1395137686 begin to download photo : 1395137983 begin to download photo : 1395138139 begin to download photo : 1395138268 download finish for photo 1395138268 begin to download photo : 1395138269 download finish for photo 1395137686 begin to download photo : 1395137809 download finish for photo 1395137179 begin to download photo : 1395137278 download finish for photo 1395138139 begin to download photo : 1395138198 download finish for photo 1395137983 begin to download photo : 1395138038 download finish for photo 1395138269 download finish for photo 1395137809 begin to download photo : 1395137884 download finish for photo 1395138038 begin to download photo : 1395138041 download finish for photo 1395137278 begin to download photo : 1395137423 download finish for photo 1395138198 begin to download photo : 1395138204 download finish for photo 1395137884 begin to download photo : 1395137976 download finish for photo 1395138041 begin to download photo : 1395138048 download finish for photo 1395137423 begin to download photo : 1395137667 download finish for photo 1395138204 begin to download photo : 1395138267 download finish for photo 1395138048 download finish for photo 1395137667 download finish for photo 1395137976 download finish for photo 1395138267 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette286910091763522099/ imagette286910111763522099/ imagette286910131763522099/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P28690950_19-11-2025_04_14_59.pdf 28691009 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691009 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910091763522099 28691011 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691011 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910111763522099 28691013 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691013 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910131763522099 28691014 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691014 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395137159: '1763521765_3008189_1395136551_c5ca447d2a422c0ad571c254796cc582_rle_crop_4038294304_0.png', 1395137160: '1763521765_3008189_1395136060_b558ce08f36a8218b9fb67e23c61f06b_rle_crop_4038294336_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/c646a9486934a4aa0af40a8f354c7d16_80487630.png change filename to text .imagette286910141763522099/ imagette286910141763522099/1763521765_3008189_1395136551_c5ca447d2a422c0ad571c254796cc582_rle_crop_4038294304_0.png.png imagette286910141763522099/1763521765_3008189_1395136060_b558ce08f36a8218b9fb67e23c61f06b_rle_crop_4038294336_0.png.png imagette286910151763522100/ imagette286910171763522100/ imagette286910181763522100/ imagette286910101763522100/ imagette286910121763522100/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/c646a9486934a4aa0af40a8f354c7d16_4156762.png imagette286910141763522099 28691015 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691015 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910151763522100 28691017 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691017 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910171763522100 28691018 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691018 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910181763522100 28691010 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691010 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910101763522100 28691012 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691012 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette286910121763522100 28691016 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28691016 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395137158: '1763521765_3008189_1395136549_4c099dc05c036a604dbda256ab546b45_rle_crop_4038294316_0.png'} change filename to text .imagette286910161763522100/ imagette286910161763522100/1763521765_3008189_1395136549_4c099dc05c036a604dbda256ab546b45_rle_crop_4038294316_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/33bab07802fc3731a9efa80717638034_357501.png imagette286910161763522100 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28690950 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28691020,28691021,28691022,28691023,28691024,28691025,28691026,28691027,28691028,28691029,28691030,28691031?tags=environnement,flou,Carton_brun,kraft,Carton_gris,cartonnette,plastique,mal_croppe,Teint_Dans_La_Masse,autre_refus,metal,papier your option no_mail is active, we will not send the real mail to your client args[1395138269] : ('0.028210565012606676',) no score found for photo 1395138269 We are sending mail with results at report@fotonower.com args[1395138268] : ('0.028210565012606676',) no score found for photo 1395138268 We are sending mail with results at report@fotonower.com args[1395138267] : ('0.028210565012606676',) no score found for photo 1395138267 We are sending mail with results at report@fotonower.com args[1395138204] : ('0.028210565012606676',) no score found for photo 1395138204 We are sending mail with results at report@fotonower.com args[1395138198] : ('0.028210565012606676',) no score found for photo 1395138198 We are sending mail with results at report@fotonower.com args[1395138139] : ('0.028210565012606676',) no score found for photo 1395138139 We are sending mail with results at report@fotonower.com args[1395138048] : ('0.028210565012606676',) no score found for photo 1395138048 We are sending mail with results at report@fotonower.com args[1395138041] : ('0.028210565012606676',) no score found for photo 1395138041 We are sending mail with results at report@fotonower.com args[1395138038] : ('0.028210565012606676',) no score found for photo 1395138038 We are sending mail with results at report@fotonower.com args[1395137983] : ('0.028210565012606676',) no score found for photo 1395137983 We are sending mail with results at report@fotonower.com args[1395137976] : ('0.028210565012606676',) no score found for photo 1395137976 We are sending mail with results at report@fotonower.com args[1395137884] : ('0.028210565012606676',) no score found for photo 1395137884 We are sending mail with results at report@fotonower.com args[1395137809] : ('0.028210565012606676',) no score found for photo 1395137809 We are sending mail with results at report@fotonower.com args[1395137686] : ('0.028210565012606676',) no score found for photo 1395137686 We are sending mail with results at report@fotonower.com args[1395137667] : ('0.028210565012606676',) no score found for photo 1395137667 We are sending mail with results at report@fotonower.com args[1395137423] : ('0.028210565012606676',) no score found for photo 1395137423 We are sending mail with results at report@fotonower.com args[1395137278] : ('0.028210565012606676',) no score found for photo 1395137278 We are sending mail with results at report@fotonower.com args[1395137179] : ('0.028210565012606676',) no score found for photo 1395137179 We are sending mail with results at report@fotonower.com refus_total : 0.028210565012606676 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28690950 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_P28690950_19-11-2025_04_14_59.pdf results_Auto_P28690950_19-11-2025_04_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690950_19-11-2025_04_14_59.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','28690950','results_Auto_P28690950_19-11-2025_04_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690950_19-11-2025_04_14_59.pdf','pdf','','0.16','0.028210565012606676') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28690950]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] map_info['map_portfolio_photo'] : {28690950: [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179, 1395137177, 1395137171, 1395137169, 1395137162, 1395137157, 1395137152, 1395137150, 1395137149, 1395137147, 1395137143, 1395137137, 1395137124, 1395137116, 1395137086, 1395137084, 1395137083, 1395137076, 1395137055, 1395137054, 1395137014, 1395137006, 1395137005, 1395136992, 1395136990, 1395136987, 1395136911, 1395136869, 1395136867, 1395136794, 1395136700, 1395136681, 1395136680, 1395136605, 1395136564, 1395136557, 1395136551, 1395136550, 1395136549, 1395136543, 1395136521, 1395136520, 1395136485, 1395136470, 1395136461, 1395136381, 1395136350, 1395136200, 1395136166, 1395136060, 1395136022, 1395136016, 1395136013, 1395136008, 1395136005, 1395136000, 1395135992]} final : False mtd_id 4302 list_pids : [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] 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, '4073170') ('4302', '28690950', '1395138269', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28690950', '1395138269', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170')] time used for this insertion : 0.01677680015563965 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6050145626068115 time spend to save output : 0.01704549789428711 total time spend for step 4 : 2.6220600605010986 step5:split_time_score Wed Nov 19 04:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28690950'] 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 : [('28690950',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28690950) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395138268: {'path': 'temp/1763522099_649102_1395138268_98ea5af15bd85a9efd6bf13ef15ed957.jpg', 'extension': 'jpg'}, 1395138269: {'path': 'temp/1763522099_649102_1395138269_61bb2c4739bf57bddea8ad8a1aba499b.jpg', 'extension': 'jpg'}, 1395137983: {'path': 'temp/1763522099_649102_1395137983_b33edfd82f85e3cd15f15b59264f96e8.jpg', 'extension': 'jpg'}, 1395138038: {'path': 'temp/1763522099_649102_1395138038_ddb0a04e01748f4546edda7bfb86a98c.jpg', 'extension': 'jpg'}, 1395138041: {'path': 'temp/1763522099_649102_1395138041_0642443df4324af169ea13230079a102.jpg', 'extension': 'jpg'}, 1395138048: {'path': 'temp/1763522099_649102_1395138048_5973e84e8a1bd1ebf968a098a634a7db.jpg', 'extension': 'jpg'}, 1395137179: {'path': 'temp/1763522099_649102_1395137179_424df0250f47f4be15c1b9538c52f52e.jpg', 'extension': 'jpg'}, 1395137278: {'path': 'temp/1763522099_649102_1395137278_36795e333641062e8f95684345b2f26a.jpg', 'extension': 'jpg'}, 1395137423: {'path': 'temp/1763522099_649102_1395137423_5f8c42c1d7acb1143b2b745236505a02.jpg', 'extension': 'jpg'}, 1395137667: {'path': 'temp/1763522099_649102_1395137667_b9f310f3619d1a1b9f8aa5216739dc8a.jpg', 'extension': 'jpg'}, 1395137686: {'path': 'temp/1763522099_649102_1395137686_f1d94e9ab23b2ac566c287d8cd8ee48f.jpg', 'extension': 'jpg'}, 1395137809: {'path': 'temp/1763522099_649102_1395137809_41c648cdb2dee0dd58100b07f6b6724c.jpg', 'extension': 'jpg'}, 1395137884: {'path': 'temp/1763522099_649102_1395137884_8c10c956878ac3e78646ecdc947b534a.jpg', 'extension': 'jpg'}, 1395137976: {'path': 'temp/1763522099_649102_1395137976_49ef91bb6aab3381d74f2507e9e30da8.jpg', 'extension': 'jpg'}, 1395138139: {'path': 'temp/1763522099_649102_1395138139_82c361b9c19eb28c3643dc29cb032902.jpg', 'extension': 'jpg'}, 1395138198: {'path': 'temp/1763522099_649102_1395138198_a2f009c36b79615d6302d102c4d019d3.jpg', 'extension': 'jpg'}, 1395138204: {'path': 'temp/1763522099_649102_1395138204_9c86ad9233750f40bf1cb41582fbd0f5.jpg', 'extension': 'jpg'}, 1395138267: {'path': 'temp/1763522099_649102_1395138267_4e4f86dac107d9c57ce7538ac0f96344.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 = 28690950; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28690950 group by h (('04', 74),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28690950 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 (28690950) 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 (28690950) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19112025 28690950 Nombre de photos uploadées : 74 / 23040 (0%) 19112025 28690950 Nombre de photos taguées (types de déchets): 0 / 74 (0%) 19112025 28690950 Nombre de photos taguées (volume) : 0 / 74 (0%) [{'photo_id': 1395136200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/5ae2a977fa69a92025fccfb02479aee0.jpg', 'username': None, 'uploaded_at': 1763521332, 'text': 'image_19112025_04_00_14_10215.jpg'}, {'photo_id': 1395136008, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/162eea5478df504f44814a57d86de611.jpg', 'username': None, 'uploaded_at': 1763521268, 'text': 'image_19112025_04_00_14_10215.jpg'}, {'photo_id': 1395136000, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/efa7bf7f47417351b70cc75e6edebdd9.jpg', 'username': None, 'uploaded_at': 1763521268, 'text': 'image_19112025_04_00_34_10135.jpg'}, {'photo_id': 1395136022, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/19/39b4fd4673b46248f32b6c0d3a683a49.jpg', 'username': None, 'uploaded_at': 1763521332, 'text': 'image_19112025_04_00_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 6.198883056640625e-06 elapsed_time : order_list_meta_photo_and_scores 1.2636184692382812e-05 ?????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.005764007568359375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28690950, '2025-11-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-19' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2606833,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20960783958435059 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= 2606833 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28683578, 'dashboard_result_id': 17473938, '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_P28683578_19-11-2025_00_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28683926, 'dashboard_result_id': 17473939, '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_P28683926_19-11-2025_00_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684031, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28684479, 'dashboard_result_id': 17473940, '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_P28684479_19-11-2025_00_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684497, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28684827, 'dashboard_result_id': 17473941, '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_P28684827_19-11-2025_01_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684847, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28686230, 'dashboard_result_id': 17473942, '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_P28686230_19-11-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686245, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28686572, 'dashboard_result_id': 17473943, '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_P28686572_19-11-2025_02_08_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686592, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28686897, 'dashboard_result_id': 17473944, '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_P28686897_19-11-2025_02_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686929, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28687492, 'dashboard_result_id': 17473945, '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_P28687492_19-11-2025_02_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28687526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28687527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28687528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28687529, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28687530, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28687531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28687532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28687533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28687534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28687535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28687536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28687537, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28688047, 'dashboard_result_id': 17473946, '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_P28688047_19-11-2025_02_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688080, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28688672, 'dashboard_result_id': 17473947, '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_P28688672_19-11-2025_03_28_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688688, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28689189, 'dashboard_result_id': 17473948, '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_P28689189_19-11-2025_03_29_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689213, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28689419, 'dashboard_result_id': 17473949, '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_P28689419_19-11-2025_03_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689463, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28689948, 'dashboard_result_id': 17473950, '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_P28689948_19-11-2025_03_49_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689993, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28690373, 'dashboard_result_id': 17473951, '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_P28690373_19-11-2025_04_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28690393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28690394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28690395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28690396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28690397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28690398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28690399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28690400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28690401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28690402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28690403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28690404, 'pht': 3726}}"}, {'dashboat_entry_day': 2606833, 'dashboard_run_id': 2614845, 'mtr_portfolio_id': 28690950, 'dashboard_result_id': 17473952, '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_P28690950_19-11-2025_04_10_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28691018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691019, '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 = 28683578 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': 4071775, 'mtr_portfolio_id': 28683578, 'created_at': datetime.datetime(2025, 11, 19, 0, 18, 57), 'result': '0.06859068223752736', 'result_long': None, 'result_double': None}] Qualite : 0.06859068223752736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28683578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_00_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28683578 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_P28683578_19-11-2025_00_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, 'pht': 3726}}" where mtr_portfolio_id = 28683578 and dashboard_run_id = 2614845 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`=28683578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473938, 0.06859068223752736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683578_19-11-2025_00_18_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28683583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28683584, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28683585, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28683586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28683587, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28683588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28683589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28683590, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28683591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28683592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28683593, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28683594, '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 = 28683926 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': 4071817, 'mtr_portfolio_id': 28683926, 'created_at': datetime.datetime(2025, 11, 19, 0, 32, 58), 'result': '0.04735229230456491', 'result_long': None, 'result_double': None}] Qualite : 0.04735229230456491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28683926 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683926_19-11-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28683926 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_P28683926_19-11-2025_00_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684031, 'pht': 3726}}" where mtr_portfolio_id = 28683926 and dashboard_run_id = 2614845 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`=28683926 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473939, 0.04735229230456491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28683926_19-11-2025_00_32_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684020, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684021, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684022, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684026, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684028, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684030, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684031, '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 = 28684479 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': 4071877, 'mtr_portfolio_id': 28684479, 'created_at': datetime.datetime(2025, 11, 19, 0, 48, 57), 'result': '0.05278299411704772', 'result_long': None, 'result_double': None}] Qualite : 0.05278299411704772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28684479 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684479_19-11-2025_00_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28684479 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_P28684479_19-11-2025_00_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684497, 'pht': 3726}}" where mtr_portfolio_id = 28684479 and dashboard_run_id = 2614845 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`=28684479 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473940, 0.05278299411704772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684479_19-11-2025_00_48_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684486, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684487, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684489, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684490, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684491, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684492, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684493, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684494, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684495, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684496, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684497, '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 = 28684827 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': 4071952, 'mtr_portfolio_id': 28684827, 'created_at': datetime.datetime(2025, 11, 19, 1, 2, 58), 'result': '0.04383896474179003', 'result_long': None, 'result_double': None}] Qualite : 0.04383896474179003 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28684827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684827_19-11-2025_01_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28684827 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_P28684827_19-11-2025_01_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684847, 'pht': 3726}}" where mtr_portfolio_id = 28684827 and dashboard_run_id = 2614845 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`=28684827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473941, 0.04383896474179003, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28684827_19-11-2025_01_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28684836, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28684837, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28684838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28684839, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28684840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28684841, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28684842, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28684843, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28684844, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28684845, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28684846, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28684847, '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 = 28686230 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': 4072200, 'mtr_portfolio_id': 28686230, 'created_at': datetime.datetime(2025, 11, 19, 1, 46, 59), 'result': '0.039356498307019164', 'result_long': None, 'result_double': None}] Qualite : 0.039356498307019164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28686230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686230_19-11-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28686230 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_P28686230_19-11-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686245, 'pht': 3726}}" where mtr_portfolio_id = 28686230 and dashboard_run_id = 2614845 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`=28686230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473942, 0.039356498307019164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686230_19-11-2025_01_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686235, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686236, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686239, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686242, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686244, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686245, '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 = 28686572 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': 4072259, 'mtr_portfolio_id': 28686572, 'created_at': datetime.datetime(2025, 11, 19, 2, 8, 59), 'result': '0.05508646509665104', 'result_long': None, 'result_double': None}] Qualite : 0.05508646509665104 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28686572 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686572_19-11-2025_02_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28686572 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_P28686572_19-11-2025_02_08_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686592, 'pht': 3726}}" where mtr_portfolio_id = 28686572 and dashboard_run_id = 2614845 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`=28686572 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473943, 0.05508646509665104, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686572_19-11-2025_02_08_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686581, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686582, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686583, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686584, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686586, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686587, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686591, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686592, '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 = 28686897 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': 4072364, 'mtr_portfolio_id': 28686897, 'created_at': datetime.datetime(2025, 11, 19, 2, 18, 57), 'result': '0.061163519065488246', 'result_long': None, 'result_double': None}] Qualite : 0.061163519065488246 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28686897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686897_19-11-2025_02_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28686897 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_P28686897_19-11-2025_02_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686929, 'pht': 3726}}" where mtr_portfolio_id = 28686897 and dashboard_run_id = 2614845 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`=28686897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473944, 0.061163519065488246, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28686897_19-11-2025_02_18_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28686918, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28686919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28686920, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28686921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28686922, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28686923, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28686924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28686925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28686926, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28686927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28686928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28686929, '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 = 28687492 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': 4072450, 'mtr_portfolio_id': 28687492, 'created_at': datetime.datetime(2025, 11, 19, 2, 32, 58), 'result': '0.046952447594466894', 'result_long': None, 'result_double': None}] Qualite : 0.046952447594466894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28687492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28687492_19-11-2025_02_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28687492 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_P28687492_19-11-2025_02_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28687526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28687527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28687528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28687529, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28687530, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28687531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28687532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28687533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28687534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28687535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28687536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28687537, 'pht': 3726}}" where mtr_portfolio_id = 28687492 and dashboard_run_id = 2614845 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`=28687492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473945, 0.046952447594466894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28687492_19-11-2025_02_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28687526, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28687527, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28687528, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28687529, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28687530, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28687531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28687532, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28687533, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28687534, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28687535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28687536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28687537, '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 = 28688047 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': 4072571, 'mtr_portfolio_id': 28688047, 'created_at': datetime.datetime(2025, 11, 19, 2, 49), 'result': '0.02812286848423722', 'result_long': None, 'result_double': None}] Qualite : 0.02812286848423722 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28688047 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688047_19-11-2025_02_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28688047 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_P28688047_19-11-2025_02_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688080, 'pht': 3726}}" where mtr_portfolio_id = 28688047 and dashboard_run_id = 2614845 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`=28688047 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473946, 0.02812286848423722, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688047_19-11-2025_02_49_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688077, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688079, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688080, '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 = 28688672 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': 4072668, 'mtr_portfolio_id': 28688672, 'created_at': datetime.datetime(2025, 11, 19, 3, 28, 58), 'result': '0.06533965874564587', 'result_long': None, 'result_double': None}] Qualite : 0.06533965874564587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28688672 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688672_19-11-2025_03_28_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28688672 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_P28688672_19-11-2025_03_28_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688688, 'pht': 3726}}" where mtr_portfolio_id = 28688672 and dashboard_run_id = 2614845 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`=28688672 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473947, 0.06533965874564587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28688672_19-11-2025_03_28_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28688673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28688674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28688675, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28688676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28688677, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28688678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28688679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28688680, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28688681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28688684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28688686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28688688, '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 = 28689189 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': 4072750, 'mtr_portfolio_id': 28689189, 'created_at': datetime.datetime(2025, 11, 19, 3, 29, 29), 'result': '0.051424722326917346', 'result_long': None, 'result_double': None}] Qualite : 0.051424722326917346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28689189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689189_19-11-2025_03_29_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28689189 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_P28689189_19-11-2025_03_29_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689213, 'pht': 3726}}" where mtr_portfolio_id = 28689189 and dashboard_run_id = 2614845 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`=28689189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473948, 0.051424722326917346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689189_19-11-2025_03_29_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689202, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689204, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689206, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689207, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689208, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689211, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689212, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689213, '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 = 28689419 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': 4072815, 'mtr_portfolio_id': 28689419, 'created_at': datetime.datetime(2025, 11, 19, 3, 49), 'result': '0.06120917962167015', 'result_long': None, 'result_double': None}] Qualite : 0.06120917962167015 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28689419 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689419_19-11-2025_03_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28689419 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_P28689419_19-11-2025_03_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689463, 'pht': 3726}}" where mtr_portfolio_id = 28689419 and dashboard_run_id = 2614846 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`=28689419 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473949, 0.06120917962167015, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689419_19-11-2025_03_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689453, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689455, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689456, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689457, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689458, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689460, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689461, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689462, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689463, '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 = 28689948 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': 4072922, 'mtr_portfolio_id': 28689948, 'created_at': datetime.datetime(2025, 11, 19, 3, 49, 28), 'result': '0.046299302299172305', 'result_long': None, 'result_double': None}] Qualite : 0.046299302299172305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28689948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689948_19-11-2025_03_49_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28689948 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_P28689948_19-11-2025_03_49_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689993, 'pht': 3726}}" where mtr_portfolio_id = 28689948 and dashboard_run_id = 2614846 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`=28689948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473950, 0.046299302299172305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28689948_19-11-2025_03_49_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28689981, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28689982, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28689983, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28689984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28689985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28689986, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28689987, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28689988, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28689990, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28689991, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28689992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28689993, '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 = 28690373 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': 4073022, 'mtr_portfolio_id': 28690373, 'created_at': datetime.datetime(2025, 11, 19, 4, 7), 'result': '0.037530496513394004', 'result_long': None, 'result_double': None}] Qualite : 0.037530496513394004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28690373 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690373_19-11-2025_04_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28690373 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_P28690373_19-11-2025_04_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28690393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28690394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28690395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28690396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28690397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28690398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28690399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28690400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28690401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28690402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28690403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28690404, 'pht': 3726}}" where mtr_portfolio_id = 28690373 and dashboard_run_id = 2614846 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`=28690373 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473951, 0.037530496513394004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690373_19-11-2025_04_07_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28690393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28690394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28690395, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28690396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28690397, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28690398, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28690399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28690400, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28690401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28690402, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28690403, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28690404, '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 = 28690950 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': 4073170, 'mtr_portfolio_id': 28690950, 'created_at': datetime.datetime(2025, 11, 19, 4, 14, 59), 'result': '0.028210565012606676', 'result_long': None, 'result_double': None}] Qualite : 0.028210565012606676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28690950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690950_19-11-2025_04_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28690950 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_P28690950_19-11-2025_04_14_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28691018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691019, 'pht': 3726}}" where mtr_portfolio_id = 28690950 and dashboard_run_id = 2614846 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`=28690950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17473952, 0.028210565012606676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28690950_19-11-2025_04_14_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28691008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28691009, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28691010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28691011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28691012, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28691013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28691014, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28691015, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28691016, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28691017, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28691018, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28691019, '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 (28683578,28683926,28684479,28684827,28686230,28686572,28686897,28687492,28688047,28688672,28689189,28689419,28689948,28690373,28690950) result : ((1395115440,), (1395115447,), (1395115450,), (1395115453,), (1395115457,), (1395115461,), (1395115491,), (1395115493,), (1395115496,), (1395115500,), (1395115505,), (1395115549,), (1395115551,), (1395115552,), (1395115580,), (1395115583,), (1395115586,), (1395115589,), (1395115592,), (1395115611,), (1395115618,), (1395115619,), (1395115625,), (1395115629,), (1395115630,), (1395115648,), (1395115684,), (1395115726,), (1395116060,), (1395116093,), (1395116125,), (1395116141,), (1395116336,), (1395116357,), (1395116390,), (1395116424,), (1395116460,), (1395116678,), (1395116686,), (1395116688,), (1395116701,), (1395116706,), (1395116718,), (1395116719,), (1395116727,), (1395116729,), (1395116733,), (1395116750,), (1395116752,), (1395116754,), (1395116758,), (1395116878,), (1395116903,), (1395116915,), (1395116922,), (1395116934,), (1395116991,), (1395117028,), (1395117065,), (1395117100,), (1395117462,), (1395117501,), (1395117538,), (1395117572,), (1395117612,), (1395117652,), (1395117874,), (1395117876,), (1395117888,), (1395117923,), (1395117941,), (1395117957,), (1395117966,), (1395117980,), (1395117981,), (1395117983,), (1395118010,), (1395117994,), (1395117998,), (1395118001,), (1395118004,), (1395118007,), (1395118013,), (1395118015,), (1395118017,), (1395118020,), (1395118024,), (1395118028,), (1395118055,), (1395118058,), (1395118061,), (1395118066,), (1395118080,), (1395118086,), (1395118088,), (1395118089,), (1395118094,), (1395118126,), (1395118132,), (1395118141,), (1395118152,), (1395118170,), (1395118183,), (1395118196,), (1395118198,), (1395118200,), (1395118238,), (1395118239,), (1395118240,), (1395118242,), (1395118246,), (1395118263,), (1395118265,), (1395118267,), (1395118269,), (1395118273,), (1395118297,), (1395118298,), (1395118299,), (1395118302,), (1395118306,), (1395118329,), (1395118331,), (1395118344,), (1395118348,), (1395118354,), (1395118357,), (1395118370,), (1395118373,), (1395118377,), (1395118381,), (1395118384,), (1395118392,), (1395118397,), (1395118399,), (1395118402,), (1395118405,), (1395118407,), (1395118409,), (1395118422,), (1395118423,), (1395118425,), (1395118427,), (1395118434,), (1395118435,), (1395118439,), (1395118440,), (1395118454,), (1395118455,), (1395118457,), (1395118458,), (1395118495,), (1395118504,), (1395118512,), (1395118524,), (1395118539,), (1395118543,), (1395118547,), (1395118551,), (1395118554,), (1395118557,), (1395118562,), (1395118564,), (1395118566,), (1395118568,), (1395118574,), (1395118579,), (1395118585,), (1395118589,), (1395118594,), (1395118596,), (1395118642,), (1395118644,), (1395118648,), (1395118653,), (1395118654,), (1395118655,), (1395118656,), (1395118628,), (1395118632,), (1395118637,), (1395118678,), (1395118682,), (1395118686,), (1395118690,), (1395118693,), (1395118695,), (1395118700,), (1395118702,), (1395118704,), (1395118706,), (1395118741,), (1395118744,), (1395118747,), (1395118750,), (1395118767,), (1395118769,), (1395118772,), (1395118781,), (1395118785,), (1395118788,), (1395118792,), (1395118793,), (1395118794,), (1395118796,), (1395118805,), (1395118810,), (1395118813,), (1395118816,), (1395118855,), (1395118857,), (1395118860,), (1395118865,), (1395118883,), (1395118884,), (1395118886,), (1395118889,), (1395119017,), (1395119025,), (1395119031,), (1395119035,), (1395119040,), (1395119056,), (1395119057,), (1395119058,), (1395119061,), (1395119065,), (1395119085,), (1395119086,), (1395119088,), (1395119091,), (1395119114,), (1395119116,), (1395119120,), (1395119123,), (1395119150,), (1395119152,), (1395119155,), (1395119158,), (1395119162,), (1395119165,), (1395119179,), (1395119186,), (1395119198,), (1395119208,), (1395119227,), (1395119235,), (1395119238,), (1395119241,), (1395119244,), (1395119248,), (1395119257,), (1395119262,), (1395119292,), (1395119275,), (1395119277,), (1395119281,), (1395119285,), (1395119288,), (1395119305,), (1395119306,), (1395119307,), (1395119309,), (1395119313,), (1395119353,), (1395119360,), (1395119361,), (1395119363,), (1395119457,), (1395119458,), (1395119460,), (1395119464,), (1395119493,), (1395119494,), (1395119496,), (1395119499,), (1395119503,), (1395119517,), (1395119539,), (1395119541,), (1395119543,), (1395119547,), (1395119575,), (1395119577,), (1395119580,), (1395119587,), (1395119643,), (1395119649,), (1395119659,), (1395119661,), (1395119666,), (1395119670,), (1395119683,), (1395119685,), (1395119687,), (1395119726,), (1395119728,), (1395119731,), (1395119740,), (1395119749,), (1395119752,), (1395119763,), (1395119765,), (1395119776,), (1395119777,), (1395119792,), (1395119796,), (1395119800,), (1395119829,), (1395119831,), (1395119832,), (1395119834,), (1395119859,), (1395119860,), (1395119861,), (1395119864,), (1395119874,), (1395119884,), (1395119921,), (1395119925,), (1395119934,), (1395119939,), (1395119940,), (1395119946,), (1395119951,), (1395119956,), (1395119960,), (1395119961,), (1395119965,), (1395123686,), (1395123689,), (1395123699,), (1395123704,), (1395123707,), (1395123759,), (1395123762,), (1395123764,), (1395123803,), (1395123827,), (1395123828,), (1395123830,), (1395123833,), (1395123856,), (1395123858,), (1395123860,), (1395123863,), (1395123917,), (1395123919,), (1395123920,), (1395123924,), (1395123959,), (1395123961,), (1395123963,), (1395123971,), (1395123998,), (1395123999,), (1395124000,), (1395124002,), (1395124007,), (1395124012,), (1395124030,), (1395124033,), (1395124041,), (1395124050,), (1395124054,), (1395124062,), (1395124064,), (1395124108,), (1395124109,), (1395124110,), (1395124112,), (1395124115,), (1395124119,), (1395124150,), (1395124153,), (1395124181,), (1395124192,), (1395124199,), (1395124203,), (1395124225,), (1395124227,), (1395124229,), (1395124232,), (1395124238,), (1395124261,), (1395124263,), (1395124266,), (1395124270,), (1395124274,), (1395124279,), (1395124288,), (1395124290,), (1395124310,), (1395124308,), (1395124309,), (1395124335,), (1395124337,), (1395124339,), (1395124418,), (1395124420,), (1395124422,), (1395124425,), (1395124450,), (1395124454,), (1395124459,), (1395124464,), (1395124470,), (1395124475,), (1395124489,), (1395124494,), (1395124518,), (1395124520,), (1395124522,), (1395124525,), (1395124529,), (1395124551,), (1395124552,), (1395124554,), (1395124557,), (1395124560,), (1395124594,), (1395124602,), (1395124606,), (1395124613,), (1395124618,), (1395124662,), (1395124664,), (1395124696,), (1395124699,), (1395124702,), (1395124720,), (1395124721,), (1395124722,), (1395124724,), (1395124742,), (1395124745,), (1395124748,), (1395124753,), (1395124776,), (1395125104,), (1395125109,), (1395125187,), (1395125290,), (1395125812,), (1395125815,), (1395126084,), (1395126087,), (1395126091,), (1395126108,), (1395126110,), (1395126499,), (1395126556,), (1395126559,), (1395126566,), (1395126601,), (1395125504,), (1395125636,), (1395125731,), (1395125787,), (1395125825,), (1395125851,), (1395125902,), (1395125966,), (1395125976,), (1395125979,), (1395126077,), (1395126081,), (1395126083,), (1395126097,), (1395126100,), (1395126103,), (1395126106,), (1395126125,), (1395126129,), (1395126132,), (1395126135,), (1395126139,), (1395126142,), (1395126154,), (1395126158,), (1395126161,), (1395126164,), (1395126168,), (1395126172,), (1395126314,), (1395126351,), (1395126387,), (1395126424,), (1395126462,), (1395126699,), (1395126721,), (1395126740,), (1395126748,), (1395126752,), (1395126756,), (1395126763,), (1395126770,), (1395126775,), (1395126794,), (1395126798,), (1395126802,), (1395126845,), (1395126860,), (1395126865,), (1395126873,), (1395126889,), (1395126924,), (1395127253,), (1395127287,), (1395127540,), (1395127542,), (1395127544,), (1395127590,), (1395127591,), (1395127592,), (1395127595,), (1395127624,), (1395127662,), (1395127959,), (1395127966,), (1395127968,), (1395128117,), (1395128118,), (1395128119,), (1395128411,), (1395128412,), (1395128414,), (1395128439,), (1395128480,), (1395128490,), (1395128542,), (1395128543,), (1395128557,), (1395128546,), (1395128547,), (1395128549,), (1395128553,), (1395128576,), (1395128580,), (1395128582,), (1395128585,), (1395128600,), (1395128601,), (1395128608,), (1395128652,), (1395128693,), (1395128922,), (1395128923,), (1395128924,), (1395128927,), (1395128949,), (1395129125,), (1395129127,), (1395129346,), (1395129356,), (1395129364,), (1395129378,), (1395129389,), (1395129421,), (1395129429,), (1395129437,), (1395129443,), (1395129487,), (1395129488,), (1395129489,), (1395129492,), (1395129531,), (1395129533,), (1395129979,), (1395130011,), (1395130016,), (1395130018,), (1395130022,), (1395130190,), (1395130195,), (1395130198,), (1395130201,), (1395130204,), (1395130207,), (1395130222,), (1395130225,), (1395130226,), (1395130258,), (1395130259,), (1395130260,), (1395130262,), (1395130287,), (1395130289,), (1395130291,), (1395130294,), (1395130298,), (1395130317,), (1395130318,), (1395130322,), (1395130350,), (1395130352,), (1395130359,), (1395130369,), (1395130345,), (1395130347,), (1395130349,), (1395130378,), (1395130386,), (1395130424,), (1395130426,), (1395130427,), (1395130431,), (1395130475,), (1395130477,), (1395130478,), (1395130481,), (1395130499,), (1395130502,), (1395130507,), (1395130513,), (1395130518,), (1395130519,), (1395130526,), (1395130532,), (1395130534,), (1395130536,), (1395130540,), (1395130581,), (1395130583,), (1395130584,), (1395130586,), (1395130660,), (1395130663,), (1395130664,), (1395130666,), (1395130670,), (1395130691,), (1395130693,), (1395130721,), (1395130754,), (1395130793,), (1395130856,), (1395130858,), (1395130860,), (1395130864,), (1395130881,), (1395130883,), (1395130887,), (1395130893,), (1395130909,), (1395130913,), (1395130918,), (1395130935,), (1395130940,), (1395130957,), (1395130959,), (1395130961,), (1395130964,), (1395130968,), (1395130994,), (1395130996,), (1395130998,), (1395131002,), (1395131007,), (1395131017,), (1395131020,), (1395131023,), (1395131026,), (1395131030,), (1395131033,), (1395131038,), (1395131039,), (1395131040,), (1395131042,), (1395131064,), (1395131053,), (1395131055,), (1395131058,), (1395131061,), (1395131088,), (1395131102,), (1395131104,), (1395131113,), (1395131143,), (1395131144,), (1395131145,), (1395131238,), (1395131271,), (1395131277,), (1395131278,), (1395131292,), (1395131323,), (1395131346,), (1395131349,), (1395131352,), (1395131355,), (1395131358,), (1395131366,), (1395131369,), (1395131404,), (1395131407,), (1395131454,), (1395131455,), (1395131470,), (1395131480,), (1395131489,), (1395131517,), (1395131519,), (1395131521,), (1395131523,), (1395131556,), (1395131570,), (1395131572,), (1395131576,), (1395131580,), (1395131584,), (1395131597,), (1395131598,), (1395131601,), (1395131603,), (1395131606,), (1395131621,), (1395131628,), (1395131635,), (1395131639,), (1395131671,), (1395131672,), (1395131674,), (1395131676,), (1395131681,), (1395131685,), (1395131701,), (1395131705,), (1395131708,), (1395131713,), (1395131765,), (1395131772,), (1395132866,), (1395132870,), (1395131755,), (1395131762,), (1395131775,), (1395131777,), (1395131788,), (1395131794,), (1395131795,), (1395131797,), (1395131801,), (1395131803,), (1395131817,), (1395131828,), (1395131833,), (1395131837,), (1395131841,), (1395131843,), (1395131847,), (1395131849,), (1395131856,), (1395131862,), (1395131865,), (1395131873,), (1395131876,), (1395131879,), (1395131884,), (1395131887,), (1395131925,), (1395131930,), (1395131935,), (1395131937,), (1395131940,), (1395131943,), (1395131949,), (1395131953,), (1395131957,), (1395131960,), (1395131963,), (1395131965,), (1395131971,), (1395131973,), (1395131976,), (1395131979,), (1395131981,), (1395131983,), (1395131997,), (1395131998,), (1395132001,), (1395132005,), (1395132007,), (1395132009,), (1395132028,), (1395132030,), (1395132032,), (1395132036,), (1395132041,), (1395132044,), (1395132052,), (1395132055,), (1395132057,), (1395132059,), (1395132062,), (1395132065,), (1395132082,), (1395132086,), (1395132090,), (1395132092,), (1395132095,), (1395132097,), (1395132106,), (1395132116,), (1395132119,), (1395132122,), (1395132126,), (1395132130,), (1395132138,), (1395132140,), (1395132142,), (1395132144,), (1395132147,), (1395132148,), (1395132158,), (1395132161,), (1395132165,), (1395132168,), (1395132170,), (1395132171,), (1395132174,), (1395132178,), (1395132182,), (1395132187,), (1395132195,), (1395132203,), (1395132226,), (1395132233,), (1395132280,), (1395132298,), (1395132301,), (1395132357,), (1395132358,), (1395132360,), (1395132362,), (1395132377,), (1395132505,), (1395132542,), (1395132563,), (1395132568,), (1395132593,), (1395132596,), (1395132847,), (1395132849,), (1395132210,), (1395132213,), (1395132216,), (1395132219,), (1395132238,), (1395132258,), (1395132262,), (1395132273,), (1395132277,), (1395132288,), (1395132289,), (1395132290,), (1395132293,), (1395132319,), (1395132320,), (1395132322,), (1395132328,), (1395132335,), (1395132344,), (1395132356,), (1395132486,), (1395132502,), (1395132574,), (1395132576,), (1395132581,), (1395132586,), (1395132602,), (1395132605,), (1395132607,), (1395132623,), (1395132658,), (1395132700,), (1395132756,), (1395132758,), (1395132762,), (1395132765,), (1395132767,), (1395132769,), (1395132802,), (1395132804,), (1395132806,), (1395132807,), (1395132809,), (1395132816,), (1395132831,), (1395132833,), (1395132836,), (1395132839,), (1395132841,), (1395132842,), (1395132843,), (1395132845,), (1395132881,), (1395132911,), (1395132913,), (1395133014,), (1395133029,), (1395133058,), (1395133082,), (1395133086,), (1395133099,), (1395133152,), (1395133167,), (1395133172,), (1395133183,), (1395133190,), (1395133194,), (1395133271,), (1395133279,), (1395133329,), (1395133334,), (1395133459,), (1395134320,), (1395134406,), (1395134407,), (1395134409,), (1395134412,), (1395134417,), (1395134578,), (1395133191,), (1395133196,), (1395133385,), (1395133404,), (1395133430,), (1395133448,), (1395133457,), (1395133461,), (1395133462,), (1395133467,), (1395133568,), (1395133572,), (1395133579,), (1395133583,), (1395133586,), (1395133589,), (1395133600,), (1395133720,), (1395133788,), (1395133814,), (1395133816,), (1395133852,), (1395133887,), (1395133891,), (1395133926,), (1395133927,), (1395133966,), (1395134017,), (1395134036,), (1395134049,), (1395134056,), (1395134060,), (1395134068,), (1395134071,), (1395134073,), (1395134075,), (1395134080,), (1395134089,), (1395134091,), (1395134093,), (1395134094,), (1395134097,), (1395134100,), (1395134109,), (1395134112,), (1395134114,), (1395134116,), (1395134121,), (1395134128,), (1395134153,), (1395134167,), (1395134168,), (1395134170,), (1395134171,), (1395134172,), (1395134175,), (1395134180,), (1395134186,), (1395134193,), (1395134201,), (1395134208,), (1395134213,), (1395134216,), (1395134219,), (1395134222,), (1395134225,), (1395134234,), (1395134253,), (1395134255,), (1395134257,), (1395134259,), (1395134262,), (1395134265,), (1395134269,), (1395134275,), (1395134281,), (1395134283,), (1395134287,), (1395134292,), (1395134308,), (1395134311,), (1395134313,), (1395134315,), (1395134317,), (1395134340,), (1395134341,), (1395134343,), (1395134347,), (1395134356,), (1395134360,), (1395134366,), (1395134370,), (1395134373,), (1395134375,), (1395134378,), (1395134381,), (1395134399,), (1395134402,), (1395134405,), (1395134387,), (1395134389,), (1395134392,), (1395134395,), (1395134518,), (1395134528,), (1395134533,), (1395134553,), (1395134574,), (1395134590,), (1395134591,), (1395134592,), (1395134611,), (1395134613,), (1395134615,), (1395134620,), (1395134626,), (1395134731,), (1395134760,), (1395134864,), (1395134868,), (1395134883,), (1395134889,), (1395134893,), (1395134902,), (1395134904,), (1395134908,), (1395134911,), (1395134922,), (1395134924,), (1395135122,), (1395135123,), (1395135125,), (1395135128,), (1395135133,), (1395135152,), (1395135154,), (1395135157,), (1395135161,), (1395135165,), (1395135168,), (1395135175,), (1395135176,), (1395135284,), (1395135287,), (1395135317,), (1395135321,), (1395135383,), (1395135385,), (1395135387,), (1395135671,), (1395135682,), (1395135683,), (1395135893,), (1395135955,), (1395135957,), (1395135981,), (1395135988,), (1395136020,), (1395136108,), (1395136290,), (1395136302,), (1395135992,), (1395136000,), (1395136005,), (1395136008,), (1395136013,), (1395136016,), (1395136022,), (1395136060,), (1395136166,), (1395136200,), (1395136350,), (1395136381,), (1395136461,), (1395136470,), (1395136485,), (1395136520,), (1395136521,), (1395136543,), (1395136549,), (1395136550,), (1395136551,), (1395136557,), (1395136564,), (1395136605,), (1395136680,), (1395136681,), (1395136700,), (1395136794,), (1395136867,), (1395136869,), (1395136911,), (1395136987,), (1395136990,), (1395136992,), (1395137005,), (1395137006,), (1395137014,), (1395137054,), (1395137055,), (1395137076,), (1395137083,), (1395137084,), (1395137086,), (1395137116,), (1395137124,), (1395137137,), (1395137143,), (1395137147,), (1395137149,), (1395137150,), (1395137152,), (1395137157,), (1395137162,), (1395137169,), (1395137171,), (1395137177,), (1395137179,), (1395137278,), (1395137423,), (1395137667,), (1395137686,), (1395137809,), (1395137884,), (1395137976,), (1395137983,), (1395138038,), (1395138041,), (1395138048,), (1395138139,), (1395138198,), (1395138204,), (1395138267,), (1395138268,), (1395138269,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19112025': {'nb_upload': 74, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28690950]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] map_info['map_portfolio_photo'] : {28690950: [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179, 1395137177, 1395137171, 1395137169, 1395137162, 1395137157, 1395137152, 1395137150, 1395137149, 1395137147, 1395137143, 1395137137, 1395137124, 1395137116, 1395137086, 1395137084, 1395137083, 1395137076, 1395137055, 1395137054, 1395137014, 1395137006, 1395137005, 1395136992, 1395136990, 1395136987, 1395136911, 1395136869, 1395136867, 1395136794, 1395136700, 1395136681, 1395136680, 1395136605, 1395136564, 1395136557, 1395136551, 1395136550, 1395136549, 1395136543, 1395136521, 1395136520, 1395136485, 1395136470, 1395136461, 1395136381, 1395136350, 1395136200, 1395136166, 1395136060, 1395136022, 1395136016, 1395136013, 1395136008, 1395136005, 1395136000, 1395135992]} final : True mtd_id 4302 list_pids : [1395138269, 1395138268, 1395138267, 1395138204, 1395138198, 1395138139, 1395138048, 1395138041, 1395138038, 1395137983, 1395137976, 1395137884, 1395137809, 1395137686, 1395137667, 1395137423, 1395137278, 1395137179] Looping around the photos to save general results len do output : 1 /28690950Didn'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, '4073170') ('4302', '28690950', '1395138269', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170') ('4302', None, None, None, None, None, None, None, '4073170') ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28690950', 'None', None, None, None, None, '4073170'), ('4302', '28690950', '1395138269', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138268', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138267', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138204', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138198', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138139', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138048', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138041', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395138038', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137983', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137976', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137884', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137809', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137686', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137667', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137423', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137278', None, None, None, None, None, '4073170'), ('4302', '28690950', '1395137179', None, None, None, None, None, '4073170')] time used for this insertion : 0.015317440032958984 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.1514577865600586 time spend to save output : 0.01558065414428711 total time spend for step 5 : 1.1670384407043457 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 (4073170) 2.19user 2.38system 0:08.62elapsed 53%CPU (0avgtext+0avgdata 159764maxresident)k 2816inputs+10720outputs (49major+64342minor)pagefaults 0swaps