payload 3.79.0 → 3.80.0-internal.cee0ccf
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/dist/database/types.d.ts +1 -0
- package/dist/database/types.d.ts.map +1 -1
- package/dist/database/types.js.map +1 -1
- package/dist/index.bundled.d.ts +10 -2
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/queues/localAPI.d.ts +1 -0
- package/dist/queues/localAPI.d.ts.map +1 -1
- package/dist/queues/localAPI.js +4 -0
- package/dist/queues/localAPI.js.map +1 -1
- package/dist/queues/operations/runJobs/index.d.ts +1 -0
- package/dist/queues/operations/runJobs/index.d.ts.map +1 -1
- package/dist/queues/operations/runJobs/index.js +96 -1
- package/dist/queues/operations/runJobs/index.js.map +1 -1
- package/dist/queues/utilities/updateJob.d.ts +2 -1
- package/dist/queues/utilities/updateJob.d.ts.map +1 -1
- package/dist/queues/utilities/updateJob.js +92 -31
- package/dist/queues/utilities/updateJob.js.map +1 -1
- package/package.json +2 -2
|
@@ -11,14 +11,28 @@ import { jobAfterRead, jobsCollectionSlug } from '../config/collection.js';
|
|
|
11
11
|
* Helper for updating jobs in the most performant way possible.
|
|
12
12
|
* Handles deciding whether it can used direct db methods or not, and if so,
|
|
13
13
|
* manually runs the afterRead hook that populates the `taskStatus` property.
|
|
14
|
-
*/ export async function updateJobs({ id, data, depth, disableTransaction, limit: limitArg, req, returning, sort, where: whereArg }) {
|
|
14
|
+
*/ export async function updateJobs({ id, data, debugID, depth, disableTransaction, limit: limitArg, req, returning, sort, where: whereArg }) {
|
|
15
15
|
const limit = id ? 1 : limitArg;
|
|
16
16
|
const where = id ? {
|
|
17
17
|
id: {
|
|
18
18
|
equals: id
|
|
19
19
|
}
|
|
20
20
|
} : whereArg;
|
|
21
|
+
const prefix = debugID ? `[${debugID}] updateJobs` : null;
|
|
22
|
+
if (prefix) {
|
|
23
|
+
console.log(`${prefix} - enter`, {
|
|
24
|
+
id,
|
|
25
|
+
depth,
|
|
26
|
+
disableTransaction,
|
|
27
|
+
limit,
|
|
28
|
+
returning,
|
|
29
|
+
sort
|
|
30
|
+
});
|
|
31
|
+
}
|
|
21
32
|
if (depth || req.payload.config?.jobs?.runHooks) {
|
|
33
|
+
if (prefix) {
|
|
34
|
+
console.log(`${prefix} - using payload.update (depth or runHooks)`);
|
|
35
|
+
}
|
|
22
36
|
const result = await req.payload.update({
|
|
23
37
|
id,
|
|
24
38
|
collection: jobsCollectionSlug,
|
|
@@ -29,44 +43,91 @@ import { jobAfterRead, jobsCollectionSlug } from '../config/collection.js';
|
|
|
29
43
|
req,
|
|
30
44
|
where
|
|
31
45
|
});
|
|
46
|
+
if (prefix) {
|
|
47
|
+
console.log(`${prefix} - payload.update done`, {
|
|
48
|
+
docCount: result?.docs?.length ?? 0
|
|
49
|
+
});
|
|
50
|
+
}
|
|
32
51
|
if (returning === false || !result) {
|
|
33
52
|
return null;
|
|
34
53
|
}
|
|
35
54
|
return result.docs;
|
|
36
55
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
};
|
|
40
|
-
if (typeof data.updatedAt === 'undefined') {
|
|
41
|
-
// Ensure updatedAt date is always updated
|
|
42
|
-
data.updatedAt = new Date().toISOString();
|
|
56
|
+
if (prefix) {
|
|
57
|
+
console.log(`${prefix} - using direct db path`);
|
|
43
58
|
}
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
const UPDATE_JOBS_TIMEOUT_MS = 60_000;
|
|
60
|
+
const doDirectDBUpdate = async ()=>{
|
|
61
|
+
const txStart = Date.now();
|
|
62
|
+
const jobReq = {
|
|
63
|
+
transactionID: req.payload.db.name !== 'mongoose' ? await req.payload.db.beginTransaction() : undefined
|
|
64
|
+
};
|
|
65
|
+
if (prefix) {
|
|
66
|
+
console.log(`${prefix} - beginTransaction took ${Date.now() - txStart}ms, txID: ${jobReq.transactionID}`);
|
|
67
|
+
}
|
|
68
|
+
if (typeof data.updatedAt === 'undefined') {
|
|
69
|
+
data.updatedAt = new Date().toISOString();
|
|
70
|
+
}
|
|
71
|
+
const args = id ? {
|
|
72
|
+
id,
|
|
73
|
+
data,
|
|
74
|
+
debugID,
|
|
75
|
+
req: jobReq,
|
|
76
|
+
returning
|
|
77
|
+
} : {
|
|
78
|
+
data,
|
|
79
|
+
debugID,
|
|
80
|
+
limit,
|
|
81
|
+
req: jobReq,
|
|
82
|
+
returning,
|
|
83
|
+
sort,
|
|
84
|
+
where: where
|
|
85
|
+
};
|
|
86
|
+
const dbStart = Date.now();
|
|
87
|
+
if (prefix) {
|
|
88
|
+
console.log(`${prefix} - calling db.updateJobs`);
|
|
89
|
+
}
|
|
90
|
+
const updatedJobs = await req.payload.db.updateJobs(args);
|
|
91
|
+
if (prefix) {
|
|
92
|
+
console.log(`${prefix} - db.updateJobs took ${Date.now() - dbStart}ms, returned ${updatedJobs?.length ?? 0} jobs`);
|
|
93
|
+
}
|
|
94
|
+
if (req.payload.db.name !== 'mongoose' && jobReq.transactionID) {
|
|
95
|
+
const commitStart = Date.now();
|
|
96
|
+
await req.payload.db.commitTransaction(jobReq.transactionID);
|
|
97
|
+
if (prefix) {
|
|
98
|
+
console.log(`${prefix} - commitTransaction took ${Date.now() - commitStart}ms`);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
if (prefix) {
|
|
102
|
+
console.log(`${prefix} - total elapsed ${Date.now() - txStart}ms`);
|
|
103
|
+
}
|
|
104
|
+
if (returning === false || !updatedJobs?.length) {
|
|
105
|
+
return null;
|
|
106
|
+
}
|
|
107
|
+
return updatedJobs.map((updatedJob)=>{
|
|
108
|
+
return jobAfterRead({
|
|
109
|
+
config: req.payload.config,
|
|
110
|
+
doc: updatedJob
|
|
111
|
+
});
|
|
112
|
+
});
|
|
56
113
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
await
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
114
|
+
let timeoutId;
|
|
115
|
+
try {
|
|
116
|
+
const result = await Promise.race([
|
|
117
|
+
doDirectDBUpdate(),
|
|
118
|
+
new Promise((_, reject)=>{
|
|
119
|
+
timeoutId = setTimeout(()=>{
|
|
120
|
+
reject(new Error(`[${debugID ?? 'unknown'}] updateJobs timed out after ${UPDATE_JOBS_TIMEOUT_MS}ms`));
|
|
121
|
+
}, UPDATE_JOBS_TIMEOUT_MS);
|
|
122
|
+
})
|
|
123
|
+
]);
|
|
124
|
+
clearTimeout(timeoutId);
|
|
125
|
+
return result;
|
|
126
|
+
} catch (err) {
|
|
127
|
+
clearTimeout(timeoutId);
|
|
128
|
+
console.error(`[${debugID ?? 'unknown'}] updateJobs failed/timed out:`, err instanceof Error ? err.message : String(err));
|
|
129
|
+
throw err;
|
|
63
130
|
}
|
|
64
|
-
return updatedJobs.map((updatedJob)=>{
|
|
65
|
-
return jobAfterRead({
|
|
66
|
-
config: req.payload.config,
|
|
67
|
-
doc: updatedJob
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
131
|
}
|
|
71
132
|
|
|
72
133
|
//# sourceMappingURL=updateJob.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/queues/utilities/updateJob.ts"],"sourcesContent":["import type { ManyOptions } from '../../collections/operations/local/update.js'\nimport type { UpdateJobsArgs } from '../../database/types.js'\nimport type { Job } from '../../index.js'\nimport type { PayloadRequest, Sort, Where } from '../../types/index.js'\n\nimport { jobAfterRead, jobsCollectionSlug } from '../config/collection.js'\n\ntype BaseArgs = {\n data: Partial<Job>\n depth?: number\n disableTransaction?: boolean\n limit?: number\n req: PayloadRequest\n returning?: boolean\n}\n\ntype ArgsByID = {\n id: number | string\n limit?: never\n sort?: never\n where?: never\n}\n\ntype ArgsWhere = {\n id?: never\n limit?: number\n sort?: Sort\n where: Where\n}\n\ntype RunJobsArgs = (ArgsByID | ArgsWhere) & BaseArgs\n\n/**\n * Convenience method for updateJobs by id\n */\nexport async function updateJob(args: ArgsByID & BaseArgs) {\n const result = await updateJobs(args)\n if (result) {\n return result[0]\n }\n}\n\n/**\n * Helper for updating jobs in the most performant way possible.\n * Handles deciding whether it can used direct db methods or not, and if so,\n * manually runs the afterRead hook that populates the `taskStatus` property.\n */\nexport async function updateJobs({\n id,\n data,\n depth,\n disableTransaction,\n limit: limitArg,\n req,\n returning,\n sort,\n where: whereArg,\n}: RunJobsArgs): Promise<Job[] | null> {\n const limit = id ? 1 : limitArg\n const where = id ? { id: { equals: id } } : whereArg\n\n if (depth || req.payload.config?.jobs?.runHooks) {\n const result = await req.payload.update({\n id,\n collection: jobsCollectionSlug,\n data,\n depth,\n disableTransaction,\n limit,\n req,\n where,\n } as ManyOptions<any, any>)\n if (returning === false || !result) {\n return null\n }\n return result.docs as Job[]\n }\n\n const jobReq = {\n
|
|
1
|
+
{"version":3,"sources":["../../../src/queues/utilities/updateJob.ts"],"sourcesContent":["import type { ManyOptions } from '../../collections/operations/local/update.js'\nimport type { UpdateJobsArgs } from '../../database/types.js'\nimport type { Job } from '../../index.js'\nimport type { PayloadRequest, Sort, Where } from '../../types/index.js'\n\nimport { jobAfterRead, jobsCollectionSlug } from '../config/collection.js'\n\ntype BaseArgs = {\n data: Partial<Job>\n debugID?: string\n depth?: number\n disableTransaction?: boolean\n limit?: number\n req: PayloadRequest\n returning?: boolean\n}\n\ntype ArgsByID = {\n id: number | string\n limit?: never\n sort?: never\n where?: never\n}\n\ntype ArgsWhere = {\n id?: never\n limit?: number\n sort?: Sort\n where: Where\n}\n\ntype RunJobsArgs = (ArgsByID | ArgsWhere) & BaseArgs\n\n/**\n * Convenience method for updateJobs by id\n */\nexport async function updateJob(args: ArgsByID & BaseArgs) {\n const result = await updateJobs(args)\n if (result) {\n return result[0]\n }\n}\n\n/**\n * Helper for updating jobs in the most performant way possible.\n * Handles deciding whether it can used direct db methods or not, and if so,\n * manually runs the afterRead hook that populates the `taskStatus` property.\n */\nexport async function updateJobs({\n id,\n data,\n debugID,\n depth,\n disableTransaction,\n limit: limitArg,\n req,\n returning,\n sort,\n where: whereArg,\n}: RunJobsArgs): Promise<Job[] | null> {\n const limit = id ? 1 : limitArg\n const where = id ? { id: { equals: id } } : whereArg\n const prefix = debugID ? `[${debugID}] updateJobs` : null\n\n if (prefix) {\n console.log(`${prefix} - enter`, { id, depth, disableTransaction, limit, returning, sort })\n }\n\n if (depth || req.payload.config?.jobs?.runHooks) {\n if (prefix) {\n console.log(`${prefix} - using payload.update (depth or runHooks)`)\n }\n const result = await req.payload.update({\n id,\n collection: jobsCollectionSlug,\n data,\n depth,\n disableTransaction,\n limit,\n req,\n where,\n } as ManyOptions<any, any>)\n if (prefix) {\n console.log(`${prefix} - payload.update done`, { docCount: result?.docs?.length ?? 0 })\n }\n if (returning === false || !result) {\n return null\n }\n return result.docs as Job[]\n }\n\n if (prefix) {\n console.log(`${prefix} - using direct db path`)\n }\n\n const UPDATE_JOBS_TIMEOUT_MS = 60_000\n\n const doDirectDBUpdate = async (): Promise<Job[] | null> => {\n const txStart = Date.now()\n const jobReq = {\n transactionID:\n req.payload.db.name !== 'mongoose'\n ? ((await req.payload.db.beginTransaction()) as string)\n : undefined,\n }\n if (prefix) {\n console.log(\n `${prefix} - beginTransaction took ${Date.now() - txStart}ms, txID: ${jobReq.transactionID}`,\n )\n }\n\n if (typeof data.updatedAt === 'undefined') {\n data.updatedAt = new Date().toISOString()\n }\n\n const args: UpdateJobsArgs = id\n ? {\n id,\n data,\n debugID,\n req: jobReq,\n returning,\n }\n : {\n data,\n debugID,\n limit,\n req: jobReq,\n returning,\n sort,\n where: where as Where,\n }\n\n const dbStart = Date.now()\n if (prefix) {\n console.log(`${prefix} - calling db.updateJobs`)\n }\n const updatedJobs: Job[] | null = await req.payload.db.updateJobs(args)\n if (prefix) {\n console.log(\n `${prefix} - db.updateJobs took ${Date.now() - dbStart}ms, returned ${updatedJobs?.length ?? 0} jobs`,\n )\n }\n\n if (req.payload.db.name !== 'mongoose' && jobReq.transactionID) {\n const commitStart = Date.now()\n await req.payload.db.commitTransaction(jobReq.transactionID)\n if (prefix) {\n console.log(`${prefix} - commitTransaction took ${Date.now() - commitStart}ms`)\n }\n }\n\n if (prefix) {\n console.log(`${prefix} - total elapsed ${Date.now() - txStart}ms`)\n }\n\n if (returning === false || !updatedJobs?.length) {\n return null\n }\n\n return updatedJobs.map((updatedJob) => {\n return jobAfterRead({\n config: req.payload.config,\n doc: updatedJob,\n })\n })\n }\n\n let timeoutId: ReturnType<typeof setTimeout>\n try {\n const result = await Promise.race([\n doDirectDBUpdate(),\n new Promise<never>((_, reject) => {\n timeoutId = setTimeout(() => {\n reject(\n new Error(\n `[${debugID ?? 'unknown'}] updateJobs timed out after ${UPDATE_JOBS_TIMEOUT_MS}ms`,\n ),\n )\n }, UPDATE_JOBS_TIMEOUT_MS)\n }),\n ])\n clearTimeout(timeoutId!)\n return result\n } catch (err) {\n clearTimeout(timeoutId!)\n console.error(\n `[${debugID ?? 'unknown'}] updateJobs failed/timed out:`,\n err instanceof Error ? err.message : String(err),\n )\n throw err\n }\n}\n"],"names":["jobAfterRead","jobsCollectionSlug","updateJob","args","result","updateJobs","id","data","debugID","depth","disableTransaction","limit","limitArg","req","returning","sort","where","whereArg","equals","prefix","console","log","payload","config","jobs","runHooks","update","collection","docCount","docs","length","UPDATE_JOBS_TIMEOUT_MS","doDirectDBUpdate","txStart","Date","now","jobReq","transactionID","db","name","beginTransaction","undefined","updatedAt","toISOString","dbStart","updatedJobs","commitStart","commitTransaction","map","updatedJob","doc","timeoutId","Promise","race","_","reject","setTimeout","Error","clearTimeout","err","error","message","String"],"mappings":"AAKA,SAASA,YAAY,EAAEC,kBAAkB,QAAQ,0BAAyB;AA4B1E;;CAEC,GACD,OAAO,eAAeC,UAAUC,IAAyB;IACvD,MAAM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CAAC,GAAGF,OAAO,iBAAiB,EAAEe,KAAKC,GAAG,KAAKF,QAAQ,EAAE,CAAC;QACnE;QAEA,IAAInB,cAAc,SAAS,CAAC+B,aAAaf,QAAQ;YAC/C,OAAO;QACT;QAEA,OAAOe,YAAYG,GAAG,CAAC,CAACC;YACtB,OAAOjD,aAAa;gBAClBuB,QAAQV,IAAIS,OAAO,CAACC,MAAM;gBAC1B2B,KAAKD;YACP;QACF;IACF;IAEA,IAAIE;IACJ,IAAI;QACF,MAAM/C,SAAS,MAAMgD,QAAQC,IAAI,CAAC;YAChCrB;YACA,IAAIoB,QAAe,CAACE,GAAGC;gBACrBJ,YAAYK,WAAW;oBACrBD,OACE,IAAIE,MACF,CAAC,CAAC,EAAEjD,WAAW,UAAU,6BAA6B,EAAEuB,uBAAuB,EAAE,CAAC;gBAGxF,GAAGA;YACL;SACD;QACD2B,aAAaP;QACb,OAAO/C;IACT,EAAE,OAAOuD,KAAK;QACZD,aAAaP;QACb/B,QAAQwC,KAAK,CACX,CAAC,CAAC,EAAEpD,WAAW,UAAU,8BAA8B,CAAC,EACxDmD,eAAeF,QAAQE,IAAIE,OAAO,GAAGC,OAAOH;QAE9C,MAAMA;IACR;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "payload",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.80.0-internal.cee0ccf",
|
|
4
4
|
"description": "Node, React, Headless CMS and Application Framework built on Next.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"admin panel",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"undici": "7.18.2",
|
|
116
116
|
"uuid": "10.0.0",
|
|
117
117
|
"ws": "^8.16.0",
|
|
118
|
-
"@payloadcms/translations": "3.
|
|
118
|
+
"@payloadcms/translations": "3.80.0-internal.cee0ccf"
|
|
119
119
|
},
|
|
120
120
|
"devDependencies": {
|
|
121
121
|
"@hyrious/esbuild-plugin-commonjs": "0.2.6",
|