mirror of
https://github.com/floci-io/floci.git
synced 2026-11-24 14:30:28 -05:00
GetDashboardForJobRun gives "a URL that you can use to access the application UIs for a job run", which "is valid for one hour after you generate it". Floci did not serve it, so a client asking for a run's application UI link, as Airflow's EMR Serverless operator can, failed. It now checks the run and its attempt as GetJobRun does and answers with a link to a page Floci serves at /_aws/emr-serverless/dashboard on its own address: the attempt's state, its times, and where its driver's logs go in S3 and CloudWatch Logs, which each attempt now keeps as it was admitted, so a later change to its application's monitoring configuration moves neither the logs nor what the page says of them. EMR Serverless opens the run's live Spark or Tez UI there, or its Spark History Server once it has ended, neither of which Floci keeps. The link names the run and is signed with a key Floci makes as it starts, so a changed link, one past its hour, or one given before a restart, opens a refusal. The three private HTML escapes (SES's unsubscribe page, Lambda web's redirect, CodeArtifact's pypi index) become one, core.common.Html, which the page uses too.