-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
Need ability to pass some context firstly and then, it will be always available in workers pool.
For example, CPU-intensive geo task - check point in polygons.
Polygons so weight and every time serialize - deserialize it so expensive.
Would be better to pass it firstly
await job(() => {
}, {persistentCtx: {polygons: [/* many-many polygons */]}});
And then on every job execute it always accessible:
await job(() => {
polygons // it accessible here yet.
}, {data: {point: [12.3434, 56.3434]}});
r3wt
Metadata
Metadata
Assignees
Labels
No labels