fix(upload outputs): skip images/gifs/files/mesh when env var is true
The env var is CD_BYPASS_UPLOAD.
When that variable is True, we shouldn't upload the media to our comfy
deploy s3 bucket.
There are 2 steps.
save the file into our s3 bucket
save the output details into our database.
When CD_BYPASS_UPLOAD is True:
Skip the save file into our s3 bucket
Skip the save into our database.
Previously, we were skipping the step 1, but not the step 2. So that is
the reason of why we keep seeing the comfy deploy URL when fetching the
run details:
outputs: [
{
data:{
gifs: [
{
url: "https://comfy-deploy-output.s3.amazonaws.com/video.mp4"
}
],
text: [
"A text that you displayed with show text node"
]
}
}
]
With the new changes we don't save that into our database, and fetching
the details of a run will look like this:
outputs: [
{
data:{
text: [
"A text that you displayed with show text node"
]
}
}
]
fix(upload outputs): skip images/gifs/files/mesh when env var is true
The env var is
CD_BYPASS_UPLOAD
. When that variable isTrue
, we shouldn't upload the media to our comfy deploy s3 bucket.There are 2 steps.
When
CD_BYPASS_UPLOAD
is True:Previously, we were skipping the step 1, but not the step 2. So that is the reason of why we keep seeing the comfy deploy URL when fetching the run details:
With the new changes we don't save that into our database, and fetching the details of a run will look like this: