@rgm has joined the channel
I'd like to schedule a repeating job and I see that there’s a process_at column on jobs. Is there a way to set this to something other than now? I guess I could write my own wrapper on db/enqueue. (The use case is a job that enqueues its successor job on completion).
Oops meant to link to the line https://github.com/msolli/proletarian/blob/e74e43d7c3710d4906c0ab474ecb59c807a48a83/src/proletarian/job.clj#L50
Yes, that’s precisely what that column is for. I haven’t needed the functionality yet myself, so I haven’t implemented a enqueue-at! function. Or maybe it’s enqueue-delayed! . Or both?
Would you mind opening an issue at https://github.com/msolli/proletarian/issues describing the use case, as above? We can work out the details there.
can do, yes. For us, we have a job that polls a (flaky, connection might fail) FTP site to see if there's anything new to nab, and I'd like to have it queue up the next check as its last act before completing.