Module

jobState

Check status of jobs

Parameters:
Name Type Attributes Description
job rafObject

rafObject of job

payload object <optional>

usually query to state api

timeout timeout <optional>

multiple uses to control timeout

delay number <optional>

delay in seconds.See notes below

  • object with the status information
promise
Example
Notes
  If the service supports long polling, pass the timeout in the payload.qs
  If the service does not support long polling, set timeout to 'wait' and set delay to some time in seconds.
  The library will check for completion every delay seconds. A more advanced way using progressHandler exit is described
  in the tutorial sections.