mosquito-cr / mosquito

A background task runner for crystal applications supporting periodic (CRON) and manually queued jobs
MIT License
227 stars 24 forks source link

Deleting key from redis doesn't recreate it on next run #42

Closed greenbigfrog closed 4 years ago

greenbigfrog commented 4 years ago

I deleted a key of waiting type from redis via redis-cli to reset the queue, and now mosquito doesn't recreate it automatically and I can't queue any jobs of that type

robacarp commented 4 years ago

@greenbigfrog I don’t understand. When a task is moved into Waiting, the redis list is created. If some outside influences deleted the queue, mosquito will lose track of all the tasks it was holding — but there is nothing that can be done about that.

Can you be more specific about the way to reproduce?

greenbigfrog commented 4 years ago

mosquito will lose track of all the tasks it was holding — but there is nothing that can be done about that.

That was my intention. I'll describe the way to reproduce soonish

robacarp commented 4 years ago

Closing due to inactivity