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

Task task id refactoring #778

Merged
merged 9 commits into from
Oct 25, 2024
Merged

Task task id refactoring #778

merged 9 commits into from
Oct 25, 2024

Conversation

spirali
Copy link
Collaborator

@spirali spirali commented Oct 24, 2024

This PR makes Tako's TaskId as u64, this allows to encode JobId and JobTaskId directoly into TakoId. It allows to remove translation lookups between TakoId and JobTaskId/TakoId. It also allows to have keys in the map of tasks in Job directly JobTaskIds (and not TakoTaskId), that allows to remove some creating ad-hoc sets of JobTaskIds and directly do a lookup into tasks.

@spirali spirali requested a review from Kobzol October 24, 2024 10:35
Copy link
Collaborator

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice cleanup! Left one nit.

crates/hyperqueue/src/server/job.rs Show resolved Hide resolved
@spirali spirali merged commit 6f71973 into main Oct 25, 2024
8 checks passed
@spirali spirali deleted the tako-task-id branch October 25, 2024 07:29
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