4 ms·
eval + multi-exec solves that as the issue
by notyourday 7y ago
eval + multi-exec solves that as the issue
- pselbert 7y agoSure, you can glue things together with lua. Here is a script that handles descheduling from a sorted set: https://github.com/sorentwo/kiq/blob/master/priv/scripts/deschedule.lua https://github.com/sorentwo/kiq/blob/master/priv/scripts/des... That definitely does the job. My point is that it is much more complex than a select/update clause in SQL.
- wojcikstefan 7y agoYep, TaskTiger also uses Lua quite extensively ([0]) to ensure atomicity when moving tasks between various stages of processing (queued, active, scheduled, errored). [0] https://github.com/closeio/tasktiger/blob/master/tasktiger/redis_scripts.py https://github.com/closeio/tasktiger/blob/master/tasktiger/r...