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

Add TaskContext to tasks to be track e2e instant transfer information #205

Merged
merged 6 commits into from
Sep 9, 2024

Conversation

hussainkarafallah
Copy link
Contributor

@hussainkarafallah hussainkarafallah commented Aug 9, 2024

Context

TwTasks is missing propagated context. For example if a service receives a REST call and registers a tw-task as a side effect. This task loses the context. Adding TaskContext to the tw_task_data table. Shall be good enough.

One complication here:
The data column has non null constraint. Adding the context to this table is problematic now. Before, tasks with null data were not inserting anything in that table. But now it's quite reasonable to assume we might have tasks with no data but with some context. For tasks with no data, adding a dummy data in db of 1 byte "®"

IF some team creates a tw-tasks with the payload of this letter only. They might run into issues.

Checklist

@hussainkarafallah hussainkarafallah requested a review from a team as a code owner August 9, 2024 13:03
@hussainkarafallah hussainkarafallah changed the title Task context adding Add TaskContext to tasks to be track e2e instant transfer information Aug 9, 2024
@hussainkarafallah hussainkarafallah merged commit fc9c7d1 into master Sep 9, 2024
13 checks passed
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.

2 participants