Automattic / kue

Kue is a priority job queue backed by redis, built for node.js.
http://automattic.github.io/kue
MIT License
9.45k stars 862 forks source link

Why is _state prefixed with an underscore? Is it not intended for use? #1157

Open denizdogan opened 6 years ago

denizdogan commented 6 years ago

I'm writing an application where, given a job ID, I want to check whether a job has completed or not. The obvious way would to get the job and check its state, but I noticed that the property is called _state which usually indicates a private property, so I'm thinking maybe I'm doing something wrong?