-
Notifications
You must be signed in to change notification settings - Fork 44
Closed
Labels
P2enhancementv4 model 🚀Related to the new V4 programming modelRelated to the new V4 programming model
Milestone
Description
Related to #522, which is focused on invocation hooks (needed for distributed tracing), there is benefit to startup & teardown hooks as well
A few differences between putting code at the top level of the startup file vs. a startup hook:
- Startup hooks can use
await
(commonjs files don't support top levelawait
, although es6 does) - Startup hooks can be passed a context object with extra information about the worker
Metadata
Metadata
Assignees
Labels
P2enhancementv4 model 🚀Related to the new V4 programming modelRelated to the new V4 programming model