Skip to content

Commit

Permalink
Add layer.ephemeral
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 3, 2024
1 parent 56164d8 commit 8404063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/lib/models/Layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export const AugmentedLayer = Type.Object({
connection: Type.Optional(Type.Integer()),
cron: Type.String(),
environment: Type.Any(),
ephemeral: Type.Record(Type.String(), Type.String()),
config: Layer_Config,
memory: Type.Integer(),
timeout: Type.Integer(),
Expand Down Expand Up @@ -69,6 +70,7 @@ export default class LayerModel extends Modeler<typeof Layer> {
connection: Layer.connection,
cron: Layer.cron,
environment: Layer.environment,
ephemeral: Layer.ephemeral,
config: Layer.config,
memory: Layer.memory,
timeout: Layer.timeout,
Expand Down
1 change: 1 addition & 0 deletions api/lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ export const Layer = pgTable('layers', {
connection: integer('connection').notNull().references(() => Connection.id),
cron: text('cron').notNull(),
environment: json('environment').notNull().default({}),
ephemeral: json('ephemeral').$type<Record<string, string>>().notNull().default({}),
config: json('config').$type<Static<typeof Layer_Config>>().notNull().default({}),
memory: integer('memory').notNull().default(128),
timeout: integer('timeout').notNull().default(128),
Expand Down

0 comments on commit 8404063

Please sign in to comment.