Fork me on GitHub
#proletarian
<
2022-02-16
>
rgm15:02:13

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).

msolli18:02:24

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?

msolli18:02:41

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.

rgm23:02:22

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.