serverless-init w/ Google Cloud Run Job #22382
iamannamai
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a NodeJS script that's deployed as a Cloud Run Job, which I understand to be a relative new offering. This is not a server listening for requests like a Cloud Run/Function service would.
I'd like to use the Datadog
serverless-init
application to run this script as a subprocess, but noticed that the process responsible for flushing logs to Datadog continues to run even after the node script exits by callingprocess.exit(0)
. I believe the main process running causes the container to stay alive, which in turn causes the job to eventually time out.Have people found
serverless-init
to be capable of supporting Cloud Run Jobs and terminate cleanly at the end of a job? There appears to be code inserverless-init
specific to Cloud Run services, not jobs. If not, what are the recommendations for forwarding logs to Datadog for applications deployed as Cloud Run Jobs?Beta Was this translation helpful? Give feedback.
All reactions