Handling Database Transactions and Job Dispatching in Effect TypeScript
hi, i have something like this, basically
how can i dispatch job after program is done (dispatch only on success)
program is using database transaction, and it creates recrods in the db and dispatch the job (that job fetches the record from the db which was created, since payload is large around 100-200kb so i cannot store in redis, that why i need to fetch from db) since all the records are created in a single transaction so, the job handler does not get any record in the db since transaction has not been comitted yet.how can i dispatch job after program is done (dispatch only on success)
