Manage Background Services
IssueSYNC
- Synchronize instantly
- Uses background services
Background Services
Services takes care of communication between local and remote JIRA instances. This has been developed to ensure issues will synchronize even if remote JIRA is unreachable (server is offline, no network access, etc.), so it can reply the sync message until receive successful response.
Issues synchronization mechanism is build based on queues (IN, OUT). There are two major types of queue messages: data & response.
Corresponding schedulers:
- Cron outgoing job
- Cron outgoing response job
- Cron incoming job
- Cron incoming response job
All changes which have been done in issues are stored in QUEUE OUT table, later on OUTGOING JOB propagates them to remote JIRA instance.
Remote JIRA stores received information in QUEUE IN table, then INCOMING JOB updates related issues. If you want to read more about the flow please read this: Database.
It fires at time of an synchronization queue is created otherwise you can control how often this jobs should fire.
You can configure the schedulers (services) that are available in the plugin in Configuration → General.
Each scheduler is based on CRON expression that uses Quartz library http://www.quartz-scheduler.org/
Schedulers cannot run more often than once a minute (JIRA limitation), but in real world it can be more often depending second JIRA configuration (example: one JIRA can send the request to the second just in the between of its job schedulers).
In case of ACTIVE - PASSIVE scenario (when of JIRA instance is behind a firewall / not accessible via network <- this one is ACTIVE) there is only a PULL mechanism. There are three corresponding schedulers:
- Cron pull job (both IN & OUT)
- Cron pull responses job (both IN & OUT)
- Cron pull configuration job
Configuration job is for synchronizing configuration such as field mapping, comments, etc..
Jobs cron configuration is bundled in Synchronization Cron Timer from IssueSYNC version 2.0.
Last scheduler is for Archivization purposes.