News for hackers. Stuff that matters.
Re:Show HN: Chard – simple async/await background tasks for ... by xoudini on Sunday September 11, 2022 @11:53AM (#32800686)
> without any external dependencies (i.e. no Redis/RabbitMQ)

You still depend on a database with the `Task` model. This would be a no-go for that reason, since there's no reasonable way to have an impact on its behaviour, outside of creating a custom database router to avoid having every third-party library hitting the same database as core logic.

If you absolutely must use a model, take a look at enumeration types[1] for a slightly "neater" way to declare choices.

[1]: https://docs.djangoproject.com/en/4.1/ref/models/fields/#enu...

Re:Show HN: Chard – simple async/await background tasks for ... by drpancake on Sunday September 11, 2022 @11:24PM (#32805735)
Sure but for 99.9% of Django projects you safely assume there is a database available. I'm not entirely sure why that's a no-go.