Method: Jets::CLI::Call#invocation_type
- Defined in:
- lib/jets/cli/call.rb
#invocation_type ⇒ Object
Event invocation returns a “202 Accepted” response. It means the request has accepted for processing, but the processing has not been completed. Event invocation types are asynchronous. The resp.payload.read is a empty string and is not JSON parseable. We the raw resp object so the caller can inspect the status code and headers. Example:
{
status_code: 202,
function_error: nil,
log_result: nil,
payload: "[FILTERED]",
executed_version: nil
}
Event invocation only use by Jets::Preheat.perform
86 87 88 |
# File 'lib/jets/cli/call.rb', line 86 def invocation_type [:invocation_type] || "RequestResponse" end |