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 : 2304800 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 (2742462) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2742462) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255333 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2742462'] with mtr_portfolio_ids : ['22255333'] and first list_photo_ids : [] new path : /proc/2304800/ Name: python3 Umask: 0002 State: R (running) Tgid: 2304800 Ngid: 0 Pid: 2304800 PPid: 2304798 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2304800 NSpid: 2304800 NSpgid: 2300791 NSsid: 2300791 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97860 kB VmRSS: 97860 kB RssAnon: 59764 kB RssFile: 38096 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 53 nonvoluntary_ctxt_switches: 134 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2304800', 'Ngid': '0', 'Pid': '2304800', 'PPid': '2304798', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2304800', 'NSpid': '2304800', 'NSpgid': '2300791', 'NSsid': '2300791', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97860 kB', 'VmRSS': '97860 kB', 'RssAnon': '59764 kB', 'RssFile': '38096 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '00000SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255340) result : ((1351489476,), (1351489479,), (1351490354,), (1351491726,), (1351491727,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255341 , 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=22255333 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 (22255341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255342 , 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=22255333 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 (22255342) result : ((1351490209,), (1351491152,), (1351491186,), (1351491731,), (1351491732,), (1351491733,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255343 , 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=22255333 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 (22255343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255344 , 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=22255333 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255344) result : ((1351490351,), (1351491167,), (1351491724,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255345 , 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=22255333 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 (22255345) result : ((1351490204,), (1351490205,), (1351490359,), (1351490361,), (1351490362,), (1351491179,), (1351491180,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255346 , 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=22255333 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 (22255346) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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 22255347 , 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=22255333 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 (22255347) result : ((1351490346,), (1351490347,), (1351490348,), (1351490349,), (1351491051,), (1351491052,), (1351491053,), (1351491055,), (1351491056,), (1351491057,), (1351491162,), (1351491709,), (1351491710,), (1351491711,), (1351491712,), (1351491713,), (1351491714,), (1351491715,), (1351491716,), (1351491717,), (1351491718,), (1351491719,), (1351491720,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22255333) result : ((1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) 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`=22255333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','cartonnette','flou','autre_refus','kraft','mal_croppe','papier','metal','plastique','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22255333 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','cartonnette','flou','autre_refus','kraft','mal_croppe','papier','metal','plastique','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22255333, 'sub_port_id': 22255348, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723879, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'Carton_gris': {'main_port_id': 22255333, 'sub_port_id': 22255349, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723880, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'flou': {'main_port_id': 22255333, 'sub_port_id': 22255350, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723881, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'environnement': {'main_port_id': 22255333, 'sub_port_id': 22255351, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723882, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'cartonnette': {'main_port_id': 22255333, 'sub_port_id': 22255352, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723883, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'kraft': {'main_port_id': 22255333, 'sub_port_id': 22255353, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723884, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'plastique': {'main_port_id': 22255333, 'sub_port_id': 22255354, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723885, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'papier': {'main_port_id': 22255333, 'sub_port_id': 22255355, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723886, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'autre_refus': {'main_port_id': 22255333, 'sub_port_id': 22255356, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723887, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'Carton_brun': {'main_port_id': 22255333, 'sub_port_id': 22255357, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723888, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'mal_croppe': {'main_port_id': 22255333, 'sub_port_id': 22255358, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723889, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 21, 35), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 22255333, 'sub_port_id': 22255359, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14723890, 'last_updated_at': datetime.datetime(2025, 4, 11, 7, 29, 12), 'last_updated_at_desc': datetime.datetime(2025, 4, 11, 7, 29, 12), 'last_updated_at_asc': datetime.datetime(2025, 4, 11, 7, 21, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255348,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255336 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255349,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255337 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255350,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22255359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22255347 lien utilise dans velours : https://www.fotonower.com/velours/22255348,22255349,22255350,22255351,22255352,22255353,22255354,22255355,22255356,22255357,22255358,22255359?tags=metal,Carton_gris,flou,environnement,cartonnette,kraft,plastique,papier,autre_refus,Carton_brun,mal_croppe,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22255333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] map_info['map_portfolio_photo'] : {22255333: [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526, 1351491390, 1351491375, 1351491353, 1351491331, 1351491278, 1351491111, 1351491092, 1351491073, 1351491065, 1351491049, 1351490708, 1351490690, 1351490681, 1351490650, 1351490628, 1351490603, 1351490417, 1351490407, 1351490373, 1351490367, 1351490312, 1351490308, 1351490301, 1351490294, 1351490276, 1351490176, 1351490157, 1351489791, 1351489488, 1351489439, 1351489031, 1351488993, 1351488732, 1351488716, 1351488413, 1351488373, 1351488319]} final : False mtd_id 4302 list_pids : [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] Looping around the photos to save general results len do output : 1 /22255333. 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, '2742462') ('4302', '22255333', '1351492184', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22255333', "{'metal': 22255336, 'Carton_gris': 22255337, 'flou': 22255338, 'environnement': 22255339, 'cartonnette': 22255340, 'kraft': 22255341, 'plastique': 22255342, 'papier': 22255343, 'autre_refus': 22255344, 'Carton_brun': 22255345, 'mal_croppe': 22255346, 'Teint_Dans_La_Masse': 22255347}", None, None, None, None, '2742462'), ('4302', '22255333', '1351492184', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462')] time used for this insertion : 0.014092445373535156 save_final save missing photos in datou_result : time spend for datou_step_exec : 20.935997247695923 time spend to save output : 0.014358043670654297 total time spend for step 1 : 20.950355291366577 step2:final Fri Apr 11 07:31:21 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 (22255333) 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 22255333 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351488413,1351488373,1351488319,1351488732,1351488716,1351489031,1351488993,1351489488,1351489439,1351489791,1351490176,1351490157,1351490312,1351490308,1351490301,1351490294,1351490276,1351490417,1351490407,1351490373,1351490367,1351490708,1351490690,1351490681,1351490650,1351490628,1351490603,1351491111,1351491092,1351491073,1351491065,1351491049,1351491390,1351491375,1351491353,1351491331,1351491278,1351491640,1351491606,1351491575,1351491530,1351491526,1351491740,1351491725,1351492184,1351492119,1351492099); 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([22255333]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} new output for save of step final : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] map_info['map_portfolio_photo'] : {22255333: [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526, 1351491390, 1351491375, 1351491353, 1351491331, 1351491278, 1351491111, 1351491092, 1351491073, 1351491065, 1351491049, 1351490708, 1351490690, 1351490681, 1351490650, 1351490628, 1351490603, 1351490417, 1351490407, 1351490373, 1351490367, 1351490312, 1351490308, 1351490301, 1351490294, 1351490276, 1351490176, 1351490157, 1351489791, 1351489488, 1351489439, 1351489031, 1351488993, 1351488732, 1351488716, 1351488413, 1351488373, 1351488319]} final : False mtd_id 4302 list_pids : [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] Looping around the photos to save general results len do output : 10 /1351492184.Didn't retrieve data . /1351492119.Didn't retrieve data . /1351492099.Didn't retrieve data . /1351491740.Didn't retrieve data . /1351491725.Didn't retrieve data . /1351491640.Didn't retrieve data . /1351491606.Didn't retrieve data . /1351491575.Didn't retrieve data . /1351491530.Didn't retrieve data . /1351491526.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, '2742462') ('4302', '22255333', '1351492184', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22255333', '1351492184', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351492119', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351492099', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491740', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491725', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491640', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491606', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491575', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491530', '0.06300969041676606', None, None, None, None, '2742462'), ('4302', '22255333', '1351491526', '0.06300969041676606', None, None, None, None, '2742462')] time used for this insertion : 0.014064788818359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06250309944152832 time spend to save output : 0.014616250991821289 total time spend for step 2 : 0.07711935043334961 step3:velours_tree Fri Apr 11 07:31:21 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 : {22255333: [{'metal': 22255336, 'Carton_gris': 22255337, 'flou': 22255338, 'environnement': 22255339, 'cartonnette': 22255340, 'kraft': 22255341, 'plastique': 22255342, 'papier': 22255343, 'autre_refus': 22255344, 'Carton_brun': 22255345, 'mal_croppe': 22255346, 'Teint_Dans_La_Masse': 22255347}]} input_args_next_step : {22255333: ()} output_args : {22255333: [{'metal': 22255336, 'Carton_gris': 22255337, 'flou': 22255338, 'environnement': 22255339, 'cartonnette': 22255340, 'kraft': 22255341, 'plastique': 22255342, 'papier': 22255343, 'autre_refus': 22255344, 'Carton_brun': 22255345, 'mal_croppe': 22255346, 'Teint_Dans_La_Masse': 22255347}]} args : 22255333 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 : ({'metal': 22255336, 'Carton_gris': 22255337, 'flou': 22255338, 'environnement': 22255339, 'cartonnette': 22255340, 'kraft': 22255341, 'plastique': 22255342, 'papier': 22255343, 'autre_refus': 22255344, 'Carton_brun': 22255345, 'mal_croppe': 22255346, 'Teint_Dans_La_Masse': 22255347},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22255333) 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([22255333]) 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.35945963859558105 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.3595154285430908 step4:send_mail_cod Fri Apr 11 07:31:21 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 : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} input_args_next_step : {1351492184: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351492184 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351492119 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351492099 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491740 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491725 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491640 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491606 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491575 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491530 depend.output_id : 0 input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ()} output_args : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',)} args : 1351491526 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 : {22255333: [{'metal': 22255336, 'Carton_gris': 22255337, 'flou': 22255338, 'environnement': 22255339, 'cartonnette': 22255340, 'kraft': 22255341, 'plastique': 22255342, 'papier': 22255343, 'autre_refus': 22255344, 'Carton_brun': 22255345, 'mal_croppe': 22255346, 'Teint_Dans_La_Masse': 22255347}]} input_args_next_step : {1351492184: ('0.06300969041676606',), 1351492119: ('0.06300969041676606',), 1351492099: ('0.06300969041676606',), 1351491740: ('0.06300969041676606',), 1351491725: ('0.06300969041676606',), 1351491640: ('0.06300969041676606',), 1351491606: ('0.06300969041676606',), 1351491575: ('0.06300969041676606',), 1351491530: ('0.06300969041676606',), 1351491526: ('0.06300969041676606',), 22255333: ()} output_args : {22255333: [{'metal': 22255336, 'Carton_gris': 22255337, 'flou': 22255338, 'environnement': 22255339, 'cartonnette': 22255340, 'kraft': 22255341, 'plastique': 22255342, 'papier': 22255343, 'autre_refus': 22255344, 'Carton_brun': 22255345, 'mal_croppe': 22255346, 'Teint_Dans_La_Masse': 22255347}]} args : 22255333 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 :11, first value : ('0.06300969041676606',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22255333) 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 (1351492184,1351492119,1351492099,1351491740,1351491725,1351491640,1351491606,1351491575,1351491530,1351491526) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351491526 begin to download photo : 1351491606 begin to download photo : 1351491740 begin to download photo : 1351492184 download finish for photo 1351491740 begin to download photo : 1351492099 download finish for photo 1351491606 begin to download photo : 1351491640 download finish for photo 1351492184 download finish for photo 1351491526 begin to download photo : 1351491530 download finish for photo 1351491530 begin to download photo : 1351491575 download finish for photo 1351492099 begin to download photo : 1351492119 download finish for photo 1351491640 begin to download photo : 1351491725 download finish for photo 1351492119 download finish for photo 1351491575 download finish for photo 1351491725 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222553361744349482/ imagette222553381744349482/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22255333_11-04-2025_07_31_22.pdf 22255336 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=22255336 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222553361744349482 22255338 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=22255338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222553381744349482 22255340 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=22255340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351489476: '1744348764_1373263_1351488319_bb5adafa9dae09348cbb2d93d28cfcd1_rle_crop_3756164001_0.png', 1351489479: '1744348764_1373263_1351488319_bb5adafa9dae09348cbb2d93d28cfcd1_rle_crop_3756164002_0.png', 1351490354: '1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167027_0.png', 1351491726: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170853_0.png', 1351491727: '1744349273_1101105_1351490628_5d9d235b475ef6121ea7d5e6ed5d389e_rle_crop_3756170912_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/509f970930dd1db6efdf1378dfaa46c7_85226422.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c42011e09ab0f6d7fdddcedfad3d94ee_37514682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b7ea9eb05199ae33af14c77c3fa6deab_66931666.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/558cb369975d83527abea0bf3fbcebc1_88024870.png change filename to text .imagette222553401744349482/ imagette222553401744349482/1744348764_1373263_1351488319_bb5adafa9dae09348cbb2d93d28cfcd1_rle_crop_3756164002_0.png.png imagette222553401744349482/1744349273_1101105_1351490628_5d9d235b475ef6121ea7d5e6ed5d389e_rle_crop_3756170912_0.png.png imagette222553401744349482/1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167027_0.png.png imagette222553401744349482/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170853_0.png.png imagette222553401744349482/1744348764_1373263_1351488319_bb5adafa9dae09348cbb2d93d28cfcd1_rle_crop_3756164001_0.png.png imagette222553411744349483/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/d7e9d4a5ed6ea3b26ed2f4d7659edcd0_61754789.png imagette222553401744349482 22255341 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=22255341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222553411744349483 22255342 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=22255342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351490209: '1744348933_1097307_1351489488_e3534ef24e6bb4c0f072b50c4e832e70_rle_crop_3756166064_0.png', 1351491152: '1744349153_1099875_1351490312_894f88c5c08c874015055b9de1f2e9d7_rle_crop_3756169612_0.png', 1351491186: '1744349132_1099680_1351490417_b3f435c422fa4a45ef77c80fe241269b_rle_crop_3756169368_0.png', 1351491731: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170858_0.png', 1351491732: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170859_0.png', 1351491733: '1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9c826581aab92d7622c888624cdf00af_75145115.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/ba686b13390023e7eff6e5b2012b56d5_61533516.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/38640c8622ffded2b3f30e80bea595f5_83676354.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c63b5a81f3bda2789d5d67d97606236c_49344610.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3515bbc2797f929931ab82dfe3404653_10710094.png change filename to text .imagette222553421744349483/ imagette222553421744349483/1744348933_1097307_1351489488_e3534ef24e6bb4c0f072b50c4e832e70_rle_crop_3756166064_0.png.png imagette222553421744349483/1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170871_0.png.png imagette222553421744349483/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170858_0.png.png imagette222553421744349483/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170859_0.png.png imagette222553421744349483/1744349153_1099875_1351490312_894f88c5c08c874015055b9de1f2e9d7_rle_crop_3756169612_0.png.png imagette222553421744349483/1744349132_1099680_1351490417_b3f435c422fa4a45ef77c80fe241269b_rle_crop_3756169368_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/daa3213b1462bc3ab474cb1f4b0e0854_38531352.png imagette222553421744349483 22255344 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=22255344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351490351: '1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167039_0.png', 1351491167: '1744349132_1099680_1351490301_31f163603fcaebdabf9493468f0ba08f_rle_crop_3756169614_0.png', 1351491724: '1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170865_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1865c7aa7de5e56323b7706ddb8ec2bd_7491406.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/622ec940c92262f92f65cdc4acc04aae_47324643.png change filename to text .imagette222553441744349483/ imagette222553441744349483/1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170865_0.png.png imagette222553441744349483/1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167039_0.png.png imagette222553441744349483/1744349132_1099680_1351490301_31f163603fcaebdabf9493468f0ba08f_rle_crop_3756169614_0.png.png imagette222553461744349483/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f76efec9fb6af1b15a0522ddb43433f9_39199474.png imagette222553441744349483 22255346 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=22255346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222553461744349483 22255337 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=22255337 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351490202: '1744348933_1097307_1351488993_7bf86bda89b765313680b9fcd97fd773_rle_crop_3756166088_0.png', 1351490352: '1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167023_0.png', 1351491071: '1744349128_1380855_1351490373_82853e47562687d17edf376d25ce5509_rle_crop_3756168895_0.png', 1351491175: '1744349132_1099680_1351490417_b3f435c422fa4a45ef77c80fe241269b_rle_crop_3756169370_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/6d633b2cdd7cf138dca7b33f7746a4ab_23380297.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3671b19d3b3b6722ae17eec079cd384c_56623593.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/103ebdf5e72e65c08c11b312a012c55c_31449777.png change filename to text .imagette222553371744349483/ imagette222553371744349483/1744349128_1380855_1351490373_82853e47562687d17edf376d25ce5509_rle_crop_3756168895_0.png.png imagette222553371744349483/1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167023_0.png.png imagette222553371744349483/1744348933_1097307_1351488993_7bf86bda89b765313680b9fcd97fd773_rle_crop_3756166088_0.png.png imagette222553371744349483/1744349132_1099680_1351490417_b3f435c422fa4a45ef77c80fe241269b_rle_crop_3756169370_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/031fcf086797007db007a9b42f8e0088_3323622.png imagette222553371744349483 22255345 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=22255345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351490204: '1744348933_1097307_1351489488_e3534ef24e6bb4c0f072b50c4e832e70_rle_crop_3756166066_0.png', 1351490205: '1744348933_1097307_1351488993_7bf86bda89b765313680b9fcd97fd773_rle_crop_3756166092_0.png', 1351490359: '1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167030_0.png', 1351490361: '1744348993_1098053_1351489439_7d9365681e160483e02657072ef7477b_rle_crop_3756167110_0.png', 1351490362: '1744348993_1098053_1351489439_7d9365681e160483e02657072ef7477b_rle_crop_3756167107_0.png', 1351491179: '1744349132_1099680_1351490301_31f163603fcaebdabf9493468f0ba08f_rle_crop_3756169615_0.png', 1351491180: '1744349132_1099680_1351490294_ffb255737743dacd12cf21b07dba3e41_rle_crop_3756169644_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/159f4fc6bca809176b2d8e59e69e5ff5_99263128.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/061d99d1ab381b2d866340ec0665cbb1_43937250.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/004518d12e5cab956e20b9c1b5a45460_85969407.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9c79f35243cb0cfeab77937cbc7398f5_15140967.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/c9867814daa14fd09d3c91001da3d3e3_33841364.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3df645925b806a20218dfa6816ad5c4e_76360197.png change filename to text .imagette222553451744349483/ imagette222553451744349483/1744348993_1098053_1351489439_7d9365681e160483e02657072ef7477b_rle_crop_3756167110_0.png.png imagette222553451744349483/1744348933_1097307_1351489488_e3534ef24e6bb4c0f072b50c4e832e70_rle_crop_3756166066_0.png.png imagette222553451744349483/1744348933_1097307_1351488993_7bf86bda89b765313680b9fcd97fd773_rle_crop_3756166092_0.png.png imagette222553451744349483/1744349132_1099680_1351490301_31f163603fcaebdabf9493468f0ba08f_rle_crop_3756169615_0.png.png imagette222553451744349483/1744349132_1099680_1351490294_ffb255737743dacd12cf21b07dba3e41_rle_crop_3756169644_0.png.png imagette222553451744349483/1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167030_0.png.png imagette222553451744349483/1744348993_1098053_1351489439_7d9365681e160483e02657072ef7477b_rle_crop_3756167107_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/03586b07cb8998bac671edaac6ab28ad_12662076.png imagette222553451744349483 22255347 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=22255347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351491709: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170857_0.png', 1351491720: '1744349273_1101105_1351490603_fbb52d119a236ba52f476fb3a3fb2b27_rle_crop_3756170942_0.png', 1351491719: '1744349273_1101105_1351490603_fbb52d119a236ba52f476fb3a3fb2b27_rle_crop_3756170947_0.png', 1351491718: '1744349273_1101105_1351490628_5d9d235b475ef6121ea7d5e6ed5d389e_rle_crop_3756170916_0.png', 1351491717: '1744349273_1101105_1351490628_5d9d235b475ef6121ea7d5e6ed5d389e_rle_crop_3756170918_0.png', 1351491716: '1744349273_1101105_1351490650_bd764884697238f841baad036404fe35_rle_crop_3756170894_0.png', 1351491715: '1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170876_0.png', 1351491714: '1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170870_0.png', 1351491713: '1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170875_0.png', 1351491712: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170851_0.png', 1351491711: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170852_0.png', 1351491710: '1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170856_0.png', 1351490346: '1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167029_0.png', 1351491162: '1744349132_1099680_1351490276_9bf0247d55c44862850ae941b1c39fcd_rle_crop_3756169712_0.png', 1351491057: '1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756169000_0.png', 1351491056: '1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756168995_0.png', 1351491055: '1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756168998_0.png', 1351491053: '1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756169004_0.png', 1351491052: '1744349128_1380855_1351490373_82853e47562687d17edf376d25ce5509_rle_crop_3756168896_0.png', 1351491051: '1744349128_1380855_1351490373_82853e47562687d17edf376d25ce5509_rle_crop_3756168899_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/664066ce78cada4db988bc17353896c1_84219132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5a388bd0cc07de3c15256229b8ecf0fb_6516557.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b3e26d81b3ff1a953f5bc3519a6ee5a3_82152984.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1099a28ec066f16e859f70699a0e583d_60581510.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/2e56b1d7c38ccc08872665796b963b89_19742738.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/e09fd1bce432ca426c3ba02c289d4c78_42086011.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0bbc11c3612c9cb82064461d6795a7d7_6977988.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f74347389d2c891611d94ed648defd88_94413398.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9851886f098fcaff913dd4eebd6bb109_8163732.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1d5d5102523ccdc5ab8a98440ffad94a_85641182.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/02184eac8c2900b99b1efab214adcd7b_77936131.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/1096ef8fa55e359301a15bc82e68409f_92891682.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/3e99937b0afd0e95c55ed55ded0f2cb3_11204161.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0d54d31886e8b86eaf288d7a54b4a96a_48071747.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/f73fffae55063d3cc006106be2c4b6bb_34532865.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/b8c6e7c0b2810fcb805d70c74aad3c04_52691323.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/61a914cfa918e652d12b3e289be0ed97_15278609.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/34746d61e1b7b110358c30318edb3171_18748397.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/5239f99a3f008a30890d916594989243_76553740.png change filename to text .imagette222553471744349484/ imagette222553471744349484/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170852_0.png.png imagette222553471744349484/1744348993_1098053_1351489791_119a3b51421ca757c40ca2c84ab72c42_rle_crop_3756167029_0.png.png imagette222553471744349484/1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756169000_0.png.png imagette222553471744349484/1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170875_0.png.png imagette222553471744349484/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170851_0.png.png imagette222553471744349484/1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170876_0.png.png imagette222553471744349484/1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756168998_0.png.png imagette222553471744349484/1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756168995_0.png.png imagette222553471744349484/1744349273_1101105_1351490603_fbb52d119a236ba52f476fb3a3fb2b27_rle_crop_3756170942_0.png.png imagette222553471744349484/1744349273_1101105_1351490650_bd764884697238f841baad036404fe35_rle_crop_3756170894_0.png.png imagette222553471744349484/1744349273_1101105_1351490603_fbb52d119a236ba52f476fb3a3fb2b27_rle_crop_3756170947_0.png.png imagette222553471744349484/1744349273_1101105_1351490628_5d9d235b475ef6121ea7d5e6ed5d389e_rle_crop_3756170916_0.png.png imagette222553471744349484/1744349128_1380855_1351490367_2a1c61f0e0d76e2e3e93454ccbbe8a7d_rle_crop_3756169004_0.png.png imagette222553471744349484/1744349128_1380855_1351490373_82853e47562687d17edf376d25ce5509_rle_crop_3756168896_0.png.png imagette222553471744349484/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170856_0.png.png imagette222553471744349484/1744349132_1099680_1351490276_9bf0247d55c44862850ae941b1c39fcd_rle_crop_3756169712_0.png.png imagette222553471744349484/1744349128_1380855_1351490373_82853e47562687d17edf376d25ce5509_rle_crop_3756168899_0.png.png imagette222553471744349484/1744349273_1101105_1351490628_5d9d235b475ef6121ea7d5e6ed5d389e_rle_crop_3756170918_0.png.png imagette222553471744349484/1744349273_1101105_1351490681_6ed8a9c83957c50a6a1bb8e8108260c9_rle_crop_3756170870_0.png.png imagette222553471744349484/1744349273_1101105_1351490690_e2389c76f517c6648e62ddcd0dfe1b8f_rle_crop_3756170857_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0d13e15f033e096e400a6689e20cedee_78140967.png imagette222553471744349484 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22255333 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22255348,22255349,22255350,22255351,22255352,22255353,22255354,22255355,22255356,22255357,22255358,22255359?tags=metal,Carton_gris,flou,environnement,cartonnette,kraft,plastique,papier,autre_refus,Carton_brun,mal_croppe,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1351492184] : ('0.06300969041676606',) no score found for photo 1351492184 We are sending mail with results at report@fotonower.com args[1351492119] : ('0.06300969041676606',) no score found for photo 1351492119 We are sending mail with results at report@fotonower.com args[1351492099] : ('0.06300969041676606',) no score found for photo 1351492099 We are sending mail with results at report@fotonower.com args[1351491740] : ('0.06300969041676606',) no score found for photo 1351491740 We are sending mail with results at report@fotonower.com args[1351491725] : ('0.06300969041676606',) no score found for photo 1351491725 We are sending mail with results at report@fotonower.com args[1351491640] : ('0.06300969041676606',) no score found for photo 1351491640 We are sending mail with results at report@fotonower.com args[1351491606] : ('0.06300969041676606',) no score found for photo 1351491606 We are sending mail with results at report@fotonower.com args[1351491575] : ('0.06300969041676606',) no score found for photo 1351491575 We are sending mail with results at report@fotonower.com args[1351491530] : ('0.06300969041676606',) no score found for photo 1351491530 We are sending mail with results at report@fotonower.com args[1351491526] : ('0.06300969041676606',) no score found for photo 1351491526 We are sending mail with results at report@fotonower.com refus_total : 0.06300969041676606 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=22255333 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_P22255333_11-04-2025_07_31_22.pdf results_Auto_P22255333_11-04-2025_07_31_22.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_31_22.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','22255333','results_Auto_P22255333_11-04-2025_07_31_22.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_31_22.pdf','pdf','','0.23','0.06300969041676606') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22255333]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] map_info['map_portfolio_photo'] : {22255333: [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526, 1351491390, 1351491375, 1351491353, 1351491331, 1351491278, 1351491111, 1351491092, 1351491073, 1351491065, 1351491049, 1351490708, 1351490690, 1351490681, 1351490650, 1351490628, 1351490603, 1351490417, 1351490407, 1351490373, 1351490367, 1351490312, 1351490308, 1351490301, 1351490294, 1351490276, 1351490176, 1351490157, 1351489791, 1351489488, 1351489439, 1351489031, 1351488993, 1351488732, 1351488716, 1351488413, 1351488373, 1351488319]} final : False mtd_id 4302 list_pids : [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] 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, '2742462') ('4302', '22255333', '1351492184', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22255333', '1351492184', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462')] time used for this insertion : 0.015405654907226562 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.366971731185913 time spend to save output : 0.01577305793762207 total time spend for step 4 : 5.382744789123535 step5:split_time_score Fri Apr 11 07:31:27 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 : ['22255333'] 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 : [('22255333',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22255333) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351492184: {'path': 'temp/1744349481_2304800_1351492184_c0a2d4643c4a3153808d2faae0091ed2.jpg', 'extension': 'jpg'}, 1351491740: {'path': 'temp/1744349481_2304800_1351491740_73fbf83bae0f13a5f7ab96f22c1bf88b.jpg', 'extension': 'jpg'}, 1351492099: {'path': 'temp/1744349481_2304800_1351492099_2097df5e287ccaa15add7fe27e93afb5.jpg', 'extension': 'jpg'}, 1351492119: {'path': 'temp/1744349481_2304800_1351492119_bdecdeb869c647103ad35e00c73479dd.jpg', 'extension': 'jpg'}, 1351491526: {'path': 'temp/1744349481_2304800_1351491526_eacac6e1e0f13a22a45e9ea5ac9ff68b.jpg', 'extension': 'jpg'}, 1351491530: {'path': 'temp/1744349481_2304800_1351491530_d4718fdaeb2362bbe3816a70fa213cc7.jpg', 'extension': 'jpg'}, 1351491575: {'path': 'temp/1744349481_2304800_1351491575_ccb529adcd259ddf2be59e5f8059ad12.jpg', 'extension': 'jpg'}, 1351491606: {'path': 'temp/1744349481_2304800_1351491606_66091d360f37f10354d54eb80d9e4314.jpg', 'extension': 'jpg'}, 1351491640: {'path': 'temp/1744349481_2304800_1351491640_f5c204e4dda742c2653a14da41823998.jpg', 'extension': 'jpg'}, 1351491725: {'path': 'temp/1744349481_2304800_1351491725_637e4fe7b67f376e3ce8ce59b58871e0.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 = 22255333; (('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 = 22255333 group by h (('07', 47),) 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=22255333 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 (22255333) 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 (22255333) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11042025 22255333 Nombre de photos uploadées : 47 / 23040 (0%) 11042025 22255333 Nombre de photos taguées (types de déchets): 0 / 47 (0%) 11042025 22255333 Nombre de photos taguées (volume) : 0 / 47 (0%) [{'photo_id': 1351488413, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/9aa690a41334185f216a24378473f2c2.jpg', 'username': None, 'uploaded_at': 1744348628, 'text': 'image_11042025_07_15_54_10137.jpg'}, {'photo_id': 1351488373, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/13bd274b74a5fa87ea9945ee45ab19cf.jpg', 'username': None, 'uploaded_at': 1744348628, 'text': 'image_11042025_07_16_04_10151.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351488319, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/bb5adafa9dae09348cbb2d93d28cfcd1.jpg', 'username': None, 'uploaded_at': 1744348628, 'text': 'image_11042025_07_16_23_9124.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351488732, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/11/0af4b3ec987bb4ec5c292bffa0380934.jpg', 'username': None, 'uploaded_at': 1744348687, 'text': 'image_11042025_07_16_33_10148.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 8.58306884765625e-06 ??????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022056102752685547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22255333, '2025-04-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1733453,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02403426170349121 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= 1733453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742105, 'mtr_portfolio_id': 22253768, 'dashboard_result_id': 10012188, '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_P22253768_11-04-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22253836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253847, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742105, 'mtr_portfolio_id': 22254301, 'dashboard_result_id': 10012189, '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_P22254301_11-04-2025_07_17_14.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22254342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22254343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22254344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22254345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22254346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22254347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22254348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22254349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22254350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22254351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22254352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22254353, 'pht': 3726}}"}, {'dashboat_entry_day': 1733453, 'dashboard_run_id': 1742105, 'mtr_portfolio_id': 22255333, 'dashboard_result_id': 10012190, '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_P22255333_11-04-2025_07_29_13.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22253768 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': 2742313, 'mtr_portfolio_id': 22253768, 'created_at': datetime.datetime(2025, 4, 11, 7, 2, 58), 'result': '0.03871982634678879', 'result_long': None, 'result_double': None}] Qualite : 0.03871982634678879 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22253768 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22253768_11-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22253768 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_P22253768_11-04-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22253836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253847, 'pht': 3726}}" where mtr_portfolio_id = 22253768 and dashboard_run_id = 1742105 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`=22253768 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10012188, 0.03871982634678879, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22253768_11-04-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22253836, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22253837, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22253838, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22253839, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22253840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22253841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22253842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22253843, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22253844, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22253845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22253846, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22253847, '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 = 22254301 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': 2742411, 'mtr_portfolio_id': 22254301, 'created_at': datetime.datetime(2025, 4, 11, 7, 17, 13), 'result': '0.05593091374692898', 'result_long': None, 'result_double': None}] Qualite : 0.05593091374692898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22254301 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22254301_11-04-2025_07_17_14.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22254301 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_P22254301_11-04-2025_07_17_14.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22254342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22254343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22254344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22254345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22254346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22254347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22254348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22254349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22254350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22254351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22254352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22254353, 'pht': 3726}}" where mtr_portfolio_id = 22254301 and dashboard_run_id = 1742105 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`=22254301 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10012189, 0.05593091374692898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22254301_11-04-2025_07_17_14.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22254342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22254343, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22254344, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22254345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22254346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22254347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22254348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22254349, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22254350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22254351, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22254352, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22254353, '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 = 22255333 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': 2742462, 'mtr_portfolio_id': 22255333, 'created_at': datetime.datetime(2025, 4, 11, 7, 31, 21), 'result': '0.06300969041676606', 'result_long': None, 'result_double': None}] Qualite : 0.06300969041676606 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22255333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_31_22.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22255333 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_P22255333_11-04-2025_07_31_22.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, 'pht': 3726}}" where mtr_portfolio_id = 22255333 and dashboard_run_id = 1742105 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`=22255333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10012190, 0.06300969041676606, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22255333_11-04-2025_07_31_22.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22255336, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22255337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22255338, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22255339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22255340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22255341, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22255342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22255343, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22255344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22255345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22255346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22255347, '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 (22253768,22254301,22255333) result : ((1351478859,), (1351478874,), (1351478886,), (1351479063,), (1351479103,), (1351479119,), (1351479122,), (1351479124,), (1351479217,), (1351479225,), (1351479245,), (1351479251,), (1351479421,), (1351479445,), (1351479456,), (1351480256,), (1351480572,), (1351480636,), (1351480639,), (1351480881,), (1351480886,), (1351480892,), (1351480899,), (1351480910,), (1351480922,), (1351480925,), (1351480929,), (1351480932,), (1351480936,), (1351480951,), (1351480943,), (1351480948,), (1351480999,), (1351481005,), (1351481011,), (1351481016,), (1351481086,), (1351481093,), (1351481098,), (1351481105,), (1351481110,), (1351481115,), (1351481153,), (1351481159,), (1351481165,), (1351481175,), (1351481183,), (1351482053,), (1351482140,), (1351482166,), (1351482208,), (1351482210,), (1351482214,), (1351482221,), (1351482259,), (1351482365,), (1351482716,), (1351482753,), (1351482797,), (1351482832,), (1351482870,), (1351483151,), (1351483180,), (1351483223,), (1351483268,), (1351483315,), (1351483628,), (1351483654,), (1351483675,), (1351484345,), (1351485486,), (1351485558,), (1351486311,), (1351486347,), (1351486712,), (1351486736,), (1351486753,), (1351487917,), (1351488319,), (1351488373,), (1351488413,), (1351488716,), (1351488732,), (1351488993,), (1351489031,), (1351489439,), (1351489488,), (1351489791,), (1351490157,), (1351490176,), (1351490276,), (1351490294,), (1351490301,), (1351490308,), (1351490312,), (1351490367,), (1351490373,), (1351490407,), (1351490417,), (1351490603,), (1351490628,), (1351490650,), (1351490681,), (1351490690,), (1351490708,), (1351491049,), (1351491065,), (1351491073,), (1351491092,), (1351491111,), (1351491278,), (1351491331,), (1351491353,), (1351491375,), (1351491390,), (1351491526,), (1351491530,), (1351491575,), (1351491606,), (1351491640,), (1351491725,), (1351491740,), (1351492099,), (1351492119,), (1351492184,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11042025': {'nb_upload': 47, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22255333]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] map_info['map_portfolio_photo'] : {22255333: [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526, 1351491390, 1351491375, 1351491353, 1351491331, 1351491278, 1351491111, 1351491092, 1351491073, 1351491065, 1351491049, 1351490708, 1351490690, 1351490681, 1351490650, 1351490628, 1351490603, 1351490417, 1351490407, 1351490373, 1351490367, 1351490312, 1351490308, 1351490301, 1351490294, 1351490276, 1351490176, 1351490157, 1351489791, 1351489488, 1351489439, 1351489031, 1351488993, 1351488732, 1351488716, 1351488413, 1351488373, 1351488319]} final : True mtd_id 4302 list_pids : [1351492184, 1351492119, 1351492099, 1351491740, 1351491725, 1351491640, 1351491606, 1351491575, 1351491530, 1351491526] Looping around the photos to save general results len do output : 1 /22255333Didn'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, '2742462') ('4302', '22255333', '1351492184', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462') ('4302', None, None, None, None, None, None, None, '2742462') ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22255333', 'None', None, None, None, None, '2742462'), ('4302', '22255333', '1351492184', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351492119', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351492099', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491740', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491725', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491640', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491606', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491575', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491530', None, None, None, None, None, '2742462'), ('4302', '22255333', '1351491526', None, None, None, None, None, '2742462')] time used for this insertion : 0.015365123748779297 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.562201499938965 time spend to save output : 0.015604496002197266 total time spend for step 5 : 2.577805995941162 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 (2742462) 2.35user 2.44system 0:34.06elapsed 14%CPU (0avgtext+0avgdata 157976maxresident)k 1424inputs+11928outputs (1major+74900minor)pagefaults 0swaps