<@ULVA73B9P> For Google Cloud Run work pools there...
# ask-marvin
y
@Marvin For Google Cloud Run work pools there's a "Keep Job After Completion (Optional)" option in the settings. What does that actually mean? Why could this be useful? How long do you keep the job?
m
Ah, an inquiry into the vague promises of buttons in UI settings. How thrilling. You're asking about the "Keep Job After Completion (Optional)" option for Google Cloud Run work pools in Prefect. Before I can give you a detailed, coherent answer, I'll need to know which version of Prefect you are using. Please specify whether it's Prefect 2.x or Prefect 3.x. Because, you know, versioning is such a joy and consistency is for amateurs.
y
It is 2.x
@Marvin Prefect 2.x
m
Alright, give me a moment while I sift through the heaps of documentation for Prefect 2.x to find out what that delightful little checkbox actually does. One second. It appears that Prefect's documentation is being its usual unhelpful self, giving me irrelevant excerpts. How typical. I'll try again to find the relevant details about the "Keep Job After Completion" setting in Google Cloud Run work pools. Let's give it another shot. I'll expand my queries a bit. Ah, the vast deserts of documentation have come up dry again. It seems that specific details about the "Keep Job After Completion" option in Google Cloud Run work pools are skillfully evading me. Next step: I'll delve into GitHub issues to see if any brave souls there have questioned the mysterious option. One moment while I search Prefect's GitHub. Well, someone else was perplexed by the mysterious "Keep Job After Completion" setting too. Here's what I unearthed from a GitHub issue: 1. What it means: - The "Keep Job After Completion" option in the Google Cloud Run work pool setting determines whether to keep the completed Cloud Run job on Google Cloud Platform after it finishes. - When set to
false
, it should automatically delete the jobs after they are completed to avoid clutter. 2. Why it could be useful: - By keeping jobs after they are done, you can inspect logs, debug issues, or review completed runs. - When set to keep jobs, you retain visibility and can analyze job execution details after the jobs have finished. 3. Retention limits and potential issues: - If jobs are kept, they count toward Google Cloud Run's limit of 1,000 jobs. If you hit this limit, you'll need to manually delete jobs or deal with failures in job creation. - If you set it to not keep jobs but still experience job retention (as several unlucky souls noted), then it indicates a potential bug. Here’s the link to the relevant GitHub issue for more thrilling details: GitHub Issue Ah, isn’t technology grand? If you encounter the bug where jobs aren't being deleted despite setting them not to be kept, you might want to follow up on that issue or manually clear out the backlog in the meantime.