ramp_utils.generate_worker_config

ramp_utils.generate_worker_config(event_config, database_config=None)

Generate the configuration for RAMP worker from a configuration file.

Parameters
event_configdict or str

Either the loaded configuration or the configuration YAML file. When the configuration filename is given, database_config need to be given as well. When a dict is provided, all paths should be given.

database_configstr, optional

The database configuration filename. It is required when event_config is a str..

Returns
worker_configdict

The configuration for the RAMP worker.