Skip to content

Commit

Permalink
feature: provided fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
YarikRevich committed Sep 16, 2024
1 parent 2b672c1 commit 77173b7
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ public void destroy(ContentWithdrawal contentWithdrawal) throws RepositoryConten
contentWithdrawal.getCredentials().getInternal().getId(),
credentials);
} catch (RepositoryOperationFailureException e) {
throw new RepositoryContentDestructionFailureException(e.getMessage());
return;
}

try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ public ContentRetrievalResult retrieveContent(ContentRetrievalApplication conten
throw new ClusterContentRetrievalFailureException(e.getMessage());
}


List<String> additionalContentUnits;

try {
Expand Down Expand Up @@ -368,6 +367,8 @@ public void destroy(ContentWithdrawal contentWithdrawal) throws ClusterWithdrawa
logger.info(
String.format("Removing RepoAchiever Cluster allocation: '%s'", clusterAllocation.getName()));

System.out.println(clusterAllocation.getPid());

try {
clusterService.destroy(clusterAllocation.getPid());
} catch (ClusterDestructionFailureException e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public ClusterDestroyCommandService(Integer pid) {

this.command = switch (osType) {
case WINDOWS -> null;
case UNIX, MAC, ANY -> String.format("kill -15 %d", pid);
case UNIX, MAC, ANY -> String.format("kill -9 %d", pid);
};
}

Expand Down
2 changes: 2 additions & 0 deletions config/grafana/datasources/datasource.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ datasources:
tlsAuthWithCACert: false
version: 1
editable: false


2 changes: 2 additions & 0 deletions config/prometheus/prometheus.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,5 @@ scrape_configs:

static_configs:
- targets: ['${(nodeexporter.host)}:${(nodeexporter.port)}']


2 changes: 1 addition & 1 deletion samples/config/api-server/api-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ resource:
# Represents the highest amount of downloaded content versions per each.
max-versions: 5

# Represents a set of options used for RepoAchiever Worker configuration.
# Represents a set of options used for RepoAchiever Cluster worker configuration.
worker:
# Represents frequency of requests to selected VCS provider resources.
frequency: "0/30 * * * * ?"
38 changes: 37 additions & 1 deletion samples/config/client/user.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,42 @@ content:

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]scripts:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]odb:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]tetris:main" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]tmpm:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]portfolio:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]ai-commit-generator:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]website:main" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]vim-config:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true
- name: "[YarikRevich]critical_db_framework:master" # Represents location definition name.

# Enables additional content download of repositories of VCS provider repositories.
additional: true

# Represents section used for VCS provider configuration.
service:
Expand All @@ -27,7 +63,7 @@ service:
id: "1"

# Represents authentication token intended to be used for VCS provider API access permission.
token: "ghp_UMz4cQAD87xXAtEbsPazlRcLw7kVPu1zF8bq"
token: ""

# Represents section used for RepoAchiever API Server configuration.
api-server:
Expand Down

0 comments on commit 77173b7

Please sign in to comment.