Skip to content

Commit

Permalink
restart not working
Browse files Browse the repository at this point in the history
  • Loading branch information
ck-c8y committed Dec 4, 2023
1 parent 5ed4b22 commit d128b07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions analytics-service/c8y_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ def upload_extension(self, extension_name, ext_file, request_headers):
def restart_cep(self,request_headers):
result = {}
try:
self._logger.info(f"Restarted CEP Format 1")
result = self.c8yapp.get_tenant_instance(headers=request_headers).put(resource="/service/cep/restart", json="")
self._logger.info(f"Restarted CEP!")
# self.c8yapp.get_tenant_instance(headers=request_headers).put(resource="/service/cep/restart", json="")
# self.c8yapp.bootstrap_instance.put(resource="/service/cep/restart", json="")
self.c8yapp.bootstrap_instance.put(resource="/service/cep/restart", json={})
except Exception as e:
self._logger.error(f"Ignoring exceptiom!", exc_info=True)
# try:
Expand All @@ -40,4 +42,4 @@ def restart_cep(self,request_headers):
# resource="/service/cep/restart", json=json.dumps({})
# )

self._logger.info(f"Restarted CEP {json.dumps(result) } as {id}")
self._logger.info(f"Restarted CEP!")
1 change: 1 addition & 0 deletions analytics-ui/src/shared/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ export class AnalyticsService {

async resetCEP_Block_Cache() {
this._blocksDeployed = undefined;
//this._
}

async getLoadedCEP_Blocks(): Promise<CEP_Block[]> {
Expand Down

0 comments on commit d128b07

Please sign in to comment.