Commit Graph

21 Commits

Author SHA1 Message Date
Mikhail f. Shiryaev
d2f92483f2
Add even more python code to pylint check, fix lambdas 2024-03-05 16:02:44 +01:00
Mikhail f. Shiryaev
101214cb8f
Fix broken termination lambda by caching runners for at most 15 seconds 2023-07-21 18:32:32 +02:00
Mikhail f. Shiryaev
083be24a74
Improve logic of checking valid cached values in lambdas 2023-07-21 18:32:31 +02:00
Mikhail f. Shiryaev
8feb5146fc
Do not "update" the token and the instances infinitely 2023-06-19 15:40:27 +02:00
Mikhail f. Shiryaev
2dca0eac1b
Delete __init__.py in lambda directories to break subpackage 2023-06-01 21:03:56 +02:00
Mikhail f. Shiryaev
acb9531ebf
Unify and put GH access token to the lambda_shared 2023-06-01 21:03:56 +02:00
Mikhail f. Shiryaev
0fa6a84161
Move the stuff related to runners to lambda_shared 2023-06-01 21:03:55 +02:00
Mikhail f. Shiryaev
855afb56f9
Get instances for the region to not kill a fresh one 2023-06-01 21:03:50 +02:00
Mikhail f. Shiryaev
bf9b563e0b
Improve caching mechanism for token, add cached instances 2023-06-01 21:03:50 +02:00
Mikhail f. Shiryaev
7bf9089dcd
Increase access_token cached time 2023-06-01 21:03:49 +02:00
Mikhail f. Shiryaev
985cd8fc8a
Improve events logging 2023-06-01 21:03:48 +02:00
Mikhail f. Shiryaev
8a664e2cac
Upgrade all lambdas runtime to 3.10, fix requirements
The recent update of urllib3 completely broken the world

- https://github.com/urllib3/urllib3/issues/2168
- https://github.com/boto/botocore/issues/2926
- https://github.com/psf/requests/issues/6443
2023-05-11 16:09:59 +02:00
Mikhail f. Shiryaev
036eaad919
Reduce lambda time by caching access_token 2023-03-02 01:40:30 +01:00
Mikhail f. Shiryaev
0a3a60b7a1
Additionally search for inactive runners in the whole ASG 2023-03-02 01:40:28 +01:00
Mikhail f. Shiryaev
9f6b154ccf
Insignificant improvement 2023-03-01 20:51:23 +01:00
Mikhail f. Shiryaev
eb9ea6d0b9
Do not remove runners from GH in advance 2022-12-09 20:15:27 +01:00
Mikhail f. Shiryaev
23002bc808
Add typing to terminate_runner_lambda 2022-11-29 16:50:21 +01:00
Mikhail f. Shiryaev
3bf3dacb4d
Add __init__.py to lambdas for mypy 2022-11-29 14:12:28 +01:00
Mikhail f. Shiryaev
1c02cc5896
Migrate terminate-runner-lambda to zip-packages 2022-11-28 18:12:42 +01:00
Mikhail f. Shiryaev
af4d0b10bd
Delete unused code 2022-11-28 18:11:40 +01:00
Mikhail f. Shiryaev
218897e032
Rename runners_termination_lambda 2022-11-28 18:11:23 +01:00