procrastinate icon indicating copy to clipboard operation
procrastinate copied to clipboard

Multiple procrastinate instances on the same DB: namespaces

Open ewjoachim opened this issue 4 years ago • 1 comments
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.

ewjoachim avatar Mar 26 '21 10:03 ewjoachim

ping @k4nar FYI :)

ewjoachim avatar Mar 26 '21 10:03 ewjoachim