Files
michaelschiemer/.deployment-backup/x_ansible/playbooks/deploy/includes/status_check.yml
Michael Schiemer 9b74ade5b0 feat: Fix discovery system critical issues
Resolved multiple critical discovery system issues:

## Discovery System Fixes
- Fixed console commands not being discovered on first run
- Implemented fallback discovery for empty caches
- Added context-aware caching with separate cache keys
- Fixed object serialization preventing __PHP_Incomplete_Class

## Cache System Improvements
- Smart caching that only caches meaningful results
- Separate caches for different execution contexts (console, web, test)
- Proper array serialization/deserialization for cache compatibility
- Cache hit logging for debugging and monitoring

## Object Serialization Fixes
- Fixed DiscoveredAttribute serialization with proper string conversion
- Sanitized additional data to prevent object reference issues
- Added fallback for corrupted cache entries

## Performance & Reliability
- All 69 console commands properly discovered and cached
- 534 total discovery items successfully cached and restored
- No more __PHP_Incomplete_Class cache corruption
- Improved error handling and graceful fallbacks

## Testing & Quality
- Fixed code style issues across discovery components
- Enhanced logging for better debugging capabilities
- Improved cache validation and error recovery

Ready for production deployment with stable discovery system.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-13 12:04:17 +02:00

37 lines
957 B
YAML

# Diese Datei enthält wiederverwendbare Tasks für die Anwendungsstatusüberprüfung
- name: Prüfe Anwendungsstatus
uri:
url: "http://{{ app_domain }}/"
return_content: no
status_code: 200, 301, 302, 403
validate_certs: no
timeout: 10
register: app_status
ignore_errors: yes
delegate_to: localhost
become: no
tags: [check]
- name: Setze Standardwerte für app_status
set_fact:
app_status: { 'status': 'unbekannt' }
when: app_status is undefined or app_status.status is undefined
tags: [check]
- name: Zeige Anwendungsstatus
debug:
msg: >
Anwendung ist
{% if app_status.status is defined and app_status.status == 200 %}
verfügbar
{% else %}
nicht verfügbar
{% if app_status.status is defined %}
(Status: {{ app_status.status }})
{% else %}
(Status konnte nicht ermittelt werden)
{% endif %}
{% endif %}
tags: [check]