Scheduled jobs are the replacement of what was known in Smartsite 5 as background components. They are configured in the smartsite.config file. Scheduled jobs can currently only be started on startup but that will be more flexible in the future.
This is a example configuration of the FileLinkCopyJob.
<scheduledjobs> <job name="FileLinkCopy" type="Smartsite.Core.FileLinkCopyJob, Smartsite.Runtime" account="john" enabled="true"> <schedules> <schedule event="startup" /> </schedules> <parameters> <parameter name="maxfilesize">100000</parameter> <parameter name="contenttype">flk</parameter> </parameters> </job> </scheduledjobs>
Multiple jobs can be combined in a job group. This job group can be run like a normal job. The group will run all the jobs in it as if it were a single job. Job groups cannot be nested in other job groups.
Starting jobs externally
One of the ways to start a scheduled job externally is by using the SignalSmartsite command line tool in combination with Windows Scheduled Tasks. Add a new Scheduled Task in Windows and have it start SignalSmartsite with the proper command line parameters. This allows you to run scheduled jobs as any other scheduled task in Windows.