Skip to content
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

[Feature Request] Opt-in worker support for getting task boundaries in activation #579

Open
cretz opened this issue Jul 19, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@cretz
Copy link
Member

cretz commented Jul 19, 2023

Describe the solution you'd like

For a new use case (user task tracking for purposes of charging on serverless), they want to opt-in to knowing the task boundaries. Make some worker option that, if enabled, sends a StartTask job on the first activation of a task and a EndTask job on the last activation of a task (sending a whole new activation if needed). Ideally the EndTask job has a failure if there is a task failure (would usually infer this from a failure lang sends, but there are core-level failures too).

Note, this is subject to discussion. Maybe we don't want this or something else? I have not opened a feature issue up for task tracking because I am unsure whether this is a pattern we want to perpetuate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant