Skip to content

Commit

Permalink
feat: remove limitation to refresh Cloud Jobs list only after 30 seco…
Browse files Browse the repository at this point in the history
…nds (#2332)
  • Loading branch information
mtrezza authored Oct 24, 2022
1 parent a3bc1d8 commit ad1132f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib/ParseApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,10 +532,6 @@ export default class ParseApp {
}

getJobStatus() {
// Cache it for a 30s
if (new Date() - this.jobStatus.lastFetched < 30000) {
return Promise.resolve(this.jobStatus.status);
}
let query = new Parse.Query('_JobStatus');
query.descending('createdAt');
return query.find({ useMasterKey: true }).then((status) => {
Expand Down

0 comments on commit ad1132f

Please sign in to comment.