r-geoflow / geoflow

Tools to Orchestrate Geospatial (Meta)Data Management Workflows and Manage FAIR Services
https://github.com/r-geoflow/geoflow/wiki
Other
41 stars 14 forks source link

Issue with sourcing software 'onstart' / 'onend' scripts (sql, R) and running global custom actions #327

Closed eblondel closed 1 year ago

eblondel commented 1 year ago

With #237 and the addition of the initWorkflow as part of the log, the job directory is defined early in the workflow initialization. With this improvement, some side effects occur with software (eg. DBI) onstart / onend scripts sourcing (when using relative paths), but also with custom global actions. To fix this, a function get_config_resource_path will be developed to make sure that relative paths set in the config will refer to the actual config working directory (inherited through config$wd) and not the job directory.

cc @BastienIRD @juldebar