Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix files and events replicators #134

Merged
merged 7 commits into from
Nov 18, 2020
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions cognite/replicator/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def copy_events(
project_src: str,
runtime: int,
client: CogniteClient,
dst_ts = None,
):
"""
Creates/updates event objects and then attempts to create and update these objects in the destination.
Expand All @@ -90,6 +91,7 @@ def copy_events(
project_src: The name of the project the object is being replicated from.
runtime: The timestamp to be used in the new replicated metadata.
client: The client corresponding to the destination project.
dst_ts: Is None for events, is called from replication's thread() fn for timeseries.

"""
logging.debug(f"Starting to replicate {len(src_events)} events.")
Expand Down
2 changes: 2 additions & 0 deletions cognite/replicator/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ def copy_files(
project_src: str,
runtime: int,
client: CogniteClient,
dst_ts = None,
):
"""
Creates/updates file objects and then attempts to create and update these objects in the destination.
Expand All @@ -83,6 +84,7 @@ def copy_files(
project_src: The name of the project the object is being replicated from.
runtime: The timestamp to be used in the new replicated metadata.
client: The client corresponding to the destination project.
dst_ts: Is None for events, is called from replication's thread() fn for timeseries.

"""
logging.debug(f"Starting to replicate {len(src_files)} files.")
Expand Down