How to supervise Process.send_after/4?

Hello all,

I want to execute some code 24 hours after a certain function is called.

So I created a GenServer and I’m using Process.send_after/4 for doing that. But I’m afraid that 24 hours is too long to trust the process to still be alive.

Does anyone have any tips for me on how to deal with that? Maybe some articles and other ideas on how to better solve this problem?

Thanks a lot,

I don’t think You should be afraid of the period, 24 hours is not that long…

You might be interested in Oban, as You might have better guarantees. Such as persistance, retry etc.

1 Like

Thanks a lot for your answer @kokolegorille . I deeply appreciate it.

I’ll have a look into Oban!

There’s also this

1 Like