Skip to content

Jobs API Implementation#3911

Merged
abhishek-sa1 merged 8 commits intodell:pub/build_streamfrom
Venu-p1:dev/API-Impl
Feb 3, 2026
Merged

Jobs API Implementation#3911
abhishek-sa1 merged 8 commits intodell:pub/build_streamfrom
Venu-p1:dev/API-Impl

Conversation

@Venu-p1
Copy link
Collaborator

@Venu-p1 Venu-p1 commented Feb 3, 2026

  • Add jobs router with POST /jobs
  • Implement dependency injection for use cases, repositories, and ID generator
  • Define request/response schemas for job operations
  • add api/jobs/schemas.py with Pydantic models (CreateJobRequest,
    CreateJobResponse, GetJobResponse, StageResponse, ErrorResponse)
  • add api/jobs/routes.py with POST/GET/DELETE /api/v1/jobs endpoints
  • add api/jobs/dependencies.py with DI wiring for use cases and repos
  • add infra/repositories/ with in-memory repository implementations
  • wire routes to CreateJobUseCase for complete job creation flow
  • register jobs router in api/router.py

… is enabled). DI container added. Inmemory repo added.

- Add jobs router with POST /jobs, GET /jobs/{job_id}, DELETE /jobs/{job_id}
- Implement dependency injection for use cases, repositories, and ID generator
- Define request/response schemas for job operations
- add api/jobs/schemas.py with Pydantic models (CreateJobRequest,
  CreateJobResponse, GetJobResponse, StageResponse, ErrorResponse)
- add api/jobs/routes.py with POST/GET/DELETE /api/v1/jobs endpoints
- add api/jobs/dependencies.py with DI wiring for use cases and repos
- add infra/repositories/ with in-memory repository implementations
- wire routes to CreateJobUseCase for complete job creation flow
- implement GET job with repository lookup and stage retrieval
- implement DELETE job with tombstone and stage cancellation
- register jobs router in api/router.py
…oved catalog_uri and added client_name

- Add required client_id field to CreateJobRequest schema with validation
- Update Job entity, command, and DTO to store request client_id
@Venu-p1 Venu-p1 marked this pull request as ready for review February 3, 2026 12:45

api_router.include_router(auth_router)
api_router.include_router(parse_catalog_router)
api_router.include_router(jobs_router)
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this order is correct. jobs router should be before parse catalog

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the order here does not matter.

Copy link
Collaborator

@Rajeshkumar-s2 Rajeshkumar-s2 left a comment

Choose a reason for hiding this comment

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

Please follow the existing directory structure for the tests folder.

@abhishek-sa1 abhishek-sa1 merged commit 29f4dcb into dell:pub/build_stream Feb 3, 2026
5 of 6 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.

4 participants