NicolasLM / spinach

Modern Redis task queue for Python 3
https://spinach.readthedocs.io
BSD 2-Clause "Simplified" License
63 stars 4 forks source link

Queued jobs are not exposed on the API until you get a signal about them #21

Closed juledwar closed 2 years ago

juledwar commented 2 years ago

The engine.schedule and schedule_at methods always return None. It would be much handier if they returned the Jobs that were queued, so they can be more easily matched with signals that happen later. This then fills in a gap where a job might be queued and want to see how long it took before it was started.

bigjools commented 2 years ago

@NicolasLM I'd like to get a release out with the last 2 fixes, are you OK with that? Happy to do it if you don't have time. Might need you to confirm your preferred way to do that as I messed it up last time and had to do it twice!

NicolasLM commented 2 years ago

@bigjools I did the release, I'm sure the process could be improved a bit but it's quite simple:

bigjools commented 2 years ago

That's great, thanks!

You might be able to use setuptools_scm for auto-versioning, I can propose a change at a later date. It means you can just make a tag and push the tag instead.