Commit e09e4d94 authored by 李尚科's avatar 李尚科

fix

parent cd09cc0b
Pipeline #12308 passed with stage
in 20 seconds
......@@ -24,6 +24,7 @@ class HuaYunPaas extends Subscription {
let lock = 'huayun:pass:cron:' + moment().format('MMDD');
ctx.logger.info(lock);
let redRes = await app.redis.setnx(lock, 1);
ctx.logger.info(JSON.stringify(redRes));
ctx.logger.info('in cron');
if (Number(redRes) === 1) {
ctx.logger.info('in redis');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment