procrastinate
procrastinate copied to clipboard
Multiple procrastinate instances on the same DB: namespaces
trafficstars
We have the case where several projects sharing the same DB want to use procrastinate independently.
We're going to support namespaces. A nullable namespace column will be added to procrastinate_jobs. Each function will take namespace as an optional parameter, and restrict its results on namespaces. LISTEN queue names will contain the namespace.
Namespaces will be provided to the App by a constructor kwarg, and passed to the Connector that will inject it in every query.
ping @k4nar FYI :)