parent
29a54f0b30
commit
714938531b
|
@ -23,6 +23,7 @@ public class ScheduledTasks {
|
||||||
if ( AssignmentsHandler.hadConnectionErrorOnRequest ) {
|
if ( AssignmentsHandler.hadConnectionErrorOnRequest ) {
|
||||||
if ( GeneralController.shouldShutdownWorker ) // Make sure the worker shuts-down, in case the user sends the relevant request, while the worker is stuck in a data-request error-loop.
|
if ( GeneralController.shouldShutdownWorker ) // Make sure the worker shuts-down, in case the user sends the relevant request, while the worker is stuck in a data-request error-loop.
|
||||||
// TODO - Should this worker inform the Controller that will shutdown?
|
// TODO - Should this worker inform the Controller that will shutdown?
|
||||||
|
// TODO - Yes, apart from this knowledge, it may be the case that we make the Controller to request the Workers to shutdown.
|
||||||
UrlsWorkerApplication.gentleAppShutdown();
|
UrlsWorkerApplication.gentleAppShutdown();
|
||||||
try {
|
try {
|
||||||
Thread.sleep(900_000); // Sleep for 15 mins to stall the scheduler from retrying right away, thus giving time to the Controller to recover.
|
Thread.sleep(900_000); // Sleep for 15 mins to stall the scheduler from retrying right away, thus giving time to the Controller to recover.
|
||||||
|
|
|
@ -171,9 +171,8 @@ public class FullTextsController {
|
||||||
|
|
||||||
public static boolean deleteFile(String fileFullPathString)
|
public static boolean deleteFile(String fileFullPathString)
|
||||||
{
|
{
|
||||||
File currentFile = new File(fileFullPathString);
|
|
||||||
try {
|
try {
|
||||||
FileDeleteStrategy.FORCE.delete(currentFile);
|
FileDeleteStrategy.FORCE.delete(new File(fileFullPathString));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
logger.error("Error when deleting the file: " + fileFullPathString);
|
logger.error("Error when deleting the file: " + fileFullPathString);
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
</triggeringPolicy>
|
</triggeringPolicy>
|
||||||
<encoder>
|
<encoder>
|
||||||
<charset>UTF-8</charset>
|
<charset>UTF-8</charset>
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{36}.%M\(@%line\) - %msg%n</pattern>
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS z} [%thread] %-5level %logger{36}.%M\(@%line\) - %msg%n</pattern>
|
||||||
</encoder>
|
</encoder>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
|
<appender name="Console" class="ch.qos.logback.core.ConsoleAppender">
|
||||||
<encoder>
|
<encoder>
|
||||||
<charset>UTF-8</charset>
|
<charset>UTF-8</charset>
|
||||||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{36}.%M\(@%line\)) - %msg%n</pattern>
|
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS z} [%thread] %highlight(%-5level) %cyan(%logger{36}.%M\(@%line\)) - %msg%n</pattern>
|
||||||
</encoder>
|
</encoder>
|
||||||
</appender>
|
</appender>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue