[英]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.