Mirror of https://github.com/roostorg/osprey github.com/roostorg/osprey
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Try last for hookimpl_osprey (#84)

authored by

Leon Shi and committed by
GitHub
2ea38adc ddd1ea19

+4 -2
+4 -2
osprey_worker/src/osprey/worker/_stdlibplugin/storage_register.py
··· 1 + from typing import Optional 2 + 1 3 from osprey.worker.adaptor.plugin_manager import hookimpl_osprey 2 4 from osprey.worker.lib.config import Config 3 5 from osprey.worker.lib.storage.stored_execution_result import ExecutionResultStore, StoredExecutionResultMinIO 4 6 5 7 6 - @hookimpl_osprey 7 - def register_execution_result_store(config: Config) -> ExecutionResultStore: 8 + @hookimpl_osprey(trylast=True) 9 + def register_execution_result_store(config: Config) -> Optional[ExecutionResultStore]: 8 10 endpoint = config.get_str('OSPREY_MINIO_ENDPOINT', 'minio:9000') 9 11 access_key = config.get_str('OSPREY_MINIO_ACCESS_KEY', 'minioadmin') 10 12 secret_key = config.get_str('OSPREY_MINIO_SECRET_KEY', 'minioadmin123')