- Email notyfikacji zawiera numer zamówienia, klienta, datę, kwotę - Order joby (send_order, sync_payment, sync_status) ponawiane w nieskończoność co 30 min - Rozróżnienie PONAWIANY vs TRWAŁY BŁĄD w emailu - Cleanup stuck jobów po udanym wysłaniu zamówienia - +2 testy infinite retry w CronJobRepositoryTest Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
65 lines
2.2 KiB
Markdown
65 lines
2.2 KiB
Markdown
# Project State
|
|
|
|
## Project Reference
|
|
|
|
See: .paul/PROJECT.md (updated 2026-03-12)
|
|
|
|
**Core value:** Właściciel sklepu ma pełną kontrolę nad sprzedażą online w jednym systemie pisanym od podstaw, bez narzutów zewnętrznych platform.
|
|
**Current focus:** Phase 9 complete — Apilo email fix + infinite retry
|
|
|
|
## Current Position
|
|
|
|
Milestone: Hotfix
|
|
Phase: 9 — Apilo email notification + infinite retry — Complete
|
|
Plan: 09-01 complete (phase done)
|
|
Status: UNIFY complete, phase 9 finished
|
|
Last activity: 2026-03-19 — 09-01 UNIFY complete
|
|
|
|
Progress:
|
|
- Phase 9: [██████████] 100% (COMPLETE)
|
|
|
|
## Loop Position
|
|
|
|
Current loop state (phase 9, plan 01):
|
|
```
|
|
PLAN ──▶ APPLY ──▶ UNIFY
|
|
✓ ✓ ✓ [Phase 9 complete]
|
|
```
|
|
|
|
Previous phases:
|
|
```
|
|
Phase 4: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-12]
|
|
Phase 5: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-12]
|
|
Phase 6: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-12]
|
|
Phase 7: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-15]
|
|
Phase 8: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-16]
|
|
Phase 9: PLAN ──▶ APPLY ──▶ UNIFY ✓ ✓ ✓ [COMPLETE — 2026-03-19]
|
|
```
|
|
|
|
## Accumulated Context
|
|
|
|
### Decisions
|
|
- Use existing `CouponRepository::markAsUsed()` instead of adding methods to stdClass
|
|
- 2026-03-16: Przyczyna braku wysyłki = brakujące $apiloRepository w use() closures cron.php (regresja z fazy 6)
|
|
- 2026-03-16: Retry -1 orders co 1h zamiast permanent failure
|
|
- 2026-03-16: Email notification o trwale failed Apilo jobach
|
|
- 2026-03-19: Order-related Apilo joby — infinite retry co 30 min (nigdy permanent failure)
|
|
- 2026-03-19: Email z danymi zamówienia + rozróżnienie PONAWIANY vs TRWAŁY BŁĄD
|
|
- 2026-03-19: Cleanup stuck sync_payment/sync_status jobów po udanym wysłaniu
|
|
|
|
### Deferred Issues
|
|
None.
|
|
|
|
### Blockers/Concerns
|
|
None.
|
|
|
|
## Session Continuity
|
|
|
|
Last session: 2026-03-19
|
|
Stopped at: Phase 09 UNIFY complete
|
|
Next action: Deploy fix or /paul:progress for next work
|
|
Resume file: .paul/phases/09-apilo-email-fix/09-01-SUMMARY.md
|
|
|
|
---
|
|
*STATE.md — Updated after every significant action*
|