File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -835,6 +835,11 @@ def archive(self, force_prune_restarts=False):
835835        elif  py_libpath  not  in ld_libpaths .split (':' ):
836836            os .environ ['LD_LIBRARY_PATH' ] =  f'{ py_libpath } { ld_libpaths }  
837837
838+         # Run archive user script before collation job is submitted 
839+         archive_script  =  self .userscripts .get ('archive' )
840+         if  archive_script :
841+             self .run_userscript (archive_script )
842+ 
838843        collate_config  =  self .config .get ('collate' , {})
839844        collating  =  collate_config .get ('enable' , True )
840845        if  collating :
@@ -853,10 +858,6 @@ def archive(self, force_prune_restarts=False):
853858            )
854859            sp .check_call (shlex .split (cmd ))
855860
856-         archive_script  =  self .userscripts .get ('archive' )
857-         if  archive_script :
858-             self .run_userscript (archive_script )
859- 
860861        # Ensure postprocessing runs if model not collating 
861862        if  not  collating :
862863            self .postprocess ()
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments