Store jobs in a transactional way #269
enerdgumen
started this conversation in
Ideas
Replies: 1 comment 4 replies
-
Sure, this can be considered in a future release. So something like: trait PushWithTx {
async fn push_with_tx(&self, job: Self::Job);
}
impl PushWithTx for PostgresStorage {
// .....
} |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature request: when using postgres as storage, it could be useful to be able to insert new jobs using the same applicative transaction, to ensure consistency.
Currently the apalis storage own the connection pool and there is no way to pass a connection or a transaction to the insert method. The only way to achieve this is to manually insert the job, bypassing the apalis storage.
Beta Was this translation helpful? Give feedback.
All reactions