create-fuzionx 0.1.67 → 0.1.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/templates/spa/meta.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Job } from '@fuzionx/framework';
|
|
2
|
-
|
|
3
|
-
/** 매 5분마다 만료 세션 정리 (스케줄러 테스트) */
|
|
4
|
-
export default class CleanupJob extends Job {
|
|
5
|
-
static schedule = 'every:5m';
|
|
6
|
-
static timeout = 10000;
|
|
7
|
-
static enabled = true;
|
|
8
|
-
|
|
9
|
-
async handle() {
|
|
10
|
-
const cleaned = Math.floor(Math.random() * 10);
|
|
11
|
-
console.log(`[CleanupJob] ${cleaned}개 만료 세션 정리 완료`);
|
|
12
|
-
return { cleaned };
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
async onError(error) {
|
|
16
|
-
console.error('[CleanupJob] 실패:', error.message);
|
|
17
|
-
}
|
|
18
|
-
}
|