Salt highstate schedule only runs once

48 views
Skip to first unread message

Tong Pham

unread,
Apr 17, 2017, 8:56:06 PM4/17/17
to Salt-users
Hello!

I am trying out Salt schedule, and I have tried adding the following to my minion state file:
highstate_run:
  schedule.present:
    - function: state.apply
    - splay: 5
    - seconds: 60

At first, the scheduled task shows up:
$ sudo salt-call schedule.list show_all=True
local:
    schedule:
      highstate_run:
        enabled: true
        function: state.apply
        jid_include: true
        maxrunning: 1
        name: highstate_run
        seconds: 60
        splay: 5

But after one execution of the state.apply command (as seen under /var/log/salt/minion), the scheduled task disappeared and would not run again.

This confuses me, because the documentation (https://docs.saltstack.com/en/latest/ref/states/all/salt.states.schedule.html) says that the above should run every 60 seconds with 5 seconds spread.

If there is another way to apply create 
Any input will be appreciated. Thanks! :")

Regards,
Tong
Reply all
Reply to author
Forward
0 new messages