This commit is contained in:
2025-10-22 22:27:58 +03:00
parent c2bd606eb7
commit 4109a75aa2
2 changed files with 32 additions and 19 deletions

View File

@@ -39,8 +39,9 @@
effective_max_attempts: "{{ (max_attempts | default(3)) | int }}"
correlation_id: "{{ correlation_id | default('') }}"
original_emitted_at: "{{ original_emitted_at | default('') }}"
# keep whatever scheduler sent in core and full; prefer full when available
target_version: "{{ target_version | default('') }}"
target_version_full: "{{ target_version | default('') }}"
target_version_full: "{{ target_version_full | default(target_version | default('')) }}"
# Visibility of what scheduler sent
- name: Debug show received scheduler metadata
@@ -151,7 +152,8 @@
max_attempts: "{{ effective_max_attempts | int }}"
correlation_id: "{{ correlation_id }}"
original_emitted_at: "{{ original_emitted_at }}"
target_version: "{{ target_version_full }}"
target_version_full: "{{ target_version_full }}" # <-- ADD
target_version: "{{ target_version | default(target_version_full) }}" # <-- ADD (keeps core if it was sent)
current_delay_sec: "{{ next_delay_sec | int }}"
schema_version: 1
@@ -698,6 +700,8 @@
max_attempts: "{{ effective_max_attempts | int }}"
correlation_id: "{{ correlation_id | default('') }}"
original_emitted_at: "{{ original_emitted_at | default('') }}"
target_version_full: "{{ target_version_full }}" # <-- ADD
target_version: "{{ target_version | default(target_version_full) }}" # <-- ADD
current_delay_sec: "{{ next_delay_sec | int }}"
schema_version: 1