-
-
Notifications
You must be signed in to change notification settings - Fork 341
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The bot is running out of CPU credits #7261
Comments
Huh, I always assumed it would be RAM or disk space that sank us. Would it help if we had a |
That |
I got carried away as I've kinda wanted to re-architect it for some time.. KSP-CKAN/CKAN#2789 |
The status quo would be fine with one simple change: Suspend/resume when credits run out instead of terminating. Is there by any chance a server option for that? |
@HebaruSan - That's not an entirely silly idea. I could write a little awscli script that checks if there are more than X credits available, and the last run was outside the total run time. I'll check what IAM permissions the instance needs to pull that information. I also had a think about the queuing. Essentially it would be a case of adding the SDK (that might be hard or easy), setting the auth environment variables and with long polling open a receive message request on a loop and do something with the results. https://docs.aws.amazon.com/sdk-for-net/v3/developer-guide/EnableLongPolling.html |
This issue was about the bot not working, and it is functioning now. There are still things we would like to improve, but that's what KSP-CKAN/CKAN#2789 is for. |
Well actually, now it's the other way around, the commits are pushed, but it appears that the status page isn't updated? Sorting for last inflated / last checked tells me that it stopped updating the page at the end of the run ( |
Those commits came from the SpaceDock web hook rather than the bot. |
Hmm, I thought that did work? We'll fix it properly with the re-architecture. |
I spoke too soon, the bot hasn't gotten to PoodsCalmNebulaSkybox in 2 days. |
/me sighs, yup. I've disabled it and killed the current run. I'll whip up a credit checker over one of my coffee breaks today. |
Working again thanks to #7269. |
Problem
The status page claims that all sorts of things have been indexed over the past two days:
But that doesn't square with the commits in CKAN-meta:
On the forum the specific examples of PAWS and Trajectories were given:
https://forum.kerbalspaceprogram.com/index.php?/topic/154922-ckan-the-comprehensive-kerbal-archive-network-v1262-dragon%EF%BB%BF/&do=findComment&comment=3621485
And indeed, they both have new releases on their repos, the bot says it indexed them when they came out, but there's no new .ckan file.
So the bot is running, and it's finding new releases and updating its status file, but they're not getting indexed. Is there something weird with its git config that's stopping changes from being pushed to GitHub?
The text was updated successfully, but these errors were encountered: