mirror of
https://github.com/floci-io/floci.git
synced 2026-11-30 08:55:17 -05:00
An application's schedulerConfiguration was stored and echoed, and no run was ever QUEUED: every run started at once. The user guide's "Job concurrency and queuing for an EMR Serverless application" has only maxConcurrentRuns runs going at a time, "Remaining jobs are queued until one of the running jobs terminates. If queue timeout is reached earlier, your job times out." A run beyond the limit is now QUEUED, in either runner mode, and the first queued run starts the moment a running one ends or is cancelled. A run still queued after queueTimeoutMinutes is CANCELLED, as the job run states give a run that "has timed out" as a reason to be cancelled; its stateDetails is Floci's wording. A run that leaves the queue reports queuedDurationMilliseconds. A queued run is cancelled at once, and keeps StopApplication from stopping the application. In the docker runner mode a queued run's container starts only once it leaves the queue. Queuing is "supported on Amazon EMR release 7.0.0 and higher" and "enabled by default on Amazon EMR release 7.3.0 and higher", the AWS runtime for Apache Spark's releases included; an application on 7.3.0 or later that sets no limits runs with the defaults, 15 runs and 360 minutes. Terraform's acceptance tests, run against AWS, recorded how the configuration is kept: a member a request leaves out takes its default, and here keeps the value already set where there is one; an empty one turns queuing off, and the application then has none. maxConcurrentRuns outside 1 to 1000 and queueTimeoutMinutes outside 15 to 720 are refused with ValidationException. A STARTED application takes a new maxConcurrentRuns, as "You can update maxConcurrentRuns for an application in the STARTED state", and a higher one starts queued runs at once; any other scheduler change still needs it stopped.