Coder Social home page Coder Social logo

scheduled_api's Introduction

Scheduled API

Scheduled API

Feature List

  1. Asynchronous task execution: The module utilizes Frappe's background job system to enqueue and execute tasks asynchronously.
  2. Schedule Request processing: The module processes "Schedule Request" documents and determines whether to create a new document or call a specified method based on the request.
  3. Error handling and retries: The module gracefully handles exceptions during request execution, updates the status accordingly, and retries failed requests.
  4. Schedule Response creation: The module creates "Schedule Response" documents based on the outcome of the request execution, including success, errors, and traceback information.
  5. Callback URL support: The module supports sending responses to specified callback URLs, with configurable headers and automatic retries upon failure.
  6. Pending and Failed request processing: The module provides a function to process all pending and failed "Schedule Request" documents, allowing for easier recovery and rescheduling.
  7. Modular design: The module is organized into separate functions for enqueueing, executing, and sending responses, which promotes readability and maintainability.

These features collectively enable the module to handle scheduled API requests effectively, manage their execution and responses, and provide a robust mechanism for communication with external systems.

License

MIT

scheduled_api's People

Contributors

yrestom avatar alex-njoroge avatar av-dev2 avatar

Stargazers

Mohamed Abdulsalam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.