Click here to Skip to main content
16,005,121 members
Home / Discussions / Python
   

Python

 
PinnedForum Guidelines - PLEASE READ Pin
Chris Maunder5-Oct-22 12:14
cofounderChris Maunder5-Oct-22 12:14 
QuestionShould I Turn My Lightweight API Scheduler into an Open-Source Project? Pin
Member 1637345419-Sep-24 3:43
Member 1637345419-Sep-24 3:43 
Hey everyone,

I recently came across a scenario where I needed a lightweight solution to schedule delayed and recurring callbacks for my API. Specifically, I wanted my API to interact with a service that could trigger a designated endpoint, for example, after 2 hours. Additionally, this service should also be capable of making daily calls to a specific endpoint. I'd also like to run this service in a Docker container as part of my application setup.

In my search for a solution, I explored several options:
    * RabbitMQ (no support for recurring tasks)
    * Celery and Redis Queue (too heavy for my needs)
    * AWS EventBridge and Step Functions (not self-hostable)
    * Temporal and Apache Airflow (both heavy and not self-hostable)

Eventually, I stumbled upon APScheduler. I ended up building a simple Flask app around it and bundled everything into a Docker container. It’s been working pretty well so far.

I'm surprised there isn't a go-to solution for such a simple use case (or maybe I just haven't found it yet). Are these kinds of requirements unusual? If not, do you think it would be worthwhile to refine what I’ve put together and turn it into an open-source project?

Question¿Cómo programar una secuencia en Python? Pin
ericro10-Jul-24 17:36
ericro10-Jul-24 17:36 
AnswerRe: ¿Cómo programar una secuencia en Python? Pin
Richard MacCutchan10-Jul-24 21:49
mveRichard MacCutchan10-Jul-24 21:49 
QuestionTelegram bot for membership management Pin
Mohamed Sylla 202413-Jun-24 18:07
Mohamed Sylla 202413-Jun-24 18:07 
AnswerRe: Telegram bot for membership management Pin
Akrash Nadeem12-Jul-24 13:35
Akrash Nadeem12-Jul-24 13:35 
QuestionMemory Leak - Python & License Plate Reader Pin
Member 162810456-Jun-24 15:11
Member 162810456-Jun-24 15:11 
AnswerRe: Memory Leak - Python & License Plate Reader Pin
Dave Kreskowiak6-Jun-24 15:59
mveDave Kreskowiak6-Jun-24 15:59 
Questionsource code Pin
Member 162777841-Jun-24 23:14
Member 162777841-Jun-24 23:14 
AnswerRe: source code Pin
Richard MacCutchan2-Jun-24 0:43
mveRichard MacCutchan2-Jun-24 0:43 
AnswerRe: source code Pin
Dave Kreskowiak2-Jun-24 5:04
mveDave Kreskowiak2-Jun-24 5:04 
QuestionHuawei MSC CDR Decoder .dat Pin
Member 1625394229-Apr-24 4:10
Member 1625394229-Apr-24 4:10 
AnswerRe: Huawei MSC CDR Decoder .dat Pin
Richard MacCutchan29-Apr-24 4:39
mveRichard MacCutchan29-Apr-24 4:39 
QuestionAlgorithm to Efficiently Search a Solution Space Pin
Member 1624736219-Apr-24 18:35
Member 1624736219-Apr-24 18:35 
AnswerRe: Algorithm to Efficiently Search a Solution Space Pin
Richard MacCutchan19-Apr-24 22:30
mveRichard MacCutchan19-Apr-24 22:30 
GeneralRe: Algorithm to Efficiently Search a Solution Space Pin
Member 1624736220-Apr-24 5:07
Member 1624736220-Apr-24 5:07 
GeneralRe: Algorithm to Efficiently Search a Solution Space Pin
Richard MacCutchan20-Apr-24 5:09
mveRichard MacCutchan20-Apr-24 5:09 
GeneralRe: Algorithm to Efficiently Search a Solution Space Pin
Member 1624736220-Apr-24 5:29
Member 1624736220-Apr-24 5:29 
SuggestionRe: Algorithm to Efficiently Search a Solution Space Pin
k505420-Apr-24 6:23
mvek505420-Apr-24 6:23 
AnswerRe: Algorithm to Efficiently Search a Solution Space Pin
k505420-Apr-24 6:38
mvek505420-Apr-24 6:38 
QuestionDelete profile Pin
Antwane Nix19-Apr-24 4:02
Antwane Nix19-Apr-24 4:02 
AnswerRe: Delete profile Pin
RedDk19-Apr-24 7:00
RedDk19-Apr-24 7:00 
GeneralRe: Delete profile Pin
Antwane Nix19-Apr-24 13:15
Antwane Nix19-Apr-24 13:15 
AnswerRe: Delete profile Pin
Dave Kreskowiak19-Apr-24 12:04
mveDave Kreskowiak19-Apr-24 12:04 
GeneralRe: Delete profile Pin
Antwane Nix19-Apr-24 13:17
Antwane Nix19-Apr-24 13:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.