-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Worker/Queue to process expired DNS records #357
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking good. A few things I noticed on first reading.
dde70fc
to
ebe1956
Compare
@humphd, I have updated the code based on your initial feedback. |
@humphd I have removed the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A few things I notice and I think this is ready.
Updated the code with helpful comments and added the if condition to Edit: Updated environment variables names to be more precise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regardless, I'm going to approve this, if we decide to, we can make that change later, or you can incorporate it int this pr as well. Whatever makes more sense to you.
@dadolhay I misunderstood you earlier. I have updated the code to process DNS records expiration without using |
* Add code skeleton * Add switch statement and log messages * Add Worker/Queue to process DNS records * Add auto job removal on completion/failure * Fix typo in removeOnFail * Fix: eslint warnings * Unexpose init() * Update code based on feedback * Resolve merge conflict * fix: pass name as subdomain to deleteDnsRequest * use result value instead of expression * remove: if check for possiblly undefined value * Uncomment needed code * Update code based on feedback * Make variable names consistent with .env.example * Update variable name, add comments, move query func to /models * use single queue; remove test log * use local constant * remove pointless validation for constant being undefined * Update code based on feedback * Update code based on feedback * fix: eslint warning regarding unused import * re-position log message * fix: typecheck
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks awesome!
Description
Resolves #112 by adding Worker/Queue to do the following:
deleteDnsRequest
)Step 2 is not working as intended. Invoking
deleteDnsRequest
in the front-end/back-end fails with the following warning:Possibly linked to the missing TTL value.