DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
24 stars 8 forks source link

[BUG]: Create Table command in AppStack.ts not idempotent. #1033

Open alantao912 opened 11 months ago

alantao912 commented 11 months ago

Operating system

Windows 11

Bug description

Create Table command in AppStack.ts throws an exception if the specified table already exists in DynamoDB. Prevents SST from starting. In other words, the command is not idempotent. We should check if the table exists first, and if not, create it then.

Steps to reproduce

Un-comment the

const trainspaceRunTable = new Table(...); 

lines of code, and then type dlp-cli start.

It should complain about the specified table already existing, and then fail to start.

github-actions[bot] commented 11 months ago

Hello @alantao912! Thank you for submitting the 🐞Bug Request Form. We appreciate your contribution. :wave:

We will look into it and provide a response as soon as possible.

To work on this bug request, you can follow these branch setup instructions:

  1. Checkout the main branch:

     git checkout nextjs
  2. Pull the latest changes from the remote main branch:

     git pull origin nextjs
  3. Create a new branch specific to this bug request using the issue number:

     git checkout -b bug-1033

    Feel free to make the necessary changes in this branch and submit a pull request when you're ready.

    Best regards, Deep Learning Playground (DLP) Team

karkir0003 commented 10 months ago

@alantao912 status on this?

karkir0003 commented 9 months ago

@alantao912 any status on this?