Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix(ai): update ai-video selection suspension #3033
fix(ai): update ai-video selection suspension #3033
Changes from all commits
894e55c
b914210
0586602
d42df5e
79435d4
c484417
c553737
45d0c70
acda01a
7636d8e
8091750
77b3923
af7434f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 1542 in server/ai_process.go
server/ai_process.go#L1540-L1542
Check warning on line 36 in server/ai_session.go
server/ai_session.go#L36
Check warning on line 41 in server/ai_session.go
server/ai_session.go#L41
Check warning on line 134 in server/ai_session.go
server/ai_session.go#L128-L134
Check warning on line 190 in server/ai_session.go
server/ai_session.go#L187-L190
Check warning on line 199 in server/ai_session.go
server/ai_session.go#L199
Check warning on line 230 in server/ai_session.go
server/ai_session.go#L229-L230
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't we then just remove them from the
suspender.list()
rather than callingsignalRefresh()
? My understanding is that ifpenalty = 3
, then we would need to callsignalRefresh()
3 times in order to "release all orchestrators from suspension".There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did it this way thinking that there could be more than 3 orchestrators suspended so it would be less loops to just
signalRefresh()
3 times. An alternative would be to just create a new suspender for the selector to clear it or kick all the orchs out of the suspended list (will require new function to do second option).Check warning on line 243 in server/ai_session.go
server/ai_session.go#L235-L243
Check warning on line 300 in server/ai_session.go
server/ai_session.go#L297-L300
Check warning on line 319 in server/ai_session.go
server/ai_session.go#L317-L319
Check warning on line 337 in server/ai_session.go
server/ai_session.go#L337
Check warning on line 409 in server/ai_session.go
server/ai_session.go#L408-L409
Check warning on line 340 in server/handlers.go
server/handlers.go#L330-L340
Check warning on line 355 in server/handlers.go
server/handlers.go#L343-L355
Check warning on line 367 in server/handlers.go
server/handlers.go#L357-L367
Check warning on line 374 in server/handlers.go
server/handlers.go#L369-L374
Check warning on line 377 in server/handlers.go
server/handlers.go#L377