...
It raises the wrangler:ruleset_uninstalled
event, passing through all attributes of the original uninstall event. The KRL programmer can write a rule which selects on that event, as needed.
...
picoQuery
Wrangler provides
and shares
a function named skyQuery
picoQuery
which is a user friendly way to make an HTTP request between picos. It provides cleanup and returns the error if the returned HTTP status was not 200.It a request between picos. picoQuery
uses ctx:query()
if the pico is on the same host and HTTP if it is not. When using HTTP, it provides cleanup and returns the error if the returned HTTP status was not 200.
Info |
---|
The |
picoQuery()
is mainly used to programmatically call functions inside of other picos from inside a rule. However, deadlocks are possible due to its synchronous nature (e.g. do not let two picos query each other simultaneously). See Accessing a Function Shared by Another Pico for more information.
...
Parameter | Datatype | Description |
---|---|---|
| String | The ECI to send the query to |
| String | The RID of the ruleset to send the query to |
| String | The name of the function to query |
params | Map | The parameters to be passed to the function on the target pico. Given as a map with parameter name as the key and argument as the value. |
_host | String | The host of the pico engine being queried. |
_path | String | The sub path of the url which does not include mod or func. |
_root_url | String | The entire URL except eci, mod , func. |
If _host
is missing or the same as the result returned by meta
...
:host
, picoQuery()
will use ctx:query()
instead of HTTP.
Returns
Success: the result of the function queried for.
Failure: a map of error information which contains the error
and other optional information:
|
Info |
---|
This map represents a breaking change. The previous map returned |
Example
|
...