(jobName: string)
| 312 | * @returns The job status response |
| 313 | */ |
| 314 | export async function getServerBuildStatus(jobName: string) { |
| 315 | try { |
| 316 | // Get the job status |
| 317 | const [job] = await batchClient.getJob({ name: jobName }); |
| 318 | |
| 319 | return job; |
| 320 | } catch (error) { |
| 321 | console.error("Error fetching job status:", error); |
| 322 | throw error; |
| 323 | } |
| 324 | } |
| 325 | |
| 326 | /** |
| 327 | * Gets the logs for a GCP Batch job |