Can this kind of issue occur if the database to which the application is connected is not available to the application, ie say eg if database is not available or may be the database is not connected properly during startup.
Again, there is no data. Speculating with no data is not very useful. All there is, is that there is something complaining about the fact that a task is taking longer than 12 minutes to run.
You need to take a look at the task to see why it is taking so long. And see if it is normal for it to take that long. But to answer your question, if your task is waiting for the DB to be available, and is willing to wait for 12 minutes, then yes, that can be a cause.
Henry