Smart Cargo is an async process, so for receive a response and status of created job you must implement webhooks.
Alternatively you can call Job API and check status, but it isn't a best practices.
- Go to Admin > Smart Cargo > Settings
- Enter your listeners address
Notification Call
{ "name": Enum /*event type*/, "description": String, "body": { "job": { "uuid": String } } }
Events Types
- JOB.SMARTCARGO.QUEUE
- JOB.SMARTCARGO.RUNNING
- JOB.SMARTCARGO.TERMINATED
- JOB.SMARTCARGO.FAILED
Comments