Skip to content

Publish worker event payloads through the response model #14317

Closed

Description

@ChiragAgg5k

Tracks PR #14316. Follow-up to #14296 / PR #14295.

Plan

Goal: Make events published by workers carry the same ISO 8601 datetimes as API responses, and make the functions worker's execution update payload include $createdAt / $updatedAt.

What changes (PR #14316):

  • src/Appwrite/Utopia/Response/Model.php: new Model::payload(Document) and a public static formatDatetime() moved over from Response.php, so Response::output() and worker payloads share one normaliser.
  • src/Appwrite/Platform/Workers/Functions.php: stamps the execution with $createdAt / $updatedAt, keeping the queued $createdAt for async HTTP executions.
  • Jobs.php (deployments update), Workers/Certificates.php (rules.*.update) and Functions/Http/Functions/Create.php (rules.*.create) now call (new Model())->payload($document) instead of hand-rolled getArrayCopy(...).
  • Extends tests/e2e/Services/ProjectWebhooks/WebhooksCustomServerTest.php (testExecutions, testCreateDeployment).

Remaining steps: none beyond PR #14316 (review, CI, merge).

Done when:

Activity

  1. self-assigned this
    on Oct 9, 2026
  2. added
    product / databases
    product / functions
    product / sites
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

product / databasesproduct / functionsproduct / sites

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions