code: def check_health(settings_cls) -> int:
      
      cls_kwargs = get_kwargs(settings_cls)
      loop = asyncio.get_event_loop()
      return loop.run_until_complete(async_check_health(cls_kwargs.get('redis_settings')))
docs: Run a health check on the worker and return the appropriate exit code.
      :return: 0 if successful, 1 if not