Remove runAt property as it is not used
This commit is contained in:
parent
e4d54e9ab7
commit
58deb49972
@ -180,7 +180,6 @@ function TaskEntity(user, createdAt) {
|
|||||||
this.createdAt = createdAt;
|
this.createdAt = createdAt;
|
||||||
this.status = STATUS.PENDING;
|
this.status = STATUS.PENDING;
|
||||||
this.jobs = 0;
|
this.jobs = 0;
|
||||||
this.runAt = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TaskEntity.prototype.is = function(status) {
|
TaskEntity.prototype.is = function(status) {
|
||||||
@ -189,7 +188,6 @@ TaskEntity.prototype.is = function(status) {
|
|||||||
|
|
||||||
TaskEntity.prototype.running = function() {
|
TaskEntity.prototype.running = function() {
|
||||||
this.status = STATUS.RUNNING;
|
this.status = STATUS.RUNNING;
|
||||||
this.runAt = Date.now();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
TaskEntity.prototype.ran = function(userQueueIsEmpty) {
|
TaskEntity.prototype.ran = function(userQueueIsEmpty) {
|
||||||
|
Loading…
Reference in New Issue
Block a user