Closed ancat closed 7 years ago
@ancat it looks like you are calling a script that is not loaded, this commit may help you, https://github.com/closeio/tasktiger/commit/ff42c433fed59e3f5b3e7b11bf8f92c6dcfff14a
If you can't wait Tasktiger next release and don't want modify library directly, you can override Tasktiger
and RedisScripts
.
Override Tasktiger
to use your own RedisScripts
.
Override RedisScripts
and override execute_pipeline
method, load scripts and then call parent execute_pipeline
Thanks for the help @dawncold, I saw that commit but didn't put 2 and 2 together. Applying that patch fixes the issue for me!
Hi,
I'm having trouble getting even the basic hello world example running cleanly on my system. The task does execute, but I get a massive stack trace about an exception that occurred in the Lua code. After the exception is printed, the
tasktiger
process exits. Patching the module to add an exception handler in redis_scripts.py works just fine in that multiple tasks can execute without the main process exiting, but it seems kinda hacky and the console gets flooded with"event": "failing expired task"
errors.Here's my specs (Ubuntu 16.04):
My code:
The error: