Skip to content

Commit

Permalink
change scheduler parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
chasinandrew committed Jan 22, 2024
1 parent 878205f commit b697205
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,20 @@ jobs:
username: 'oauth2accesstoken'
password: '${{ steps.auth.outputs.access_token }}'
registry: '${{ vars.region }}-docker.pkg.dev'

- name: Setup Google Cloud SDK
uses: 'google-github-actions/setup-gcloud@v2'
with:
version: '>= 363.0.0'

- name: Cloud Scheduler Creation
run: |-
gcloud scheduler jobs update pubsub myjob \
gcloud scheduler jobs create pubsub pipeline-submit-schedule \
--location="us-east4" \
--schedule="30 5 * * *" \
--topic="test-pubsub" \
--message-body="{\"field1\":\"value1\",\"field2\":\"value2\"}}"
--topic="pipeline-submission-topic" \
--message-body-from-file="pipeline.json"
# - name: Build and Tag
# id: build-image
# uses: docker/build-push-action@v3
Expand Down
9 changes: 9 additions & 0 deletions pipeline.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"bq_table": "hca-demo-dev.test_dataset.dry-beans",
"model_directory": "gs://hca-demo-dev-dry-beans-dt-bucket/trained_models/2023-09-25 18:46:01.376735",
"bigquery_dataset": "hca-demo-dataset",
"project_id": "hca-demo-dev",
"project_number": "647084706976",
"region": "us-central1",
"gs_pipeline_spec_path": "gs://hca-demo-dev-dry-beans-dt-bucket/pipeline_root/dry-beans-dt/pipeline_job.json"
}

0 comments on commit b697205

Please sign in to comment.