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 : 3299135 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 (3369527) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3369527) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397211 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3369527'] with mtr_portfolio_ids : ['25397211'] and first list_photo_ids : [] new path : /proc/3299135/ Name: python3 Umask: 0002 State: R (running) Tgid: 3299135 Ngid: 0 Pid: 3299135 PPid: 3299134 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3299135 NSpid: 3299135 NSpgid: 3297760 NSsid: 3297760 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99108 kB VmRSS: 99104 kB RssAnon: 59824 kB RssFile: 39280 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 584 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 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: 54 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3299135', 'Ngid': '0', 'Pid': '3299135', 'PPid': '3299134', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3299135', 'NSpid': '3299135', 'NSpgid': '3297760', 'NSsid': '3297760', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99108 kB', 'VmRSS': '99104 kB', 'RssAnon': '59824 kB', 'RssFile': '39280 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '584 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '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': '54', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '3299135', '1106884', '0', '1106884', '865636', '99104', b'', 'marlene', '3369527') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25397211) 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 (3369527 ) ) 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 (25397211) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374123412, 'portfolio_id': 25397211}, {'photo_id': 1374123408, 'portfolio_id': 25397211}, {'photo_id': 1374123405, 'portfolio_id': 25397211}, {'photo_id': 1374123404, 'portfolio_id': 25397211}, {'photo_id': 1374123402, 'portfolio_id': 25397211}, {'photo_id': 1374123400, 'portfolio_id': 25397211}, {'photo_id': 1374123374, 'portfolio_id': 25397211}, {'photo_id': 1374123372, 'portfolio_id': 25397211}, {'photo_id': 1374123370, 'portfolio_id': 25397211}, {'photo_id': 1374123369, 'portfolio_id': 25397211}, {'photo_id': 1374123368, 'portfolio_id': 25397211}, {'photo_id': 1374123367, 'portfolio_id': 25397211}, {'photo_id': 1374123352, 'portfolio_id': 25397211}, {'photo_id': 1374123348, 'portfolio_id': 25397211}, {'photo_id': 1374123346, 'portfolio_id': 25397211}, {'photo_id': 1374123344, 'portfolio_id': 25397211}, {'photo_id': 1374123342, 'portfolio_id': 25397211}, {'photo_id': 1374123338, 'portfolio_id': 25397211}, {'photo_id': 1374123310, 'portfolio_id': 25397211}, {'photo_id': 1374123308, 'portfolio_id': 25397211}, {'photo_id': 1374123307, 'portfolio_id': 25397211}, {'photo_id': 1374123305, 'portfolio_id': 25397211}, {'photo_id': 1374123302, 'portfolio_id': 25397211}, {'photo_id': 1374123300, 'portfolio_id': 25397211}, {'photo_id': 1374123275, 'portfolio_id': 25397211}, {'photo_id': 1374123270, 'portfolio_id': 25397211}, {'photo_id': 1374123267, 'portfolio_id': 25397211}, {'photo_id': 1374123265, 'portfolio_id': 25397211}, {'photo_id': 1374123260, 'portfolio_id': 25397211}, {'photo_id': 1374123253, 'portfolio_id': 25397211}, {'photo_id': 1374123225, 'portfolio_id': 25397211}, {'photo_id': 1374123222, 'portfolio_id': 25397211}, {'photo_id': 1374123221, 'portfolio_id': 25397211}, {'photo_id': 1374123219, 'portfolio_id': 25397211}, {'photo_id': 1374123217, 'portfolio_id': 25397211}, {'photo_id': 1374123215, 'portfolio_id': 25397211}, {'photo_id': 1374123200, 'portfolio_id': 25397211}, {'photo_id': 1374123195, 'portfolio_id': 25397211}, {'photo_id': 1374123193, 'portfolio_id': 25397211}, {'photo_id': 1374123190, 'portfolio_id': 25397211}, {'photo_id': 1374123187, 'portfolio_id': 25397211}, {'photo_id': 1374123179, 'portfolio_id': 25397211}] map_portfolio_id_photo_id: {25397211: [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338, 1374123310, 1374123308, 1374123307, 1374123305, 1374123302, 1374123300, 1374123275, 1374123270, 1374123267, 1374123265, 1374123260, 1374123253, 1374123225, 1374123222, 1374123221, 1374123219, 1374123217, 1374123215, 1374123200, 1374123195, 1374123193, 1374123190, 1374123187, 1374123179]} ##### 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.015199661254882812 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Jul 28 10:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25397211) 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 : 25397211 get user id for portfolio 25397211 get sub ptf for main ptf 25397211, type 3726 and hashtags ['Teint_Dans_La_Masse', 'metal', 'flou', 'plastique', 'Carton_gris', 'environnement', 'papier', 'Carton_brun', 'autre_refus', 'kraft', 'mal_croppe', 'cartonnette'] 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`=25397211 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','plastique','Carton_gris','environnement','papier','Carton_brun','autre_refus','kraft','mal_croppe','cartonnette')) 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`=25397211 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','plastique','Carton_gris','environnement','papier','Carton_brun','autre_refus','kraft','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25397211, 'sub_port_id': 25397234, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129064, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'Carton_brun': {'main_port_id': 25397211, 'sub_port_id': 25397235, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129065, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'autre_refus': {'main_port_id': 25397211, 'sub_port_id': 25397236, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129066, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'plastique': {'main_port_id': 25397211, 'sub_port_id': 25397237, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129067, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25397211, 'sub_port_id': 25397238, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129068, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'cartonnette': {'main_port_id': 25397211, 'sub_port_id': 25397239, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129069, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'papier': {'main_port_id': 25397211, 'sub_port_id': 25397240, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129070, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'environnement': {'main_port_id': 25397211, 'sub_port_id': 25397241, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129071, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'mal_croppe': {'main_port_id': 25397211, 'sub_port_id': 25397242, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129072, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'metal': {'main_port_id': 25397211, 'sub_port_id': 25397243, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129073, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'kraft': {'main_port_id': 25397211, 'sub_port_id': 25397244, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129074, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'Carton_gris': {'main_port_id': 25397211, 'sub_port_id': 25397245, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129075, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25397234 , 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=25397211 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 (25397234) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397235 , 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=25397211 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 (25397235) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397236 , 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=25397211 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 (25397236) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397237 , 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=25397211 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 (25397237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397238 , 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=25397211 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 (25397238) result : ((1374123327,), (1374123328,), (1374123329,), (1374123330,), (1374123331,), (1374123332,), (1374123333,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397239 , 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=25397211 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 (25397239) result : ((1374123334,), (1374123335,), (1374123336,), (1374123337,), (1374123339,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397240 , 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=25397211 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 (25397240) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397241 , 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=25397211 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 (25397241) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397242 , 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=25397211 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 (25397242) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397243 , 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=25397211 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 (25397243) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397244 , 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=25397211 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 (25397244) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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 25397245 , 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=25397211 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 (25397245) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25397211) result : ((1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) 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 (1374123400,1374123300,1374123200) 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`=25397211 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','plastique','Carton_gris','environnement','papier','Carton_brun','autre_refus','kraft','mal_croppe','cartonnette')) 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`=25397211 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','metal','flou','plastique','Carton_gris','environnement','papier','Carton_brun','autre_refus','kraft','mal_croppe','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 25397211, 'sub_port_id': 25397247, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129076, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'Carton_brun': {'main_port_id': 25397211, 'sub_port_id': 25397248, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129077, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'autre_refus': {'main_port_id': 25397211, 'sub_port_id': 25397249, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129078, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'plastique': {'main_port_id': 25397211, 'sub_port_id': 25397250, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129079, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 25397211, 'sub_port_id': 25397251, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129080, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'cartonnette': {'main_port_id': 25397211, 'sub_port_id': 25397252, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129081, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'papier': {'main_port_id': 25397211, 'sub_port_id': 25397253, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129082, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'environnement': {'main_port_id': 25397211, 'sub_port_id': 25397254, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129083, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'mal_croppe': {'main_port_id': 25397211, 'sub_port_id': 25397255, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129084, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'metal': {'main_port_id': 25397211, 'sub_port_id': 25397256, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129085, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'kraft': {'main_port_id': 25397211, 'sub_port_id': 25397257, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129086, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 47, 30), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}, 'Carton_gris': {'main_port_id': 25397211, 'sub_port_id': 25397258, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17129087, 'last_updated_at': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 10, 50, 57), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 10, 47, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397238 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397252,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397239 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397240 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25397258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25397245 lien utilise dans velours : https://www.fotonower.com/velours/25397247,25397248,25397249,25397250,25397251,25397252,25397253,25397254,25397255,25397256,25397257,25397258?tags=flou,Carton_brun,autre_refus,plastique,Teint_Dans_La_Masse,cartonnette,papier,environnement,mal_croppe,metal,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25397211]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] map_info['map_portfolio_photo'] : {25397211: [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338, 1374123310, 1374123308, 1374123307, 1374123305, 1374123302, 1374123300, 1374123275, 1374123270, 1374123267, 1374123265, 1374123260, 1374123253, 1374123225, 1374123222, 1374123221, 1374123219, 1374123217, 1374123215, 1374123200, 1374123195, 1374123193, 1374123190, 1374123187, 1374123179]} final : False mtd_id 4302 list_pids : [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] Looping around the photos to save general results len do output : 1 /25397211. 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, '3369527') ('4302', '25397211', '1374123412', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527') 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, '25397211', "{'flou': 25397234, 'Carton_brun': 25397235, 'autre_refus': 25397236, 'plastique': 25397237, 'Teint_Dans_La_Masse': 25397238, 'cartonnette': 25397239, 'papier': 25397240, 'environnement': 25397241, 'mal_croppe': 25397242, 'metal': 25397243, 'kraft': 25397244, 'Carton_gris': 25397245}", None, None, None, None, '3369527'), ('4302', '25397211', '1374123412', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527')] time used for this insertion : 0.016613245010375977 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4116687774658203 time spend to save output : 0.016919374465942383 total time spend for step 1 : 0.4285881519317627 step2:final Mon Jul 28 10:52:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25397211) 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 25397211 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374123200,1374123195,1374123193,1374123190,1374123187,1374123179,1374123225,1374123222,1374123221,1374123219,1374123217,1374123215,1374123275,1374123270,1374123267,1374123265,1374123260,1374123253,1374123310,1374123308,1374123307,1374123305,1374123302,1374123300,1374123352,1374123348,1374123346,1374123344,1374123342,1374123338,1374123374,1374123372,1374123370,1374123369,1374123368,1374123367,1374123412,1374123408,1374123405,1374123404,1374123402,1374123400); 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([25397211]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} new output for save of step final : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] map_info['map_portfolio_photo'] : {25397211: [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338, 1374123310, 1374123308, 1374123307, 1374123305, 1374123302, 1374123300, 1374123275, 1374123270, 1374123267, 1374123265, 1374123260, 1374123253, 1374123225, 1374123222, 1374123221, 1374123219, 1374123217, 1374123215, 1374123200, 1374123195, 1374123193, 1374123190, 1374123187, 1374123179]} final : False mtd_id 4302 list_pids : [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] Looping around the photos to save general results len do output : 18 /1374123412.Didn't retrieve data . /1374123408.Didn't retrieve data . /1374123405.Didn't retrieve data . /1374123404.Didn't retrieve data . /1374123402.Didn't retrieve data . /1374123400.Didn't retrieve data . /1374123374.Didn't retrieve data . /1374123372.Didn't retrieve data . /1374123370.Didn't retrieve data . /1374123369.Didn't retrieve data . /1374123368.Didn't retrieve data . /1374123367.Didn't retrieve data . /1374123352.Didn't retrieve data . /1374123348.Didn't retrieve data . /1374123346.Didn't retrieve data . /1374123344.Didn't retrieve data . /1374123342.Didn't retrieve data . /1374123338.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, '3369527') ('4302', '25397211', '1374123412', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527') 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', '25397211', '1374123412', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123408', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123405', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123404', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123402', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123400', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123374', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123372', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123370', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123369', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123368', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123367', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123352', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123348', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123346', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123344', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123342', '0.06687657416699358', None, None, None, None, '3369527'), ('4302', '25397211', '1374123338', '0.06687657416699358', None, None, None, None, '3369527')] time used for this insertion : 0.015271425247192383 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.059973955154418945 time spend to save output : 0.016042709350585938 total time spend for step 2 : 0.07601666450500488 step3:velours_tree Mon Jul 28 10:52: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 : {25397211: [{'flou': 25397234, 'Carton_brun': 25397235, 'autre_refus': 25397236, 'plastique': 25397237, 'Teint_Dans_La_Masse': 25397238, 'cartonnette': 25397239, 'papier': 25397240, 'environnement': 25397241, 'mal_croppe': 25397242, 'metal': 25397243, 'kraft': 25397244, 'Carton_gris': 25397245}]} input_args_next_step : {25397211: ()} output_args : {25397211: [{'flou': 25397234, 'Carton_brun': 25397235, 'autre_refus': 25397236, 'plastique': 25397237, 'Teint_Dans_La_Masse': 25397238, 'cartonnette': 25397239, 'papier': 25397240, 'environnement': 25397241, 'mal_croppe': 25397242, 'metal': 25397243, 'kraft': 25397244, 'Carton_gris': 25397245}]} args : 25397211 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 25397234, 'Carton_brun': 25397235, 'autre_refus': 25397236, 'plastique': 25397237, 'Teint_Dans_La_Masse': 25397238, 'cartonnette': 25397239, 'papier': 25397240, 'environnement': 25397241, 'mal_croppe': 25397242, 'metal': 25397243, 'kraft': 25397244, 'Carton_gris': 25397245},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25397211) 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([25397211]) 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.26678919792175293 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.26683759689331055 step4:send_mail_cod Mon Jul 28 10:53:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} input_args_next_step : {1374123412: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123412 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123408 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123405 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123404 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123402 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123400 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123374 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123372 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123370 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123369 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123368 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123367 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123352 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123348 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123346 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123344 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123342 depend.output_id : 0 input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ()} output_args : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',)} args : 1374123338 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 : {25397211: [{'flou': 25397234, 'Carton_brun': 25397235, 'autre_refus': 25397236, 'plastique': 25397237, 'Teint_Dans_La_Masse': 25397238, 'cartonnette': 25397239, 'papier': 25397240, 'environnement': 25397241, 'mal_croppe': 25397242, 'metal': 25397243, 'kraft': 25397244, 'Carton_gris': 25397245}]} input_args_next_step : {1374123412: ('0.06687657416699358',), 1374123408: ('0.06687657416699358',), 1374123405: ('0.06687657416699358',), 1374123404: ('0.06687657416699358',), 1374123402: ('0.06687657416699358',), 1374123400: ('0.06687657416699358',), 1374123374: ('0.06687657416699358',), 1374123372: ('0.06687657416699358',), 1374123370: ('0.06687657416699358',), 1374123369: ('0.06687657416699358',), 1374123368: ('0.06687657416699358',), 1374123367: ('0.06687657416699358',), 1374123352: ('0.06687657416699358',), 1374123348: ('0.06687657416699358',), 1374123346: ('0.06687657416699358',), 1374123344: ('0.06687657416699358',), 1374123342: ('0.06687657416699358',), 1374123338: ('0.06687657416699358',), 25397211: ()} output_args : {25397211: [{'flou': 25397234, 'Carton_brun': 25397235, 'autre_refus': 25397236, 'plastique': 25397237, 'Teint_Dans_La_Masse': 25397238, 'cartonnette': 25397239, 'papier': 25397240, 'environnement': 25397241, 'mal_croppe': 25397242, 'metal': 25397243, 'kraft': 25397244, 'Carton_gris': 25397245}]} args : 25397211 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.06687657416699358',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25397211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374123412,1374123408,1374123405,1374123404,1374123402,1374123400,1374123374,1374123372,1374123370,1374123369,1374123368,1374123367,1374123352,1374123348,1374123346,1374123344,1374123342,1374123338) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374123338 begin to download photo : 1374123348 begin to download photo : 1374123369 begin to download photo : 1374123400 begin to download photo : 1374123408 download finish for photo 1374123338 begin to download photo : 1374123342 download finish for photo 1374123400 begin to download photo : 1374123402 download finish for photo 1374123348 begin to download photo : 1374123352 download finish for photo 1374123369 begin to download photo : 1374123370 download finish for photo 1374123408 begin to download photo : 1374123412 download finish for photo 1374123352 begin to download photo : 1374123367 download finish for photo 1374123342 begin to download photo : 1374123344 download finish for photo 1374123370 begin to download photo : 1374123372 download finish for photo 1374123402 begin to download photo : 1374123404 download finish for photo 1374123412 download finish for photo 1374123372 begin to download photo : 1374123374 download finish for photo 1374123344 begin to download photo : 1374123346 download finish for photo 1374123367 begin to download photo : 1374123368 download finish for photo 1374123404 begin to download photo : 1374123405 download finish for photo 1374123374 download finish for photo 1374123368 download finish for photo 1374123405 download finish for photo 1374123346 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette253972341753692780/ imagette253972361753692780/ imagette253972371753692780/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P25397211_28-07-2025_10_53_00.pdf 25397234 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397234 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972341753692780 25397236 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972361753692780 25397237 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972371753692780 25397239 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397239 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374123334: '1753692565_541515_1374123195_dca8b9eb2ba518662c8958dfbb0e76bb_rle_crop_3896229166_0.png', 1374123335: '1753692565_541515_1374123193_c7d6f2c0a94ce53015b2812a0cd3e065_rle_crop_3896229178_0.png', 1374123336: '1753692565_541515_1374123190_584c5616ced383d3782b02addb69cd91_rle_crop_3896229191_0.png', 1374123337: '1753692565_541515_1374123187_276b017c98d11f98598199f52e328b82_rle_crop_3896229204_0.png', 1374123339: '1753692565_541515_1374123179_5110e3316accd23889c2f55d4eaf0d16_rle_crop_3896229214_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ea2ad930cd10f00cbaf3601bb2eaf611_11587282.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/66c350ba5cd2e431047c0172d8900ac1_97122607.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ff3c9be63412b983eaed15e85296bc94_10808384.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/c80e2a33cae9e0fb0d012ebceebf7f7a_8391078.png change filename to text .imagette253972391753692780/ imagette253972391753692780/1753692565_541515_1374123179_5110e3316accd23889c2f55d4eaf0d16_rle_crop_3896229214_0.png.png imagette253972391753692780/1753692565_541515_1374123190_584c5616ced383d3782b02addb69cd91_rle_crop_3896229191_0.png.png imagette253972391753692780/1753692565_541515_1374123187_276b017c98d11f98598199f52e328b82_rle_crop_3896229204_0.png.png imagette253972391753692780/1753692565_541515_1374123193_c7d6f2c0a94ce53015b2812a0cd3e065_rle_crop_3896229178_0.png.png imagette253972391753692780/1753692565_541515_1374123195_dca8b9eb2ba518662c8958dfbb0e76bb_rle_crop_3896229166_0.png.png imagette253972421753692780/ imagette253972431753692780/ imagette253972441753692780/ imagette253972351753692780/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/3db22f814a965ad372c7dc5c631bf4ae_82184636.png imagette253972391753692780 25397242 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972421753692780 25397243 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397243 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972431753692780 25397244 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972441753692780 25397235 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972351753692780 25397238 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374123327: '1753692565_541515_1374123200_0f222c1bb3695870ade59eba4cbf10a4_rle_crop_3896229159_0.png', 1374123328: '1753692565_541515_1374123200_0f222c1bb3695870ade59eba4cbf10a4_rle_crop_3896229153_0.png', 1374123329: '1753692565_541515_1374123195_dca8b9eb2ba518662c8958dfbb0e76bb_rle_crop_3896229171_0.png', 1374123330: '1753692565_541515_1374123193_c7d6f2c0a94ce53015b2812a0cd3e065_rle_crop_3896229184_0.png', 1374123331: '1753692565_541515_1374123190_584c5616ced383d3782b02addb69cd91_rle_crop_3896229197_0.png', 1374123332: '1753692565_541515_1374123187_276b017c98d11f98598199f52e328b82_rle_crop_3896229208_0.png', 1374123333: '1753692565_541515_1374123179_5110e3316accd23889c2f55d4eaf0d16_rle_crop_3896229220_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/97de21d3df07a4920e2a3e14b98b50e0_36150299.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5beb824a8db2360a4720f69c29a6f66f_34521768.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5f5d0c8b332cc58015b30d0061e40f23_48406496.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/487920d28fa08821a1f68c434be913a1_39258360.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ee6ea78773b1370d0a01bb8b374240c4_85063031.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/21082d265329caaab1e05cfa83b5efec_93272273.png change filename to text .imagette253972381753692780/ imagette253972381753692780/1753692565_541515_1374123200_0f222c1bb3695870ade59eba4cbf10a4_rle_crop_3896229159_0.png.png imagette253972381753692780/1753692565_541515_1374123200_0f222c1bb3695870ade59eba4cbf10a4_rle_crop_3896229153_0.png.png imagette253972381753692780/1753692565_541515_1374123190_584c5616ced383d3782b02addb69cd91_rle_crop_3896229197_0.png.png imagette253972381753692780/1753692565_541515_1374123179_5110e3316accd23889c2f55d4eaf0d16_rle_crop_3896229220_0.png.png imagette253972381753692780/1753692565_541515_1374123195_dca8b9eb2ba518662c8958dfbb0e76bb_rle_crop_3896229171_0.png.png imagette253972381753692780/1753692565_541515_1374123193_c7d6f2c0a94ce53015b2812a0cd3e065_rle_crop_3896229184_0.png.png imagette253972381753692780/1753692565_541515_1374123187_276b017c98d11f98598199f52e328b82_rle_crop_3896229208_0.png.png imagette253972451753692781/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7c87f62492bf0d22fb8d366ee7491f17_52417961.png imagette253972381753692780 25397245 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253972451753692781 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25397211 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25397247,25397248,25397249,25397250,25397251,25397252,25397253,25397254,25397255,25397256,25397257,25397258?tags=flou,Carton_brun,autre_refus,plastique,Teint_Dans_La_Masse,cartonnette,papier,environnement,mal_croppe,metal,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1374123412] : ('0.06687657416699358',) no score found for photo 1374123412 We are sending mail with results at report@fotonower.com args[1374123408] : ('0.06687657416699358',) no score found for photo 1374123408 We are sending mail with results at report@fotonower.com args[1374123405] : ('0.06687657416699358',) no score found for photo 1374123405 We are sending mail with results at report@fotonower.com args[1374123404] : ('0.06687657416699358',) no score found for photo 1374123404 We are sending mail with results at report@fotonower.com args[1374123402] : ('0.06687657416699358',) no score found for photo 1374123402 We are sending mail with results at report@fotonower.com args[1374123400] : ('0.06687657416699358',) no score found for photo 1374123400 We are sending mail with results at report@fotonower.com args[1374123374] : ('0.06687657416699358',) no score found for photo 1374123374 We are sending mail with results at report@fotonower.com args[1374123372] : ('0.06687657416699358',) no score found for photo 1374123372 We are sending mail with results at report@fotonower.com args[1374123370] : ('0.06687657416699358',) no score found for photo 1374123370 We are sending mail with results at report@fotonower.com args[1374123369] : ('0.06687657416699358',) no score found for photo 1374123369 We are sending mail with results at report@fotonower.com args[1374123368] : ('0.06687657416699358',) no score found for photo 1374123368 We are sending mail with results at report@fotonower.com args[1374123367] : ('0.06687657416699358',) no score found for photo 1374123367 We are sending mail with results at report@fotonower.com args[1374123352] : ('0.06687657416699358',) no score found for photo 1374123352 We are sending mail with results at report@fotonower.com args[1374123348] : ('0.06687657416699358',) no score found for photo 1374123348 We are sending mail with results at report@fotonower.com args[1374123346] : ('0.06687657416699358',) no score found for photo 1374123346 We are sending mail with results at report@fotonower.com args[1374123344] : ('0.06687657416699358',) no score found for photo 1374123344 We are sending mail with results at report@fotonower.com args[1374123342] : ('0.06687657416699358',) no score found for photo 1374123342 We are sending mail with results at report@fotonower.com args[1374123338] : ('0.06687657416699358',) no score found for photo 1374123338 We are sending mail with results at report@fotonower.com refus_total : 0.06687657416699358 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397211 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_P25397211_28-07-2025_10_53_00.pdf results_Auto_P25397211_28-07-2025_10_53_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397211_28-07-2025_10_53_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25397211','results_Auto_P25397211_28-07-2025_10_53_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397211_28-07-2025_10_53_00.pdf','pdf','','0.18','0.06687657416699358') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25397211]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] map_info['map_portfolio_photo'] : {25397211: [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338, 1374123310, 1374123308, 1374123307, 1374123305, 1374123302, 1374123300, 1374123275, 1374123270, 1374123267, 1374123265, 1374123260, 1374123253, 1374123225, 1374123222, 1374123221, 1374123219, 1374123217, 1374123215, 1374123200, 1374123195, 1374123193, 1374123190, 1374123187, 1374123179]} final : False mtd_id 4302 list_pids : [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] 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, '3369527') ('4302', '25397211', '1374123412', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527') 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', '25397211', '1374123412', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527')] time used for this insertion : 0.015717506408691406 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.290529251098633 time spend to save output : 0.015910625457763672 total time spend for step 4 : 2.3064398765563965 step5:split_time_score Mon Jul 28 10:53:02 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 : ['25397211'] 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 : [('25397211',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25397211) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374123408: {'path': 'temp/1753692780_3299135_1374123408_e9ff2a7831b05429a4d6b020259b686f.jpg', 'extension': 'jpg'}, 1374123412: {'path': 'temp/1753692780_3299135_1374123412_f54824b7758a8c9d659e2ba22e2b68c6.jpg', 'extension': 'jpg'}, 1374123369: {'path': 'temp/1753692780_3299135_1374123369_539ec3f880cbd60159093e116086f1d7.jpg', 'extension': 'jpg'}, 1374123370: {'path': 'temp/1753692780_3299135_1374123370_96f31ede15767a0893f6385655d5038c.jpg', 'extension': 'jpg'}, 1374123372: {'path': 'temp/1753692780_3299135_1374123372_d5e461b1a1fb6c063ee5e70d7528b3d8.jpg', 'extension': 'jpg'}, 1374123374: {'path': 'temp/1753692780_3299135_1374123374_6d05f9d13c3e80fff8b34723b79285b4.jpg', 'extension': 'jpg'}, 1374123348: {'path': 'temp/1753692780_3299135_1374123348_9497a26a5212749056dccd9db9a5cce4.jpg', 'extension': 'jpg'}, 1374123352: {'path': 'temp/1753692780_3299135_1374123352_df508ab03fa7eaddbec74eded860603d.jpg', 'extension': 'jpg'}, 1374123367: {'path': 'temp/1753692780_3299135_1374123367_cb08b45dc83f9b1cba106c458dd089e5.jpg', 'extension': 'jpg'}, 1374123368: {'path': 'temp/1753692780_3299135_1374123368_2a25db755ff384e3665a000933095ee7.jpg', 'extension': 'jpg'}, 1374123400: {'path': 'temp/1753692780_3299135_1374123400_d87c76aff3793125600a9d43757b0564.jpg', 'extension': 'jpg'}, 1374123402: {'path': 'temp/1753692780_3299135_1374123402_43c62525ee572e67d435eec4ee2bd5a4.jpg', 'extension': 'jpg'}, 1374123404: {'path': 'temp/1753692780_3299135_1374123404_0ce91ec6e14e8a9a1e24bbeea9fd0772.jpg', 'extension': 'jpg'}, 1374123405: {'path': 'temp/1753692780_3299135_1374123405_491d538946a254e2038287c1b2d32de6.jpg', 'extension': 'jpg'}, 1374123338: {'path': 'temp/1753692780_3299135_1374123338_2bfe9e9c3b79122809d82fa89a8edfd4.jpg', 'extension': 'jpg'}, 1374123342: {'path': 'temp/1753692780_3299135_1374123342_a8d6fe32789424c4a91f501588f26b9e.jpg', 'extension': 'jpg'}, 1374123344: {'path': 'temp/1753692780_3299135_1374123344_a67697a39f4f0e0d69e200f990e4e9e2.jpg', 'extension': 'jpg'}, 1374123346: {'path': 'temp/1753692780_3299135_1374123346_f2bb82ee1da10d7d5e0ffa10c662a731.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 = 25397211; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25397211 group by h (('10', 42),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25397211 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 (25397211) 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 (25397211) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28072025 25397211 Nombre de photos uploadées : 42 / 23040 (0%) 28072025 25397211 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 28072025 25397211 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1374123200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/0f222c1bb3695870ade59eba4cbf10a4.jpg', 'username': None, 'uploaded_at': 1753692362, 'text': 'image_28072025_10_45_04_10137.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1374123195, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/dca8b9eb2ba518662c8958dfbb0e76bb.jpg', 'username': None, 'uploaded_at': 1753692362, 'text': 'image_28072025_10_45_14_10136.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1374123193, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/c7d6f2c0a94ce53015b2812a0cd3e065.jpg', 'username': None, 'uploaded_at': 1753692362, 'text': 'image_28072025_10_45_24_10137.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1374123190, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/584c5616ced383d3782b02addb69cd91.jpg', 'username': None, 'uploaded_at': 1753692362, 'text': 'image_28072025_10_45_34_10151.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 7.152557373046875e-07 elapsed_time : order_list_meta_photo_and_scores 3.0994415283203125e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017848014831542969 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25397211, '2025-07-28' ) 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-07-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2013825,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.21595311164855957 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= 2013825 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25384876, 'dashboard_result_id': 13206716, '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_P25384876_28-07-2025_05_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25385066, 'dashboard_result_id': 13206717, '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_P25385066_28-07-2025_05_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25385093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385104, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25385391, 'dashboard_result_id': 13206718, '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_P25385391_28-07-2025_05_47_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385407, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25385661, 'dashboard_result_id': 13206719, '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_P25385661_28-07-2025_06_00_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385677, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25385913, 'dashboard_result_id': 13206720, '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_P25385913_28-07-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385930, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25386460, 'dashboard_result_id': 13206721, '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_P25386460_28-07-2025_06_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25386506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25386507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25386508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25386510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25386511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25386512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25386514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25386515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25386516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25386517, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25387009, 'dashboard_result_id': 13206722, '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_P25387009_28-07-2025_06_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387058, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25387406, 'dashboard_result_id': 13206723, '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_P25387406_28-07-2025_07_01_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387452, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25387937, 'dashboard_result_id': 13206724, '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_P25387937_28-07-2025_07_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25387960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387971, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25388457, 'dashboard_result_id': 13206725, '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_P25388457_28-07-2025_07_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25388509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25388510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25388511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25388512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25388513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25388514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25388515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25388516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25388517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25388518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25388519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25388520, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25389085, 'dashboard_result_id': 13206726, '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_P25389085_28-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389104, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25389722, 'dashboard_result_id': 13206727, '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_P25389722_28-07-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389794, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25390356, 'dashboard_result_id': 13206728, '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_P25390356_28-07-2025_08_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25390418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390419, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25390918, 'dashboard_result_id': 13206729, '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_P25390918_28-07-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25390943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390954, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25391543, 'dashboard_result_id': 13206730, '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_P25391543_28-07-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25391570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25391571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25391572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25391575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25391576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25391577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25391578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25391579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25391580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25391581, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25392092, 'dashboard_result_id': 13206731, '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_P25392092_28-07-2025_08_59_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392139, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25395703, 'dashboard_result_id': 13206732, '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_P25395703_28-07-2025_10_16_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25395713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25395714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25395715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25395716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25395718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25395719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25395720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25395721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25395722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25395723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25395724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25395725, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25396124, 'dashboard_result_id': 13206733, '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_P25396124_28-07-2025_10_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25396153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396159, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25396715, 'dashboard_result_id': 13206734, '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_P25396715_28-07-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25396728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396739, 'pht': 3726}}"}, {'dashboat_entry_day': 2013825, 'dashboard_run_id': 2022963, 'mtr_portfolio_id': 25397211, 'dashboard_result_id': 13206735, '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_P25397211_28-07-2025_10_50_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25397234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397245, '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 = 25384876 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': 3365715, 'mtr_portfolio_id': 25384876, 'created_at': datetime.datetime(2025, 7, 28, 5, 16, 57), 'result': '0.1173604949788806', 'result_long': None, 'result_double': None}] Qualite : 0.1173604949788806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25384876 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25384876 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_P25384876_28-07-2025_05_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, 'pht': 3726}}" where mtr_portfolio_id = 25384876 and dashboard_run_id = 2022963 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`=25384876 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206716, 0.1173604949788806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25384876_28-07-2025_05_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25384879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25384880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25384881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25384882, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25384883, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25384884, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25384885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25384886, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25384887, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25384888, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25384889, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25384890, '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 = 25385066 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': 3365745, 'mtr_portfolio_id': 25385066, 'created_at': datetime.datetime(2025, 7, 28, 5, 30, 57), 'result': '0.11097435655929282', 'result_long': None, 'result_double': None}] Qualite : 0.11097435655929282 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385066 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385066_28-07-2025_05_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385066 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_P25385066_28-07-2025_05_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25385093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385104, 'pht': 3726}}" where mtr_portfolio_id = 25385066 and dashboard_run_id = 2022963 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`=25385066 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206717, 0.11097435655929282, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385066_28-07-2025_05_30_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25385093, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385094, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385095, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385096, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385097, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385099, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385101, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385103, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385104, '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 = 25385391 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': 3365819, 'mtr_portfolio_id': 25385391, 'created_at': datetime.datetime(2025, 7, 28, 5, 47, 32), 'result': '0.11314513100975243', 'result_long': None, 'result_double': None}] Qualite : 0.11314513100975243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385391_28-07-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385391 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_P25385391_28-07-2025_05_47_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385407, 'pht': 3726}}" where mtr_portfolio_id = 25385391 and dashboard_run_id = 2022963 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`=25385391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206718, 0.11314513100975243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385391_28-07-2025_05_47_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385396, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385398, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385401, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385404, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385405, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385406, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385407, '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 = 25385661 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': 3365908, 'mtr_portfolio_id': 25385661, 'created_at': datetime.datetime(2025, 7, 28, 6, 0, 57), 'result': '0.090633587082022', 'result_long': None, 'result_double': None}] Qualite : 0.090633587082022 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385661_28-07-2025_06_00_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385661 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_P25385661_28-07-2025_06_00_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385677, 'pht': 3726}}" where mtr_portfolio_id = 25385661 and dashboard_run_id = 2022963 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`=25385661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206719, 0.090633587082022, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385661_28-07-2025_06_00_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385666, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385667, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385669, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385672, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385673, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385674, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385675, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385677, '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 = 25385913 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': 3366007, 'mtr_portfolio_id': 25385913, 'created_at': datetime.datetime(2025, 7, 28, 6, 16, 59), 'result': '0.05071365889584217', 'result_long': None, 'result_double': None}] Qualite : 0.05071365889584217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25385913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385913_28-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25385913 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_P25385913_28-07-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385930, 'pht': 3726}}" where mtr_portfolio_id = 25385913 and dashboard_run_id = 2022963 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`=25385913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206720, 0.05071365889584217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385913_28-07-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25385919, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25385920, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25385921, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25385922, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25385923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25385924, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25385925, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25385926, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25385927, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25385928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25385929, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25385930, '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 = 25386460 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': 3366149, 'mtr_portfolio_id': 25386460, 'created_at': datetime.datetime(2025, 7, 28, 6, 33), 'result': '0.04742389937600771', 'result_long': None, 'result_double': None}] Qualite : 0.04742389937600771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25386460 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25386460_28-07-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25386460 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_P25386460_28-07-2025_06_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25386506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25386507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25386508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25386510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25386511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25386512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25386514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25386515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25386516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25386517, 'pht': 3726}}" where mtr_portfolio_id = 25386460 and dashboard_run_id = 2022963 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`=25386460 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206721, 0.04742389937600771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25386460_28-07-2025_06_33_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25386506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25386507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25386508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25386509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25386510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25386511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25386512, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25386513, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25386514, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25386515, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25386516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25386517, '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 = 25387009 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': 3366289, 'mtr_portfolio_id': 25387009, 'created_at': datetime.datetime(2025, 7, 28, 6, 47), 'result': '0.055752465574467995', 'result_long': None, 'result_double': None}] Qualite : 0.055752465574467995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25387009 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387009_28-07-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25387009 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_P25387009_28-07-2025_06_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387058, 'pht': 3726}}" where mtr_portfolio_id = 25387009 and dashboard_run_id = 2022963 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`=25387009 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206722, 0.055752465574467995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387009_28-07-2025_06_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387047, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387048, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387051, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387053, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387054, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387057, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387058, '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 = 25387406 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': 3366392, 'mtr_portfolio_id': 25387406, 'created_at': datetime.datetime(2025, 7, 28, 7, 1, 1), 'result': '0.06725359579357054', 'result_long': None, 'result_double': None}] Qualite : 0.06725359579357054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25387406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387406_28-07-2025_07_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25387406 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_P25387406_28-07-2025_07_01_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387452, 'pht': 3726}}" where mtr_portfolio_id = 25387406 and dashboard_run_id = 2022963 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`=25387406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206723, 0.06725359579357054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387406_28-07-2025_07_01_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387441, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387443, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387446, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387447, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25387450, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387451, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387452, '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 = 25387937 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': 3366561, 'mtr_portfolio_id': 25387937, 'created_at': datetime.datetime(2025, 7, 28, 7, 16, 59), 'result': '0.04415644506976258', 'result_long': None, 'result_double': None}] Qualite : 0.04415644506976258 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25387937 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387937_28-07-2025_07_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25387937 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_P25387937_28-07-2025_07_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25387960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387971, 'pht': 3726}}" where mtr_portfolio_id = 25387937 and dashboard_run_id = 2022963 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`=25387937 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206724, 0.04415644506976258, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25387937_28-07-2025_07_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25387960, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25387961, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25387962, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25387963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25387964, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25387965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25387966, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25387967, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25387968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25387969, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25387970, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25387971, '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 = 25388457 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': 3366663, 'mtr_portfolio_id': 25388457, 'created_at': datetime.datetime(2025, 7, 28, 7, 30, 59), 'result': '0.031648934476376386', 'result_long': None, 'result_double': None}] Qualite : 0.031648934476376386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25388457 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25388457_28-07-2025_07_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25388457 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_P25388457_28-07-2025_07_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25388509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25388510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25388511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25388512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25388513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25388514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25388515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25388516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25388517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25388518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25388519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25388520, 'pht': 3726}}" where mtr_portfolio_id = 25388457 and dashboard_run_id = 2022963 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`=25388457 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206725, 0.031648934476376386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25388457_28-07-2025_07_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25388509, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25388510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25388511, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25388512, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25388513, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25388514, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25388515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25388516, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25388517, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25388518, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25388519, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25388520, '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 = 25389085 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': 3366829, 'mtr_portfolio_id': 25389085, 'created_at': datetime.datetime(2025, 7, 28, 7, 46, 59), 'result': '0.03735173297738689', 'result_long': None, 'result_double': None}] Qualite : 0.03735173297738689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25389085 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389085_28-07-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25389085 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_P25389085_28-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389104, 'pht': 3726}}" where mtr_portfolio_id = 25389085 and dashboard_run_id = 2022963 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`=25389085 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206726, 0.03735173297738689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389085_28-07-2025_07_47_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389094, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389096, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389097, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389099, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389100, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389101, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389102, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389104, '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 = 25389722 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': 3366969, 'mtr_portfolio_id': 25389722, 'created_at': datetime.datetime(2025, 7, 28, 8, 3), 'result': '0.04315689843808117', 'result_long': None, 'result_double': None}] Qualite : 0.04315689843808117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25389722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389722_28-07-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25389722 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_P25389722_28-07-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389794, 'pht': 3726}}" where mtr_portfolio_id = 25389722 and dashboard_run_id = 2022963 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`=25389722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206727, 0.04315689843808117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25389722_28-07-2025_08_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25389780, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25389781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25389782, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25389784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25389785, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25389786, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25389788, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25389789, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25389790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25389792, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25389793, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25389794, '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 = 25390356 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': 3367148, 'mtr_portfolio_id': 25390356, 'created_at': datetime.datetime(2025, 7, 28, 8, 16, 59), 'result': '0.03434362512438191', 'result_long': None, 'result_double': None}] Qualite : 0.03434362512438191 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25390356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390356_28-07-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25390356 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_P25390356_28-07-2025_08_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25390418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390419, 'pht': 3726}}" where mtr_portfolio_id = 25390356 and dashboard_run_id = 2022963 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`=25390356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206728, 0.03434362512438191, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390356_28-07-2025_08_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390408, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390409, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390411, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390415, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25390418, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390419, '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 = 25390918 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': 3367327, 'mtr_portfolio_id': 25390918, 'created_at': datetime.datetime(2025, 7, 28, 8, 32, 58), 'result': '0.026287391554805105', 'result_long': None, 'result_double': None}] Qualite : 0.026287391554805105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25390918 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390918_28-07-2025_08_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25390918 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_P25390918_28-07-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25390943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390954, 'pht': 3726}}" where mtr_portfolio_id = 25390918 and dashboard_run_id = 2022963 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`=25390918 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206729, 0.026287391554805105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25390918_28-07-2025_08_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25390943, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25390944, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25390945, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25390946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25390947, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25390948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25390949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25390950, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25390951, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25390952, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25390953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25390954, '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 = 25391543 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': 3367574, 'mtr_portfolio_id': 25391543, 'created_at': datetime.datetime(2025, 7, 28, 8, 46, 59), 'result': '0.033731292225415994', 'result_long': None, 'result_double': None}] Qualite : 0.033731292225415994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25391543 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25391543_28-07-2025_08_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25391543 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_P25391543_28-07-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25391570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25391571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25391572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25391575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25391576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25391577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25391578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25391579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25391580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25391581, 'pht': 3726}}" where mtr_portfolio_id = 25391543 and dashboard_run_id = 2022963 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`=25391543 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206730, 0.033731292225415994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25391543_28-07-2025_08_47_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25391570, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25391571, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25391572, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25391573, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25391574, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25391575, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25391576, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25391577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25391578, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25391579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25391580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25391581, '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 = 25392092 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': 3367823, 'mtr_portfolio_id': 25392092, 'created_at': datetime.datetime(2025, 7, 28, 9, 1), 'result': '0.026456947253206832', 'result_long': None, 'result_double': None}] Qualite : 0.026456947253206832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25392092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25392092_28-07-2025_09_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25392092 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_P25392092_28-07-2025_09_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392139, 'pht': 3726}}" where mtr_portfolio_id = 25392092 and dashboard_run_id = 2022963 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`=25392092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206731, 0.026456947253206832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25392092_28-07-2025_09_01_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25392128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25392129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25392130, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25392131, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25392132, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25392133, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25392134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25392135, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25392136, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25392137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25392138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25392139, '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 = 25395703 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': 3368889, 'mtr_portfolio_id': 25395703, 'created_at': datetime.datetime(2025, 7, 28, 10, 16, 56), 'result': '0.01722956750550932', 'result_long': None, 'result_double': None}] Qualite : 0.01722956750550932 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25395703 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25395703_28-07-2025_10_16_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25395703 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_P25395703_28-07-2025_10_16_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25395713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25395714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25395715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25395716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25395718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25395719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25395720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25395721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25395722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25395723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25395724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25395725, 'pht': 3726}}" where mtr_portfolio_id = 25395703 and dashboard_run_id = 2022963 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`=25395703 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206732, 0.01722956750550932, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25395703_28-07-2025_10_16_56.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25395713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25395714, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25395715, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25395716, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25395718, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25395719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25395720, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25395721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25395722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25395723, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25395724, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25395725, '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 = 25396124 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': 3369057, 'mtr_portfolio_id': 25396124, 'created_at': datetime.datetime(2025, 7, 28, 10, 30, 56), 'result': '0.037656349859255346', 'result_long': None, 'result_double': None}] Qualite : 0.037656349859255346 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25396124 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396124_28-07-2025_10_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25396124 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_P25396124_28-07-2025_10_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25396153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396159, 'pht': 3726}}" where mtr_portfolio_id = 25396124 and dashboard_run_id = 2022963 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`=25396124 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206733, 0.037656349859255346, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396124_28-07-2025_10_30_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396149, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396150, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396152, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25396153, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396154, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396155, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396156, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396159, '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 = 25396715 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': 3369321, 'mtr_portfolio_id': 25396715, 'created_at': datetime.datetime(2025, 7, 28, 10, 46, 58), 'result': '0.044422878024492754', 'result_long': None, 'result_double': None}] Qualite : 0.044422878024492754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25396715 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396715_28-07-2025_10_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25396715 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_P25396715_28-07-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25396728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396739, 'pht': 3726}}" where mtr_portfolio_id = 25396715 and dashboard_run_id = 2022963 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`=25396715 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206734, 0.044422878024492754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25396715_28-07-2025_10_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25396728, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25396729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25396730, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25396731, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25396732, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25396733, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25396734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25396735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25396736, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25396737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25396738, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25396739, '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 = 25397211 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': 3369527, 'mtr_portfolio_id': 25397211, 'created_at': datetime.datetime(2025, 7, 28, 10, 52, 59), 'result': '0.06687657416699358', 'result_long': None, 'result_double': None}] Qualite : 0.06687657416699358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25397211 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397211_28-07-2025_10_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25397211 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_P25397211_28-07-2025_10_53_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25397234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397245, 'pht': 3726}}" where mtr_portfolio_id = 25397211 and dashboard_run_id = 2022963 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`=25397211 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13206735, 0.06687657416699358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25397211_28-07-2025_10_53_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25397234, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25397235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25397236, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25397237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25397238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25397239, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25397240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25397241, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25397242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25397243, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25397244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25397245, '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 (25384876,25385066,25385391,25385661,25385913,25386460,25387009,25387406,25387937,25388457,25389085,25389722,25390356,25390918,25391543,25392092,25395703,25396124,25396715,25397211) result : ((1374087887,), (1374087890,), (1374087915,), (1374087938,), (1374087960,), (1374088079,), (1374088080,), (1374088081,), (1374088082,), (1374088083,), (1374088085,), (1374088101,), (1374088103,), (1374088104,), (1374088105,), (1374088106,), (1374088108,), (1374088122,), (1374088129,), (1374088137,), (1374088140,), (1374088141,), (1374088143,), (1374088155,), (1374088175,), (1374088176,), (1374088177,), (1374088188,), (1374088196,), (1374088200,), (1374088213,), (1374088237,), (1374088238,), (1374088239,), (1374088251,), (1374088259,), (1374088263,), (1374088277,), (1374088279,), (1374088280,), (1374088281,), (1374088282,), (1374088283,), (1374088297,), (1374088332,), (1374088334,), (1374088336,), (1374088338,), (1374088340,), (1374088342,), (1374088349,), (1374088359,), (1374088361,), (1374088363,), (1374088365,), (1374088380,), (1374088388,), (1374088408,), (1374088411,), (1374088413,), (1374088414,), (1374088417,), (1374088421,), (1374088436,), (1374088438,), (1374088439,), (1374088446,), (1374088459,), (1374088467,), (1374088482,), (1374088484,), (1374088486,), (1374088487,), (1374088489,), (1374088492,), (1374088504,), (1374088506,), (1374088514,), (1374088526,), (1374088536,), (1374088538,), (1374088581,), (1374088583,), (1374088584,), (1374088587,), (1374088589,), (1374088591,), (1374088604,), (1374088606,), (1374088607,), (1374088620,), (1374088627,), (1374088634,), (1374088646,), (1374088648,), (1374088649,), (1374088650,), (1374088651,), (1374088653,), (1374088670,), (1374088672,), (1374088684,), (1374088694,), (1374088701,), (1374088703,), (1374088715,), (1374088716,), (1374088717,), (1374088718,), (1374088719,), (1374088720,), (1374088729,), (1374088731,), (1374088739,), (1374088751,), (1374088758,), (1374088759,), (1374088771,), (1374088786,), (1374088787,), (1374088788,), (1374088800,), (1374088809,), (1374088814,), (1374088823,), (1374088824,), (1374088825,), (1374088827,), (1374088829,), (1374088830,), (1374088847,), (1374088848,), (1374088850,), (1374088864,), (1374088871,), (1374088879,), (1374088888,), (1374088891,), (1374088893,), (1374088894,), (1374088895,), (1374088897,), (1374088914,), (1374088916,), (1374088918,), (1374088919,), (1374088920,), (1374088921,), (1374088933,), (1374088951,), (1374088963,), (1374088965,), (1374088967,), (1374088968,), (1374088969,), (1374088999,), (1374089001,), (1374089004,), (1374089006,), (1374089008,), (1374089010,), (1374089044,), (1374089046,), (1374089048,), (1374089052,), (1374089064,), (1374089075,), (1374089083,), (1374089086,), (1374089087,), (1374089090,), (1374089091,), (1374089092,), (1374089098,), (1374089101,), (1374089107,), (1374089108,), (1374089110,), (1374089113,), (1374089126,), (1374089144,), (1374089155,), (1374089156,), (1374089157,), (1374089158,), (1374089159,), (1374089168,), (1374089170,), (1374089171,), (1374089173,), (1374089174,), (1374089175,), (1374089187,), (1374089189,), (1374089203,), (1374089211,), (1374089218,), (1374089220,), (1374089229,), (1374089244,), (1374089246,), (1374089250,), (1374089255,), (1374089257,), (1374089258,), (1374089266,), (1374089268,), (1374089271,), (1374089273,), (1374089274,), (1374089275,), (1374089286,), (1374089294,), (1374089301,), (1374089302,), (1374089303,), (1374089304,), (1374089314,), (1374089336,), (1374089340,), (1374089345,), (1374089347,), (1374089348,), (1374089349,), (1374089355,), (1374089356,), (1374089359,), (1374089361,), (1374089362,), (1374089364,), (1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,), (1374089692,), (1374089720,), (1374089748,), (1374089772,), (1374089796,), (1374089820,), (1374090014,), (1374090031,), (1374090054,), (1374090067,), (1374090069,), (1374090087,), (1374090127,), (1374090129,), (1374090132,), (1374090133,), (1374090135,), (1374090137,), (1374090144,), (1374090159,), (1374090186,), (1374090209,), (1374090231,), (1374090255,), (1374090699,), (1374090763,), (1374090831,), (1374090846,), (1374090847,), (1374090848,), (1374091126,), (1374091141,), (1374091158,), (1374091170,), (1374091172,), (1374091174,), (1374091185,), (1374091195,), (1374091197,), (1374091198,), (1374091199,), (1374091201,), (1374091211,), (1374091215,), (1374091217,), (1374091228,), (1374091238,), (1374091240,), (1374091257,), (1374091261,), (1374091263,), (1374091266,), (1374091269,), (1374091271,), (1374091282,), (1374091283,), (1374091284,), (1374091285,), (1374091292,), (1374091306,), (1374091329,), (1374091331,), (1374091334,), (1374091337,), (1374091338,), (1374091340,), (1374091351,), (1374091353,), (1374091355,), (1374091356,), (1374091358,), (1374091360,), (1374091369,), (1374091374,), (1374091376,), (1374091379,), (1374091382,), (1374091384,), (1374091389,), (1374091390,), (1374091392,), (1374091399,), (1374091402,), (1374091404,), (1374091420,), (1374091422,), (1374091431,), (1374091434,), (1374091436,), (1374091437,), (1374091445,), (1374091488,), (1374091489,), (1374091495,), (1374091502,), (1374091503,), (1374091505,), (1374091525,), (1374091526,), (1374091527,), (1374091534,), (1374091543,), (1374091552,), (1374091564,), (1374091569,), (1374091573,), (1374091575,), (1374091576,), (1374091578,), (1374091585,), (1374091587,), (1374091589,), (1374091594,), (1374091601,), (1374091607,), (1374091617,), (1374091619,), (1374091628,), (1374091632,), (1374091634,), (1374091637,), (1374091650,), (1374091655,), (1374091657,), (1374091659,), (1374091661,), (1374091662,), (1374091676,), (1374091677,), (1374091678,), (1374091679,), (1374091680,), (1374091682,), (1374091693,), (1374091697,), (1374091701,), (1374091703,), (1374091705,), (1374091707,), (1374091713,), (1374091723,), (1374091726,), (1374091727,), (1374091729,), (1374091731,), (1374091744,), (1374091757,), (1374091759,), (1374091761,), (1374091763,), (1374091764,), (1374091766,), (1374091779,), (1374091781,), (1374091783,), (1374091785,), (1374091786,), (1374091788,), (1374091799,), (1374091804,), (1374091812,), (1374091816,), (1374091818,), (1374091819,), (1374091827,), (1374091835,), (1374091845,), (1374091847,), (1374091848,), (1374091850,), (1374091862,), (1374091872,), (1374091877,), (1374091879,), (1374091880,), (1374091884,), (1374091900,), (1374091914,), (1374091918,), (1374091919,), (1374091922,), (1374091926,), (1374091942,), (1374091945,), (1374091948,), (1374091950,), (1374091952,), (1374091956,), (1374091986,), (1374091993,), (1374091995,), (1374091996,), (1374091999,), (1374092001,), (1374092028,), (1374092030,), (1374092032,), (1374092034,), (1374092037,), (1374092039,), (1374092058,), (1374092062,), (1374092066,), (1374092068,), (1374092070,), (1374092073,), (1374092091,), (1374092103,), (1374092107,), (1374092110,), (1374092114,), (1374092117,), (1374092146,), (1374092178,), (1374092182,), (1374092193,), (1374092200,), (1374092204,), (1374092208,), (1374092229,), (1374092236,), (1374092238,), (1374092240,), (1374092243,), (1374092247,), (1374092266,), (1374092271,), (1374092274,), (1374092275,), (1374092278,), (1374092282,), (1374092304,), (1374092311,), (1374092315,), (1374092316,), (1374092318,), (1374092321,), (1374092341,), (1374092343,), (1374092349,), (1374092350,), (1374092352,), (1374092358,), (1374092371,), (1374092373,), (1374092375,), (1374092376,), (1374092379,), (1374092382,), (1374092399,), (1374092402,), (1374092404,), (1374092406,), (1374092409,), (1374092412,), (1374092420,), (1374092422,), (1374092424,), (1374092431,), (1374092433,), (1374092435,), (1374092448,), (1374092456,), (1374092459,), (1374092460,), (1374092462,), (1374092465,), (1374092476,), (1374092479,), (1374092480,), (1374092483,), (1374092485,), (1374092489,), (1374092508,), (1374092509,), (1374092511,), (1374092513,), (1374092515,), (1374092519,), (1374092542,), (1374092544,), (1374092551,), (1374092557,), (1374092561,), (1374092563,), (1374092584,), (1374092587,), (1374092590,), (1374092592,), (1374092596,), (1374092599,), (1374092644,), (1374092682,), (1374092688,), (1374092689,), (1374092690,), (1374092692,), (1374092694,), (1374092715,), (1374092720,), (1374092726,), (1374092728,), (1374092730,), (1374092734,), (1374092758,), (1374092760,), (1374092768,), (1374092771,), (1374092774,), (1374092776,), (1374092795,), (1374092797,), (1374092799,), (1374092803,), (1374092805,), (1374092807,), (1374092831,), (1374092834,), (1374092838,), (1374092841,), (1374092843,), (1374092846,), (1374092858,), (1374092862,), (1374092864,), (1374092876,), (1374092890,), (1374092921,), (1374093161,), (1374093186,), (1374093211,), (1374093239,), (1374093265,), (1374093289,), (1374093423,), (1374093559,), (1374093584,), (1374093608,), (1374093632,), (1374093656,), (1374093936,), (1374093952,), (1374093953,), (1374093954,), (1374093956,), (1374093958,), (1374094116,), (1374094143,), (1374094148,), (1374094152,), (1374094156,), (1374094164,), (1374094261,), (1374094264,), (1374094266,), (1374094269,), (1374094272,), (1374094273,), (1374094290,), (1374094294,), (1374094295,), (1374094297,), (1374094300,), (1374094304,), (1374094319,), (1374094320,), (1374094360,), (1374094436,), (1374094521,), (1374094595,), (1374094885,), (1374094887,), (1374094926,), (1374095000,), (1374095002,), (1374095011,), (1374095147,), (1374095150,), (1374095153,), (1374095157,), (1374095161,), (1374095166,), (1374095209,), (1374095210,), (1374095213,), (1374095215,), (1374095222,), (1374095225,), (1374095267,), (1374095270,), (1374095273,), (1374095282,), (1374095288,), (1374095290,), (1374095383,), (1374095408,), (1374095434,), (1374095456,), (1374095458,), (1374095460,), (1374095482,), (1374095483,), (1374095487,), (1374095494,), (1374095497,), (1374095499,), (1374095523,), (1374095524,), (1374095525,), (1374095533,), (1374095556,), (1374095565,), (1374095631,), (1374095633,), (1374095634,), (1374095635,), (1374095637,), (1374095640,), (1374095657,), (1374095659,), (1374095660,), (1374095662,), (1374095666,), (1374095668,), (1374095680,), (1374095681,), (1374095682,), (1374095683,), (1374095684,), (1374095686,), (1374095734,), (1374095735,), (1374095743,), (1374095745,), (1374095747,), (1374095749,), (1374095767,), (1374095768,), (1374095769,), (1374095770,), (1374095772,), (1374095775,), (1374095790,), (1374095793,), (1374095797,), (1374095799,), (1374095802,), (1374095804,), (1374095828,), (1374095832,), (1374095834,), (1374095836,), (1374095838,), (1374095840,), (1374095873,), (1374095907,), (1374095909,), (1374095911,), (1374095912,), (1374095914,), (1374095916,), (1374095940,), (1374095944,), (1374095945,), (1374095948,), (1374095950,), (1374095953,), (1374095968,), (1374095974,), (1374095975,), (1374095977,), (1374095979,), (1374095980,), (1374096049,), (1374096075,), (1374096078,), (1374096079,), (1374096082,), (1374096085,), (1374096088,), (1374096115,), (1374096118,), (1374096127,), (1374096132,), (1374096134,), (1374096135,), (1374096160,), (1374096165,), (1374096168,), (1374096170,), (1374096173,), (1374096176,), (1374096197,), (1374096203,), (1374096213,), (1374096214,), (1374096216,), (1374096218,), (1374096241,), (1374096245,), (1374096248,), (1374096251,), (1374096254,), (1374096257,), (1374096300,), (1374096303,), (1374096304,), (1374096307,), (1374096310,), (1374096312,), (1374096505,), (1374096536,), (1374096543,), (1374096564,), (1374096572,), (1374096584,), (1374096633,), (1374096634,), (1374096638,), (1374096647,), (1374096653,), (1374096657,), (1374096701,), (1374096702,), (1374096704,), (1374096708,), (1374096715,), (1374096719,), (1374096750,), (1374096751,), (1374096753,), (1374096755,), (1374096767,), (1374096774,), (1374096801,), (1374096802,), (1374096803,), (1374096804,), (1374096806,), (1374096809,), (1374096833,), (1374096834,), (1374096837,), (1374096839,), (1374096840,), (1374096842,), (1374096861,), (1374096863,), (1374096865,), (1374096867,), (1374096870,), (1374096873,), (1374096895,), (1374096896,), (1374096903,), (1374096907,), (1374096909,), (1374096911,), (1374096987,), (1374096996,), (1374097005,), (1374097025,), (1374097034,), (1374097047,), (1374097133,), (1374097135,), (1374097138,), (1374097139,), (1374097140,), (1374097144,), (1374097162,), (1374097163,), (1374097164,), (1374097165,), (1374097166,), (1374097168,), (1374097196,), (1374097198,), (1374097201,), (1374097203,), (1374097204,), (1374097206,), (1374097223,), (1374097225,), (1374097226,), (1374097227,), (1374097229,), (1374097230,), (1374097254,), (1374097258,), (1374097261,), (1374097263,), (1374097267,), (1374097272,), (1374097291,), (1374097303,), (1374097306,), (1374097307,), (1374097309,), (1374097313,), (1374097332,), (1374097335,), (1374097338,), (1374097344,), (1374097351,), (1374097353,), (1374097381,), (1374097417,), (1374097420,), (1374097422,), (1374097424,), (1374097433,), (1374097441,), (1374097458,), (1374097464,), (1374097472,), (1374097474,), (1374097475,), (1374097478,), (1374097530,), (1374097555,), (1374097585,), (1374097613,), (1374097618,), (1374097624,), (1374097720,), (1374097726,), (1374097748,), (1374097750,), (1374097753,), (1374097757,), (1374097819,), (1374097828,), (1374097836,), (1374097838,), (1374097841,), (1374097845,), (1374097862,), (1374097866,), (1374097869,), (1374097871,), (1374097874,), (1374097878,), (1374097888,), (1374097890,), (1374097901,), (1374097905,), (1374097906,), (1374097909,), (1374097919,), (1374097920,), (1374097922,), (1374097924,), (1374097927,), (1374097931,), (1374097946,), (1374097948,), (1374097950,), (1374097970,), (1374097995,), (1374098022,), (1374098289,), (1374098317,), (1374098327,), (1374098331,), (1374098349,), (1374098377,), (1374098628,), (1374098709,), (1374099101,), (1374099754,), (1374100192,), (1374100224,), (1374100251,), (1374100267,), (1374100295,), (1374100308,), (1374100317,), (1374100319,), (1374100321,), (1374100322,), (1374100324,), (1374100327,), (1374100341,), (1374100343,), (1374100346,), (1374100349,), (1374100351,), (1374100356,), (1374100382,), (1374100384,), (1374100386,), (1374100389,), (1374100391,), (1374100394,), (1374100406,), (1374100410,), (1374100413,), (1374100415,), (1374100418,), (1374100422,), (1374100431,), (1374100435,), (1374100442,), (1374100447,), (1374100448,), (1374100451,), (1374100468,), (1374100501,), (1374100546,), (1374100547,), (1374100548,), (1374100549,), (1374100551,), (1374100553,), (1374100574,), (1374100575,), (1374100576,), (1374100578,), (1374100581,), (1374100589,), (1374100616,), (1374100618,), (1374100619,), (1374100620,), (1374100621,), (1374100623,), (1374100642,), (1374100643,), (1374100644,), (1374100645,), (1374100646,), (1374100648,), (1374100660,), (1374100661,), (1374100662,), (1374100664,), (1374100665,), (1374100667,), (1374100687,), (1374100693,), (1374100698,), (1374100699,), (1374100700,), (1374100703,), (1374100725,), (1374100804,), (1374100810,), (1374100827,), (1374100850,), (1374100875,), (1374100900,), (1374101322,), (1374101348,), (1374101389,), (1374101413,), (1374101425,), (1374101433,), (1374101602,), (1374101625,), (1374101654,), (1374101678,), (1374101691,), (1374101694,), (1374101721,), (1374101722,), (1374101723,), (1374101725,), (1374101728,), (1374101731,), (1374101746,), (1374101747,), (1374101748,), (1374101749,), (1374101750,), (1374101754,), (1374101770,), (1374101773,), (1374101775,), (1374101777,), (1374101779,), (1374101783,), (1374101799,), (1374101810,), (1374101816,), (1374101817,), (1374101818,), (1374101820,), (1374101833,), (1374101836,), (1374101837,), (1374101839,), (1374101842,), (1374101845,), (1374101863,), (1374101864,), (1374101865,), (1374101866,), (1374101867,), (1374101871,), (1374101892,), (1374101893,), (1374101894,), (1374101895,), (1374101896,), (1374101898,), (1374101921,), (1374101922,), (1374101923,), (1374101924,), (1374101925,), (1374101927,), (1374101949,), (1374101952,), (1374101954,), (1374101955,), (1374101956,), (1374101958,), (1374101977,), (1374101984,), (1374101990,), (1374101992,), (1374101994,), (1374101995,), (1374102024,), (1374102025,), (1374102026,), (1374102027,), (1374102028,), (1374102030,), (1374102048,), (1374102052,), (1374102054,), (1374102055,), (1374102057,), (1374102059,), (1374102076,), (1374102078,), (1374102079,), (1374102080,), (1374102081,), (1374102083,), (1374102104,), (1374102106,), (1374102107,), (1374102109,), (1374102110,), (1374102112,), (1374102124,), (1374102125,), (1374102126,), (1374102147,), (1374102164,), (1374102171,), (1374102252,), (1374102254,), (1374102257,), (1374102260,), (1374102262,), (1374102265,), (1374102279,), (1374102302,), (1374102305,), (1374102307,), (1374102309,), (1374102311,), (1374102313,), (1374102337,), (1374102339,), (1374102340,), (1374102341,), (1374102343,), (1374102346,), (1374102357,), (1374102361,), (1374102367,), (1374102368,), (1374102370,), (1374102374,), (1374102430,), (1374102436,), (1374102438,), (1374102439,), (1374102440,), (1374102443,), (1374102545,), (1374102547,), (1374102563,), (1374102570,), (1374102571,), (1374102574,), (1374102585,), (1374102587,), (1374102589,), (1374102590,), (1374102592,), (1374102595,), (1374102623,), (1374102625,), (1374102627,), (1374102628,), (1374102630,), (1374102633,), (1374102651,), (1374102655,), (1374102658,), (1374102659,), (1374102667,), (1374102669,), (1374102735,), (1374102738,), (1374102739,), (1374102741,), (1374102742,), (1374102756,), (1374103016,), (1374103039,), (1374103065,), (1374103084,), (1374103086,), (1374103093,), (1374103186,), (1374103211,), (1374103236,), (1374103237,), (1374103240,), (1374103248,), (1374103378,), (1374103404,), (1374103427,), (1374103450,), (1374103473,), (1374103491,), (1374103511,), (1374103517,), (1374103545,), (1374103572,), (1374103594,), (1374103621,), (1374103892,), (1374103896,), (1374103898,), (1374103904,), (1374103905,), (1374103908,), (1374104055,), (1374104101,), (1374104127,), (1374104153,), (1374104180,), (1374104191,), (1374104239,), (1374104242,), (1374104244,), (1374104246,), (1374104248,), (1374104252,), (1374104313,), (1374104316,), (1374104319,), (1374104321,), (1374104324,), (1374104327,), (1374104510,), (1374104533,), (1374104549,), (1374104550,), (1374104552,), (1374104554,), (1374104690,), (1374104692,), (1374104693,), (1374104705,), (1374104731,), (1374104761,), (1374104865,), (1374105538,), (1374105564,), (1374105586,), (1374105611,), (1374105635,), (1374105662,), (1374106524,), (1374119826,), (1374120027,), (1374120053,), (1374120063,), (1374120092,), (1374120107,), (1374120135,), (1374120412,), (1374120456,), (1374120500,), (1374120525,), (1374120550,), (1374120591,), (1374120813,), (1374120823,), (1374120825,), (1374120827,), (1374120829,), (1374120833,), (1374120851,), (1374120853,), (1374120856,), (1374120864,), (1374120889,), (1374120924,), (1374121118,), (1374121127,), (1374121139,), (1374121140,), (1374121142,), (1374121145,), (1374121170,), (1374121172,), (1374121174,), (1374121175,), (1374121178,), (1374121182,), (1374121196,), (1374121198,), (1374121200,), (1374121202,), (1374121204,), (1374121207,), (1374121223,), (1374121225,), (1374121227,), (1374121229,), (1374121231,), (1374121234,), (1374121251,), (1374121259,), (1374121263,), (1374121265,), (1374121267,), (1374121272,), (1374121289,), (1374121298,), (1374121305,), (1374121307,), (1374121310,), (1374121313,), (1374121339,), (1374121342,), (1374121344,), (1374121346,), (1374121349,), (1374121353,), (1374121367,), (1374121369,), (1374121372,), (1374121373,), (1374121377,), (1374121381,), (1374121397,), (1374121399,), (1374121400,), (1374121402,), (1374121403,), (1374121407,), (1374121437,), (1374121467,), (1374121472,), (1374121478,), (1374121480,), (1374121483,), (1374121484,), (1374121505,), (1374121506,), (1374121507,), (1374121516,), (1374121522,), (1374121525,), (1374121575,), (1374121576,), (1374121577,), (1374121585,), (1374121610,), (1374121636,), (1374121773,), (1374121781,), (1374121785,), (1374121800,), (1374121803,), (1374121807,), (1374121919,), (1374121921,), (1374121923,), (1374121924,), (1374121925,), (1374121927,), (1374121954,), (1374121957,), (1374121959,), (1374121960,), (1374121961,), (1374121963,), (1374122068,), (1374122093,), (1374122119,), (1374122144,), (1374122167,), (1374122196,), (1374122367,), (1374122370,), (1374122371,), (1374122374,), (1374122378,), (1374122382,), (1374122413,), (1374122418,), (1374122420,), (1374122421,), (1374122423,), (1374122426,), (1374122449,), (1374122480,), (1374122483,), (1374122484,), (1374122485,), (1374122486,), (1374122488,), (1374122508,), (1374122511,), (1374122514,), (1374122517,), (1374122520,), (1374122538,), (1374122565,), (1374122576,), (1374122582,), (1374122587,), (1374122597,), (1374122599,), (1374122626,), (1374122628,), (1374122629,), (1374122630,), (1374122632,), (1374122633,), (1374122656,), (1374122659,), (1374122663,), (1374122666,), (1374122669,), (1374122673,), (1374122694,), (1374122697,), (1374122699,), (1374122701,), (1374122703,), (1374122706,), (1374122725,), (1374122727,), (1374122730,), (1374122731,), (1374122733,), (1374122735,), (1374122765,), (1374122792,), (1374122821,), (1374122848,), (1374122874,), (1374122876,), (1374122878,), (1374122879,), (1374122880,), (1374122890,), (1374122909,), (1374122911,), (1374122916,), (1374122921,), (1374122924,), (1374122929,), (1374122946,), (1374122970,), (1374122980,), (1374122982,), (1374122983,), (1374122985,), (1374122987,), (1374123008,), (1374123011,), (1374123013,), (1374123014,), (1374123016,), (1374123019,), (1374123036,), (1374123046,), (1374123050,), (1374123052,), (1374123056,), (1374123060,), (1374123077,), (1374123079,), (1374123082,), (1374123085,), (1374123087,), (1374123091,), (1374123104,), (1374123116,), (1374123123,), (1374123125,), (1374123128,), (1374123132,), (1374123152,), (1374123179,), (1374123187,), (1374123190,), (1374123193,), (1374123195,), (1374123200,), (1374123215,), (1374123217,), (1374123219,), (1374123221,), (1374123222,), (1374123225,), (1374123253,), (1374123260,), (1374123265,), (1374123267,), (1374123270,), (1374123275,), (1374123300,), (1374123302,), (1374123305,), (1374123307,), (1374123308,), (1374123310,), (1374123338,), (1374123342,), (1374123344,), (1374123346,), (1374123348,), (1374123352,), (1374123367,), (1374123368,), (1374123369,), (1374123370,), (1374123372,), (1374123374,), (1374123400,), (1374123402,), (1374123404,), (1374123405,), (1374123408,), (1374123412,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28072025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25397211]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] map_info['map_portfolio_photo'] : {25397211: [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338, 1374123310, 1374123308, 1374123307, 1374123305, 1374123302, 1374123300, 1374123275, 1374123270, 1374123267, 1374123265, 1374123260, 1374123253, 1374123225, 1374123222, 1374123221, 1374123219, 1374123217, 1374123215, 1374123200, 1374123195, 1374123193, 1374123190, 1374123187, 1374123179]} final : True mtd_id 4302 list_pids : [1374123412, 1374123408, 1374123405, 1374123404, 1374123402, 1374123400, 1374123374, 1374123372, 1374123370, 1374123369, 1374123368, 1374123367, 1374123352, 1374123348, 1374123346, 1374123344, 1374123342, 1374123338] Looping around the photos to save general results len do output : 1 /25397211Didn'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, '3369527') ('4302', '25397211', '1374123412', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527') ('4302', None, None, None, None, None, None, None, '3369527') ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527') 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, '25397211', 'None', None, None, None, None, '3369527'), ('4302', '25397211', '1374123412', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123408', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123405', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123404', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123402', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123400', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123374', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123372', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123370', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123369', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123368', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123367', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123352', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123348', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123346', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123344', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123342', None, None, None, None, None, '3369527'), ('4302', '25397211', '1374123338', None, None, None, None, None, '3369527')] time used for this insertion : 0.01895904541015625 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3998303413391113 time spend to save output : 0.019237041473388672 total time spend for step 5 : 1.4190673828125 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 (3369527) 2.15user 2.47system 0:08.24elapsed 56%CPU (0avgtext+0avgdata 167440maxresident)k 40inputs+10672outputs (0major+65841minor)pagefaults 0swaps