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

Retry causes 'out of memory' error #217

Open
osambhus opened this issue Jul 14, 2015 · 0 comments
Open

Retry causes 'out of memory' error #217

osambhus opened this issue Jul 14, 2015 · 0 comments

Comments

@osambhus
Copy link

rest.get(config.edgecast.get_purge_url + purgeID, purgeOptions).on('complete', function(data) {
        if (data.CompleteDate) {
            console.log('Purge completed on ' + data.CompleteDate);
            callback();
        } else {
            this.retry(10000);
        }
    });

Before executing the above code, I'm sending out a purge request to the API and the above code just checks if the purge request was completed (If it is completed, the data.CompleteDate field is valid). I want to retry to check if data.CompleteDate is generated, every 10 seconds.

But it keeps saying FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - process out of memory and exits.

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

No branches or pull requests

1 participant