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 : 2042031 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 (2783757) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2783757) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606058 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2783757'] with mtr_portfolio_ids : ['22606058'] and first list_photo_ids : [] new path : /proc/2042031/ Name: python3 Umask: 0002 State: R (running) Tgid: 2042031 Ngid: 0 Pid: 2042031 PPid: 2042030 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2042031 NSpid: 2042031 NSpgid: 2040002 NSsid: 2040002 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98524 kB VmRSS: 98524 kB RssAnon: 60200 kB RssFile: 38324 kB RssShmem: 0 kB VmData: 865976 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 560 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: 52 nonvoluntary_ctxt_switches: 147 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2042031', 'Ngid': '0', 'Pid': '2042031', 'PPid': '2042030', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2042031', 'NSpid': '2042031', 'NSpgid': '2040002', 'NSsid': '2040002', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98524 kB', 'VmRSS': '98524 kB', 'RssAnon': '60200 kB', 'RssFile': '38324 kB', 'RssShmem': '0 kB', 'VmData': '865976 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '560 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': '00000 result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606064 , 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=22606058 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 (22606064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606065 , 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=22606058 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 (22606065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606066 , 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=22606058 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 (22606066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606067 , 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=22606058 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 (22606067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606068 , 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=22606058 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 (22606068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606069 , 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=22606058 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 (22606069) result : ((1355323925,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606070 , 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=22606058 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 (22606070) result : ((1355323912,), (1355323914,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606071 , 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=22606058 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 (22606071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606072 , 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=22606058 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 (22606072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606073 , 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=22606058 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 (22606073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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 22606074 , 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=22606058 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 (22606074) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22606058) result : ((1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) 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`=22606058 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','Teint_Dans_La_Masse','plastique','environnement','Carton_brun','kraft','cartonnette','metal','papier','flou','autre_refus')) 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`=22606058 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_gris','Teint_Dans_La_Masse','plastique','environnement','Carton_brun','kraft','cartonnette','metal','papier','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 22606058, 'sub_port_id': 22606075, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034905, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'papier': {'main_port_id': 22606058, 'sub_port_id': 22606076, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034906, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'mal_croppe': {'main_port_id': 22606058, 'sub_port_id': 22606077, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034907, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'flou': {'main_port_id': 22606058, 'sub_port_id': 22606078, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034908, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'plastique': {'main_port_id': 22606058, 'sub_port_id': 22606079, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034909, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'cartonnette': {'main_port_id': 22606058, 'sub_port_id': 22606080, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034910, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'Carton_gris': {'main_port_id': 22606058, 'sub_port_id': 22606081, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034911, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 22606058, 'sub_port_id': 22606082, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034912, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'environnement': {'main_port_id': 22606058, 'sub_port_id': 22606083, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034913, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'metal': {'main_port_id': 22606058, 'sub_port_id': 22606084, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034914, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'kraft': {'main_port_id': 22606058, 'sub_port_id': 22606085, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034915, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}, 'Carton_brun': {'main_port_id': 22606058, 'sub_port_id': 22606086, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15034916, 'last_updated_at': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 2, 15, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 2, 15, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22606086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22606074 lien utilise dans velours : https://www.fotonower.com/velours/22606075,22606076,22606077,22606078,22606079,22606080,22606081,22606082,22606083,22606084,22606085,22606086?tags=autre_refus,papier,mal_croppe,flou,plastique,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,metal,kraft,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22606058]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] map_info['map_portfolio_photo'] : {22606058: [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507, 1355322596, 1355322562, 1355322133, 1355322099, 1355322041, 1355321979]} final : False mtd_id 4302 list_pids : [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] Looping around the photos to save general results len do output : 1 /22606058. 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, '2783757') ('4302', '22606058', '1355326187', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22606058', "{'autre_refus': 22606063, 'papier': 22606064, 'mal_croppe': 22606065, 'flou': 22606066, 'plastique': 22606067, 'cartonnette': 22606068, 'Carton_gris': 22606069, 'Teint_Dans_La_Masse': 22606070, 'environnement': 22606071, 'metal': 22606072, 'kraft': 22606073, 'Carton_brun': 22606074}", None, None, None, None, '2783757'), ('4302', '22606058', '1355326187', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757')] time used for this insertion : 0.01568150520324707 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4425220489501953 time spend to save output : 0.016135454177856445 total time spend for step 1 : 1.4586575031280518 step2:final Fri May 2 15:06:31 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 (22606058) 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 22606058 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1355322133,1355322099,1355322041,1355321979,1355322596,1355322562,1355323712,1355323647,1355323585,1355323565,1355323507,1355324358,1355324241,1355324153,1355324101,1355324039,1355325317,1355325260,1355325195,1355325139,1355325080,1355325009,1355326187,1355326115,1355326042); 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([22606058]) Inside saveOutput : final : False verbose : True original output for save of step final : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} new output for save of step final : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] map_info['map_portfolio_photo'] : {22606058: [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507, 1355322596, 1355322562, 1355322133, 1355322099, 1355322041, 1355321979]} final : False mtd_id 4302 list_pids : [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] Looping around the photos to save general results len do output : 19 /1355326187.Didn't retrieve data . /1355326115.Didn't retrieve data . /1355326042.Didn't retrieve data . /1355325317.Didn't retrieve data . /1355325260.Didn't retrieve data . /1355325195.Didn't retrieve data . /1355325139.Didn't retrieve data . /1355325080.Didn't retrieve data . /1355325009.Didn't retrieve data . /1355324358.Didn't retrieve data . /1355324241.Didn't retrieve data . /1355324153.Didn't retrieve data . /1355324101.Didn't retrieve data . /1355324039.Didn't retrieve data . /1355323712.Didn't retrieve data . /1355323647.Didn't retrieve data . /1355323585.Didn't retrieve data . /1355323565.Didn't retrieve data . /1355323507.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, '2783757') ('4302', '22606058', '1355326187', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '22606058', '1355326187', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355326115', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355326042', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355325317', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355325260', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355325195', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355325139', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355325080', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355325009', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355324358', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355324241', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355324153', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355324101', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355324039', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355323712', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355323647', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355323585', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355323565', '0.06220075260639757', None, None, None, None, '2783757'), ('4302', '22606058', '1355323507', '0.06220075260639757', None, None, None, None, '2783757')] time used for this insertion : 0.014222860336303711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06472396850585938 time spend to save output : 0.015120983123779297 total time spend for step 2 : 0.07984495162963867 step3:velours_tree Fri May 2 15:06:31 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 : {22606058: [{'autre_refus': 22606063, 'papier': 22606064, 'mal_croppe': 22606065, 'flou': 22606066, 'plastique': 22606067, 'cartonnette': 22606068, 'Carton_gris': 22606069, 'Teint_Dans_La_Masse': 22606070, 'environnement': 22606071, 'metal': 22606072, 'kraft': 22606073, 'Carton_brun': 22606074}]} input_args_next_step : {22606058: ()} output_args : {22606058: [{'autre_refus': 22606063, 'papier': 22606064, 'mal_croppe': 22606065, 'flou': 22606066, 'plastique': 22606067, 'cartonnette': 22606068, 'Carton_gris': 22606069, 'Teint_Dans_La_Masse': 22606070, 'environnement': 22606071, 'metal': 22606072, 'kraft': 22606073, 'Carton_brun': 22606074}]} args : 22606058 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 : ({'autre_refus': 22606063, 'papier': 22606064, 'mal_croppe': 22606065, 'flou': 22606066, 'plastique': 22606067, 'cartonnette': 22606068, 'Carton_gris': 22606069, 'Teint_Dans_La_Masse': 22606070, 'environnement': 22606071, 'metal': 22606072, 'kraft': 22606073, 'Carton_brun': 22606074},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22606058) 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([22606058]) 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.3275105953216553 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.3275563716888428 step4:send_mail_cod Fri May 2 15:06:31 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 : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} input_args_next_step : {1355326187: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355326187 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355326115 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355326042 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355325317 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355325260 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355325195 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355325139 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355325080 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355325009 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355324358 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355324241 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355324153 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355324101 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355324039 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355323712 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355323647 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355323585 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355323565 depend.output_id : 0 input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ()} output_args : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',)} args : 1355323507 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 : {22606058: [{'autre_refus': 22606063, 'papier': 22606064, 'mal_croppe': 22606065, 'flou': 22606066, 'plastique': 22606067, 'cartonnette': 22606068, 'Carton_gris': 22606069, 'Teint_Dans_La_Masse': 22606070, 'environnement': 22606071, 'metal': 22606072, 'kraft': 22606073, 'Carton_brun': 22606074}]} input_args_next_step : {1355326187: ('0.06220075260639757',), 1355326115: ('0.06220075260639757',), 1355326042: ('0.06220075260639757',), 1355325317: ('0.06220075260639757',), 1355325260: ('0.06220075260639757',), 1355325195: ('0.06220075260639757',), 1355325139: ('0.06220075260639757',), 1355325080: ('0.06220075260639757',), 1355325009: ('0.06220075260639757',), 1355324358: ('0.06220075260639757',), 1355324241: ('0.06220075260639757',), 1355324153: ('0.06220075260639757',), 1355324101: ('0.06220075260639757',), 1355324039: ('0.06220075260639757',), 1355323712: ('0.06220075260639757',), 1355323647: ('0.06220075260639757',), 1355323585: ('0.06220075260639757',), 1355323565: ('0.06220075260639757',), 1355323507: ('0.06220075260639757',), 22606058: ()} output_args : {22606058: [{'autre_refus': 22606063, 'papier': 22606064, 'mal_croppe': 22606065, 'flou': 22606066, 'plastique': 22606067, 'cartonnette': 22606068, 'Carton_gris': 22606069, 'Teint_Dans_La_Masse': 22606070, 'environnement': 22606071, 'metal': 22606072, 'kraft': 22606073, 'Carton_brun': 22606074}]} args : 22606058 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 :20, first value : ('0.06220075260639757',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22606058) 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 (1355326187,1355326115,1355326042,1355325317,1355325260,1355325195,1355325139,1355325080,1355325009,1355324358,1355324241,1355324153,1355324101,1355324039,1355323712,1355323647,1355323585,1355323565,1355323507) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1355323507 begin to download photo : 1355323712 begin to download photo : 1355324241 begin to download photo : 1355325139 begin to download photo : 1355326042 download finish for photo 1355326042 begin to download photo : 1355326115 download finish for photo 1355324241 begin to download photo : 1355324358 download finish for photo 1355325139 begin to download photo : 1355325195 download finish for photo 1355323712 begin to download photo : 1355324039 download finish for photo 1355323507 begin to download photo : 1355323565 download finish for photo 1355326115 begin to download photo : 1355326187 download finish for photo 1355324358 begin to download photo : 1355325009 download finish for photo 1355323565 begin to download photo : 1355323585 download finish for photo 1355325195 begin to download photo : 1355325260 download finish for photo 1355324039 begin to download photo : 1355324101 download finish for photo 1355326187 download finish for photo 1355323585 begin to download photo : 1355323647 download finish for photo 1355325260 begin to download photo : 1355325317 download finish for photo 1355325009 begin to download photo : 1355325080 download finish for photo 1355324101 begin to download photo : 1355324153 download finish for photo 1355323647 download finish for photo 1355325317 download finish for photo 1355325080 download finish for photo 1355324153 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette226060631746191192/ imagette226060651746191192/ imagette226060661746191192/ imagette226060671746191192/ imagette226060681746191192/ imagette226060721746191192/ imagette226060731746191192/ length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P22606058_02-05-2025_15_06_32.pdf 22606063 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=22606063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060631746191192 22606065 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=22606065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060651746191192 22606066 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=22606066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060661746191192 22606067 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=22606067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060671746191192 22606068 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=22606068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060681746191192 22606072 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=22606072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060721746191192 22606073 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=22606073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060731746191192 22606069 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=22606069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355323925: '1746190993_2676846_1355322133_aa68bea40b9bd6ccac924b2b01ceb4f8_rle_crop_3779922849_0.png'} change filename to text .imagette226060691746191192/ imagette226060691746191192/1746190993_2676846_1355322133_aa68bea40b9bd6ccac924b2b01ceb4f8_rle_crop_3779922849_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/4bc0c76982f6f6029ed6286d4a0c32f9_41376178.png imagette226060691746191192 22606070 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=22606070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1355323912: '1746190993_2676846_1355322133_aa68bea40b9bd6ccac924b2b01ceb4f8_rle_crop_3779922853_0.png', 1355323914: '1746190993_2676846_1355322041_d16b05f517fd82ed5b424b546cff3ec5_rle_crop_3779922884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/b9393babffa05c11c528b465fa254759_23386722.png change filename to text .imagette226060701746191192/ imagette226060701746191192/1746190993_2676846_1355322041_d16b05f517fd82ed5b424b546cff3ec5_rle_crop_3779922884_0.png.png imagette226060701746191192/1746190993_2676846_1355322133_aa68bea40b9bd6ccac924b2b01ceb4f8_rle_crop_3779922853_0.png.png imagette226060741746191192/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/1034049daa80fed62ccd56567f51b53b_36923280.png imagette226060701746191192 22606074 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=22606074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette226060741746191192 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22606058 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22606075,22606076,22606077,22606078,22606079,22606080,22606081,22606082,22606083,22606084,22606085,22606086?tags=autre_refus,papier,mal_croppe,flou,plastique,cartonnette,Carton_gris,Teint_Dans_La_Masse,environnement,metal,kraft,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1355326187] : ('0.06220075260639757',) no score found for photo 1355326187 We are sending mail with results at report@fotonower.com args[1355326115] : ('0.06220075260639757',) no score found for photo 1355326115 We are sending mail with results at report@fotonower.com args[1355326042] : ('0.06220075260639757',) no score found for photo 1355326042 We are sending mail with results at report@fotonower.com args[1355325317] : ('0.06220075260639757',) no score found for photo 1355325317 We are sending mail with results at report@fotonower.com args[1355325260] : ('0.06220075260639757',) no score found for photo 1355325260 We are sending mail with results at report@fotonower.com args[1355325195] : ('0.06220075260639757',) no score found for photo 1355325195 We are sending mail with results at report@fotonower.com args[1355325139] : ('0.06220075260639757',) no score found for photo 1355325139 We are sending mail with results at report@fotonower.com args[1355325080] : ('0.06220075260639757',) no score found for photo 1355325080 We are sending mail with results at report@fotonower.com args[1355325009] : ('0.06220075260639757',) no score found for photo 1355325009 We are sending mail with results at report@fotonower.com args[1355324358] : ('0.06220075260639757',) no score found for photo 1355324358 We are sending mail with results at report@fotonower.com args[1355324241] : ('0.06220075260639757',) no score found for photo 1355324241 We are sending mail with results at report@fotonower.com args[1355324153] : ('0.06220075260639757',) no score found for photo 1355324153 We are sending mail with results at report@fotonower.com args[1355324101] : ('0.06220075260639757',) no score found for photo 1355324101 We are sending mail with results at report@fotonower.com args[1355324039] : ('0.06220075260639757',) no score found for photo 1355324039 We are sending mail with results at report@fotonower.com args[1355323712] : ('0.06220075260639757',) no score found for photo 1355323712 We are sending mail with results at report@fotonower.com args[1355323647] : ('0.06220075260639757',) no score found for photo 1355323647 We are sending mail with results at report@fotonower.com args[1355323585] : ('0.06220075260639757',) no score found for photo 1355323585 We are sending mail with results at report@fotonower.com args[1355323565] : ('0.06220075260639757',) no score found for photo 1355323565 We are sending mail with results at report@fotonower.com args[1355323507] : ('0.06220075260639757',) no score found for photo 1355323507 We are sending mail with results at report@fotonower.com refus_total : 0.06220075260639757 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=22606058 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_P22606058_02-05-2025_15_06_32.pdf results_Auto_P22606058_02-05-2025_15_06_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22606058_02-05-2025_15_06_32.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','22606058','results_Auto_P22606058_02-05-2025_15_06_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22606058_02-05-2025_15_06_32.pdf','pdf','','0.16','0.06220075260639757') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22606058]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] map_info['map_portfolio_photo'] : {22606058: [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507, 1355322596, 1355322562, 1355322133, 1355322099, 1355322041, 1355321979]} final : False mtd_id 4302 list_pids : [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] 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, '2783757') ('4302', '22606058', '1355326187', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22606058', '1355326187', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757')] time used for this insertion : 0.015443801879882812 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9818310737609863 time spend to save output : 0.01569843292236328 total time spend for step 4 : 1.9975295066833496 step5:split_time_score Fri May 2 15:06:33 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 : ['22606058'] 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 : [('22606058',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22606058) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1355326042: {'path': 'temp/1746191191_2042031_1355326042_1fa0c67740a59c1c81a26d16a411203b.jpg', 'extension': 'jpg'}, 1355326115: {'path': 'temp/1746191191_2042031_1355326115_1142f1b9b5d4d248d24c1cf7c5b9eeec.jpg', 'extension': 'jpg'}, 1355326187: {'path': 'temp/1746191191_2042031_1355326187_23eb54d22d09f47547c8c0a8e1c779b7.jpg', 'extension': 'jpg'}, 1355323507: {'path': 'temp/1746191191_2042031_1355323507_0f92e88e818800a2363aa6ec60209a5f.jpg', 'extension': 'jpg'}, 1355323565: {'path': 'temp/1746191191_2042031_1355323565_6896d5619096f4db890f9f0b27f9074e.jpg', 'extension': 'jpg'}, 1355323585: {'path': 'temp/1746191191_2042031_1355323585_f16c8e67ac9d2b84530d7bf4ed1bba23.jpg', 'extension': 'jpg'}, 1355323647: {'path': 'temp/1746191191_2042031_1355323647_9f5210208465126c01ee0f299b427b8a.jpg', 'extension': 'jpg'}, 1355325139: {'path': 'temp/1746191191_2042031_1355325139_10913656699cab9a3d8b3eb6966c7b88.jpg', 'extension': 'jpg'}, 1355325195: {'path': 'temp/1746191191_2042031_1355325195_63a34b3f434d6bc7588e003540b70841.jpg', 'extension': 'jpg'}, 1355325260: {'path': 'temp/1746191191_2042031_1355325260_f355c5ecec78b0ee1f2a951e1d60938b.jpg', 'extension': 'jpg'}, 1355325317: {'path': 'temp/1746191191_2042031_1355325317_921950c7b85d5afcacb8da90f84d1a70.jpg', 'extension': 'jpg'}, 1355324241: {'path': 'temp/1746191191_2042031_1355324241_3107f1e7f962d0b3d3f69d1d9afa4f2c.jpg', 'extension': 'jpg'}, 1355324358: {'path': 'temp/1746191191_2042031_1355324358_99af3fef1f21ac3bd00dcb8629f7d90c.jpg', 'extension': 'jpg'}, 1355325009: {'path': 'temp/1746191191_2042031_1355325009_13a36373d1e80a2d86ff7a54ea2d873a.jpg', 'extension': 'jpg'}, 1355325080: {'path': 'temp/1746191191_2042031_1355325080_0d8914c5ac81e42533d34a4eb596fcc6.jpg', 'extension': 'jpg'}, 1355323712: {'path': 'temp/1746191191_2042031_1355323712_abf81c102e67ad10c688b1d8d3d18b68.jpg', 'extension': 'jpg'}, 1355324039: {'path': 'temp/1746191191_2042031_1355324039_35ce501308770f223e5db62c9e97115e.jpg', 'extension': 'jpg'}, 1355324101: {'path': 'temp/1746191191_2042031_1355324101_547fe2a385e229901727c51495f9d0c9.jpg', 'extension': 'jpg'}, 1355324153: {'path': 'temp/1746191191_2042031_1355324153_d8ec2e01379f29fc5ac9d24ddc126020.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 = 22606058; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22606058 group by h (('15', 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=22606058 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 (22606058) 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 (22606058) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02052025 22606058 Nombre de photos uploadées : 25 / 23040 (0%) 02052025 22606058 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 02052025 22606058 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1355322133, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/aa68bea40b9bd6ccac924b2b01ceb4f8.jpg', 'username': None, 'uploaded_at': 1746190867, 'text': 'image_02052025_15_00_14_010212m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355322099, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/5cf121a65cfa465a4318fbf94a618ecc.jpg', 'username': None, 'uploaded_at': 1746190867, 'text': 'image_02052025_15_00_24_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355322041, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/d16b05f517fd82ed5b424b546cff3ec5.jpg', 'username': None, 'uploaded_at': 1746190867, 'text': 'image_02052025_15_00_34_010149m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1355321979, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/2/a341a4bd8d2b8cb2d2652aad98c63399.jpg', 'username': None, 'uploaded_at': 1746190867, 'text': 'image_02052025_15_00_44_010142m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.239776611328125e-05 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0009672641754150391 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22606058, '2025-05-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1765550,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025322675704956055 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= 1765550 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775296, 'mtr_portfolio_id': 22604792, 'dashboard_result_id': 10244222, '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_P22604792_02-05-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22604793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22604794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22604795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22604796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22604797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22604798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22604799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22604800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22604801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22604802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22604803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22604804, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775296, 'mtr_portfolio_id': 22605092, 'dashboard_result_id': 10244223, '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_P22605092_02-05-2025_14_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22605138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22605139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22605140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22605141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22605142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22605143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22605144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22605145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22605146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22605147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22605148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22605149, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775296, 'mtr_portfolio_id': 22605713, 'dashboard_result_id': 10244224, '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_P22605713_02-05-2025_15_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22605714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22605715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22605716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22605717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22605718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22605719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22605720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22605721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22605722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22605723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22605724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22605725, 'pht': 3726}}"}, {'dashboat_entry_day': 1765550, 'dashboard_run_id': 1775296, 'mtr_portfolio_id': 22606058, 'dashboard_result_id': 10244225, '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_P22606058_02-05-2025_15_03_01.pdf'}"}] 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 = 22604792 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': 2783583, 'mtr_portfolio_id': 22604792, 'created_at': datetime.datetime(2025, 5, 2, 14, 32, 59), 'result': '0.01945970456472961', 'result_long': None, 'result_double': None}] Qualite : 0.01945970456472961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22604792 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22604792_02-05-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22604792 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_P22604792_02-05-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22604793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22604794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22604795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22604796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22604797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22604798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22604799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22604800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22604801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22604802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22604803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22604804, 'pht': 3726}}" where mtr_portfolio_id = 22604792 and dashboard_run_id = 1775297 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`=22604792 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10244222, 0.01945970456472961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22604792_02-05-2025_14_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22604793, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22604794, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22604795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22604796, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22604797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22604798, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22604799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22604800, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22604801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22604802, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22604803, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22604804, '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 = 22605092 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': 2783635, 'mtr_portfolio_id': 22605092, 'created_at': datetime.datetime(2025, 5, 2, 14, 49, 1), 'result': '0.03623925008779537', 'result_long': None, 'result_double': None}] Qualite : 0.03623925008779537 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22605092 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22605092_02-05-2025_14_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22605092 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_P22605092_02-05-2025_14_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22605138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22605139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22605140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22605141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22605142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22605143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22605144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22605145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22605146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22605147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22605148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22605149, 'pht': 3726}}" where mtr_portfolio_id = 22605092 and dashboard_run_id = 1775297 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`=22605092 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10244223, 0.03623925008779537, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22605092_02-05-2025_14_49_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22605138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22605139, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22605140, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22605141, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22605142, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22605143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22605144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22605145, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22605146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22605147, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22605148, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22605149, '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 = 22605713 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': 2783699, 'mtr_portfolio_id': 22605713, 'created_at': datetime.datetime(2025, 5, 2, 15, 3, 28), 'result': '0.061109413484783714', 'result_long': None, 'result_double': None}] Qualite : 0.061109413484783714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22605713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22605713_02-05-2025_15_03_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22605713 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_P22605713_02-05-2025_15_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22605714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22605715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22605716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22605717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22605718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22605719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22605720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22605721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22605722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22605723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22605724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22605725, 'pht': 3726}}" where mtr_portfolio_id = 22605713 and dashboard_run_id = 1775297 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`=22605713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10244224, 0.061109413484783714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22605713_02-05-2025_15_03_28.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22605714, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22605715, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22605716, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22605717, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22605718, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22605719, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22605720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22605721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22605722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22605723, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22605724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22605725, '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 = 22606058 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': 2783757, 'mtr_portfolio_id': 22606058, 'created_at': datetime.datetime(2025, 5, 2, 15, 6, 31), 'result': '0.06220075260639757', 'result_long': None, 'result_double': None}] Qualite : 0.06220075260639757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22606058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22606058_02-05-2025_15_06_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22606058 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_P22606058_02-05-2025_15_06_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22606063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22606064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22606065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22606066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22606067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22606068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22606069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22606070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22606071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22606072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22606073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22606074, 'pht': 3726}}" where mtr_portfolio_id = 22606058 and dashboard_run_id = 1775297 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`=22606058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10244225, 0.06220075260639757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22606058_02-05-2025_15_06_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22606063, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22606064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22606065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22606066, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22606067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22606068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22606069, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22606070, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22606071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22606072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22606073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22606074, '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 (22604792,22605092,22605713,22606058) result : ((1355304820,), (1355305245,), (1355305298,), (1355305869,), (1355305873,), (1355305877,), (1355306089,), (1355306092,), (1355306094,), (1355306172,), (1355306174,), (1355306179,), (1355306186,), (1355306411,), (1355306439,), (1355306651,), (1355306681,), (1355306708,), (1355306716,), (1355306751,), (1355306755,), (1355306757,), (1355306855,), (1355306853,), (1355307014,), (1355307032,), (1355307182,), (1355307219,), (1355307226,), (1355307289,), (1355307301,), (1355307303,), (1355307320,), (1355307634,), (1355307690,), (1355307740,), (1355307799,), (1355308210,), (1355308265,), (1355308311,), (1355308341,), (1355315123,), (1355315400,), (1355315428,), (1355315457,), (1355315485,), (1355315976,), (1355316005,), (1355316153,), (1355316185,), (1355316215,), (1355316248,), (1355316411,), (1355316463,), (1355316514,), (1355316571,), (1355316637,), (1355317428,), (1355317522,), (1355317617,), (1355317692,), (1355318558,), (1355319158,), (1355319179,), (1355319618,), (1355320152,), (1355320155,), (1355320165,), (1355321116,), (1355321210,), (1355322166,), (1355321979,), (1355322041,), (1355322099,), (1355322133,), (1355322562,), (1355322596,), (1355323507,), (1355323565,), (1355323585,), (1355323647,), (1355323712,), (1355324039,), (1355324101,), (1355324153,), (1355324241,), (1355324358,), (1355325009,), (1355325080,), (1355325139,), (1355325195,), (1355325260,), (1355325317,), (1355326042,), (1355326115,), (1355326187,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02052025': {'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([22606058]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] map_info['map_portfolio_photo'] : {22606058: [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507, 1355322596, 1355322562, 1355322133, 1355322099, 1355322041, 1355321979]} final : True mtd_id 4302 list_pids : [1355326187, 1355326115, 1355326042, 1355325317, 1355325260, 1355325195, 1355325139, 1355325080, 1355325009, 1355324358, 1355324241, 1355324153, 1355324101, 1355324039, 1355323712, 1355323647, 1355323585, 1355323565, 1355323507] Looping around the photos to save general results len do output : 1 /22606058Didn'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, '2783757') ('4302', '22606058', '1355326187', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757') ('4302', None, None, None, None, None, None, None, '2783757') ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '22606058', 'None', None, None, None, None, '2783757'), ('4302', '22606058', '1355326187', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355326115', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355326042', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325317', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325260', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325195', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325139', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325080', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355325009', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324358', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324241', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324153', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324101', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355324039', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323712', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323647', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323585', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323565', None, None, None, None, None, '2783757'), ('4302', '22606058', '1355323507', None, None, None, None, None, '2783757')] time used for this insertion : 0.015818357467651367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3435962200164795 time spend to save output : 0.01609516143798828 total time spend for step 5 : 0.3596913814544678 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 (2783757) 2.46user 1.88system 0:08.49elapsed 51%CPU (0avgtext+0avgdata 160720maxresident)k 488inputs+10648outputs (1major+79537minor)pagefaults 0swaps