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, '2692816') ('4302', '21729717', '1347492262', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492237', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492204', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491914', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491881', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491856', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491851', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491843', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491811', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491417', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491403', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491302', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491282', None, None, None, None, None, '2692816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '21729717', '1347492262', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347492237', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347492204', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491914', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491881', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491856', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491851', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491843', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491811', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491417', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491403', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491302', '0.0823952203594574', None, None, None, None, '2692816'), ('4302', '21729717', '1347491282', '0.0823952203594574', None, None, None, None, '2692816')] time used for this insertion : 0.016185283660888672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06695675849914551 time spend to save output : 0.016892194747924805 total time spend for step 2 : 0.08384895324707031 step3:velours_tree Wed Mar 26 15:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} input_args_next_step : {21729717: ()} output_args : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} args : 21729717 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 : ({'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21729717) 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([21729717]) 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.31642580032348633 time spend to save output : 5.936622619628906e-05 total time spend for step 3 : 0.3164851665496826 step4:send_mail_cod Wed Mar 26 15:22:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} input_args_next_step : {1347492262: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347492262 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347492237 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347492204 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491914 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491881 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491856 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491851 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491843 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491811 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491417 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491403 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491302 depend.output_id : 0 input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ()} output_args : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',)} args : 1347491282 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 : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} input_args_next_step : {1347492262: ('0.0823952203594574',), 1347492237: ('0.0823952203594574',), 1347492204: ('0.0823952203594574',), 1347491914: ('0.0823952203594574',), 1347491881: ('0.0823952203594574',), 1347491856: ('0.0823952203594574',), 1347491851: ('0.0823952203594574',), 1347491843: ('0.0823952203594574',), 1347491811: ('0.0823952203594574',), 1347491417: ('0.0823952203594574',), 1347491403: ('0.0823952203594574',), 1347491302: ('0.0823952203594574',), 1347491282: ('0.0823952203594574',), 21729717: ()} output_args : {21729717: [{'mal_croppe': 21729742, 'environnement': 21729743, 'Teint_Dans_La_Masse': 21729744, 'plastique': 21729745, 'metal': 21729746, 'flou': 21729747, 'kraft': 21729748, 'Carton_gris': 21729749, 'Carton_brun': 21729750, 'papier': 21729751, 'cartonnette': 21729752, 'autre_refus': 21729753}]} args : 21729717 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 :14, first value : ('0.0823952203594574',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21729717) 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 (1347492262,1347492237,1347492204,1347491914,1347491881,1347491856,1347491851,1347491843,1347491811,1347491417,1347491403,1347491302,1347491282) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347491282 begin to download photo : 1347491417 begin to download photo : 1347491851 begin to download photo : 1347491914 begin to download photo : 1347492262 download finish for photo 1347491282 begin to download photo : 1347491302 download finish for photo 1347491417 begin to download photo : 1347491811 download finish for photo 1347492262 download finish for photo 1347491914 begin to download photo : 1347492204 download finish for photo 1347491302 begin to download photo : 1347491403 download finish for photo 1347491851 begin to download photo : 1347491856 download finish for photo 1347491811 begin to download photo : 1347491843 download finish for photo 1347492204 begin to download photo : 1347492237 download finish for photo 1347491403 download finish for photo 1347491843 download finish for photo 1347492237 download finish for photo 1347491856 begin to download photo : 1347491881 download finish for photo 1347491881 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217297421742998979/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P21729717_26-03-2025_15_22_59.pdf 21729742 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=21729742 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297421742998979 21729745 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=21729745 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347491431: '1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094916_0.png', 1347492484: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102005_0.png', 1347492485: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102002_0.png', 1347492486: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103345_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/107c3c1eb1d523cdc71672bea1e475e0_87637823.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/90adce14c01cbda57e21bd7817cafa15_26138111.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1f7993dcc2b07597a46fac0a6af70ae6_90881066.png change filename to text .imagette217297451742998979/ imagette217297451742998979/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102005_0.png.png imagette217297451742998979/1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094916_0.png.png imagette217297451742998979/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103345_0.png.png imagette217297451742998979/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102002_0.png.png imagette217297461742998980/ imagette217297471742998980/ imagette217297481742998980/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9b1aad3763ed1a118d10e34b63491a49_29853942.png imagette217297451742998979 21729746 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=21729746 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297461742998980 21729747 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=21729747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297471742998980 21729748 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=21729748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297481742998980 21729752 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=21729752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347492313: '1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098157_0.png', 1347492314: '1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098159_0.png', 1347492469: '1742998873_1680943_1347491417_010c8ef26a300417443352753653afff_rle_crop_3731098664_0.png', 1347492470: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102006_0.png', 1347492471: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103337_0.png', 1347492472: '1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103408_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/604af38de5cc7d4514309aebc57deeff_48922983.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/15a0f30692ec46a08d2f7e301a8212ea_1786216.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7754ab41f80b909b79f5785e8ba22de5_93661549.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5eae43a4502a8ce30c71d9050398d8f0_30426623.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/11fa66c2465e99e3660f41db0f7733e8_54586278.png change filename to text .imagette217297521742998980/ imagette217297521742998980/1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103408_0.png.png imagette217297521742998980/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103337_0.png.png imagette217297521742998980/1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098157_0.png.png imagette217297521742998980/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102006_0.png.png imagette217297521742998980/1742998873_1680943_1347491417_010c8ef26a300417443352753653afff_rle_crop_3731098664_0.png.png imagette217297521742998980/1742998852_1680648_1347491403_40133a6163a8d8355c1de84b91df2db2_rle_crop_3731098159_0.png.png imagette217297531742998980/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/11862996a5c6e5f509c046c5d6eb071d_39443318.png imagette217297521742998980 21729753 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=21729753 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217297531742998980 21729744 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=21729744 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347491426: '1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094922_0.png', 1347491427: '1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094958_0.png', 1347492449: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102003_0.png', 1347492450: '1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103370_0.png', 1347492451: '1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103368_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5ed71aa1d331be1081cea90dbc21988f_83067392.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/548980d12eac1470981f9d4e488c2bd0_4831250.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6b72ec1d20c1bc9e46f81e088df4654e_52033992.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3b9c6a3d07e5528c4e638955fcce8744_91322235.png change filename to text .imagette217297441742998980/ imagette217297441742998980/1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094922_0.png.png imagette217297441742998980/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102003_0.png.png imagette217297441742998980/1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103370_0.png.png imagette217297441742998980/1742998873_1680943_1347490590_6513b44c44aac8011f857556216118b9_rle_crop_3731103368_0.png.png imagette217297441742998980/1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094958_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1c0e78dbf8353b3e6454daecbd0f1479_2369307.png imagette217297441742998980 21729749 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=21729749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347492464: '1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102001_0.png', 1347492465: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103341_0.png', 1347492466: '1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103407_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fde7fef5990fb30f77be287fb0d2e1f1_31244346.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b4ea1b14e3b26f0dc272814ef0d2cc39_12987901.png change filename to text .imagette217297491742998981/ imagette217297491742998981/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103341_0.png.png imagette217297491742998981/1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103407_0.png.png imagette217297491742998981/1742998873_1680943_1347490672_07a8e47364f6d791ba3c80815fa446e1_rle_crop_3731102001_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2f7c8c8866e9cf804ffb7aaff9160ae9_48691866.png imagette217297491742998981 21729750 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=21729750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347491429: '1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094920_0.png', 1347491430: '1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094954_0.png', 1347492476: '1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103336_0.png', 1347492477: '1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103409_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c22528002459b03d4a57cd5066c5bbbb_62066878.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f1c4f295c5d5077a993042512757ab6d_3761227.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f4f1c6b8305a14865b197d9d7dd4b282_59589096.png change filename to text .imagette217297501742998981/ imagette217297501742998981/1742998873_1680943_1347490652_6b06e5b08628a768c3bf84571f8f2418_rle_crop_3731103336_0.png.png imagette217297501742998981/1742998732_1679128_1347489960_0329de311d3578d8007c547c9bea0c53_rle_crop_3731094920_0.png.png imagette217297501742998981/1742998873_1680943_1347490526_453819fd69bc6f0fb13aa7c9164e83b9_rle_crop_3731103409_0.png.png imagette217297501742998981/1742998732_1679128_1347489904_442bf0174f923b40427dab310dcf3318_rle_crop_3731094954_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8267207e7f0217da3f2be79171e067cf_95382099.png imagette217297501742998981 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21729717 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21729754,21729755,21729756,21729757,21729758,21729759,21729760,21729761,21729762,21729763,21729764,21729765?tags=mal_croppe,environnement,Teint_Dans_La_Masse,plastique,metal,flou,kraft,Carton_gris,Carton_brun,papier,cartonnette,autre_refus your option no_mail is active, we will not send the real mail to your client args[1347492262] : ('0.0823952203594574',) no score found for photo 1347492262 We are sending mail with results at report@fotonower.com args[1347492237] : ('0.0823952203594574',) no score found for photo 1347492237 We are sending mail with results at report@fotonower.com args[1347492204] : ('0.0823952203594574',) no score found for photo 1347492204 We are sending mail with results at report@fotonower.com args[1347491914] : ('0.0823952203594574',) no score found for photo 1347491914 We are sending mail with results at report@fotonower.com args[1347491881] : ('0.0823952203594574',) no score found for photo 1347491881 We are sending mail with results at report@fotonower.com args[1347491856] : ('0.0823952203594574',) no score found for photo 1347491856 We are sending mail with results at report@fotonower.com args[1347491851] : ('0.0823952203594574',) no score found for photo 1347491851 We are sending mail with results at report@fotonower.com args[1347491843] : ('0.0823952203594574',) no score found for photo 1347491843 We are sending mail with results at report@fotonower.com args[1347491811] : ('0.0823952203594574',) no score found for photo 1347491811 We are sending mail with results at report@fotonower.com args[1347491417] : ('0.0823952203594574',) no score found for photo 1347491417 We are sending mail with results at report@fotonower.com args[1347491403] : ('0.0823952203594574',) no score found for photo 1347491403 We are sending mail with results at report@fotonower.com args[1347491302] : ('0.0823952203594574',) no score found for photo 1347491302 We are sending mail with results at report@fotonower.com args[1347491282] : ('0.0823952203594574',) no score found for photo 1347491282 We are sending mail with results at report@fotonower.com refus_total : 0.0823952203594574 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=21729717 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_P21729717_26-03-2025_15_22_59.pdf results_Auto_P21729717_26-03-2025_15_22_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_22_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21729717','results_Auto_P21729717_26-03-2025_15_22_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_22_59.pdf','pdf','','0.18','0.0823952203594574') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21729717]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282] map_info['map_portfolio_photo'] : {21729717: [1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} final : False mtd_id 4302 list_pids : [1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282] 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, '2692816') ('4302', '21729717', '1347492262', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492237', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492204', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491914', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491881', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491856', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491851', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491843', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491811', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491417', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491403', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491302', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491282', None, None, None, None, None, '2692816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '21729717', '1347492262', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492237', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492204', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491914', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491881', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491856', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491851', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491843', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491811', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491417', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491403', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491302', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491282', None, None, None, None, None, '2692816')] time used for this insertion : 0.017244815826416016 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0730574131011963 time spend to save output : 0.017528057098388672 total time spend for step 4 : 3.090585470199585 step5:split_time_score Wed Mar 26 15:23:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21729717'] 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 : [('21729717',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21729717) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347492262: {'path': 'temp/1742998979_3231856_1347492262_a0bd922ba3dfa01e3b6ee6191436a55d.jpg', 'extension': 'jpg'}, 1347491282: {'path': 'temp/1742998979_3231856_1347491282_e08374c2395216bbdf7e3a0a0211b679.jpg', 'extension': 'jpg'}, 1347491302: {'path': 'temp/1742998979_3231856_1347491302_3d7cfd92f1cf861a97ce6486c4b0adce.jpg', 'extension': 'jpg'}, 1347491403: {'path': 'temp/1742998979_3231856_1347491403_40133a6163a8d8355c1de84b91df2db2.jpg', 'extension': 'jpg'}, 1347491417: {'path': 'temp/1742998979_3231856_1347491417_010c8ef26a300417443352753653afff.jpg', 'extension': 'jpg'}, 1347491811: {'path': 'temp/1742998979_3231856_1347491811_9fddd0f86830d75528edbaefff7f6dcc.jpg', 'extension': 'jpg'}, 1347491843: {'path': 'temp/1742998979_3231856_1347491843_5f6440d1395f2ef1e3f8e59eb7c1df64.jpg', 'extension': 'jpg'}, 1347491914: {'path': 'temp/1742998979_3231856_1347491914_4dfeac9f4a53760c484a2ea3a2bf17b1.jpg', 'extension': 'jpg'}, 1347492204: {'path': 'temp/1742998979_3231856_1347492204_750a0815a7811c05cd36e29261437fb5.jpg', 'extension': 'jpg'}, 1347492237: {'path': 'temp/1742998979_3231856_1347492237_addbc268330e268ae51fd92d96cf011c.jpg', 'extension': 'jpg'}, 1347491851: {'path': 'temp/1742998979_3231856_1347491851_f1b253dee07805db9d4f99ed101946f0.jpg', 'extension': 'jpg'}, 1347491856: {'path': 'temp/1742998979_3231856_1347491856_f45f4d16ac3c6a1baebfd1a0ab26a5f6.jpg', 'extension': 'jpg'}, 1347491881: {'path': 'temp/1742998979_3231856_1347491881_0b7473761eb96b0f8ab8aad3de787961.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 = 21729717; (('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 = 21729717 group by h (('15', 21),) 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=21729717 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 (21729717) 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 (21729717) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21729717 Nombre de photos uploadées : 21 / 23040 (0%) 26032025 21729717 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 26032025 21729717 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1347489960, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0329de311d3578d8007c547c9bea0c53.jpg', 'username': None, 'uploaded_at': 1742998635, 'text': 'image_26032025_15_15_34_10133.jpg'}, {'photo_id': 1347489904, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/442bf0174f923b40427dab310dcf3318.jpg', 'username': None, 'uploaded_at': 1742998635, 'text': 'image_26032025_15_15_44_10135.jpg'}, {'photo_id': 1347490741, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c40c823347cec215aa972aa08f7f37b4.jpg', 'username': None, 'uploaded_at': 1742998694, 'text': 'image_26032025_15_15_53_9124.jpg'}, {'photo_id': 1347490672, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/07a8e47364f6d791ba3c80815fa446e1.jpg', 'username': None, 'uploaded_at': 1742998694, 'text': 'image_26032025_15_16_04_10149.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016818046569824219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21729717, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026513099670410156 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697962, 'mtr_portfolio_id': 21726952, 'dashboard_result_id': 9636115, '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_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697962, 'mtr_portfolio_id': 21728821, 'dashboard_result_id': 9636117, '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_P21728821_26-03-2025_15_19_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1697962, 'mtr_portfolio_id': 21729717, 'dashboard_result_id': 9636118, '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_P21729717_26-03-2025_15_19_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21729742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21729743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21729744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21729745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21729746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21729747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21729748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21729749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21729750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21729751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21729752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21729753, '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 = 21726952 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': 2692533, 'mtr_portfolio_id': 21726952, 'created_at': datetime.datetime(2025, 3, 26, 14, 48, 59), 'result': '0.04561189147009174', 'result_long': None, 'result_double': None}] Qualite : 0.04561189147009174 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21726952 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21726952_26-03-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21726952 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_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, 'pht': 3726}}" where mtr_portfolio_id = 21726952 and dashboard_run_id = 1697962 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`=21726952 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9636115, 0.04561189147009174, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21726952_26-03-2025_14_48_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21726983, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21726984, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21726985, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21726986, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21726987, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21726988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21726989, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21726990, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21726991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21726992, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21726993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21726994, '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 = 21728821 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': 2692782, 'mtr_portfolio_id': 21728821, 'created_at': datetime.datetime(2025, 3, 26, 15, 19, 4), 'result': '0.03826357938052577', 'result_long': None, 'result_double': None}] Qualite : 0.03826357938052577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21728821 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_19_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21728821 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_P21728821_26-03-2025_15_19_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, 'pht': 3726}}" where mtr_portfolio_id = 21728821 and dashboard_run_id = 1697962 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`=21728821 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9636117, 0.03826357938052577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21728821_26-03-2025_15_19_05.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21728846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21728847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21728848, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21728849, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21728850, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21728851, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21728852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21728853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21728854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21728855, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21728856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21728857, '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 = 21729717 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': 2692816, 'mtr_portfolio_id': 21729717, 'created_at': datetime.datetime(2025, 3, 26, 15, 22, 59), 'result': '0.0823952203594574', 'result_long': None, 'result_double': None}] Qualite : 0.0823952203594574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21729717 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21729717 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_P21729717_26-03-2025_15_22_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21729742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21729743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21729744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21729745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21729746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21729747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21729748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21729749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21729750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21729751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21729752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21729753, 'pht': 3726}}" where mtr_portfolio_id = 21729717 and dashboard_run_id = 1697962 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`=21729717 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9636118, 0.0823952203594574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21729717_26-03-2025_15_22_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21729742, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21729743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21729744, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21729745, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21729746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21729747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21729748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21729749, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21729750, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21729751, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21729752, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21729753, '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 (21726952,21728821,21729717) result : ((1347470415,), (1347470776,), (1347470788,), (1347470796,), (1347471049,), (1347471085,), (1347471168,), (1347471487,), (1347471507,), (1347471522,), (1347471546,), (1347471554,), (1347471721,), (1347471742,), (1347471755,), (1347471758,), (1347471833,), (1347471843,), (1347471860,), (1347471881,), (1347472049,), (1347472075,), (1347472092,), (1347472278,), (1347472304,), (1347472315,), (1347472321,), (1347472327,), (1347472358,), (1347472360,), (1347472362,), (1347472388,), (1347472483,), (1347472486,), (1347472493,), (1347472497,), (1347472502,), (1347472830,), (1347472913,), (1347472992,), (1347473065,), (1347473215,), (1347473225,), (1347473235,), (1347473407,), (1347473411,), (1347473441,), (1347473469,), (1347473500,), (1347473529,), (1347473577,), (1347473599,), (1347473607,), (1347473612,), (1347473617,), (1347473646,), (1347473648,), (1347473657,), (1347473676,), (1347473679,), (1347474142,), (1347478250,), (1347478279,), (1347478712,), (1347478763,), (1347479359,), (1347479381,), (1347479883,), (1347479972,), (1347480019,), (1347480069,), (1347480140,), (1347480555,), (1347480594,), (1347480650,), (1347480781,), (1347480866,), (1347481357,), (1347481427,), (1347481529,), (1347482736,), (1347482819,), (1347482889,), (1347484675,), (1347484808,), (1347484898,), (1347484951,), (1347485005,), (1347485592,), (1347485693,), (1347485808,), (1347485907,), (1347486125,), (1347486335,), (1347486985,), (1347487008,), (1347487148,), (1347487836,), (1347487932,), (1347487979,), (1347488033,), (1347488087,), (1347488138,), (1347488541,), (1347488599,), (1347488641,), (1347488684,), (1347488747,), (1347489389,), (1347489416,), (1347489453,), (1347489470,), (1347489514,), (1347489572,), (1347489576,), (1347489581,), (1347489585,), (1347489589,), (1347489592,), (1347490014,), (1347489904,), (1347489960,), (1347490526,), (1347490546,), (1347490590,), (1347490652,), (1347490672,), (1347490741,), (1347491282,), (1347491302,), (1347491403,), (1347491417,), (1347491811,), (1347491843,), (1347491851,), (1347491856,), (1347491881,), (1347491914,), (1347492204,), (1347492237,), (1347492262,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21729717]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282] map_info['map_portfolio_photo'] : {21729717: [1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282, 1347490741, 1347490672, 1347490652, 1347490590, 1347490546, 1347490526, 1347489960, 1347489904]} final : True mtd_id 4302 list_pids : [1347492262, 1347492237, 1347492204, 1347491914, 1347491881, 1347491856, 1347491851, 1347491843, 1347491811, 1347491417, 1347491403, 1347491302, 1347491282] Looping around the photos to save general results len do output : 1 /21729717Didn'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, '2692816') ('4302', '21729717', '1347492262', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492237', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347492204', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491914', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491881', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491856', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491851', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491843', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491811', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491417', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491403', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491302', None, None, None, None, None, '2692816') ('4302', None, None, None, None, None, None, None, '2692816') ('4302', '21729717', '1347491282', None, None, None, None, None, '2692816') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '21729717', 'None', None, None, None, None, '2692816'), ('4302', '21729717', '1347492262', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492237', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347492204', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491914', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491881', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491856', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491851', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491843', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491811', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491417', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491403', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491302', None, None, None, None, None, '2692816'), ('4302', '21729717', '1347491282', None, None, None, None, None, '2692816')] time used for this insertion : 0.015831470489501953 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3013451099395752 time spend to save output : 0.01614999771118164 total time spend for step 5 : 0.31749510765075684 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 (2692816) 2.40user 2.48system 0:07.86elapsed 62%CPU (0avgtext+0avgdata 159484maxresident)k 672inputs+10800outputs (4major+72561minor)pagefaults 0swaps