Add redis as workflows dependency (#7755)

This commit is contained in:
jdolle 2026-02-27 15:02:49 -08:00 committed by GitHub
parent 9357d39646
commit 82dd36a88b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -200,6 +200,7 @@ deployWorkflows({
sentry,
heartbeat: heartbeatsConfig.get('webhooks'),
schema,
redis,
});
const supertokens = deploySuperTokens(postgres, { dependencies: [dbMigrations] }, environment);

View file

@ -6,6 +6,7 @@ import { Docker } from './docker';
import { Environment } from './environment';
import { Observability } from './observability';
import { Postgres } from './postgres';
import { Redis } from './redis';
import { Schema } from './schema';
import { Sentry } from './sentry';
@ -25,6 +26,7 @@ export function deployWorkflows({
observability,
postmarkSecret,
schema,
redis,
}: {
postgres: Postgres;
observability: Observability;
@ -35,6 +37,7 @@ export function deployWorkflows({
sentry: Sentry;
postmarkSecret: PostmarkSecret;
schema: Schema;
redis: Redis;
}) {
return (
new ServiceDeployment(
@ -60,7 +63,7 @@ export function deployWorkflows({
image,
replicas: environment.podsConfig.general.replicas,
},
[],
[redis.deployment, redis.service],
)
// PG
.withSecret('POSTGRES_HOST', postgres.pgBouncerSecret, 'host')
@ -73,6 +76,10 @@ export function deployWorkflows({
.withSecret('EMAIL_PROVIDER_POSTMARK_TOKEN', postmarkSecret, 'token')
.withSecret('EMAIL_PROVIDER_POSTMARK_MESSAGE_STREAM', postmarkSecret, 'messageStream')
.withConditionalSecret(sentry.enabled, 'SENTRY_DSN', sentry.secret, 'dsn')
// Redis
.withSecret('REDIS_HOST', redis.secret, 'host')
.withSecret('REDIS_PORT', redis.secret, 'port')
.withSecret('REDIS_PASSWORD', redis.secret, 'password')
.deploy()
);
}