Add 2min items:auto_model cron job
This commit is contained in:
parent
366158b698
commit
304a7ac9e1
1 changed files with 4 additions and 5 deletions
|
|
@ -442,13 +442,12 @@
|
||||||
mode: "755"
|
mode: "755"
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Remove 10min cron job to run `rails nc_mall:sync`
|
- name: Create 2min cron job to run `rails items:auto_model`
|
||||||
become_user: impress
|
become_user: impress
|
||||||
cron:
|
cron:
|
||||||
state: absent
|
name: "Impress: auto-model items"
|
||||||
name: "Impress: sync NC Mall data"
|
minute: "*/2"
|
||||||
minute: "*/10"
|
job: "bash -c 'source /etc/profile && source ~/.bash_profile && cd /srv/impress/current && bin/rails items:auto_model'"
|
||||||
job: "bash -c 'source /etc/profile && source ~/.bash_profile && cd /srv/impress/current && bin/rails nc_mall:sync'"
|
|
||||||
|
|
||||||
- name: Create 10min cron job to run `rails neopets:import`
|
- name: Create 10min cron job to run `rails neopets:import`
|
||||||
become_user: impress
|
become_user: impress
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue