diff options
author | Jon Moss <maclover7@users.noreply.github.com> | 2017-05-18 18:04:45 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-18 18:04:45 -0400 |
commit | 3f90e9e36fd1688739aae5f5c6d971b3d7444968 (patch) | |
tree | ee26acc26174d19ee1a6260d3b4db54f382c789a /guides | |
parent | 75fa8dd309a84e125b59d01bf182d88419631eaa (diff) | |
parent | de499d6775efb433ff6b6ffb3503f67e18b54ee9 (diff) | |
download | rails-3f90e9e36fd1688739aae5f5c6d971b3d7444968.tar.gz rails-3f90e9e36fd1688739aae5f5c6d971b3d7444968.tar.bz2 rails-3f90e9e36fd1688739aae5f5c6d971b3d7444968.zip |
Merge pull request #29020 from stevenchanin/master
[ci skip] explain async queue and rake tasks
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/active_job_basics.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/guides/source/active_job_basics.md b/guides/source/active_job_basics.md index b58ca61848..443be77934 100644 --- a/guides/source/active_job_basics.md +++ b/guides/source/active_job_basics.md @@ -310,6 +310,12 @@ UserMailer.welcome(@user).deliver_now UserMailer.welcome(@user).deliver_later ``` +NOTE: Using the asynchronous queue from a Rake task (for example, to +send an email using `.deliver_later`) will generally not work because Rake will +likely end, causing the in-process thread pool to be deleted, before any/all +of the `.deliver_later` emails are processed. To avoid this problem, use +`.deliver_now` or run a persistent queue in development. + Internationalization -------------------- |