Skip to content

Commit 0ee165a

Browse files
authored
chore(math-updater): add .dockerignore and improve logging (#389)
Add .dockerignore to exclude dev files from Docker builds and enhance startup logging to show AI configuration status.
1 parent 2ff9e59 commit 0ee165a

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
node_modules/
2+
dist/
3+
scripts/
4+
jest.config.json
5+
tests/
6+
drizzle/
7+
private.dev.key
8+
public.dev.key
9+
.env
10+
flyway.conf

services/math-updater/src/config.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,7 @@ const mathUpdaterConfigSchema = sharedConfigSchema.extend({
1818
.int()
1919
.min(2000)
2020
.default(2000),
21-
MATH_UPDATER_BATCH_SIZE: z.coerce
22-
.number()
23-
.int()
24-
.min(1)
25-
.max(50)
26-
.default(10),
21+
MATH_UPDATER_BATCH_SIZE: z.coerce.number().int().min(1).max(50).default(10),
2722
MATH_UPDATER_JOB_CONCURRENCY: z.coerce
2823
.number()
2924
.int()

services/math-updater/src/index.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ async function deleteOldScanJobs(db: PostgresJsDatabase): Promise<void> {
4141
}
4242

4343
async function main() {
44-
log.info("[Math Updater] Starting math-updater service...");
44+
log.info(
45+
`[Math Updater] Starting math-updater service (AI: ${config.AWS_AI_LABEL_SUMMARY_ENABLE ? "enabled" : "disabled"})...`,
46+
);
4547

4648
const axiosPolis: AxiosInstance = axios.create({
4749
baseURL: config.POLIS_BASE_URL,

0 commit comments

Comments
 (0)