Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
LanderOtto committed Dec 1, 2023
1 parent 0a793f1 commit 13f2fdb
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions streamflow/core/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,8 +286,8 @@ async def update_command(
...

@abstractmethod
async def update_config(
self, config_id: int, updates: MutableMapping[str, Any]
async def update_deployment(
self, deployment_id: int, updates: MutableMapping[str, Any]
) -> int:
...

Expand Down
2 changes: 1 addition & 1 deletion streamflow/persistence/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class CachedDatabase(Database, ABC):
def __init__(self, context: StreamFlowContext):
super().__init__(context)
self.config_cache: Cache = LRUCache(maxsize=sys.maxsize)
self.deployment_cache: Cache = LRUCache(maxsize=sys.maxsize)
self.port_cache: Cache = LRUCache(maxsize=sys.maxsize)
self.step_cache: Cache = LRUCache(maxsize=sys.maxsize)
self.target_cache: Cache = LRUCache(maxsize=sys.maxsize)
Expand Down
15 changes: 8 additions & 7 deletions streamflow/persistence/schemas/sqlite.sql
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,15 @@ CREATE TABLE IF NOT EXISTS provenance
);


CREATE TABLE IF NOT EXISTS config
CREATE TABLE IF NOT EXISTS deployment
(
id INTEGER PRIMARY KEY,
name TEXT,
attr_type TEXT,
config TEXT,
type TEXT,
params TEXT
id INTEGER PRIMARY KEY,
name TEXT,
type TEXT,
config TEXT,
external INTEGER,
lazy INTEGER,
workdir TEXT
);


Expand Down

0 comments on commit 13f2fdb

Please sign in to comment.