Skip to content
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

Refactor/fix: rework server to send a response back and run rest of command work async #17

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

davidhouweling
Copy link
Owner

@davidhouweling davidhouweling commented Nov 4, 2024

Context

In testing the previous implementation built for Cloudflare, requests from Discord were being cancelled.

After some digging around, I found that there is a worker context waitFor which allows for workers to continue working even after responding.

Using this knowledge which is what I would have loved to have known before, I have reworked the approach so that the Discord request receives an immediate response (i.e. acknowledgement) and then subsequently updating the message.

@davidhouweling davidhouweling force-pushed the debug-worker-not-functioning branch from 20c5ab3 to 030de46 Compare November 5, 2024 10:00
@davidhouweling davidhouweling force-pushed the main branch 2 times, most recently from 4245444 to fbe5508 Compare November 5, 2024 10:29
@davidhouweling davidhouweling force-pushed the debug-worker-not-functioning branch 2 times, most recently from 65369b9 to aa1a051 Compare November 5, 2024 10:47
@davidhouweling davidhouweling force-pushed the debug-worker-not-functioning branch 3 times, most recently from 3a46abf to f6fc716 Compare November 5, 2024 11:33
@davidhouweling davidhouweling force-pushed the debug-worker-not-functioning branch from f6fc716 to 1daec86 Compare November 5, 2024 12:08
@davidhouweling davidhouweling changed the title add server debugging for testing Refactor/fix: rework server to send a response back and run rest of command work async Nov 5, 2024
@davidhouweling davidhouweling merged commit 61eed83 into main Nov 5, 2024
2 checks passed
@davidhouweling davidhouweling deleted the debug-worker-not-functioning branch November 5, 2024 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant