-
-
Notifications
You must be signed in to change notification settings - Fork 132
Add custom background tasks in worker #923
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 54 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
b1cd1c3
Add custom background task API
2chanhaeng a096f2c
Restructure mise install tasks and update docs
2chanhaeng bc71b3f
Add PR #803 link in changelog
2chanhaeng 6bc8bdf
Revive vocab nested in null-prototype objects
2chanhaeng f7c9a34
Guard against an unparsable task started time
2chanhaeng 58c01ca
Store task definitions in a prototype-safe Map
2chanhaeng e36d692
Simplify task payload revival to a single matching reviver
2chanhaeng 29dec04
Start workers for dedicated per-task queues
2chanhaeng 3681747
Removed overly detailed comments and unused code
2chanhaeng 7d5c3a1
Remove *codec-fn.ts*
2chanhaeng 42153cb
Document the idempotent-validation requirement for task schemas
2chanhaeng 0cd3155
Reject enqueuing a task unknown to the federation
2chanhaeng bd3f2ac
Polish task enqueue path and queue-isolation docs
2chanhaeng 29a5dcb
Type the task codec's reviver dispatch
2chanhaeng f935cd5
Hide the task handle's phantom context-data marker
2chanhaeng 7be32de
Pin deep-nesting support in the task codec
2chanhaeng 5e14a01
Reject foreign task handles by identity, not name
2chanhaeng f7a9f38
Validate task payloads in the testing mock
2chanhaeng a2deb39
Hoist @standard-schema/spec to the workspace root
2chanhaeng 33dfd68
Start the queue worker on custom task enqueue
2chanhaeng 8e41a7e
Vet the whole mock task batch before any handler
2chanhaeng 45b4e89
Reject foreign task handles in the testing mock
2chanhaeng 80b1d12
Use 2.x.x @since for new task APIs
2chanhaeng 193025b
Fix doc and comment inaccuracies found in review
2chanhaeng 4303ac4
Cover enqueueTask(Many) in middleware tests
2chanhaeng 1d82b19
Append revived array elements without spread
2chanhaeng 369e01f
Polish task payload docs and cover Temporal
2chanhaeng de7cad5
Ignore `Temporal` test in Bun
2chanhaeng d8727b7
Move custom background task changelog to v2.4.0
2chanhaeng c12bba6
Support deduplicationKey for task enqueue
2chanhaeng 6ebba53
Extract task enqueue pipeline out of ContextImpl
2chanhaeng 8c02ddd
Merge task test helpers back into tasks.ts
2chanhaeng 5e3944f
Roll back dedup marker when a task enqueue fails
2chanhaeng afdaa61
Fix and simplify task queue worker startup
2chanhaeng 01c3fab
Resolve MockQueue.listen() on a pre-aborted signal
2chanhaeng ed64469
Fall back to enqueue() for single deduplicated batch
2chanhaeng 5319c1e
Give each task test its own MemoryKvStore
2chanhaeng ae0d9c7
Clarify task docs and add missing JSDoc
2chanhaeng b100954
Finalized `@since` tag related to custom tasks from 2.x.x to 2.4.0
2chanhaeng ffd842a
Soften emphasis and fix jsr-ref tildes in tasks.md
2chanhaeng 7ccdc0d
Clarify that deduplicationKey only requests dedup
2chanhaeng 77109fe
Reject dedup batch on cas path through wrapper
2chanhaeng 2703445
Support deduplicationKey for task enqueue
2chanhaeng 3117772
Add OpenTelemetry observability to custom tasks
2chanhaeng 3fb3d8b
Drop the build step from the Deno test task
2chanhaeng 72929a6
Record only terminal task failures in telemetry
2chanhaeng c7c512d
Make task enqueue metrics survive partial fan-out
2chanhaeng f590b30
Fix docs and versions
2chanhaeng 728d480
Clarify result type of `FederationImpl.metrics`
2chanhaeng 89a1a67
Clarify task telemetry semantics in docs and code
2chanhaeng b48b549
Distinguish task retry re-enqueue failures
2chanhaeng 0052bb9
Deduplicate queue worker-boundary instrumentation
2chanhaeng b37fdfd
Add `wait_for = ["build"]` in `tasks."test:deno"`
2chanhaeng 6eb234c
Deflake the stale-rollback dedup marker test
2chanhaeng eae895c
Combine duplicate `@fedify/fedify` sections in `Version 2.4.0` and ad…
2chanhaeng 3b0a453
Revive `To be released.`
2chanhaeng 2c99806
Update `markdown-it-jsr-ref` version to 0.5.0
2chanhaeng File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.