Skip to content
This repository has been archived by the owner on Oct 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #144 from epfl-idevelop/fix-generate-many-and-limi…
Browse files Browse the repository at this point in the history
…t-cronjobs

Fix generate many and limit cronjobs
  • Loading branch information
ebreton authored Dec 7, 2017
2 parents fb4deb4 + 2ea66f7 commit 765f303
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions data/plugins/generic/tequila/v1/config-plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
src: generic/tequila/v1/tequila.zip
activate: yes
# Waiting of domq
#
# in the meantime, dual_auth is disactivted by default, but you can enable it with wp cli:
# Go into your root folder of your WP site, and run:
# wp option add plugin:epfl_tequila:has_dual_auth 1
#
# If you need to change it letter, make sure to update it:
# wp option update plugin:epfl_tequila:has_dual_auth 0
#
#tables:
# options:
# - autoload: 'yes'
Expand Down
3 changes: 2 additions & 1 deletion etc/jobs/backup-many-full.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ metadata:
spec:
concurrencyPolicy: Forbid
# every day at midnight
schedule: '* 0 * * *'
schedule: '0 0 * * *'
suspend: false
jobTemplate:
metadata:
creationTimestamp: null
successfulJobsHistoryLimit: 3
spec:
template:
metadata:
Expand Down
3 changes: 3 additions & 0 deletions etc/jobs/backup-many-inc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ spec:
jobTemplate:
metadata:
creationTimestamp: null
labels:
parent: backup-many-full
successfulJobsHistoryLimit: 3
spec:
template:
metadata:
Expand Down
1 change: 1 addition & 0 deletions etc/jobs/build-subdomains-inventory.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ spec:
jobTemplate:
metadata:
creationTimestamp: null
successfulJobsHistoryLimit: 3
spec:
template:
metadata:
Expand Down
1 change: 0 additions & 1 deletion src/jahia2wp.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,6 @@ def generate_many(csv_file, **kwargs):
WPGenerator(
row["openshift_env"],
row["wp_site_url"],
row["unit_name"],
wp_default_site_title=row["wp_default_site_title"],
unit_name=row["unit_name"],
updates_automatic=row["updates_automatic"],
Expand Down

0 comments on commit 765f303

Please sign in to comment.