We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b19465a commit 52be077Copy full SHA for 52be077
1 file changed
src/dstack/_internal/server/background/tasks/process_instances.py
@@ -160,7 +160,7 @@ async def _process_next_instance():
160
.options(joinedload(InstanceModel.project).load_only(ProjectModel.ssh_private_key))
161
.order_by(InstanceModel.last_processed_at.asc())
162
.limit(1)
163
- .with_for_update(skip_locked=True, key_share=True)
+ .with_for_update(skip_locked=True, key_share=True, of=InstanceModel)
164
)
165
instance = res.scalar()
166
if instance is None:
0 commit comments