property name="settings" inject="coldbox:moduleSettings:unleashsdk";
property name="log" inject="logbox:logger:{this}";
task( "unleashsdk-refresh-features" )
.every( variables.settings.refreshInterval, "seconds" )
log.debug( "Starting to fetch new features from Unleash" );
.onSuccess( function( task, results ) {
log.info( "Successfully refreshed features", results );
.onFailure( function( task, exception ) {
"Exception when running task [unleashsdk-refresh-features]:",
task( "unleashsdk-send-metrics" )
.every( variables.settings.metricsInterval, "seconds" )
.delay( variables.settings.metricsInterval, "seconds" )
log.debug( "Starting to send metrics to Unleash" );
.onSuccess( function( task, results ) {
"Successfully sent metrics to Unleash features",
.onFailure( function( task, exception ) {
"Exception when running task [unleashsdk-send-metrics]:",