lib/jets/internal/app/jobs/jets/preheat_job.rb in jets-1.9.14 vs lib/jets/internal/app/jobs/jets/preheat_job.rb in jets-1.9.15

- old
+ new

@@ -5,23 +5,10 @@ torching = ENABLED && CONCURRENCY > 1 warming = ENABLED && CONCURRENCY == 1 class_timeout 30 class_memory 1024 - class_iam_policy( - { - sid: "Statement1", - action: ["logs:*"], - effect: "Allow", - resource: "arn:aws:logs:#{Jets.aws.region}:#{Jets.aws.account}:log-group:#{Jets.config.project_namespace}-*", - }, - { - sid: "Statement2", - action: ["lambda:InvokeFunction", "lambda:InvokeAsync"], - effect: "Allow", - resource: "arn:aws:lambda:#{Jets.aws.region}:#{Jets.aws.account}:function:#{Jets.config.project_namespace}-*", - } - ) + class_iam_policy(Jets.config.prewarm_job_iam_policy) rate(PREWARM_RATE) if torching def torch threads = [] CONCURRENCY.times do