@vtecx/vtecxdocument 1.0.6 → 1.0.7
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/docs/batchjob.md +23 -1
- package/package.json +1 -1
package/docs/batchjob.md
CHANGED
|
@@ -175,6 +175,29 @@ exports.run = async function (vtecxnext: VtecxNext) {
|
|
|
175
175
|
|
|
176
176
|
利用できるメソッドと引数は、プロジェクトで使用している `@vtecx/vtecxnext` のバージョンに従ってください。
|
|
177
177
|
|
|
178
|
+
## 禁止されている構文
|
|
179
|
+
|
|
180
|
+
batchjobでは以下が禁止されています。
|
|
181
|
+
TypeScript AST で判定しています。
|
|
182
|
+
|
|
183
|
+
- import
|
|
184
|
+
- export
|
|
185
|
+
- class
|
|
186
|
+
- super
|
|
187
|
+
- eval
|
|
188
|
+
- Function
|
|
189
|
+
- AsyncFunction
|
|
190
|
+
- GeneratorFunction
|
|
191
|
+
- require
|
|
192
|
+
- process
|
|
193
|
+
- globalThis
|
|
194
|
+
- global
|
|
195
|
+
- XMLHttpRequest
|
|
196
|
+
- WebSocket
|
|
197
|
+
- Worker
|
|
198
|
+
- WebAssembly
|
|
199
|
+
- Proxy
|
|
200
|
+
|
|
178
201
|
### vte.cx データ操作の注意点
|
|
179
202
|
|
|
180
203
|
- フィールド検索を行う URL には `f` パラメータを付ける。
|
|
@@ -392,7 +415,6 @@ pnpm exec rspack --env entry=/batchjob/{モジュール名}.ts
|
|
|
392
415
|
|
|
393
416
|
### 同じ処理が複数回実行される
|
|
394
417
|
|
|
395
|
-
- Entry の状態を処理開始前に `processing` へ更新する。
|
|
396
418
|
- revision 競合を検出し、競合した側で処理を続行しない。
|
|
397
419
|
- 外部処理に冪等キーまたは処理済み判定を追加する。
|
|
398
420
|
- 実行間隔より処理時間が長くなっていないか確認する。
|