I incidentally created a wrong domain, or after some testing I wanted to delete the domain. Should I do that? and How?
Can I or how to delete a Cadence workflow domain?
846 views Asked by Long Quanzheng At
1
There are 1 answers
Related Questions in CADENCE-WORKFLOW
- Is it a good idea to run cadence workflows and activities on differnet deployable services?
- How do I safely close my cadence client when my program exits?
- Cadence Activity metrics not being emitted
- Why are some of my old decision tasks stuck waiting to get picked up while newer decision tasks immediately get picked in cadence?
- Why is cadence only doing task deletion queries on my DB
- Temporal io workflow engine does it block a thread while calling an activity?
- How to determine the number of workers I need in Uber Cadence?
- Cannot find workflow definition even though I register it to worker
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Connection timeout on identification
- Unable to run Cadence Workflow from GoLang
- Problems with Cadence-Cassandra when searching for closed workflows
- What is the config file format when i use the command ./server start?
- How to kill a cron parent workflow
- Are there any pros and cons for code maintenance when using the default settings of the Cadence Versioning API?
Related Questions in UBER-CADENCE
- How do I safely close my cadence client when my program exits?
- Cadence Activity metrics not being emitted
- Why are some of my old decision tasks stuck waiting to get picked up while newer decision tasks immediately get picked in cadence?
- Why is cadence only doing task deletion queries on my DB
- Temporal io workflow engine does it block a thread while calling an activity?
- How to determine the number of workers I need in Uber Cadence?
- Cannot find workflow definition even though I register it to worker
- How can I pass a complex objects as input when using Cadence HTTP API tool?
- Connection timeout on identification
- Unable to run Cadence Workflow from GoLang
- Problems with Cadence-Cassandra when searching for closed workflows
- How to kill a cron parent workflow
- Are there any pros and cons for code maintenance when using the default settings of the Cadence Versioning API?
- How to execute the same workflow with cadence RegisterDelayedCallback in unit tests?
- Uber Cadence - Timer started
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
It's strongly recommended not to delete domain.
There could be some data like tasks associated with a domain in the Cadence system. There is no tooling to clean them yet. Simply delete the domain will lead to corruption. For example, there may be a timer task scheduled for 1 year later in that domain. If the domain is deleted, it may look okay right now. But one year later, when the timer fire, the system will be corrupted. By design Cadence needs to be strongly consistent. So the server cannot simply skip a timer task.
In most cases, you don't need to delete an existing domain. As long as you don't use it you are fine. Including cases like you created a domain with a wrong name, or you want to deprecate a domain. In those cases, just don't bother it.
Another case, you created a local domain but later on realized that it should be a global domain. It's recommended to just ignore the local domain.
There could some slightly better reasons to delete a domain. For example, in the above case, you want to keep using the same domain name for whatever reason.
!!Danger Zone!!
The ONLY case that you can delete a domain is the case that you are sure the domain has never been used at all.
The operation is as follow. Using your database tool:
For SQL:
For Cassandra:
This will return the domainUUID.
Then delete the records from two table: