diff --git a/playlet-lib/src/components/JobSystem/JobQueueTask.bs b/playlet-lib/src/components/JobSystem/JobQueueTask.bs index 043b53f6..dcfa1be6 100644 --- a/playlet-lib/src/components/JobSystem/JobQueueTask.bs +++ b/playlet-lib/src/components/JobSystem/JobQueueTask.bs @@ -3,7 +3,10 @@ import "pkg:/source/utils/MessagePortUtils.bs" import "pkg:/source/utils/StringUtils.bs" ' Maximum number of JobTasks that can be created -const MAX_JOB_TASK_COUNT = 25 +' https://developer.roku.com/en-ca/docs/developer-program/core-concepts/threads.md +' "Developers should take steps to ensure that their apps always remain well under the 50-thread "warning" limit." +' Accounting for other types of long running Tasks in the app, this limit should be way lower than 50. +const MAX_JOB_TASK_COUNT = 30 ' Minimum number of JobTasks that will be kept alive const MIN_JOB_TASK_COUNT = 2 ' Time in milliseconds to wait before scaling down JobTasks