Skip to content

Commit 219fd46

Browse files
authored
MRG: Merge pull request #495 from octue/dependencies/fix-dependency-resolution-problems
Fix problems with Dataflow-related dependencies and remove unused dependencies
2 parents 1141087 + 12c1c83 commit 219fd46

File tree

4 files changed

+193
-518
lines changed

4 files changed

+193
-518
lines changed

octue/cloud/deployment/google/dataflow/pipeline.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from octue import REPOSITORY_ROOT
1010
from octue.cloud.deployment.google.answer_pub_sub_question import answer_question
1111
from octue.cloud.pub_sub import Topic
12-
from octue.cloud.pub_sub.service import Service
12+
from octue.cloud.pub_sub.service import OCTUE_NAMESPACE, Service
1313
from octue.exceptions import DeploymentError
1414
from octue.resources.service_backends import GCPPubSubBackend
1515

@@ -79,7 +79,12 @@ def create_streaming_job(
7979
pipeline_options = PipelineOptions.from_dictionary(pipeline_options)
8080
pipeline = apache_beam.Pipeline(options=pipeline_options)
8181

82-
service_topic = Topic(name=service_id, service=Service(backend=GCPPubSubBackend(project_name=project_name)))
82+
service_topic = Topic(
83+
name=service_id,
84+
namespace=OCTUE_NAMESPACE,
85+
service=Service(backend=GCPPubSubBackend(project_name=project_name)),
86+
)
87+
8388
service_topic.create(allow_existing=True)
8489

8590
(

0 commit comments

Comments
 (0)