lundi 9 mai 2016

whenever gem is not working for every 2 seconds

I have implemented whenever gem for my backend crons jobs which is working good when I try something like

every 2.seconds do
  rake "my:rake:task"
end

I get this error

`parse_time': Time must be in minutes or higher (ArgumentError)

I really want to run this task after every few seconds how can I do this.

Aucun commentaire:

Enregistrer un commentaire