Changelog
April 29, 2022 ยท View on GitHub
v1.9.1
Added support for Flask version >=2.1.0 .
- Fix import errors. [Issue 42].
- Fix dependency conflicts in
requirements.dev.txtfile.
v1.9.0
-
It's now possible to request deletion/cancellation of jobs. [Issue 38].
Say for example, you register a command with the endpoint
/myendpointthen the different HTTP operations supported are:POST /myendpointto create a job and get unique key (same as earlier)GET /myendpoint?key={key}to request result of a job (same as earlier)DELETE /myendpoint?key={key}to request cancellation/deletion of a job. (new)
v1.8.0
- Allow
&wait=[false|true]query parameter inGETrequest. Usewait=truewhen you don't wish to HTTP poll and want the result in a single request only.
v1.7.0
For you:
- Deps: Support for both Flask version 1.x and 2.x.
- Feature: The
keyandresult_urlattributes are returned in response even if error is raised (if and when applicable) (See #25). - Docs: Add info about
force_unique_keyoption to quickstart guide.
Internal:
- Much better and improved test cases via tox matrix for both major flask versions, 1.x and 2.x.
- Much better overall type hinting.
v1.6.0
Added support for a new parameter force_unique_key in the POST request.
"force_unique_key": {
"type": "boolean",
"title": "Flag to enable/disable internal rate limiting mechanism",
"description": "By default, the key is the SHA1 sum of the command + args POSTed to the API. This is done as a rate limiting measure so as to prevent multiple jobs with same parameters, if one such job is already running. If force_unique_key is set to true, the API will bypass this default behaviour and a psuedorandom key will be returned instead",
"default": false
}
See post-request-options configuration in docs for more info.
For prior versions, see directly here.