Skip to content

Commit

Permalink
jobber: New option for server pushAll
Browse files Browse the repository at this point in the history
  • Loading branch information
Benni0 authored and ondj committed Jun 19, 2024
1 parent af616d0 commit 7c02f0d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .jobber
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ jobs:
onError: Backoff
{% endif %}

{% if JOBBER_PUSH_SERVERS_TIME %}
PushServers:
cmd: MISP_AUTOMATIC_TASK=true su-exec apache /var/www/MISP/app/Console/cake Server pushAll {{ JOBBER_USER_ID }}
time: {{ JOBBER_PUSH_SERVERS_TIME }}
onError: Backoff
{% endif %}

{% if JOBBER_CACHE_SERVERS_TIME %}
CacheServers:
cmd: MISP_AUTOMATIC_TASK=true su-exec apache /var/www/MISP/app/Console/cake Server cacheServerAll {{ JOBBER_USER_ID }}
Expand Down
1 change: 1 addition & 0 deletions bin/misp_create_configs.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ def parse_oidc_roles(variable_name: str, value: str) -> dict:
"JOBBER_CACHE_FEEDS_TIME": Option(default="0 R0-10 6,8,10,12,14,16,18"),
"JOBBER_FETCH_FEEDS_TIME": Option(default="0 R0-10 6,8,10,12,14,16,18"),
"JOBBER_PULL_SERVERS_TIME": Option(default="0 R0-10 6,10,15"),
"JOBBER_PUSH_SERVERS_TIME": Option(),
"JOBBER_CACHE_SERVERS_TIME": Option(default="0 R0-10 6,10,15"),
"JOBBER_SCAN_ATTACHMENT_TIME": Option(default="0 R0-10 6"),
"JOBBER_LOG_ROTATE_TIME": Option(default="0 0 5"),
Expand Down

0 comments on commit 7c02f0d

Please sign in to comment.