mirror of
https://github.com/floci-io/floci.git
synced 2026-11-26 15:21:05 -05:00
EMR Serverless's session operations, StartSession, GetSession, ListSessions, TerminateSession and GetSessionEndpoint, and GetResourceDashboard, which "Currently, only Session is supported" for, were not served, and a session's ARN was refused for tagging. Floci now keeps sessions and their lifecycle, without running a Spark driver for them. StartSession needs a Spark application on emr-7.13.0 or later (or the AWS runtime for Apache Spark) with sessionEnabled on, is admitted like a job run, auto-start included, and is idempotent on its client token. An application holds at most 25 sessions that have not ended, as the user guide's default, beyond which the 26th is ServiceQuotaExceededException. A session is IDLE once started and ends TERMINATED at its idle timeout (60 minutes by default), at its 24 hour limit, when terminated, or when its application stops. GetSessionEndpoint gives an endpoint on Floci's address and a token valid for an hour. GetResourceDashboard gives a signed link, like GetDashboardForJobRun's, to a page about the session. Tags work on session ARNs. ListApplications, ListJobRuns and ListSessions share their validation, and the latter two their state-grouped paging; StartJobRun and StartSession share the caller, client-token and retry helpers.