Daemoninsing a rake task

前端 未结 4 1652
遥遥无期
遥遥无期 2020-12-17 03:52

I have a rake task which runs mailman under the rails environment.

I\'d like to ensure that rake task is always running via a daemon.

My rake task is r

4条回答
  •  渐次进展
    2020-12-17 04:16

    If it's a docker image then surely it must be linux so,

    rake incoming_mail &
    

    should do the job by login into the pod and running rake task

    Apart from this, put

    Rails.logger.info in your code so the logs will be pushed to application log file OR

    GCloud Stackdriver or any logging framework.

提交回复
热议问题