Some runnables are set to be launch at Ametys startup, but for most schedulables, the application is not yet totally loaded and we can have some errors, especially on soft restart.
For example, the runnable org.ametys.cms.indexing.ReloadSolrAclCachesForCoresRunnable can launch this exception at restart and the Solr cache is corrupted, we have to manually reload it (can be a long task and it should be useless):
ERROR [org.ametys.cms.content.indexing.solr.SolrIndexer] (AmetysRuntimeScheduler_Worker-1;/ideo2_publication/plugins/admin/restart) The reloading of Read-ACL Solr Cache for workspace 'default' (checkIfNecessary=true) did not succeed as expected. Error code is the following: communication-with-Ametys-application
It is probably the same for deploy starter tasks that are automatically scheduled to NOW, but it is done during the launch.