Сравнение версий

Ключ

  • Эта строка добавлена.
  • Эта строка удалена.
  • Изменено форматирование.

Чтобы регулярно скачивать и обновлять справочники, добавьте задачи на обновление в расписание. 
Для этого нужно добавить задачи с помощью API сервиса schedule

curl -X PUT -u username:password -d '<Запрос>' http://updaterHost:port/schedule

Блок кода
languagejson
titleЗапрос на добавление в расписание на обновление всех справочников «Подсказок»
[
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_bank"},
    {"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_email"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_fio"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_ip"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_eas"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_geo"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_house"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_iso3166"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_address_foreign"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_flat"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_stead"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_party"},
	{"task": "upload", "node": "suggestions_prod", "schedule": "00 20 * * 4", "dictionary": "suggestions_partyext"},
]

...

Блок кода
languagejson
titleЗапрос на добавление в расписание на обновление всех справочников «Фактора»
[
    {"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_bankdispemail"},
    {"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_emailfias"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_fioflatarea"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_ipflatprice"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_easgeocode"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_geoinvpassport"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_houseoktmo"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_iso3166rossvyaz"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_address_foreigntld"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_flat"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_stead"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_party"},
	{"task": "upload", "node": "factor_prod", "schedule": "00 20 * * 5", "dictionary": "factor_partyext"},
transphone"},
]
Блок кода
languagejson
titleЗапрос на добавление в расписание на обновление всех справочников «Единого клиента»
[
    {"task": "upload", "node": "cdi_prod", "schedule": "00 20 * * 6", "dictionary": "cdi_bankegrnorm"},
    {"task": "upload", "node": "cdi_prod", "schedule": "00 2008 * * 6", "dictionary": "cdi_email"},
	{"task": "upload", "node": "cdi_prod", "schedule": "00 20 * * 6", "dictionary": "cdi_fio"},
	{"task": "upload", "node": "cdi_prod", "schedule": "00 20 * * 6", "dictionary": "cdi_ipegrnorminc"},
]