Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added getStatus to ScheduledTask #103

Merged
merged 5 commits into from Sep 10, 2018
Merged

Added getStatus to ScheduledTask #103

merged 5 commits into from Sep 10, 2018

Conversation

merencia
Copy link
Member

@merencia merencia commented Sep 6, 2018

No description provided.

src/task.js Outdated
var execution = new Promise(function(resolve, reject){
self.emit('started', self);
var ex = self.execution();
if( execution instanceof Promise){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Promise' is not defined.

src/task.js Outdated
console.error(err);
}
var self = this;
var execution = new Promise(function(resolve, reject){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Promise' is not defined.

});
} catch (error) {
console.error(error);
self.emit('failed', error);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'self' used out of scope.


ScheduledTask.prototype.getStatus = function() {
return this.status;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

@jerrywoo96
Copy link

jerrywoo96 commented Jan 29, 2024

what changed? getStatus() ain't working no more, and i also can't destroy the scheduled task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants