Generate S3 console link for a job
(self, job_id: str)
| 229 | return f"https://emagedoc.xyz/?folder={encoded_folder}" |
| 230 | |
| 231 | def _generate_s3_link(self, job_id: str) -> str | None: |
| 232 | """Generate S3 console link for a job""" |
| 233 | mapping = self._build_job_id_to_folder_mapping() |
| 234 | folder_path = mapping.get(job_id) |
| 235 | if not folder_path: |
| 236 | return None |
| 237 | account_id = "039984708918" |
| 238 | console_suffix = "4ppzlrng" |
| 239 | encoded_prefix = quote(f"logs/{folder_path}/") |
| 240 | return f"https://{account_id}-{console_suffix}.{self.region}.console.aws.amazon.com/s3/buckets/codeclash?region={self.region}&bucketType=general&prefix={encoded_prefix}&showversions=false" |
| 241 | |
| 242 | def get_formatted_jobs(self, *, limit: int | None = None, hours_back: int = 24) -> list[dict[str, Any]]: |
| 243 | """Get all jobs formatted for display |
no test coverage detected