Skip to content

1.4.1

Compare
Choose a tag to compare
@awsbuild awsbuild released this 20 Dec 12:54

Docker Images

coreoasis/model_worker:1.4.1
coreoasis/api_server:1.4.1

Components

oasislmf 1.4.6
ktools 3.2.1

Changelog

  • Fixes #280 - JSON file schemas compatibility with swagger
  • Added models/{id}/versions endpoint
  • Improved worker environment variables logging and defaults

Worker Environment variable changes

KTOOLS_BATCH_COUNT

KTOOLS_BATCH_COUNT has changed to KTOOLS_NUM_PROCESSES so it aligns with the MDK flag --ktools-num-processes if not set the worker will now default to the value ktools_num_processes set in oasislmf.conf with a fallback of -1 (if not set anywhere) which means 'Use all available threads'

OASIS_MODEL_SETTINGS_FILE

Workers will auto-update their model_settings file when connecting to celery. If a valid file exists in /var/oasis/meta-data/model_settings.json its posted to the API under models/{id}/settings the file path can be edited by setting OASIS_MODEL_SETTINGS_FILE

Compose file Example:

- OASIS_MODEL_SETTINGS_FILE = /var/oasis/meta-data/<MODEL_NAME>_model_settings.json

New Features

models/{id}/resource_file --> models/{id}/settings

The previous endpoints point for model specific parameters is changing to the following.
These will only accept JSON data validated using the schema model_settings.json.
m_settings

A validation error on POST will return 400: Bad request response.
error_400

For an example of the settings file using the update schema see:
OasisPiWind/meta-data/model_settings.json

analyses/{id}/settings_file --> analyses/{id}/settings

The analysis settings endpoint is also moving from a file upload to JSON data which is validated using
analysis_settings.json.

a_settings

worker versions

Workers will also post its internal component versions to the API under:
versions

Example response

{
  "ver_ktools": "fmcalc : version: 3.2.1 - git update: Fri Dec 20 10:50:16 2019 +0000t",
  "ver_oasislmf": "1.4.6",
  "ver_platform": "1.4.1 - b53e9a4, Fri Dec 20 12:37:09 UTC 2019"
}