D10S0VSkY-OSS / Stack-Lifecycle-Deployment

OpenSource self-service infrastructure solution that defines and manages the complete lifecycle of resources used and provisioned into a cloud! It is a terraform UI with rest api for terraform and OpenTofu automation
MIT License
227 stars 34 forks source link

Deploy record stuck #256

Closed D10S0VSkY-OSS closed 5 months ago

D10S0VSkY-OSS commented 5 months ago

Discussed in https://github.com/D10S0VSkY-OSS/Stack-Lifecycle-Deployment/discussions/254

Originally posted by **ramazulay** March 10, 2024 Hi @D10S0VSkY-OSS, How are you? I installed the latest version and it looks amazing, thanks for your hard work. I have a some bugs there, can I make an appointment and I will show you?
D10S0VSkY-OSS commented 5 months ago

HI @ramazulay SLD has two systems to mitigate race conditions: one before sending tasks and another inherent to the workers, which uses Redis to lock it for 5 minutes as TTL, and it gets deleted after this time. The bug existed in the first step, as it only sends a task that is running in the states ["SUCCESS", "FAILURE", "REVOKED", "PENDING"]. A button has been created to force the unlock, which leaves the state in PENDING (UNKNOWN), allowing a task to be run again.

image

Regards,