mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 23:43:06 +00:00
[CST-6756] Implemented script to delete old processes
This commit is contained in:
@@ -305,6 +305,12 @@ public class ProcessServiceImpl implements ProcessService {
|
||||
tempFile.delete();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<Process> findByStatusAndCreationTimeOlderThan(Context context, List<ProcessStatus> statuses,
|
||||
Date date) throws SQLException {
|
||||
return this.processDAO.findByStatusAndCreationTimeOlderThan(context, statuses, date);
|
||||
}
|
||||
|
||||
private String formatLogLine(int processId, String scriptName, String output, ProcessLogLevel processLogLevel) {
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
Reference in New Issue
Block a user