We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can have alarms that run on an interval and update internal application stats.
Example alarm:
async alarm(): Promise<void> { try { console.log(`ContextDO: alarm activated`); } catch (error) { console.error(`ContextDO: alarm execution failed: ${error instanceof Error ? error.message : tring(error)}`); } finally { // Always schedule next alarm if one isn't set const currentAlarm = await this.ctx.storage.getAlarm(); if (currentAlarm === null) { this.ctx.storage.setAlarm(Date.now() + this.ALARM_INTERVAL_MS); } } }
The text was updated successfully, but these errors were encountered:
fix: remove unused alarms, documented format in #35
eccc566
No branches or pull requests
We can have alarms that run on an interval and update internal application stats.
Example alarm:
The text was updated successfully, but these errors were encountered: