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

Adding a TaskContext #14

Merged
merged 6 commits into from
Jun 23, 2023
Merged

Adding a TaskContext #14

merged 6 commits into from
Jun 23, 2023

Conversation

madflojo
Copy link
Owner

@madflojo madflojo commented Jun 22, 2023

This came up with both #11 and #13 where data needs to be passed from the task scheduler to the scheduled function. This pull request adds a new type TaskContext which can be passed to functions (defined with new configuration). TaskContext will contain both the task ID, either generated by the task or provided by the user and a user-defined context (if defined).

fixes #13 and closes #11

@madflojo madflojo changed the title WIP: Adding a TaskContext Adding a TaskContext Jun 23, 2023
@madflojo madflojo merged commit a10ed8e into main Jun 23, 2023
@madflojo madflojo deleted the adding-context branch June 23, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Passing in context.Context to the TaskFunc
1 participant