Skip to content

Do not use SQLAlchemy Session for Task reads #10120

@vkWeb

Description

@vkWeb

Right now, the tasks backend is using SQLAlchemy's session for reading task data from the database. Richard and I think that we should not be using sessions for reading job data because its simply unnecessary for reads in our opinion.

Addressing this issue requires completion of two tasks:-

  • Currently, the tasks API uses get_orm_job and get_job to get orm_job and the Job object. We should use just one function get_orm_job to get the orm_job, and from that we should deserialize the Job object.
  • Do not use Session for database reads.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions