Datahenge Forums

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    What is the BTU?

    Background Tasks Unleashed (BTU)
    1
    2
    12
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Brian
      Brian last edited by Brian

      Background Tasks Unleashed (BTU)

      A software package that allows Frappe Framework users to create, schedule, and monitor background Tasks, all from a web page.

      Tasks are any Python function, from any installed Frappe App.

      BTU users don't need to write code, touch 'hooks.py', or SSH into a web server: everything they need is performed in their browser.

      Things You Can Do

      • Automatically create and submit Sales Invoices at 8 PM nightly.
      • Email purchase orders to suppliers automatically, every Monday at 7 AM and Wednesday at 3 PM.
      • Run a maintenance task to clean your ERPNext tables every 8 hours.
      • Fetch data from 3rd party APIs every 5 minutes.
      • On-demand, click a button to create a Stock Entry journal.

      9449a938-9237-41e4-a293-1121c81fd469-image.png

      How does it work?

      The BTU consists of 3 pieces of software:

      1. A Frappe App with DocTypes such as Tasks, Task Schedules, and Task Logs. (Link to its GitHub repo here.)

      2. A scheduler daemon, that integrates with the frontend Frappe App. (GitHub repo here.)

      • Enqueues Tasks based on their Schedules.
      • Listens for commands.
      • Automatically refreshes the schedules, in case of a server reboot.
      • CLI component.
      1. An optional CLI tool. Web administrators can use this for querying and interacting with the scheduler daemon.

      Further Reading

      To learn more about this tool, visit the Official Documentation, or chat with me here on the forums. ⌨

      1 Reply Last reply Reply Quote 0
      • Brian
        Brian last edited by Brian

        Additional Screenshots

        1. Tasks

        7fd182bd-c0c3-4fba-b885-24fa9c7d4ff3-image.png


        2. Task Schedules

        0a6eab78-0d1b-4ba3-a785-2463cd43f139-image.png


        3. Task Logs

        f55edf5d-1f1e-4ba2-ba84-50c6f457664b-image.png

        bd2ee387-c2ff-45ac-abb1-7683afa19b9f-image.png

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Powered by NodeBB | Contributors