Falven commented on issue #12662:
URL: https://github.com/apache/apisix/issues/12662#issuecomment-3559059953

   > I tested out [@Falven](https://github.com/Falven) proposed solution, but I 
could not get apisix running with this in standalone api-driven mode. I got it 
working by force loading the config. I have not been able to continue testing 
in my OpenShift environment as I have encountered a separate issue desribed 
here 
[apache/apisix-ingress-controller#2656](https://github.com/apache/apisix-ingress-controller/issues/2656)
   > 
   > _M.init_worker = function()
   >     sync_status_to_shdict(false)
   > 
   >     if is_use_admin_api() then
   >         apisix_yaml = {}
   >         apisix_yaml_mtime = 0
   >         update_config(apisix_yaml, apisix_yaml_mtime)  -- mark ready for 
admin API
   >         return true
   >     end
   > 
   >     -- force load config if not already loaded
   >     if not apisix_yaml then
   >         read_apisix_config()
   >     end
   > 
   >     ngx.timer.every(1, read_apisix_config)
   > 
   >     -- mark worker as healthy immediately
   >     if apisix_yaml then
   >         update_config(apisix_yaml, apisix_yaml_mtime)
   >     end
   > 
   >     return true
   > end
   
   An easy way around it is to just touch the config on startup.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to