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 : 4190196 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 (2751669) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2751669) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328867 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2751669'] with mtr_portfolio_ids : ['22328867'] and first list_photo_ids : [] new path : /proc/4190196/ Name: python3 Umask: 0002 State: R (running) Tgid: 4190196 Ngid: 0 Pid: 4190196 PPid: 4190195 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4190196 NSpid: 4190196 NSpgid: 4184298 NSsid: 4184298 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97884 kB VmRSS: 97884 kB RssAnon: 59804 kB RssFile: 38080 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 56 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4190196', 'Ngid': '0', 'Pid': '4190196', 'PPid': '4190195', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4190196', 'NSpid': '4190196', 'NSpgid': '4184298', 'NSsid': '4184298', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97884 kB', 'VmRSS': '97884 kB', 'RssAnon': '59804 kB', 'RssFile': '38080 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '56', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '4190196', '1106936', '0', '1106936', '865684', '97884', b'', 'marlene', '2751669') 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 (22328867) 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 (2751669 ) ) 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 (22328867) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1352928910, 'portfolio_id': 22328867}, {'photo_id': 1352928907, 'portfolio_id': 22328867}, {'photo_id': 1352928904, 'portfolio_id': 22328867}, {'photo_id': 1352928895, 'portfolio_id': 22328867}, {'photo_id': 1352928869, 'portfolio_id': 22328867}, {'photo_id': 1352928483, 'portfolio_id': 22328867}, {'photo_id': 1352928429, 'portfolio_id': 22328867}, {'photo_id': 1352928351, 'portfolio_id': 22328867}, {'photo_id': 1352928295, 'portfolio_id': 22328867}, {'photo_id': 1352927831, 'portfolio_id': 22328867}, {'photo_id': 1352927828, 'portfolio_id': 22328867}, {'photo_id': 1352927825, 'portfolio_id': 22328867}, {'photo_id': 1352927822, 'portfolio_id': 22328867}, {'photo_id': 1352927572, 'portfolio_id': 22328867}, {'photo_id': 1352927487, 'portfolio_id': 22328867}, {'photo_id': 1352927393, 'portfolio_id': 22328867}, {'photo_id': 1352927023, 'portfolio_id': 22328867}, {'photo_id': 1352926946, 'portfolio_id': 22328867}, {'photo_id': 1352925916, 'portfolio_id': 22328867}, {'photo_id': 1352925839, 'portfolio_id': 22328867}, {'photo_id': 1352925762, 'portfolio_id': 22328867}, {'photo_id': 1352924771, 'portfolio_id': 22328867}, {'photo_id': 1352924719, 'portfolio_id': 22328867}, {'photo_id': 1352924663, 'portfolio_id': 22328867}, {'photo_id': 1352924579, 'portfolio_id': 22328867}] map_portfolio_id_photo_id: {22328867: [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579]} ##### 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.014243602752685547 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 23 07:06:56 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 (22328867) 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 : 22328867 get user id for portfolio 22328867 get sub ptf for main ptf 22328867, type 3726 and hashtags ['papier', 'plastique', 'mal_croppe', 'kraft', 'Teint_Dans_La_Masse', 'environnement', 'Carton_gris', 'Carton_brun', 'flou', 'metal', 'autre_refus', '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`=22328867 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','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`=22328867 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22328867, 22328873, 3726, 0.5, 492668766, 979], [22328867, 22328874, 3726, 0.5, 492725882, 979], [22328867, 22328875, 3726, 0.5, 2107755527, 979], [22328867, 22328876, 3726, 0.5, 493202403, 979], [22328867, 22328877, 3726, 0.5, 2107752385, 979], [22328867, 22328878, 3726, 0.5, 493012381, 979], [22328867, 22328879, 3726, 0.5, 2107753020, 979], [22328867, 22328880, 3726, 0.5, 2107753024, 979], [22328867, 22328881, 3726, 0.5, 492777938, 979], [22328867, 22328882, 3726, 0.5, 492628673, 979], [22328867, 22328883, 3726, 0.5, 2107752406, 979], [22328867, 22328884, 3726, 0.5, 702398920, 979]] 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`=22328867 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','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`=22328867 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22328867, 'sub_port_id': 22328873, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786956, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'plastique': {'main_port_id': 22328867, 'sub_port_id': 22328874, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786957, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'mal_croppe': {'main_port_id': 22328867, 'sub_port_id': 22328875, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786958, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'kraft': {'main_port_id': 22328867, 'sub_port_id': 22328876, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786959, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22328867, 'sub_port_id': 22328877, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786960, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'environnement': {'main_port_id': 22328867, 'sub_port_id': 22328878, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786961, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'Carton_gris': {'main_port_id': 22328867, 'sub_port_id': 22328879, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786962, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'Carton_brun': {'main_port_id': 22328867, 'sub_port_id': 22328880, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786963, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'flou': {'main_port_id': 22328867, 'sub_port_id': 22328881, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786964, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'metal': {'main_port_id': 22328867, 'sub_port_id': 22328882, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786965, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'autre_refus': {'main_port_id': 22328867, 'sub_port_id': 22328883, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786966, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}, 'cartonnette': {'main_port_id': 22328867, 'sub_port_id': 22328884, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786967, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328873 , 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=22328867 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 (22328873) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328874 , 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=22328867 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 (22328874) result : ((1352928882,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328875 , 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=22328867 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 (22328875) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328876 , 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=22328867 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 (22328876) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328877 , 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=22328867 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 (22328877) result : ((1352928041,), (1352928042,), (1352928870,), (1352928871,), (1352928938,), (1352928939,), (1352928940,), (1352928941,), (1352928942,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328878 , 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=22328867 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 (22328878) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328879 , 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=22328867 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 (22328879) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328880 , 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=22328867 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 (22328880) result : ((1352928076,), (1352928077,), (1352928078,), (1352928079,), (1352928080,), (1352928872,), (1352928873,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328881 , 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=22328867 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 (22328881) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328882 , 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=22328867 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 (22328882) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328883 , 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=22328867 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 (22328883) result : ((1352928055,), (1352928944,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22328884 , 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=22328867 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 (22328884) result : ((1352928946,), (1352928947,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22328867) result : ((1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22328867 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','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`=22328867 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__23042025_07_00_14_10276_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22328867, 22328885, 4417, 0.5, 492668766, 979], [22328867, 22328886, 4417, 0.5, 492725882, 979], [22328867, 22328887, 4417, 0.5, 2107755527, 979], [22328867, 22328888, 4417, 0.5, 493202403, 979], [22328867, 22328889, 4417, 0.5, 2107752385, 979], [22328867, 22328890, 4417, 0.5, 493012381, 979], [22328867, 22328891, 4417, 0.5, 2107753020, 979], [22328867, 22328892, 4417, 0.5, 2107753024, 979], [22328867, 22328893, 4417, 0.5, 492777938, 979], [22328867, 22328894, 4417, 0.5, 492628673, 979], [22328867, 22328895, 4417, 0.5, 2107752406, 979], [22328867, 22328896, 4417, 0.5, 702398920, 979]] 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`=22328867 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','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`=22328867 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','mal_croppe','kraft','Teint_Dans_La_Masse','environnement','Carton_gris','Carton_brun','flou','metal','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22328867, 'sub_port_id': 22328885, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786968, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'plastique': {'main_port_id': 22328867, 'sub_port_id': 22328886, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786969, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'mal_croppe': {'main_port_id': 22328867, 'sub_port_id': 22328887, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786970, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'kraft': {'main_port_id': 22328867, 'sub_port_id': 22328888, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786971, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22328867, 'sub_port_id': 22328889, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786972, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'environnement': {'main_port_id': 22328867, 'sub_port_id': 22328890, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786973, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'Carton_gris': {'main_port_id': 22328867, 'sub_port_id': 22328891, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786974, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'Carton_brun': {'main_port_id': 22328867, 'sub_port_id': 22328892, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786975, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'flou': {'main_port_id': 22328867, 'sub_port_id': 22328893, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786976, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'metal': {'main_port_id': 22328867, 'sub_port_id': 22328894, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786977, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'autre_refus': {'main_port_id': 22328867, 'sub_port_id': 22328895, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786978, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}, 'cartonnette': {'main_port_id': 22328867, 'sub_port_id': 22328896, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14786979, 'last_updated_at': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 7, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 7, 6, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328873 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328876 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328877 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328890,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328878 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328891,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328879 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328892,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328880 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328893,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328881 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328894,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328882 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328895,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328883 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22328896,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22328884 lien utilise dans velours : https://www.fotonower.com/velours/22328885,22328886,22328887,22328888,22328889,22328890,22328891,22328892,22328893,22328894,22328895,22328896?tags=papier,plastique,mal_croppe,kraft,Teint_Dans_La_Masse,environnement,Carton_gris,Carton_brun,flou,metal,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22328867]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] map_info['map_portfolio_photo'] : {22328867: [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579]} final : False mtd_id 4302 list_pids : [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] Looping around the photos to save general results len do output : 1 /22328867. 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, '2751669') ('4302', '22328867', '1352928910', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22328867', "{'papier': 22328873, 'plastique': 22328874, 'mal_croppe': 22328875, 'kraft': 22328876, 'Teint_Dans_La_Masse': 22328877, 'environnement': 22328878, 'Carton_gris': 22328879, 'Carton_brun': 22328880, 'flou': 22328881, 'metal': 22328882, 'autre_refus': 22328883, 'cartonnette': 22328884}", None, None, None, None, '2751669'), ('4302', '22328867', '1352928910', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669')] time used for this insertion : 0.01555180549621582 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9863927364349365 time spend to save output : 0.015912532806396484 total time spend for step 1 : 2.002305269241333 step2:final Wed Apr 23 07:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22328867) 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 22328867 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352924771,1352924719,1352924663,1352924579,1352925916,1352925839,1352925762,1352927572,1352927487,1352927393,1352927023,1352926946,1352927831,1352927828,1352927825,1352927822,1352928483,1352928429,1352928351,1352928295,1352928910,1352928907,1352928904,1352928895,1352928869); 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([22328867]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} new output for save of step final : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] map_info['map_portfolio_photo'] : {22328867: [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579]} final : False mtd_id 4302 list_pids : [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] Looping around the photos to save general results len do output : 25 /1352928910.Didn't retrieve data . /1352928907.Didn't retrieve data . /1352928904.Didn't retrieve data . /1352928895.Didn't retrieve data . /1352928869.Didn't retrieve data . /1352928483.Didn't retrieve data . /1352928429.Didn't retrieve data . /1352928351.Didn't retrieve data . /1352928295.Didn't retrieve data . /1352927831.Didn't retrieve data . /1352927828.Didn't retrieve data . /1352927825.Didn't retrieve data . /1352927822.Didn't retrieve data . /1352927572.Didn't retrieve data . /1352927487.Didn't retrieve data . /1352927393.Didn't retrieve data . /1352927023.Didn't retrieve data . /1352926946.Didn't retrieve data . /1352925916.Didn't retrieve data . /1352925839.Didn't retrieve data . /1352925762.Didn't retrieve data . /1352924771.Didn't retrieve data . /1352924719.Didn't retrieve data . /1352924663.Didn't retrieve data . /1352924579.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, '2751669') ('4302', '22328867', '1352928910', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '22328867', '1352928910', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928907', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928904', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928895', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928869', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928483', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928429', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928351', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352928295', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927831', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927828', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927825', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927822', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927572', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927487', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927393', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352927023', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352926946', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352925916', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352925839', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352925762', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352924771', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352924719', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352924663', '0.10021941775731288', None, None, None, None, '2751669'), ('4302', '22328867', '1352924579', '0.10021941775731288', None, None, None, None, '2751669')] time used for this insertion : 0.016182899475097656 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.028135061264038086 time spend to save output : 0.01719379425048828 total time spend for step 2 : 0.04532885551452637 step3:velours_tree Wed Apr 23 07:06: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 : {22328867: [{'papier': 22328873, 'plastique': 22328874, 'mal_croppe': 22328875, 'kraft': 22328876, 'Teint_Dans_La_Masse': 22328877, 'environnement': 22328878, 'Carton_gris': 22328879, 'Carton_brun': 22328880, 'flou': 22328881, 'metal': 22328882, 'autre_refus': 22328883, 'cartonnette': 22328884}]} input_args_next_step : {22328867: ()} output_args : {22328867: [{'papier': 22328873, 'plastique': 22328874, 'mal_croppe': 22328875, 'kraft': 22328876, 'Teint_Dans_La_Masse': 22328877, 'environnement': 22328878, 'Carton_gris': 22328879, 'Carton_brun': 22328880, 'flou': 22328881, 'metal': 22328882, 'autre_refus': 22328883, 'cartonnette': 22328884}]} args : 22328867 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22328873, 'plastique': 22328874, 'mal_croppe': 22328875, 'kraft': 22328876, 'Teint_Dans_La_Masse': 22328877, 'environnement': 22328878, 'Carton_gris': 22328879, 'Carton_brun': 22328880, 'flou': 22328881, 'metal': 22328882, 'autre_refus': 22328883, 'cartonnette': 22328884},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22328867) 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([22328867]) 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.29363369941711426 time spend to save output : 4.410743713378906e-05 total time spend for step 3 : 0.29367780685424805 step4:send_mail_cod Wed Apr 23 07:06:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} input_args_next_step : {1352928910: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928910 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928907 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928904 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928895 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928869 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928483 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928429 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928351 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352928295 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927831 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927828 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927825 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927822 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927572 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927487 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927393 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352927023 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352926946 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352925916 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352925839 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352925762 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352924771 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352924719 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352924663 depend.output_id : 0 input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ()} output_args : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',)} args : 1352924579 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 : {22328867: [{'papier': 22328873, 'plastique': 22328874, 'mal_croppe': 22328875, 'kraft': 22328876, 'Teint_Dans_La_Masse': 22328877, 'environnement': 22328878, 'Carton_gris': 22328879, 'Carton_brun': 22328880, 'flou': 22328881, 'metal': 22328882, 'autre_refus': 22328883, 'cartonnette': 22328884}]} input_args_next_step : {1352928910: ('0.10021941775731288',), 1352928907: ('0.10021941775731288',), 1352928904: ('0.10021941775731288',), 1352928895: ('0.10021941775731288',), 1352928869: ('0.10021941775731288',), 1352928483: ('0.10021941775731288',), 1352928429: ('0.10021941775731288',), 1352928351: ('0.10021941775731288',), 1352928295: ('0.10021941775731288',), 1352927831: ('0.10021941775731288',), 1352927828: ('0.10021941775731288',), 1352927825: ('0.10021941775731288',), 1352927822: ('0.10021941775731288',), 1352927572: ('0.10021941775731288',), 1352927487: ('0.10021941775731288',), 1352927393: ('0.10021941775731288',), 1352927023: ('0.10021941775731288',), 1352926946: ('0.10021941775731288',), 1352925916: ('0.10021941775731288',), 1352925839: ('0.10021941775731288',), 1352925762: ('0.10021941775731288',), 1352924771: ('0.10021941775731288',), 1352924719: ('0.10021941775731288',), 1352924663: ('0.10021941775731288',), 1352924579: ('0.10021941775731288',), 22328867: ()} output_args : {22328867: [{'papier': 22328873, 'plastique': 22328874, 'mal_croppe': 22328875, 'kraft': 22328876, 'Teint_Dans_La_Masse': 22328877, 'environnement': 22328878, 'Carton_gris': 22328879, 'Carton_brun': 22328880, 'flou': 22328881, 'metal': 22328882, 'autre_refus': 22328883, 'cartonnette': 22328884}]} args : 22328867 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 :26, first value : ('0.10021941775731288',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22328867) 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 (1352928910,1352928907,1352928904,1352928895,1352928869,1352928483,1352928429,1352928351,1352928295,1352927831,1352927828,1352927825,1352927822,1352927572,1352927487,1352927393,1352927023,1352926946,1352925916,1352925839,1352925762,1352924771,1352924719,1352924663,1352924579) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352924579 begin to download photo : 1352925916 begin to download photo : 1352927822 begin to download photo : 1352928429 begin to download photo : 1352928910 download finish for photo 1352925916 begin to download photo : 1352926946 download finish for photo 1352924579 begin to download photo : 1352924663 download finish for photo 1352928429 begin to download photo : 1352928483 download finish for photo 1352927822 begin to download photo : 1352927825 download finish for photo 1352928910 download finish for photo 1352926946 begin to download photo : 1352927023 download finish for photo 1352928483 begin to download photo : 1352928869 download finish for photo 1352924663 begin to download photo : 1352924719 download finish for photo 1352927825 begin to download photo : 1352927828 download finish for photo 1352927023 begin to download photo : 1352927393 download finish for photo 1352928869 begin to download photo : 1352928895 download finish for photo 1352924719 begin to download photo : 1352924771 download finish for photo 1352927828 begin to download photo : 1352927831 download finish for photo 1352927393 begin to download photo : 1352927487 download finish for photo 1352928895 begin to download photo : 1352928904 download finish for photo 1352924771 begin to download photo : 1352925762 download finish for photo 1352927831 begin to download photo : 1352928295 download finish for photo 1352927487 begin to download photo : 1352927572 download finish for photo 1352925762 begin to download photo : 1352925839 download finish for photo 1352928904 begin to download photo : 1352928907 download finish for photo 1352928295 begin to download photo : 1352928351 download finish for photo 1352927572 download finish for photo 1352925839 download finish for photo 1352928351 download finish for photo 1352928907 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P22328867_23-04-2025_07_07_00.pdf 22328874 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=22328874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352928882: '1745384743_2190913_1352927828_7c02985c49e4d6f15383cfbfcd5e2424_rle_crop_3764884362_0.png'} change filename to text .imagette223288741745384820/ imagette223288741745384820/1745384743_2190913_1352927828_7c02985c49e4d6f15383cfbfcd5e2424_rle_crop_3764884362_0.png.png imagette223288751745384820/ imagette223288761745384820/ imagette223288811745384820/ imagette223288821745384820/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f65dfa39cbd5edb42720e8b535b4034d_15584131.png imagette223288741745384820 22328875 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=22328875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223288751745384820 22328876 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=22328876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223288761745384820 22328881 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=22328881 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223288811745384820 22328882 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=22328882 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223288821745384820 22328883 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=22328883 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352928055: '1745384652_3876001_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f_rle_crop_3764883443_0.png', 1352928944: '1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885965_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fd583c289ea8fe8eb6f935b62c662f87_45136351.png change filename to text .imagette223288831745384820/ imagette223288831745384820/1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885965_0.png.png imagette223288831745384820/1745384652_3876001_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f_rle_crop_3764883443_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fdcd420311a8dfefecb03ee7bce9f574_39230819.png imagette223288831745384820 22328884 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=22328884 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352928946: '1745384770_3877197_1352927831_f8229cc6b45da1718c4dcff298a79aa8_rle_crop_3764885927_0.png', 1352928947: '1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/03c145ed8b63ab58d8f4dba696c67b7b_81551009.png change filename to text .imagette223288841745384820/ imagette223288841745384820/1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885966_0.png.png imagette223288841745384820/1745384770_3877197_1352927831_f8229cc6b45da1718c4dcff298a79aa8_rle_crop_3764885927_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/5086de84dcf157d2fb7d40b86eaf9f75_49880710.png imagette223288841745384820 22328877 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=22328877 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352928041: '1745384652_3876001_1352924663_768a6c7be869b0b423a322f62b574c8c_rle_crop_3764883459_0.png', 1352928042: '1745384652_3876001_1352924579_39bda1cb056e56f3f48cb4c025b2e72e_rle_crop_3764883471_0.png', 1352928870: '1745384743_2190913_1352927828_7c02985c49e4d6f15383cfbfcd5e2424_rle_crop_3764884359_0.png', 1352928871: '1745384743_2190913_1352927822_be697a44521354566fa0bf8ab40b5849_rle_crop_3764884386_0.png', 1352928938: '1745384770_3877197_1352927831_f8229cc6b45da1718c4dcff298a79aa8_rle_crop_3764885929_0.png', 1352928939: '1745384770_3877197_1352927487_6c0180d6c85a4c77edb7544eb931d73d_rle_crop_3764885945_0.png', 1352928940: '1745384770_3877197_1352927487_6c0180d6c85a4c77edb7544eb931d73d_rle_crop_3764885948_0.png', 1352928941: '1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885973_0.png', 1352928942: '1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885972_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e0e9b1f1c3df21256a8430cbae70fe74_45601358.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/78750f9f67968ea1542eaed009c5a65d_71465934.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d7415c41fbc93089f40790530a4a8882_28154668.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3a7c343772efe333ac6bb4f47f19c9ee_29714948.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b8f3f50c9292ef92fec23b1d6cdaab4a_61498064.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d50e39ccfbc0d42cef82c9de615eb56b_66565942.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dec87fb0ae3e7e500f23cb3f12f9008d_30161554.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/94301bac159db732ea6f8ceb96f03f30_96992826.png change filename to text .imagette223288771745384820/ imagette223288771745384820/1745384743_2190913_1352927828_7c02985c49e4d6f15383cfbfcd5e2424_rle_crop_3764884359_0.png.png imagette223288771745384820/1745384770_3877197_1352927487_6c0180d6c85a4c77edb7544eb931d73d_rle_crop_3764885945_0.png.png imagette223288771745384820/1745384652_3876001_1352924579_39bda1cb056e56f3f48cb4c025b2e72e_rle_crop_3764883471_0.png.png imagette223288771745384820/1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885973_0.png.png imagette223288771745384820/1745384743_2190913_1352927822_be697a44521354566fa0bf8ab40b5849_rle_crop_3764884386_0.png.png imagette223288771745384820/1745384770_3877197_1352927831_f8229cc6b45da1718c4dcff298a79aa8_rle_crop_3764885929_0.png.png imagette223288771745384820/1745384770_3877197_1352927393_ffa0a8498b8d1058d2ad70e59b423a82_rle_crop_3764885972_0.png.png imagette223288771745384820/1745384770_3877197_1352927487_6c0180d6c85a4c77edb7544eb931d73d_rle_crop_3764885948_0.png.png imagette223288771745384820/1745384652_3876001_1352924663_768a6c7be869b0b423a322f62b574c8c_rle_crop_3764883459_0.png.png imagette223288791745384820/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e65fc5008e774c197bec405b73d90d08_44803861.png imagette223288771745384820 22328879 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=22328879 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223288791745384820 22328880 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=22328880 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352928076: '1745384652_3876001_1352924771_b9694f02cdc803aadcc22328685383fd_rle_crop_3764883429_0.png', 1352928077: '1745384652_3876001_1352924771_b9694f02cdc803aadcc22328685383fd_rle_crop_3764883434_0.png', 1352928078: '1745384652_3876001_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f_rle_crop_3764883444_0.png', 1352928079: '1745384652_3876001_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f_rle_crop_3764883450_0.png', 1352928080: '1745384652_3876001_1352924579_39bda1cb056e56f3f48cb4c025b2e72e_rle_crop_3764883468_0.png', 1352928872: '1745384743_2190913_1352927825_0a339a3fd6e0b84c435f3a0e18254fdb_rle_crop_3764884373_0.png', 1352928873: '1745384743_2190913_1352927825_0a339a3fd6e0b84c435f3a0e18254fdb_rle_crop_3764884377_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b1a5d4c51f26bb2d8813a041e405d28c_98254524.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b40bd5f7cd429309126e2c80f031a9de_79887424.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1404f08dc57d6c31765086c9c63a0b30_39968025.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f5c4c1ec54e7194b4ceccc0b3c25b142_37010470.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3c90ecdc1ded6abcd70b2d0261152269_24130771.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/685bf43a1381b4b1f707a27961a3d598_80086084.png change filename to text .imagette223288801745384820/ imagette223288801745384820/1745384743_2190913_1352927825_0a339a3fd6e0b84c435f3a0e18254fdb_rle_crop_3764884373_0.png.png imagette223288801745384820/1745384652_3876001_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f_rle_crop_3764883450_0.png.png imagette223288801745384820/1745384652_3876001_1352924771_b9694f02cdc803aadcc22328685383fd_rle_crop_3764883434_0.png.png imagette223288801745384820/1745384652_3876001_1352924579_39bda1cb056e56f3f48cb4c025b2e72e_rle_crop_3764883468_0.png.png imagette223288801745384820/1745384652_3876001_1352924771_b9694f02cdc803aadcc22328685383fd_rle_crop_3764883429_0.png.png imagette223288801745384820/1745384652_3876001_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f_rle_crop_3764883444_0.png.png imagette223288801745384820/1745384743_2190913_1352927825_0a339a3fd6e0b84c435f3a0e18254fdb_rle_crop_3764884377_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/604ccd9ee7aa46c7ab838b5ab09aad18_31318930.png imagette223288801745384820 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22328867 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22328885,22328886,22328887,22328888,22328889,22328890,22328891,22328892,22328893,22328894,22328895,22328896?tags=papier,plastique,mal_croppe,kraft,Teint_Dans_La_Masse,environnement,Carton_gris,Carton_brun,flou,metal,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1352928910] : ('0.10021941775731288',) no score found for photo 1352928910 We are sending mail with results at report@fotonower.com args[1352928907] : ('0.10021941775731288',) no score found for photo 1352928907 We are sending mail with results at report@fotonower.com args[1352928904] : ('0.10021941775731288',) no score found for photo 1352928904 We are sending mail with results at report@fotonower.com args[1352928895] : ('0.10021941775731288',) no score found for photo 1352928895 We are sending mail with results at report@fotonower.com args[1352928869] : ('0.10021941775731288',) no score found for photo 1352928869 We are sending mail with results at report@fotonower.com args[1352928483] : ('0.10021941775731288',) no score found for photo 1352928483 We are sending mail with results at report@fotonower.com args[1352928429] : ('0.10021941775731288',) no score found for photo 1352928429 We are sending mail with results at report@fotonower.com args[1352928351] : ('0.10021941775731288',) no score found for photo 1352928351 We are sending mail with results at report@fotonower.com args[1352928295] : ('0.10021941775731288',) no score found for photo 1352928295 We are sending mail with results at report@fotonower.com args[1352927831] : ('0.10021941775731288',) no score found for photo 1352927831 We are sending mail with results at report@fotonower.com args[1352927828] : ('0.10021941775731288',) no score found for photo 1352927828 We are sending mail with results at report@fotonower.com args[1352927825] : ('0.10021941775731288',) no score found for photo 1352927825 We are sending mail with results at report@fotonower.com args[1352927822] : ('0.10021941775731288',) no score found for photo 1352927822 We are sending mail with results at report@fotonower.com args[1352927572] : ('0.10021941775731288',) no score found for photo 1352927572 We are sending mail with results at report@fotonower.com args[1352927487] : ('0.10021941775731288',) no score found for photo 1352927487 We are sending mail with results at report@fotonower.com args[1352927393] : ('0.10021941775731288',) no score found for photo 1352927393 We are sending mail with results at report@fotonower.com args[1352927023] : ('0.10021941775731288',) no score found for photo 1352927023 We are sending mail with results at report@fotonower.com args[1352926946] : ('0.10021941775731288',) no score found for photo 1352926946 We are sending mail with results at report@fotonower.com args[1352925916] : ('0.10021941775731288',) no score found for photo 1352925916 We are sending mail with results at report@fotonower.com args[1352925839] : ('0.10021941775731288',) no score found for photo 1352925839 We are sending mail with results at report@fotonower.com args[1352925762] : ('0.10021941775731288',) no score found for photo 1352925762 We are sending mail with results at report@fotonower.com args[1352924771] : ('0.10021941775731288',) no score found for photo 1352924771 We are sending mail with results at report@fotonower.com args[1352924719] : ('0.10021941775731288',) no score found for photo 1352924719 We are sending mail with results at report@fotonower.com args[1352924663] : ('0.10021941775731288',) no score found for photo 1352924663 We are sending mail with results at report@fotonower.com args[1352924579] : ('0.10021941775731288',) no score found for photo 1352924579 We are sending mail with results at report@fotonower.com refus_total : 0.10021941775731288 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=22328867 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_P22328867_23-04-2025_07_07_00.pdf results_Auto_P22328867_23-04-2025_07_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_07_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','22328867','results_Auto_P22328867_23-04-2025_07_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_07_00.pdf','pdf','','0.26','0.10021941775731288') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22328867]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] map_info['map_portfolio_photo'] : {22328867: [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579]} final : False mtd_id 4302 list_pids : [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] 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, '2751669') ('4302', '22328867', '1352928910', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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', '22328867', '1352928910', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669')] time used for this insertion : 0.015134334564208984 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.430912494659424 time spend to save output : 0.015530109405517578 total time spend for step 4 : 3.4464426040649414 step5:split_time_score Wed Apr 23 07:07: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 : ['22328867'] 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 : [('22328867',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22328867) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352928910: {'path': 'temp/1745384819_4190196_1352928910_39ecfd08b2f740f078f4099170b85942.jpg', 'extension': 'jpg'}, 1352925916: {'path': 'temp/1745384819_4190196_1352925916_3b8b126d769118e9dc613533cd4de406.jpg', 'extension': 'jpg'}, 1352926946: {'path': 'temp/1745384819_4190196_1352926946_1a5ea2c469e332c7894ba65a23104e12.jpg', 'extension': 'jpg'}, 1352927023: {'path': 'temp/1745384819_4190196_1352927023_dd91e8e636874b17cf21e8bd455c6bf3.jpg', 'extension': 'jpg'}, 1352927393: {'path': 'temp/1745384819_4190196_1352927393_ffa0a8498b8d1058d2ad70e59b423a82.jpg', 'extension': 'jpg'}, 1352927487: {'path': 'temp/1745384819_4190196_1352927487_6c0180d6c85a4c77edb7544eb931d73d.jpg', 'extension': 'jpg'}, 1352927572: {'path': 'temp/1745384819_4190196_1352927572_f5938ee2d794603b92ef559a6c5a9693.jpg', 'extension': 'jpg'}, 1352924579: {'path': 'temp/1745384819_4190196_1352924579_39bda1cb056e56f3f48cb4c025b2e72e.jpg', 'extension': 'jpg'}, 1352924663: {'path': 'temp/1745384819_4190196_1352924663_768a6c7be869b0b423a322f62b574c8c.jpg', 'extension': 'jpg'}, 1352924719: {'path': 'temp/1745384819_4190196_1352924719_347cf25b9e97fb0f4be0bbcbde28d20f.jpg', 'extension': 'jpg'}, 1352924771: {'path': 'temp/1745384819_4190196_1352924771_b9694f02cdc803aadcc22328685383fd.jpg', 'extension': 'jpg'}, 1352925762: {'path': 'temp/1745384819_4190196_1352925762_ecce5ddb646ee6a14f80cb57da65586c.jpg', 'extension': 'jpg'}, 1352925839: {'path': 'temp/1745384819_4190196_1352925839_ca27225fb0f6c2f04b36efe1b7c5d819.jpg', 'extension': 'jpg'}, 1352927822: {'path': 'temp/1745384819_4190196_1352927822_be697a44521354566fa0bf8ab40b5849.jpg', 'extension': 'jpg'}, 1352927825: {'path': 'temp/1745384819_4190196_1352927825_0a339a3fd6e0b84c435f3a0e18254fdb.jpg', 'extension': 'jpg'}, 1352927828: {'path': 'temp/1745384819_4190196_1352927828_7c02985c49e4d6f15383cfbfcd5e2424.jpg', 'extension': 'jpg'}, 1352927831: {'path': 'temp/1745384819_4190196_1352927831_f8229cc6b45da1718c4dcff298a79aa8.jpg', 'extension': 'jpg'}, 1352928295: {'path': 'temp/1745384819_4190196_1352928295_91111b9cedd6ffb19e554e63a9bf213e.jpg', 'extension': 'jpg'}, 1352928351: {'path': 'temp/1745384819_4190196_1352928351_1781462b601f3a7878fb58db67469940.jpg', 'extension': 'jpg'}, 1352928429: {'path': 'temp/1745384819_4190196_1352928429_193fb960f11ebeaaa8aeadfa23b71343.jpg', 'extension': 'jpg'}, 1352928483: {'path': 'temp/1745384819_4190196_1352928483_e7478ab2f7c0b61f54e228898472453e.jpg', 'extension': 'jpg'}, 1352928869: {'path': 'temp/1745384819_4190196_1352928869_34af3f8230cbbae0e582070354efc633.jpg', 'extension': 'jpg'}, 1352928895: {'path': 'temp/1745384819_4190196_1352928895_a3a67611997553ed93df4c7b61c7d150.jpg', 'extension': 'jpg'}, 1352928904: {'path': 'temp/1745384819_4190196_1352928904_e1483b2498155fdbb7088b71ad4efdf6.jpg', 'extension': 'jpg'}, 1352928907: {'path': 'temp/1745384819_4190196_1352928907_a11239a52e69eb507476720db6bb48bc.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 = 22328867; (('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 = 22328867 group by h (('07', 25),) 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=22328867 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 (22328867) 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 (22328867) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22328867 Nombre de photos uploadées : 25 / 23040 (0%) 23042025 22328867 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 23042025 22328867 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1352924771, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b9694f02cdc803aadcc22328685383fd.jpg', 'username': None, 'uploaded_at': 1745384467, 'text': 'image_23042025_07_00_14_10275.jpg 1e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1352924719, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/347cf25b9e97fb0f4be0bbcbde28d20f.jpg', 'username': None, 'uploaded_at': 1745384467, 'text': 'image_23042025_07_00_24_10140.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1352924663, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/768a6c7be869b0b423a322f62b574c8c.jpg', 'username': None, 'uploaded_at': 1745384467, 'text': 'image_23042025_07_00_34_10145.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1352924579, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/39bda1cb056e56f3f48cb4c025b2e72e.jpg', 'username': None, 'uploaded_at': 1745384467, 'text': 'image_23042025_07_00_44_10140.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001207113265991211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22328867, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023785114288330078 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747935, 'mtr_portfolio_id': 22327416, 'dashboard_result_id': 10038647, '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_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747935, 'mtr_portfolio_id': 22327827, 'dashboard_result_id': 10038648, '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_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747935, 'mtr_portfolio_id': 22328173, 'dashboard_result_id': 10038649, '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_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1747935, 'mtr_portfolio_id': 22328867, 'dashboard_result_id': 10038650, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22327416 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': 2751439, 'mtr_portfolio_id': 22327416, 'created_at': datetime.datetime(2025, 4, 23, 6, 34, 58), 'result': '0.06719231217388424', 'result_long': None, 'result_double': None}] Qualite : 0.06719231217388424 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327416 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327416 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_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, 'pht': 3726}}" where mtr_portfolio_id = 22327416 and dashboard_run_id = 1747935 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`=22327416 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038647, 0.06719231217388424, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327416_23-04-2025_06_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327442, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327443, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327445, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327446, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327447, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327448, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327449, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327450, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327451, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327452, '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 = 22327827 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': 2751479, 'mtr_portfolio_id': 22327827, 'created_at': datetime.datetime(2025, 4, 23, 6, 48, 57), 'result': '0.06327099763152055', 'result_long': None, 'result_double': None}] Qualite : 0.06327099763152055 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22327827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22327827 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_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, 'pht': 3726}}" where mtr_portfolio_id = 22327827 and dashboard_run_id = 1747935 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`=22327827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038648, 0.06327099763152055, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22327827_23-04-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22327867, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22327868, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22327869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22327870, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22327871, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22327872, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22327873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22327874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22327875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22327876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22327877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22327878, '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 = 22328173 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': 2751510, 'mtr_portfolio_id': 22328173, 'created_at': datetime.datetime(2025, 4, 23, 7, 2, 58), 'result': '0.06952255225921646', 'result_long': None, 'result_double': None}] Qualite : 0.06952255225921646 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328173 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328173 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_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, 'pht': 3726}}" where mtr_portfolio_id = 22328173 and dashboard_run_id = 1747935 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`=22328173 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038649, 0.06952255225921646, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328173_23-04-2025_07_02_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328174, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22328175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328176, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328177, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328178, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328179, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328180, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328181, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328182, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328183, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328184, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328185, '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 = 22328867 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': 2751669, 'mtr_portfolio_id': 22328867, 'created_at': datetime.datetime(2025, 4, 23, 7, 6, 59), 'result': '0.10021941775731288', 'result_long': None, 'result_double': None}] Qualite : 0.10021941775731288 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22328867 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22328867 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_P22328867_23-04-2025_07_07_00.pdf'}" where mtr_portfolio_id = 22328867 and dashboard_run_id = 1747935 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`=22328867 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10038650, 0.10021941775731288, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22328867_23-04-2025_07_07_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22328873, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22328874, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22328875, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22328876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22328877, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22328878, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22328879, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22328880, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22328881, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22328882, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22328883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22328884, '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 (22327416,22327827,22328173,22328867) result : ((1352919532,), (1352919534,), (1352919536,), (1352919538,), (1352919541,), (1352919580,), (1352919587,), (1352919589,), (1352919591,), (1352919594,), (1352919652,), (1352919660,), (1352919662,), (1352919664,), (1352919698,), (1352919699,), (1352919701,), (1352919703,), (1352919706,), (1352919708,), (1352919756,), (1352919768,), (1352919771,), (1352919773,), (1352919835,), (1352919836,), (1352919837,), (1352919838,), (1352919841,), (1352919843,), (1352919876,), (1352919878,), (1352919880,), (1352919882,), (1352919926,), (1352919927,), (1352919928,), (1352919929,), (1352919930,), (1352919933,), (1352919969,), (1352919974,), (1352919977,), (1352919979,), (1352920010,), (1352920011,), (1352920012,), (1352920013,), (1352920016,), (1352920046,), (1352920048,), (1352920051,), (1352920053,), (1352920056,), (1352920058,), (1352920086,), (1352920087,), (1352920089,), (1352920090,), (1352920119,), (1352920126,), (1352920133,), (1352920137,), (1352920171,), (1352920173,), (1352920174,), (1352920175,), (1352920176,), (1352920218,), (1352920224,), (1352920226,), (1352920228,), (1352920283,), (1352920280,), (1352920282,), (1352920320,), (1352920322,), (1352920324,), (1352920326,), (1352920328,), (1352920373,), (1352921047,), (1352921049,), (1352921065,), (1352921068,), (1352921070,), (1352921186,), (1352921190,), (1352921193,), (1352921196,), (1352921200,), (1352921333,), (1352921349,), (1352921351,), (1352921394,), (1352921395,), (1352921398,), (1352921399,), (1352921426,), (1352921428,), (1352921429,), (1352921430,), (1352921477,), (1352921481,), (1352921483,), (1352921530,), (1352921532,), (1352921575,), (1352921586,), (1352921591,), (1352921595,), (1352921598,), (1352921644,), (1352921647,), (1352921648,), (1352921650,), (1352921702,), (1352921706,), (1352921708,), (1352921710,), (1352921713,), (1352921716,), (1352921752,), (1352921753,), (1352921783,), (1352921785,), (1352921786,), (1352921787,), (1352921816,), (1352921820,), (1352921822,), (1352921864,), (1352921851,), (1352921854,), (1352921857,), (1352921859,), (1352921861,), (1352921892,), (1352921895,), (1352921897,), (1352921899,), (1352921929,), (1352921930,), (1352921931,), (1352921932,), (1352921933,), (1352921972,), (1352921974,), (1352921976,), (1352921978,), (1352921981,), (1352921983,), (1352922010,), (1352922012,), (1352922013,), (1352922014,), (1352922016,), (1352922063,), (1352922064,), (1352922066,), (1352922068,), (1352922094,), (1352922097,), (1352922099,), (1352922101,), (1352922104,), (1352922107,), (1352922139,), (1352922141,), (1352922142,), (1352922143,), (1352922192,), (1352922197,), (1352922198,), (1352922199,), (1352922200,), (1352922233,), (1352922236,), (1352922240,), (1352922243,), (1352922246,), (1352922248,), (1352922298,), (1352922301,), (1352922302,), (1352922656,), (1352922659,), (1352922661,), (1352922683,), (1352922698,), (1352922755,), (1352922757,), (1352922759,), (1352922761,), (1352922766,), (1352922769,), (1352923825,), (1352923859,), (1352923869,), (1352924869,), (1352924579,), (1352924663,), (1352924719,), (1352924771,), (1352925762,), (1352925839,), (1352925916,), (1352926946,), (1352927023,), (1352927393,), (1352927487,), (1352927572,), (1352927822,), (1352927825,), (1352927828,), (1352927831,), (1352928295,), (1352928351,), (1352928429,), (1352928483,), (1352928869,), (1352928895,), (1352928904,), (1352928907,), (1352928910,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22328867]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] map_info['map_portfolio_photo'] : {22328867: [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579]} final : True mtd_id 4302 list_pids : [1352928910, 1352928907, 1352928904, 1352928895, 1352928869, 1352928483, 1352928429, 1352928351, 1352928295, 1352927831, 1352927828, 1352927825, 1352927822, 1352927572, 1352927487, 1352927393, 1352927023, 1352926946, 1352925916, 1352925839, 1352925762, 1352924771, 1352924719, 1352924663, 1352924579] Looping around the photos to save general results len do output : 1 /22328867Didn'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, '2751669') ('4302', '22328867', '1352928910', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669') ('4302', None, None, None, None, None, None, None, '2751669') ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22328867', 'None', None, None, None, None, '2751669'), ('4302', '22328867', '1352928910', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928907', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928904', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928895', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928869', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928483', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928429', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928351', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352928295', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927831', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927828', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927825', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927822', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927572', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927487', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927393', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352927023', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352926946', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925916', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925839', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352925762', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924771', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924719', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924663', None, None, None, None, None, '2751669'), ('4302', '22328867', '1352924579', None, None, None, None, None, '2751669')] time used for this insertion : 0.021817445755004883 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3519551753997803 time spend to save output : 0.022150278091430664 total time spend for step 5 : 0.37410545349121094 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 (2751669) 2.47user 2.43system 0:08.31elapsed 58%CPU (0avgtext+0avgdata 159920maxresident)k 6152inputs+17488outputs (111major+75088minor)pagefaults 0swaps