@rpcbase/server 0.379.0 → 0.380.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.379.0",
3
+ "version": "0.380.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "scripts": {
@@ -12,7 +12,7 @@ const dispatch_indexer_queue = (
12
12
  "index_item",
13
13
  {op, doc, model_name, coll_name, update_description},
14
14
  {
15
- jobId: `index-item-${op}-${doc._id}-${Date.now()}`,
15
+ jobId: `rb-index-item-${op}-${doc._id}-${Date.now()}`,
16
16
  removeOnComplete: true,
17
17
  removeOnFail: true,
18
18
  },
package/queue/index.js CHANGED
@@ -29,7 +29,7 @@ const worker_add = async(task_name, payload, options) => {
29
29
  worker_queue = new Queue(QUEUE_DEFAULT_NAME, worker_queue_url)
30
30
  }
31
31
  const res = await worker_queue.add({task_name, payload}, options)
32
- console.log("worker_add:created task:", task_name, res.id)
32
+ // console.log("worker_add:created task:", task_name, res.id)
33
33
  return res
34
34
  }
35
35
 
@@ -76,7 +76,9 @@ const start_worker = async() => {
76
76
  try {
77
77
  const {task_name, payload} = job.data
78
78
 
79
- console.log(`start job ${job.id} ${task_name}`)
79
+ if (!job.id.startsWith("rb-index-item-")) {
80
+ console.log(`starting job ${job.id} ${task_name}`)
81
+ }
80
82
 
81
83
  const task_fn = tasks_list[task_name]
82
84