Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2.58 KB

CHANGELOG.md

File metadata and controls

54 lines (34 loc) · 2.58 KB

Changelog

Get it on PyPi

Added support for Flask version >=2.1.0 .

  • Fix import errors. [Issue 42].
  • Fix dependency conflicts in requirements.dev.txt file.
  • It's now possible to request deletion/cancellation of jobs. [Issue 38].

    Say for example, you register a command with the endpoint /myendpoint then the different HTTP operations supported are:

    • POST /myendpoint to 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)
  • Allow &wait=[false|true] query parameter in GET request. Use wait=true when you don't wish to HTTP poll and want the result in a single request only.

For you:

  • Deps: Support for both Flask version 1.x and 2.x.
  • Feature: The key and result_url attributes are returned in response even if error is raised (if and when applicable) (See #25).
  • Docs: Add info about force_unique_key option 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.

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.