[英]How can you tell if a scheduled (rake) task is currently running on heroku?
Scheduler會在運行時啟動一次性dyno,它將通過heroku ps
和相關命令顯示在應用程序的進程列表中: https : //devcenter.heroku.com/articles/one-off-dynos#stopping-one- off-dynos-進程將具有scheduler
的前綴(即scheduler.1
)。 ps
還將返回正在執行的命令的名稱,這使您可以根據需要區分任務。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.