You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 calling process.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 in serverless-initspecific to Cloud Run services, not jobs. If not, what are the recommendations for forwarding logs to Datadog for applications deployed as Cloud Run Jobs?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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