Skip to content

Move duly_dispatch from handler to body, now that a 18.3 job body has Intl.DateTimeFormat #189

Open

Description

@objectstack-fleet

Found by the #185 upgrade pass on @objectstack 18.3.0 (main ce6fc4b). The report is the project file duly-18.3-browser-check/REPORT.md (the #28898 re-measure).

Background

#147 (PR #167) kept duly_dispatch on a handler, because the 18.2 job-body sandbox had no Intl (objectstack#28898). Duly's period maths needs Intl.DateTimeFormat for time zones.

What 18.3 changes

objectstack#28898 shipped (#29031). Measured on 18.3.0 with the runtime's QuickJSScriptRunner:

  • typeof Intl === 'object'.
  • Intl.DateTimeFormat format, formatToParts and resolvedOptions are correct for Asia/Shanghai.
  • Intl.NumberFormat is still absent.

Duly's period code (src/functions/period.ts, dispatch.job.ts) uses only DateTimeFormat.

What done looks like

  • Decide with a measurement whether moving the job to body is worth it: what the author warning or platform guidance prefers, and what changes in sandbox limits, timeouts and the reads the job makes. If it is not worth it, say so and close this card.
  • If it moves: dispatch at 01:00 creates the same tasks as before. Use the clock-shift recipe and compare with main on the same date. All four gates stay green.

Generated by Claude Code

Activity

  1. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:duly#1 · os-warren · session_01JQwxbYdNXLejPwk9NRtzyG

    Re-measure on @objectstack 18.5.0 (#190, PR #191 head a13ebae), 2026-11-15T23:49Z: in a job body Intl.DateTimeFormat works (Asia/Shanghai, Berlin DST correct); Intl.NumberFormat is still undefined, same as 18.3. Note objectstack-ai/objectstack#34179: under objectstack dev on 18.5 the handler-based duly_dispatch loses the engine onEnable binds (two module evaluations); pnpm start is fine. Moving dispatch to a body would also take it off that module-state binding. Blocked on #191 landing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions