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 2c13ea0 commit 540d009Copy full SHA for 540d009
src/tasks/queue_task.rs
@@ -53,15 +53,15 @@ impl Task for QueueTask {
53
54
if instances_starting.is_empty()
55
&& (instances_ready.is_empty()
56
- || instances_ready.get_available_slots().await? < 3)
+ || instances_ready.get_available_slots().await? < 1)
57
{
58
self.instance_provider.start_instance(template_name).await?;
59
}
60
61
if let Some(instance) = instances_ready.first() {
62
let mut available_slots = instance.get_available_slots().await;
63
64
- while !queue.is_empty() && available_slots != 0 {
+ while !queue.is_empty() && available_slots > 0 {
65
if let Some(group) = queue.pop() {
66
let group_size = group.players.len() as i32;
67
0 commit comments