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_configneed to be given as well. When adictis provided, all paths should be given.- database_configstr, optional
The database configuration filename. It is required when
event_configis astr..
- Returns
- worker_configdict
The configuration for the RAMP worker.