Skip to content

Fix alarm trigger docs: use ISO-8601 dates, clarify timezone is ignored#489

Merged
pru55e11 merged 3 commits intomainfrom
fix/alarm-trigger-date-format-docs
Mar 5, 2026
Merged

Fix alarm trigger docs: use ISO-8601 dates, clarify timezone is ignored#489
pru55e11 merged 3 commits intomainfrom
fix/alarm-trigger-date-format-docs

Conversation

@pru55e11
Copy link
Collaborator

@pru55e11 pru55e11 commented Mar 2, 2026

Summary

Fixes documentation for the /whisk.system/alarms/alarm feed to prevent 502 deployment errors.

Changes:

  • cron-jobs/lesson3.md: Replaced broken epoch millisecond timestamp example with ISO-8601 format. Added an InlineAlert noting that timezone is ignored (cron is always evaluated in UTC), startDate/stopDate must use ISO-8601, and both dates must be in the future.

  • prepackages.md: Added an InlineAlert with the same guidance on date format and timezone. Updated the cron trigger CLI example to use future ISO-8601 dates.

Context

Customers following the Lesson 3 cron jobs tutorial were hitting HTTP 502 (Bad Gateway) errors on deploy because the example used epoch millisecond timestamps (1601918992704), which are not supported by the alarms provider. The example dates were also from 2020, which would fail regardless since dates must be in the future.

Tested and confirmed:

  • Epoch millis for startDate/stopDate502 error (with or without timezone)
  • ISO-8601 strings for startDate/stopDatedeploys successfully

See: RUNNER-8924

Test plan

  • Verify the InlineAlert components render correctly on the dev site
  • Confirm the YAML example in lesson3.md is valid and deployable
  • Confirm the CLI example in prepackages.md is valid

pru55e11 added 2 commits March 2, 2026 15:47
The startDate and stopDate parameters for /whisk.system/alarms/alarm
must use ISO-8601 format (e.g. "2026-03-01T00:00:00.000Z"). Epoch
millisecond timestamps cause a 502 Bad Gateway error on deploy.

Also clarifies that the timezone parameter is ignored and cron
expressions are always evaluated in UTC.

See: https://jira.corp.adobe.com/browse/RUNNER-8924
The repo linter requires InlineAlert to be self-closing with content
on the following lines, not wrapped in opening/closing tags.
Copy link
Contributor

@purplecabbage purplecabbage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could future-proof the docs even more if you chose a more distant future date for your example ... assuming ai has not taken over by then 😛

@shazron
Copy link
Member

shazron commented Mar 3, 2026

The cron schedule is UTC, but just to clarify the docs, startDate and stopDate can have the timezone since they are ISO-8601 which allows for it?

Tested and confirmed that ISO-8601 timezone offsets (e.g. +05:30)
in startDate/stopDate are correctly parsed and honored. Updated
the docs to make clear that while cron is always UTC, the date
params accept any valid ISO-8601 with offsets.
@pru55e11 pru55e11 merged commit 8159f51 into main Mar 5, 2026
5 of 6 checks passed
@pru55e11 pru55e11 deleted the fix/alarm-trigger-date-format-docs branch March 5, 2026 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants