prefect icon indicating copy to clipboard operation
prefect copied to clipboard

Updating a deployment with `prefect deploy` says it's creating a new deployment

Open abrookins opened this issue 1 year ago • 6 comments

First check

  • [X] I added a descriptive title to this issue.
  • [X] I used the GitHub search to find a similar issue and didn't find it.
  • [X] I searched the Prefect documentation for this issue.
  • [X] I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

If I update my prefect.yaml file for a deployment previously created with prefect deploy ... and then run prefect deploy again to update the deployment (this is how I'm supposed to update from the YAML file), the command reports that it created a deployment:

[output removed ...]
 Deployment 'dummy/k8s-memory-test' successfully created with id '35f2550b-fdac-4930-9568-42ec4349348f'.

I selected an existing deployment to use, so this is confusing. However, I seem to still only have one deployment with this name, so an update happened but was reported as a creation.

Reproduction

- Create a deployment with `prefect deploy`
- Change something, such as the working directory, and run `prefect deploy` again
- Choose the existing deployment

Error

No response

Versions

2.16.3

Additional context

No response

abrookins avatar Mar 13 '24 18:03 abrookins

That makes sense to me that we would want to display that's it's been updated. We should probably do this first and then #12288

serinamarie avatar Mar 16 '24 16:03 serinamarie

Hi, @serinamarie would love to take this one.

eladm26 avatar Mar 17 '24 08:03 eladm26

Hi @eladm26, are you still interested in this one?

serinamarie avatar Apr 15 '24 13:04 serinamarie

Yeah, hopefully will get into it later this week

On Mon, 15 Apr 2024 at 16:20 Serina Grill @.***> wrote:

Hi @eladm26 https://github.com/eladm26, are you still interested in this one?

— Reply to this email directly, view it on GitHub https://github.com/PrefectHQ/prefect/issues/12287#issuecomment-2056838980, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA6P43GXK56GVJXBWC4UQNLY5PHYVAVCNFSM6AAAAABEUXMK4SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJWHAZTQOJYGA . You are receiving this because you were mentioned.Message ID: @.***>

eladm26 avatar Apr 15 '24 14:04 eladm26

Sounds good :)

serinamarie avatar Apr 15 '24 15:04 serinamarie

This is still the case with Prefect 3.0.10 After updating and redeploying: Screenshot 2024-10-25 at 4 25 05 PM

discdiver avatar Oct 25 '24 20:10 discdiver