try to ensure all required log file exist before submission
1 unresolved thread
1 unresolved thread
- message cleanup for external workflows
Merge request reports
Activity
792 :return: boolean representing if file was created 793 """ 794 if iteration == 3: 795 # try to create file several times, but don't be stupid about it 796 logger.warning(f"Warning: Failed to create {logfile} multiple times. Workflow may fail.") 797 return False 798 799 # create needed logfile if it doesn't exist 800 logfile.touch() 801 # verify that the file was created 802 if logfile.is_file(): 803 logger.info("log file %s exists.", logfile) 804 return True 805 else: 806 logger.warning(f"Failed to create {logfile}. Trying again") 807 iteration += 1 mentioned in commit 63c3e9e0
Please register or sign in to reply