0

As the title suggests, I ran the spring application in the background with linux nohup, but the scheduler, which should be run every day, doesn't run because the thread died. If you know a solution, please let me know.

API communication works fine Only the scheduler is weird

2
  • Threads are internal to Java, from the OS point of view the whole app is a single process, so if the API keeps running, the background process is alive. Seems like a problem within the scheduled task itself, try adding log or running the task more often to debug the problem. Commented Feb 10, 2023 at 4:19
  • Please provide enough code so others can better understand or reproduce the problem. Commented Feb 10, 2023 at 17:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.