Beta-1.2
Pre-release
Pre-release
Beta-1.2 release contains two new features:
-
The ability to set a job timeout. Passing the timeout option to
h.Handle
will cause the worker to discard a job after the provided number of seconds. This will NOT cause the execution of the job to be terminated (it will run on a background goroutine and its results will be discarded). The worker will continue to process a new job if a job times out. -
The ability to react to messages received from a Grav pod. Messages can trigger jobs, and the input/output for the job will be routed with the pod. See the grav documentation page in the docs/ folder for details.
Breaking changes:
RunFunc
has been renamed toDoFunc
. The convention for a Runnable'sRun
function is to name theDoFunc
parameterdo
rather thanrun
.