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

[feat][DTC-5411] updated jobs runner to be able to use temporal #204

Closed
Show file tree
Hide file tree
Changes from all 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
6 changes: 6 additions & 0 deletions cloudformation/retool-workflows.ec2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ Resources:
Value: !Join ['', ['{{resolve:secretsmanager:', !Ref RetoolEncryptionKeySecret, ':SecretString:password}}' ]]
- Name: LICENSE_KEY
Value: "EXPIRED-LICENSE-KEY-TRIAL"
- Name: WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_HOST
Value: temporal.retoolsvc
- Name: WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_PORT
Value: "7233"
- Name: WORKFLOW_BACKEND_HOST
Value: http://workflows-backend.retoolsvc:3000
Command: ["./docker_scripts/start_api.sh"]

RetoolWorkkflowsBackendTask:
Expand Down
6 changes: 6 additions & 0 deletions cloudformation/retool-workflows.fargate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,12 @@ Resources:
Value: !Join ['', ['{{resolve:secretsmanager:', !Ref RetoolEncryptionKeySecret, ':SecretString:password}}' ]]
- Name: LICENSE_KEY
Value: "EXPIRED-LICENSE-KEY-TRIAL"
- Name: WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_HOST
Value: temporal.retoolsvc
- Name: WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_PORT
Value: "7233"
- Name: WORKFLOW_BACKEND_HOST
Value: http://workflows-backend.retoolsvc:3000
Command: ["./docker_scripts/start_api.sh"]

RetoolWorkkflowsBackendTask:
Expand Down
5 changes: 5 additions & 0 deletions docker-compose-workflows-with-temporal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,15 @@ services:
env_file: ./docker.env
environment:
- SERVICE_TYPE=JOBS_RUNNER
- WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_HOST=temporal
- WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_PORT=7233
- WORKFLOW_BACKEND_HOST=http://api:3000
networks:
- backend-network
- workflows-network
depends_on:
- postgres
- temporal
command: bash -c "chmod -R +x ./docker_scripts; sync; ./docker_scripts/wait-for-it.sh postgres:5432; ./docker_scripts/start_api.sh"
links:
- postgres
Expand Down
10 changes: 10 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,18 @@ services:
env_file: ./docker.env
environment:
- SERVICE_TYPE=JOBS_RUNNER
# If using Retool-managed Temporal cluster, leave workflow-related ENV vars commented
# If using self-managed cluster (Temporal Cloud or self-hosted) external to your Retool deployment, uncomment and update workflow-related ENV vars
# Compare deployment options here: https://docs.retool/self-hosted/concepts/temporal#compare-options
# - WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_HOST=temporal
# - WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_PORT=7233
# set these if using self-managed Temporal Cloud or require TLS for your self-managed Temporal cluster
# - WORKFLOW_TEMPORAL_TLS_ENABLED
# - WORKFLOW_TEMPORAL_TLS_CRT
# - WORKFLOW_TEMPORAL_TLS_KEY
networks:
- backend-network
- workflows-network
depends_on:
- postgres
command: bash -c "chmod -R +x ./docker_scripts; sync; ./docker_scripts/wait-for-it.sh postgres:5432; ./docker_scripts/start_api.sh"
Expand Down
8 changes: 8 additions & 0 deletions kubernetes_workflows/retool-jobs-runner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ spec:
secretKeyRef:
name: retoolsecrets
key: google_client_secret
- name: WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_HOST
value: "retool-temporal-frontend"
- name: WORKFLOW_TEMPORAL_CLUSTER_FRONTEND_PORT
value: "7233"
- name: WORKFLOW_TEMPORAL_CLUSTER_NAMESPACE
value: "workflows"
- name: WORKFLOW_BACKEND_HOST
value: http://workflows-api
image: tryretool/backend:X.Y.Z
name: jobs-runner
ports:
Expand Down