Joachim Jablon
Joachim Jablon
I think it would make sense to have that if we also have task results (which would make sense if we had workflows). It might be worth revisiting the whole...
Do you mean the exceptions within the jobs ? Or the exceptions of the worker itself ? I think the exceptions of the worker itself should already be propagated. And...
Oh it's for the tests ? The best approach, in my humblest opinion, would be to [run the worker with an `InMemoryConnector`](https://procrastinate.readthedocs.io/en/stable/howto/production/testing.html), run with `wait=False`, introspect the results of your...
(Please reopen if the answer was not satisfactory)
> In my mind, you'd simply be modifying procrastinate.contrib.django.apps.create_app in order to inject a middleware that closes the connections. Unless I'm mistaken, this also impact nonworker code (such as views)....
@TkTech I'm actually curious if you have some source on the interaction of CONN_MAX_AGE and django+psycopg3 pools ? Wasn't able to find easily how the 2 features interact :)
Actually: reading the code explains the code :D https://github.com/django/django/blob/787f3130f751283140fe2be8188eb5299552232d/django/db/backends/postgresql/base.py#L184-L194 (Makes me wonder if you can set `CONN_MAX_AGE` to None or if you have to either remove it or set it...
Alternatively, we could use a hash instead of the actual queue name. That would leave a lot of room for various values.
Ah yes, of course, I'm only talking about the "notification" name. Would you like to make a PR for that ? ```python >>> base64.b32encode(hashlib.sha1(b"my_queue").digest()).decode().lower() '756gnpdwk3lna3zna4toqq4eh4dhu4r6' >>> len(_) 32 ``` (this...
Ah I was thinking about the listen part where it's equal to do it in Python and in SQL. Yeah, of course, we need an SQL implementation of that for...