Confluence 5.3 のサポートは終了しています。
ドキュメントの最新バージョンを確認してください。
管理コンソールでは、Confluence の様々な管理ジョブを、決まった間隔で実行されるようにスケジュールすることができます。スケジュルールできるジョブの種類は以下のとおりです。
- Confluence サイト バックアップ
- Storage optimisation jobs to clear Confluence's temporary files and caches
- Index optimisation jobs to ensure Confluence's search index is up to date
- Mail queue optimisation jobs to ensure Confluence's mail queue is maintained and notifications have been sent.
You need to have System Administrator permissions in order to configure and execute jobs.
Accessing Confluence's Scheduled Jobs Configuration
Confluence のスケジュール ジョブ設定ページにアクセスする方法
- Choose the cog icon at top right of the screen, then choose Confluence Admin.
- Choose 'Scheduled Jobs' to open the 'Scheduled Jobs' page. For each job listed down this page, the following information is shown:
- Job — the name of a job.
- Status — the job's status, which is either 'Scheduled' (it it is currently enabled) or 'Disabled'. See below for details on disabling or re-enabling a job.
- Last Execution — the date and time when the job was last executed. This field will be empty of the job was never executed.
- Next Execution — the date and time when the job is next scheduled to be executed. This field will contain dash symbol ('-') if the job is disabled.
- Avg. Duration — the length of time (in milliseconds) that it took to complete the job's last execution.
- Actions — allows you to configure the job, execute it manually, view a history of previous executions or disable the job.
The information on this page does not apply to Confluence OnDemand.
スクリーンショット: スケジュール ジョブ
Executing a Job Manually
- Access the 'Scheduled Jobs' configuration page (above).
- Locate the job you wish to execute manually and click its 'Run' link in the 'Actions' column. The job will be run immediately.
Refer to 'Types of Jobs' (below) for detailed descriptions about each job.
Not all jobs can be run manually.
Configuring a Job's Schedule
- Access the 'Scheduled Jobs' configuration page (above).
- Locate the job whose schedule you wish to configure and click its 'Edit' link in the 'Actions' column. The job's 'Edit Schedule for job' dialog box opens.
Refer to 'Types of Jobs' (below) for detailed descriptions about each job.
- Enter an appropriate cron expression to define the frequency with which the job is executed.
Refer to 'Cron Expressions' (below) for more details about their syntax. To revert the job's schedule back to its default settings, click the 'Default' button.
- Click 'Save' to record your job's new schedule.
Not all jobs' schedules are configurable.
スクリーンショット: ジョブ スケジュールの設定
Disabling/Re-enabling a Job
デフォルトでは、Confluence のすべてのジョブが有効になっています。
- Access the 'Scheduled Jobs' configuration page (above).
- Locate the job you wish to disable/re-enable.
Refer to 'Types of Jobs' (below) for detailed descriptions about each job.
- If a job is enabled, click its 'Disable' link in the 'Actions' column to disable the job.
- If a job is disabled, click its 'Enable' link in the 'Actions' column to enable the job.
Not all jobs in Confluence can be disabled.
Viewing a Job's Execution History
- Access the 'Scheduled Jobs' configuration page (above).
- Locate the job whose execution history you wish to view and click the 'History' link.
If a job has not completed at least one execution, its 'History' link will not be available.
Refer to 'Types of Jobs' (below) for detailed descriptions about each job.
The 'History for job' dialog box opens, showing a list of previous executions of the job in reverse chronological order, including the:- Start date and time
- End date and time
- The length of time (in milliseconds) that it took to complete the job
スクリーンショット:ジョブ実行履歴
Types of Jobs
ジョブ名 | 説明 | Execution Behaviour | デフォルト スケジュール |
---|---|---|---|
Confluence のバックアップ | Performs a backup of your entire Confluence site. | クラスタごと | 毎日午前2時 |
クラスタの安全性チェック | クラスタ化された Confluence インストールの場合、このジョブによって、一度にデータベースに書き込む Confluence をクラスタ内で1つのみにします。 | クラスタごと | 30秒ごと |
Clean Index Queue | Triggers a periodical clean of the index queue to ensure that its size does NOT grow indefinitely. | クラスタごと | 毎日午前2時 |
一時ディレクトリの消去 | Cleans up temporary files generated in the 'temp' subdirectory of the Confluence home directory. This temp directory may be created by exports etc. | ノードごと | 毎日午前4時 |
期限切れメール エラーの消去 | Clears notification errors in the mail error queue. A notification error is sent to the mail error queue whenever the notification fails to be sent due to an error. | クラスタごと | 毎日午前3時 |
期限切れのログイン情報の記憶トークンの消去 | Confluence サイトから期限切れのすべての「ログイン情報を記録する」トークンをクリアします。ログイン情報を記録するトークンは2週間で期限が切れます。 | クラスタごと | 毎月20日 |
メール日次レポート | Emails a daily summary report of all Confluence changes to all subscribers. | クラスタごと | 毎日午前12時 |
Flush Did You Mean Index | Note: The 'Did You Mean' feature is no longer available in Confluence. This job is therefore redundant, and will be removed at some time in the future. Flushes changes to the 'Did You Mean' index, which keeps the 'Did You Mean' feature up to date. Confluence records each content update in the 'Did You Mean' index. | ノードごと | Every 2 hours from 12 am |
インデックス キューのフラッシュ | Confluence の検索結果が最新になるように、Confluence のインデックスに対する変更をフラッシュします。Confluence は検索インデックスに各コンテンツの更新を記録しています。 | ノードごと | 毎分 |
ローカル タスク キューのフラッシュ | ローカル タスク キューをフラッシュします(これらは一般的に頻繁にフラッシュされる Confluence タスクです)。 | ノードごと | 毎分 |
メール キューのフラッシュ | Sends notifications that have been queued up in the mail queue. | クラスタごと | 毎分 |
タスク キューのフラッシュ | タスク キューをフラッシュします(これらは一般的に頻繁にフラッシュされる Confluence タスクです)。 | ノードごと | 毎分 |
Optimise Indexing | Compacts the confluence indexes to maintain searching performance. | ノードごと | At 3am and 3pm every day |
Poll Mail | Polls POP accounts on all spaces that have them configured. | クラスタごと | 毎分 |
Cron Expressions
cron 表現は、ジョブが実行される頻度を定義する「間隔」フィールドの6-7の文字列です。これらの各フィールドは、数値または特殊文字のいずれかで表現することができ、各フィールドは少なくとも1つのスペースまたはタブ文字で区切られます。
以下の表は、crom 表現の時間間隔の順番とフィールドの許可される数値を示しています。
cron 表現の任意のフィールドに、数値の代わりに特殊文字を指定して、ジョブの頻度の定義に柔軟性を持たせることができます。一般的な特殊文字には以下が含まれています。
- ' * ' — 「すべての許可される値」を示す「ワイルドカード」です。
- ' ? ' — cron 表現において「この時間間隔を無視する」を意味します。これは、この文字を指定することで、cron 表現が時間間隔(「月」、「曜日」、または「年」など)に束縛されなくなります。
For more information about cron expressions, please refer to the Cron Trigger tutorial on the Quartz website.
cron 表現の | 時間間隔 | 許可される | 必須かどうか |
---|---|---|---|
1 | 秒 | 0-59 | はい |
2 | 分 | 0-59 | はい |
3 | 時 | 0-23 | はい |
4 | 日 | 1-31 | はい |
5 | Month | 1-12 または JAN-DEC | はい |
6 | 曜日 | 1-7 または SUN-SAT | はい |
7 | 年 | 1970-2099 | いいえ |
* 特殊文字を除く