Revision eaa42cae
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
SL/BackgroundJob/CreateOrUpdateFileFullTexts.pm | ||
---|---|---|
22 | 22 |
); |
23 | 23 |
|
24 | 24 |
sub create_job { |
25 |
$_[0]->create_standard_job('7 * * * *'); # seven minutes after every hour
|
|
25 |
$_[0]->create_standard_job('20 3 * * *'); # # every day at 3:20 am
|
|
26 | 26 |
} |
27 | 27 |
|
28 | 28 |
# |
sql/Pg-upgrade2/full_texts_background_job.sql | ||
---|---|---|
1 |
-- @tag: full_texts_background_job |
|
2 |
-- @description: Hintergrundjob für tägliche Extraktion von Texten aus Dokumenten |
|
3 |
-- @depends: release_3_6_0 |
|
4 |
|
|
5 |
INSERT INTO background_jobs (type, package_name, active, cron_spec, next_run_at) |
|
6 |
VALUES ('interval', 'CreateOrUpdateFileFullTexts', true, '20 3 * * *', |
|
7 |
CAST(current_date AS timestamp) + CAST( |
|
8 |
(CASE |
|
9 |
WHEN extract('hour' FROM current_timestamp) < 2 THEN '3 hours 20 minutes' |
|
10 |
ELSE '1 day 3 hours 20 minutes' |
|
11 |
END) AS interval |
|
12 |
) |
|
13 |
); |
Auch abrufbar als: Unified diff
Volltext-Suche: Hintergrund-Job nachts aktivieren