Files
floci/docs/services
Salil Chincholikar 07ebc33d28 feat(scheduler): substitute schedule context attributes in target Input (#5194)
* feat(scheduler): substitute schedule context attributes in target Input

Replace <aws.scheduler.schedule-arn>, <aws.scheduler.scheduled-time>,
<aws.scheduler.execution-id> and <aws.scheduler.attempt-number> in the
target Input for templated and universal targets, using the occurrence's
scheduled time and the retry attempt the dispatcher tracks.

* test(scheduler): share one harness between the scheduler integration tests

SchedulerContextAttributesIntegrationTest copied its schedule creation,
scoped dispatcher, unique names and cleanup from
SchedulerStepFunctionsIntegrationTest. Both now use SchedulerTestHarness,
which also builds the at() expression they each formatted by hand.

* fix(scheduler): keep dead-letter context aligned with the last attempt

Materialize the target request before every invocation so an exhausted
occurrence's dead-letter body carries the same execution id and attempt
number as its last attempted delivery. Preserve that request when the
occurrence expires before another retry.

Share scheduled-time formatting across context attributes, default events
and dead-letter attributes. Cover retry-count and event-age exhaustion
and remove the documented first-attempt body limitation.

* style(scheduler): fix shared harness static import order

Place ROLE_ARN before atExpression to satisfy the ImportOrder rule used
by the PR's merged Checkstyle configuration.
2026-10-09 12:08:34 -04:00
..
2026-08-21 00:09:04 -04:00