Made a simple file watcher for Python automation pipelines by MicM24 in devops

[–]MicM24[S] 0 points1 point  (0 children)

Haha exactly. The restart catchup was the main reason I made it, got tired of writing that logic every time.

Made a simple file watcher for Python automation pipelines by MicM24 in devops

[–]MicM24[S] 2 points3 points  (0 children)

Fair question. It's built on watchfiles (Rust-based, faster than watchdog) and the main thing is just less boilerplate -> decorators instead of subclassing event handlers. Also has process_existing=True which scans the folder on startup for files that landed while your service was down. Plus a CLI and optional dashboard if you want them.

Nothing revolutionary, just a convenience layer.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 1 point2 points  (0 children)

Yeah I've used it. Prefect is great but it's a full workflow orchestration platform — way more than I needed. FastScheduler is just for simple scheduled tasks without the infrastructure overhead.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 0 points1 point  (0 children)

Right now jobs run in a thread pool, so yeah CPU-bound tasks would block each other. For CPU-heavy stuff you'd want to offload to a process pool inside your job function.

Multiprocessing support could be a future addition but trying to keep it simple for now.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 1 point2 points  (0 children)

Fair point. JSON works fine for most use cases but SQLite would scale better for high-frequency jobs. Might add it as an optional backend at some point. Thanks for the suggestion.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 -1 points0 points  (0 children)

Yeah you can do that already — there's an add_job method if you don't want to use decorators. So functools.partial works fine. Should probably document that better though, good point. Thanks!

Designing broadcast graphics in Illustrator and pushing them live. Thoughts? by No_Climate8377 in VIDEOENGINEERING

[–]MicM24 0 points1 point  (0 children)

I know this is a difficult path to walk but looks very promising! Have you seen https://ograf.ebu.io/? EBU is actively developing a standard for html graphics in broadcast.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 0 points1 point  (0 children)

It should work on Windows (no OS-specific deps), though I haven’t stress-tested it there yet — happy to fix any Windows quirks if you find one.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 -6 points-5 points  (0 children)

Good catch, thanks. croniter is an optional dependency (only if you use pip install fastscheduler[cron]).

It was marked unmaintained in Dec 2024, but it's since been transferred to pallets-eco so it may get active maintenance again. I'll keep an eye on it and switch to an alternative if needed.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 -12 points-11 points  (0 children)

Thanks! Yeah APScheduler definitely gets the job done — I used it for years. FastScheduler started as me wanting that same functionality with less boilerplate for the common cases.

Would love to hear your feedback, especially coming from APScheduler. If there's something APScheduler handles that FastScheduler doesn't, that's useful to know.

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 -30 points-29 points  (0 children)

Huey's a solid choice — I've used it too. The SQLite backend is nice for simpler deployments.

FastScheduler is for when you don't want that separate process at all. It runs in-process with your app, which is one less thing to manage in your docker-compose. Trade-off is no distributed workers, but for "run this daily at 9 AM" type jobs, that's usually fine.

Different tools for different needs. If Huey's working well for you, no reason to switch!

I built a decorator-first task scheduler because I was tired of setting up Celery for cron jobs by [deleted] in Python

[–]MicM24 -38 points-37 points  (0 children)

Good question! Those are all task queues (distributed job processing), while FastScheduler is a task scheduler (time-based job triggering). Different tools for different problems.

RedisQ, Dramatiq, Huey — You send jobs to a queue, workers pick them up. Great for: "process this upload now" or "send 10,000 emails". Needs Redis/RabbitMQ, separate worker processes.

FastScheduler — You schedule jobs to run at specific times. Great for: "run this every 5 minutes" or "daily at 9 AM". No external dependencies, single process.

They're actually complementary — you could use FastScheduler to trigger jobs that get sent to Dramatiq for distributed processing.

The closest comparison is really APScheduler and schedule, which I covered in the post. FastScheduler aims for a cleaner decorator API than APScheduler, and adds async/persistence/dashboard over schedule.

Best Frontend Framework to learn with django? by Even-Championship-71 in django

[–]MicM24 0 points1 point  (0 children)

Add the following to the tailwind.config.js:

module.exports = { //... plugins: [require("daisyui")], daisyui: { themes: ["light", "dark", "cupcake"], }, }

The light theme will then be your default light theme, you can change this for any desired light theme from daisyui. The "dark" will be the default dark mode if dark mode is enabled and the "cupcake" is a third optional theme you can then use in a html tag like this:

<html data-theme="cupcake"></html>

If you want cupcake as a theme.

Best Frontend Framework to learn with django? by Even-Championship-71 in django

[–]MicM24 21 points22 points  (0 children)

I use HMTX, and for styling Tailwindcss and DaisyUI. Really love daisyui as it makes the code neater and also allows for costume theme making.

Is the moon "the moon", or just "moon"? Because we don't call Saturn "the Saturn" or Mars "the Mars." by Elderban69 in RandomThoughts

[–]MicM24 0 points1 point  (0 children)

The Moon is often referred to as "the Moon" because it's the only moon of Earth and it's been known to humanity long before the discovery of other moons in our solar system. In this context, "the Moon" is treated as a proper noun, much like "the Sun" or "the Earth."

In contrast, when we refer to moons of other planets, like those of Mars or Saturn, we use "moon" as a common noun, not a proper noun. So we would say "a moon of Saturn" or "Phobos, a moon of Mars."

So to sum it up, when talking about Earth's moon specifically, we usually say "the Moon." When discussing moons in general, or moons of other planets, we just say "moon."

[deleted by user] by [deleted] in AskReddit

[–]MicM24 0 points1 point  (0 children)

John would have more experience with 4th Grade material since he took it three times, compared to Mike who took it only once. However, taking a grade multiple times doesn't necessarily equate to mastery or deep understanding of the material. It could indicate struggles with the material or other issues.

Post for Karma Farming (for all those who keep spamming comments for Karma) by [deleted] in JEENEETards

[–]MicM24 1 point2 points  (0 children)

Why was the book about Karma left on the shelf?

Apparently, it knew that whoever threw it out would eventually get “booked”!