<#6813 Add task service> Pull request opened by <m...
# flyte-github
a
#6813 Add task service Pull request opened by machichima ## Tracking issue Related to #6706 ## Why are the changes needed? Add task service for flyte-v2 ## What changes were proposed in this pull request? Main changes • `runs/service/task_service.go`: Implemented the TaskService handlers for deploying, retrieving, and listing tasks. • `runs/repository/models`: • `task.go`: Defined the Task GORM model. • `task_spec.go`: Added the TaskSpec model. • `runs/repository/interfaces/`: Defined generic repository interfaces for tasks and actions, including reusable ListResourceInput, Filter, and SortParameter types. • `task.go`: interface for task repo •
common.go
,
filter.go
,
sort.go
, `request.go`: generic query utils interface • `runs/repository/impl/`: Provided the GORM-based implementation for task operations and generic database utilities for filtering and pagination. • `task.go`: DB operation for task repo •
common.go
,
filter.go
,
sort.go
, `request.go`: generic query utils • `runs/migrations/migrations.go`: Add auto migrate for tasks and task_specs tables. • `runs/repository/mocks/`: Generated mockery-based mocks for the repository layer. • `runs/tests/scripts/`: Added and updated shell scripts using
buf curl
for manual verification of task creation and listing. ## How was this patch tested? • Unit tests (run
make test
under
./runs
and ensure all test passed) • Start service locally and run scripts in
runs/tests/scripts/
for testing (see #6813 (comment)) ### Labels Please add one or more of the following labels to categorize your PR: • added: For new features. • changed: For changes in existing functionality. • deprecated: For soon-to-be-removed features. • removed: For features being removed. • fixed: For any bug fixed. • security: In case of vulnerabilities This is important to improve the readability of release notes. ### Setup process ### Screenshots ## Check all the applicable boxes • I updated the documentation accordingly. • All new and existing tests passed. • All commits are signed-off. ## Related PRs ## Docs link Update
runs/README.md
flyteorg/flyte
#6813 Add task service Pull request ready for review by machichima flyteorg/flyte