add synchronous mode for easier debugging #10
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
My teammates and I have been running into situations where debugging code inside wakaq workers that's getting called via
func.delay()
in our webserver process feels more painful than necessary.I'm hoping a small change like this or something similar could dramatically simplify the process by just letting us slap breakpoints in the code and be able to easily run the functions for debugging/development right in the same webserver process that's calling
func.delay()
.broadcast
and_enqueued_with_eta
submissions in synchronous mode.tested via setting up a
venv
and running the example from the readme in synchronous mode vs not:I'm certainly sensitive to the motivation for not wanting more features in wakaq- it's simplicity is definitely part of why I like it. I hope this isn't in competition with that spirit. Let me know if it is.