cancel
Showing results for 
Search instead for 
Did you mean: 

Why the state in the BulkStatus response is always equal to scheduled

Ahmad_Ben_Maall
Star Contributor
Star Contributor

Hello,

I tested the bulk action in nuxeo based on the doc https://doc.nuxeo.com/nxdoc/1010/bulk-action-framework/. I have succeeded in creating and launching my specific action.

My problem is that the bulkstatus is still on scheduled knowing that my action is complete.

either the following command :

curl -s -X GET "http://localhost:8080/nuxeo/api/v1/bulk/$CMD"  -u Administrator:Administrator  -H 'content-type: application/json' | jq .

return the following response

{
  "entity-type": "bulkStatus",
  "commandId": "9102632b-0c53-41f9-ad45-29580770855e",
  "state": "SCHEDULED",
  "processed": 0,
  "error": false,
  "errorCount": 0,
  "total": 0,
  "action": "myAction",
  "username": "Administrator",
  "submitted": "2021-04-26T13:36:08.763Z",
  "scrollStart": null,
  "scrollEnd": null,
  "processingStart": null,
  "processingEnd": null,
  "completed": null,
  "processingMillis": 0
}

1 ACCEPTED ANSWER

Ahmad_Ben_Maall
Star Contributor
Star Contributor
  • REQUIREMENTS

To work properly, the Bulk Service needs a true KeyValue storage to store the command and its status, there are 2 possibles choices: - Use RedisKeyValueStore if you have nuxeo.redis.enabled=true in your nuxeo.conf. - Use MongoDBKeyValueStore if you are using the MongoDB template. You should not rely on the default MemKeyValueStore implementation that flushes the data on restart.

View answer in original post

1 REPLY 1

Ahmad_Ben_Maall
Star Contributor
Star Contributor
  • REQUIREMENTS

To work properly, the Bulk Service needs a true KeyValue storage to store the command and its status, there are 2 possibles choices: - Use RedisKeyValueStore if you have nuxeo.redis.enabled=true in your nuxeo.conf. - Use MongoDBKeyValueStore if you are using the MongoDB template. You should not rely on the default MemKeyValueStore implementation that flushes the data on restart.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.