Skip to content
Nicho edited this page Oct 7, 2024 · 12 revisions

MTG Companion embed a Qwartz server to automa some job

At first startup, a $HOME/.mtgdeskcompanion/data/quartz-config.xml will be created

This config file can be edited to manage your different job.

Announce Job

This embedded job is used for Announce management, and change the status of announce with the expiration date.

` Job-Announce Group-Announce Announces status updates org.magic.services.jobs.AnnouncesUpdaterJob

	<trigger>
		<cron>
			<name>Trigger-Announce</name>
			<job-name>Job-Announce</job-name>
			<job-group>Group-Announce</job-group>
			<!-- It will run every 59 seconds -->
			<cron-expression>0/59 * * * * ?</cron-expression>
		</cron>
	</trigger>
	
</schedule>

`

Script Jobs

Cron

You can use this link to help you to build your cron syntax https://www.freeformatter.com/cron-expression-generator-quartz.html#cronexpressionexamples

Clone this wiki locally