I
I
Ilnar252018-03-12 21:42:23
Ruby on Rails
Ilnar25, 2018-03-12 21:42:23

What should be used for the task?

There is a notification model (t.text :description, t.datetime :time_sending) that sends a notification.description to user.email according to the time from notification.time_sending. Recommend a gem :) Thank you!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2018-03-13
@2ord

You need ActionMailer and DelayedJob (possible through ActionJob) and direct hands.
Periodically run a Rake task with SELECT time_sending for a certain period of time and if there are records, then send them . The mailing will be approximately at time_sending.

K
krassm, 2018-03-13
@krassm

You can use it like this, dynamically manage tasks in the cron. https://github.com/moove-it/sidekiq-scheduler

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question