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

refactor: have services return task specifications #109

Merged
merged 4 commits into from
Aug 1, 2024
Merged

refactor: have services return task specifications #109

merged 4 commits into from
Aug 1, 2024

Conversation

leg100
Copy link
Owner

@leg100 leg100 commented Jul 31, 2024

This PR changes the behaviour of most service methods: instead of returning a task, they now return a task specification. It is then the caller's responsibility to create a task from the specification. Introducing a layer of indirection allows the task group constructor to use the specifications to help construct the group, e.g. naming the group, and whether to respect module dependencies, etc.

@leg100 leg100 changed the title refactor: have services return tasks specifications refactor: have services return task specifications Jul 31, 2024
@leg100 leg100 merged commit 7338004 into master Aug 1, 2024
3 checks passed
@leg100 leg100 deleted the specs branch August 1, 2024 06:38
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.

1 participant