Skip to main content
S3NS
Documentation Technology areas
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
/
Sign in
  • Python
Overview Guides Reference
S3NS
  • Documentation
    • Overview
    • Guides
    • Reference
  • Technology areas
    • More
  • Cross-product tools
    • More
  • Overview
  • Library reference docs
  • BigQuery DataFrames
  • google-cloud-access-approval
  • google-cloud-advisorynotifications
  • google-cloud-aiplatform
  • google-cloud-alloydb
  • google-cloud-alloydb-connectors
  • google-cloud-api-gateway
  • google-cloud-api-keys
  • google-cloud-apigee-connect
  • google-cloud-apigee-registry
  • google-cloud-apihub
  • google-cloud-appengine-admin
  • google-cloud-appengine-logging
  • google-cloud-apphub
  • google-cloud-artifact-registry
  • google-cloud-asset
  • google-cloud-assured-workloads
  • google-cloud-audit-log
  • google-cloud-automl
  • google-cloud-backupdr
  • google-cloud-bare-metal-solution
  • google-cloud-batch
  • google-cloud-beyondcorp-appconnections
  • google-cloud-beyondcorp-appconnectors
  • google-cloud-beyondcorp-appgateways
  • google-cloud-beyondcorp-clientconnectorservices
  • google-cloud-beyondcorp-clientgateways
  • google-cloud-bigquery
  • google-cloud-bigquery-biglake
  • google-cloud-bigquery-connection
  • google-cloud-bigquery-data-exchange
  • google-cloud-bigquery-datapolicies
  • google-cloud-bigquery-datatransfer
  • google-cloud-bigquery-logging
  • google-cloud-bigquery-migration
  • google-cloud-bigquery-reservation
  • google-cloud-bigquery-storage
  • google-cloud-bigtable
  • google-cloud-billing
  • google-cloud-billing-budgets
  • google-cloud-binary-authorization
  • google-cloud-build
  • google-cloud-certificate-manager
  • google-cloud-channel
  • google-cloud-chronicle
  • google-cloud-cloudcontrolspartner
  • google-cloud-commerce-consumer-procurement
  • google-cloud-common
  • google-cloud-compute
  • google-cloud-confidentialcomputing
  • google-cloud-config
  • google-cloud-contact-center-insights
  • google-cloud-container
  • google-cloud-containeranalysis
  • google-cloud-contentwarehouse
  • google-cloud-core
  • google-cloud-data-fusion
  • google-cloud-data-qna
  • google-cloud-datacatalog
  • google-cloud-datacatalog-lineage
  • google-cloud-dataflow-client
  • google-cloud-dataform
  • google-cloud-datalabeling
  • google-cloud-dataplex
  • google-cloud-dataproc
  • google-cloud-dataproc-metastore
  • google-cloud-datastore
  • google-cloud-datastream
  • google-cloud-debugger-client
  • google-cloud-deploy
    • Overview
    • clouddeploy APIs
      • API overview
      • Classes
      • Methods
      • Properties and Attributes
    • Changelog
    • Multiprocessing
    • Deploy V1
      • cloud_deploy
        • Overview
        • pagers
          • Overview
          • ListAutomationRunsAsyncPager
          • ListAutomationRunsPager
          • ListAutomationsAsyncPager
          • ListAutomationsPager
          • ListCustomTargetTypesAsyncPager
          • ListCustomTargetTypesPager
          • ListDeliveryPipelinesAsyncPager
          • ListDeliveryPipelinesPager
          • ListDeployPoliciesAsyncPager
          • ListDeployPoliciesPager
          • ListJobRunsAsyncPager
          • ListJobRunsPager
          • ListReleasesAsyncPager
          • ListReleasesPager
          • ListRolloutsAsyncPager
          • ListRolloutsPager
          • ListTargetsAsyncPager
          • ListTargetsPager
        • CloudDeployAsyncClient
        • CloudDeployClient
      • types
        • Overview
        • AbandonReleaseRequest
        • AbandonReleaseResponse
        • AdvanceChildRolloutJob
        • AdvanceChildRolloutJobRun
        • AdvanceRolloutOperation
        • AdvanceRolloutRequest
        • AdvanceRolloutResponse
        • AdvanceRolloutRule
        • AnthosCluster
        • ApproveRolloutRequest
        • ApproveRolloutResponse
        • AssociatedEntities
        • Automation
          • Overview
          • AnnotationsEntry
          • LabelsEntry
        • AutomationEvent
        • AutomationResourceSelector
        • AutomationRolloutMetadata
        • AutomationRule
        • AutomationRuleCondition
        • AutomationRun
          • Overview
          • State
        • AutomationRunEvent
        • BackoffMode
        • BuildArtifact
        • Canary
        • CanaryDeployment
        • CancelAutomationRunRequest
        • CancelAutomationRunResponse
        • CancelRolloutRequest
        • CancelRolloutResponse
        • ChildRolloutJobs
        • CloudRunConfig
        • CloudRunLocation
        • CloudRunMetadata
        • CloudRunRenderMetadata
        • Config
        • CreateAutomationRequest
        • CreateChildRolloutJob
        • CreateChildRolloutJobRun
        • CreateCustomTargetTypeRequest
        • CreateDeliveryPipelineRequest
        • CreateDeployPolicyRequest
        • CreateReleaseRequest
        • CreateRolloutRequest
        • CreateTargetRequest
        • CustomCanaryDeployment
          • Overview
          • PhaseConfig
        • CustomMetadata
          • Overview
          • ValuesEntry
        • CustomTarget
        • CustomTargetDeployMetadata
        • CustomTargetSkaffoldActions
        • CustomTargetType
          • Overview
          • AnnotationsEntry
          • LabelsEntry
        • CustomTargetTypeNotificationEvent
        • DefaultPool
        • DeleteAutomationRequest
        • DeleteCustomTargetTypeRequest
        • DeleteDeliveryPipelineRequest
        • DeleteDeployPolicyRequest
        • DeleteTargetRequest
        • DeliveryPipeline
          • Overview
          • AnnotationsEntry
          • LabelsEntry
        • DeliveryPipelineAttribute
          • Overview
          • LabelsEntry
        • DeliveryPipelineNotificationEvent
        • DeployArtifact
        • DeployJob
        • DeployJobRun
          • Overview
          • FailureCause
        • DeployJobRunMetadata
        • DeployParameters
          • Overview
          • MatchTargetLabelsEntry
          • ValuesEntry
        • DeployPolicy
          • Overview
          • AnnotationsEntry
          • Invoker
          • LabelsEntry
        • DeployPolicyEvaluationEvent
          • Overview
          • PolicyVerdict
          • PolicyVerdictOverride
        • DeployPolicyNotificationEvent
        • DeployPolicyResourceSelector
        • DeploymentJobs
        • ExecutionConfig
          • Overview
          • ExecutionEnvironmentUsage
        • GetAutomationRequest
        • GetAutomationRunRequest
        • GetConfigRequest
        • GetCustomTargetTypeRequest
        • GetDeliveryPipelineRequest
        • GetDeployPolicyRequest
        • GetJobRunRequest
        • GetReleaseRequest
        • GetRolloutRequest
        • GetTargetRequest
        • GkeCluster
        • IgnoreJobRequest
        • IgnoreJobResponse
        • Job
          • Overview
          • State
        • JobRun
          • Overview
          • State
        • JobRunNotificationEvent
        • KubernetesConfig
          • Overview
          • GatewayServiceMesh
            • Overview
            • RouteDestinations
          • ServiceNetworking
        • ListAutomationRunsRequest
        • ListAutomationRunsResponse
        • ListAutomationsRequest
        • ListAutomationsResponse
        • ListCustomTargetTypesRequest
        • ListCustomTargetTypesResponse
        • ListDeliveryPipelinesRequest
        • ListDeliveryPipelinesResponse
        • ListDeployPoliciesRequest
        • ListDeployPoliciesResponse
        • ListJobRunsRequest
        • ListJobRunsResponse
        • ListReleasesRequest
        • ListReleasesResponse
        • ListRolloutsRequest
        • ListRolloutsResponse
        • ListTargetsRequest
        • ListTargetsResponse
        • Metadata
        • MultiTarget
        • OneTimeWindow
        • OperationMetadata
        • Phase
          • Overview
          • State
        • PipelineCondition
        • PipelineReadyCondition
        • PolicyRule
        • PolicyViolation
        • PolicyViolationDetails
        • Postdeploy
        • PostdeployJob
        • PostdeployJobRun
          • Overview
          • FailureCause
        • Predeploy
        • PredeployJob
        • PredeployJobRun
          • Overview
          • FailureCause
        • PrivatePool
        • PromoteReleaseOperation
        • PromoteReleaseRule
        • Release
          • Overview
          • AnnotationsEntry
          • DeployParametersEntry
          • LabelsEntry
          • ReleaseCondition
          • ReleaseReadyCondition
          • RenderState
          • SkaffoldSupportedCondition
          • TargetArtifactsEntry
          • TargetRender
            • Overview
            • FailureCause
            • TargetRenderState
          • TargetRendersEntry
        • ReleaseNotificationEvent
        • ReleaseRenderEvent
        • RenderMetadata
        • RepairPhase
        • RepairPhaseConfig
        • RepairRolloutOperation
        • RepairRolloutRule
        • RepairState
        • Retry
        • RetryAttempt
        • RetryJobRequest
        • RetryJobResponse
        • RetryPhase
        • Rollback
        • RollbackAttempt
        • RollbackTargetConfig
        • RollbackTargetRequest
        • RollbackTargetResponse
        • Rollout
          • Overview
          • AnnotationsEntry
          • ApprovalState
          • FailureCause
          • LabelsEntry
          • State
        • RolloutNotificationEvent
        • RolloutRestriction
          • Overview
          • RolloutActions
        • RolloutUpdateEvent
          • Overview
          • RolloutUpdateType
        • RuntimeConfig
        • SerialPipeline
        • SkaffoldModules
          • Overview
          • SkaffoldGCBRepoSource
          • SkaffoldGCSSource
          • SkaffoldGitSource
        • SkaffoldSupportState
        • SkaffoldVersion
        • Stage
        • Standard
        • Strategy
        • Target
          • Overview
          • AnnotationsEntry
          • AssociatedEntitiesEntry
          • DeployParametersEntry
          • LabelsEntry
        • TargetArtifact
          • Overview
          • PhaseArtifact
          • PhaseArtifactsEntry
        • TargetAttribute
          • Overview
          • LabelsEntry
        • TargetNotificationEvent
        • TargetsPresentCondition
        • TargetsTypeCondition
        • TerminateJobRunRequest
        • TerminateJobRunResponse
        • TimeWindows
        • TimedPromoteReleaseCondition
          • Overview
          • Targets
        • TimedPromoteReleaseOperation
        • TimedPromoteReleaseRule
        • Type
        • UpdateAutomationRequest
        • UpdateCustomTargetTypeRequest
        • UpdateDeliveryPipelineRequest
        • UpdateDeployPolicyRequest
        • UpdateTargetRequest
        • VerifyJob
        • VerifyJobRun
          • Overview
          • FailureCause
        • WeeklyWindow
  • google-cloud-developerconnect
  • google-cloud-devicestreaming
  • google-cloud-dialogflow
  • google-cloud-dialogflow-cx
  • google-cloud-discoveryengine
  • google-cloud-dlp
  • google-cloud-dms
  • google-cloud-dns
  • google-cloud-documentai
  • google-cloud-documentai-toolbox
  • google-cloud-domains
  • google-cloud-edgecontainer
  • google-cloud-edgenetwork
  • google-cloud-enterpriseknowledgegraph
  • google-cloud-error-reporting
  • google-cloud-essential-contacts
  • google-cloud-eventarc
  • google-cloud-eventarc-publishing
  • google-cloud-filestore
  • google-cloud-financialservices
  • google-cloud-firestore
  • google-cloud-functions
  • google-cloud-game-servers
  • google-cloud-gdchardwaremanagement
  • google-cloud-gke-backup
  • google-cloud-gke-connect-gateway
  • google-cloud-gke-hub
  • google-cloud-gke-multicloud
  • google-cloud-gsuiteaddons
  • google-cloud-iam
  • google-cloud-iam-logging
  • google-cloud-iap
  • google-cloud-ids
  • google-cloud-iot
  • google-cloud-kms
  • google-cloud-kms-inventory
  • google-cloud-language
  • google-cloud-life-sciences
  • google-cloud-logging
  • google-cloud-lustre
  • google-cloud-managed-identities
  • google-cloud-managedkafka
  • google-cloud-media-translation
  • google-cloud-memcache
  • google-cloud-memorystore
  • google-cloud-migrationcenter
  • google-cloud-modelarmor
  • google-cloud-monitoring
  • google-cloud-monitoring-dashboards
  • google-cloud-monitoring-metrics-scopes
  • google-cloud-netapp
  • google-cloud-network-connectivity
  • google-cloud-network-management
  • google-cloud-network-security
  • google-cloud-network-services
  • google-cloud-notebooks
  • google-cloud-optimization
  • google-cloud-oracledatabase
  • google-cloud-orchestration-airflow
  • google-cloud-org-policy
  • google-cloud-os-config
  • google-cloud-os-login
  • google-cloud-parallelstore
  • google-cloud-parametermanager
  • google-cloud-phishing-protection
  • google-cloud-policy-troubleshooter
  • google-cloud-policysimulator
  • google-cloud-policytroubleshooter-iam
  • google-cloud-private-ca
  • google-cloud-private-catalog
  • google-cloud-privilegedaccessmanager
  • google-cloud-public-ca
  • google-cloud-pubsub
  • google-cloud-pubsublite
  • google-cloud-quotas
  • google-cloud-rapidmigrationassessment
  • google-cloud-recaptcha-enterprise
  • google-cloud-recommendations-ai
  • google-cloud-recommender
  • google-cloud-redis
  • google-cloud-redis-cluster
  • google-cloud-resource-manager
  • google-cloud-retail
  • google-cloud-run
  • google-cloud-runtimeconfig
  • google-cloud-scheduler
  • google-cloud-secret-manager
  • google-cloud-securesourcemanager
  • google-cloud-securitycenter
  • google-cloud-securitycentermanagement
  • google-cloud-service-control
  • google-cloud-service-directory
  • google-cloud-service-management
  • google-cloud-service-usage
  • google-cloud-servicehealth
  • google-cloud-shell
  • google-cloud-source-context
  • google-cloud-spanner
  • google-cloud-speech
  • google-cloud-storage
  • google-cloud-storage-control
  • google-cloud-storage-transfer
  • google-cloud-storagebatchoperations
  • google-cloud-storageinsights
  • google-cloud-support
  • google-cloud-talent
  • google-cloud-tasks
  • google-cloud-telcoautomation
  • google-cloud-texttospeech
  • google-cloud-tpu
  • google-cloud-trace
  • google-cloud-translate
  • google-cloud-video-live-stream
  • google-cloud-video-stitcher
  • google-cloud-video-transcoder
  • google-cloud-videointelligence
  • google-cloud-vision
  • google-cloud-visionai
  • google-cloud-vm-migration
  • google-cloud-vmwareengine
  • google-cloud-vpc-access
  • google-cloud-webrisk
  • google-cloud-websecurityscanner
  • google-cloud-workflows
  • google-cloud-workstations
  • google-resumable-media
  • googleapis-common-protos
  • grpc-google-iam-v1
  • langchain-google-alloydb-pg
  • langchain-google-bigtable
  • langchain-google-cloud-sql-mssql
  • langchain-google-cloud-sql-mysql
  • langchain-google-cloud-sql-pg
  • langchain-google-datastore
  • langchain-google-el-carro
  • langchain-google-firestore
  • langchain-google-memorystore-redis
  • langchain-google-spanner
  • llama-index-alloydb-pg
  • llama-index-cloud-sql-pg
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Networking
  • Observability and monitoring
  • Security
  • Storage
  • Access and resources management
  • Google Cloud SDK, languages, frameworks, and tools
  • Infrastructure as code
Some or all of the information on this page might not apply to Trusted Cloud by S3NS.
  • Home
  • Python
  • Documentation
  • Reference
Note: Some or all of the information on this page might not apply to Trusted Cloud. For a list of services that are available in Trusted Cloud, see Services available for Trusted Cloud.
  • 2.7.1 (latest)
  • 2.7.0
  • 2.6.3
  • 2.5.0
  • 2.4.1
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 1.19.1
  • 1.18.1
  • 1.17.3
  • 1.16.0
  • 1.15.0
  • 1.14.0
  • 1.13.0
  • 1.12.0
  • 1.11.1
  • 1.10.1
  • 1.9.0
  • 1.8.0
  • 1.7.0
  • 1.6.1
  • 1.5.0
  • 1.4.1
  • 1.3.1
  • 1.2.1
  • 1.1.1
  • 1.0.0
  • 0.3.2
  • 0.2.0
  • 0.1.1

Multiprocessing

NOTE: Because this client uses grpc library, it is safe to share instances across threads. In multiprocessing scenarios, the best practice is to create client instances after the invocation of os.fork() by multiprocessing.pool.Pool or multiprocessing.Process.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-02 UTC.

  • Terms
  • Privacy
  • Manage cookies