4 Commits

5 changed files with 996 additions and 1683 deletions

View File

@ -1,5 +1,18 @@
# Changelog # Changelog
## 2024-12-19 - 1.2.1 - fix(taskmanager)
Remove checkinSlackTask from SparkTaskManager for streamlined task management
- checkinSlackTask has been removed from the task manager class.
- Removal of the slack check-in task allows the system to focus on essential update tasks.
## 2024-12-18 - 1.2.0 - feat(core)
Initial commit of the Spark project with core functionalities for server management and integration with Docker.
- Add core functionalities for server maintenance and configuration.
- Integrate Docker for advanced task scheduling and service management.
- Provide CLI commands for daemon management and task execution.
## 2024-12-18 - 1.1.0 - feat(core) ## 2024-12-18 - 1.1.0 - feat(core)
Update package dependencies and improve API integration. Update package dependencies and improve API integration.

View File

@ -1,6 +1,6 @@
{ {
"name": "@serve.zone/spark", "name": "@serve.zone/spark",
"version": "1.1.0", "version": "1.2.1",
"private": false, "private": false,
"description": "A comprehensive tool for maintaining and configuring servers, integrating with Docker and supporting advanced task scheduling, targeted at the Servezone infrastructure and used by @serve.zone/cloudly as a cluster node server system manager.", "description": "A comprehensive tool for maintaining and configuring servers, integrating with Docker and supporting advanced task scheduling, targeted at the Servezone infrastructure and used by @serve.zone/cloudly as a cluster node server system manager.",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

2649
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@ -3,6 +3,6 @@
*/ */
export const commitinfo = { export const commitinfo = {
name: '@serve.zone/spark', name: '@serve.zone/spark',
version: '1.1.0', version: '1.2.1',
description: 'A comprehensive tool for maintaining and configuring servers, integrating with Docker and supporting advanced task scheduling, targeted at the Servezone infrastructure and used by @serve.zone/cloudly as a cluster node server system manager.' description: 'A comprehensive tool for maintaining and configuring servers, integrating with Docker and supporting advanced task scheduling, targeted at the Servezone infrastructure and used by @serve.zone/cloudly as a cluster node server system manager.'
} }

View File

@ -8,7 +8,6 @@ export class SparkTaskManager {
public taskmanager: plugins.taskbuffer.TaskManager; public taskmanager: plugins.taskbuffer.TaskManager;
// tasks // tasks
public checkinSlackTask: plugins.taskbuffer.Task;
public updateSpark: plugins.taskbuffer.Task; public updateSpark: plugins.taskbuffer.Task;
public updateHost: plugins.taskbuffer.Task; public updateHost: plugins.taskbuffer.Task;
public updateCloudly: plugins.taskbuffer.Task; public updateCloudly: plugins.taskbuffer.Task;
@ -17,16 +16,6 @@ export class SparkTaskManager {
this.sparkRef = sparkRefArg; this.sparkRef = sparkRefArg;
this.taskmanager = new plugins.taskbuffer.TaskManager(); this.taskmanager = new plugins.taskbuffer.TaskManager();
// checkinOnSlack
this.checkinSlackTask = new plugins.taskbuffer.Task({
name: 'checkinSlack',
taskFunction: async () => {
logger.log('ok', 'running hourly checkin now');
logger.log('info', 'completed hourly checkin');
},
});
// updateSpark // updateSpark
this.updateSpark = new plugins.taskbuffer.Task({ this.updateSpark = new plugins.taskbuffer.Task({
name: 'updateSpark', name: 'updateSpark',
@ -80,7 +69,6 @@ export class SparkTaskManager {
* start the taskmanager * start the taskmanager
*/ */
public async start() { public async start() {
this.taskmanager.addAndScheduleTask(this.checkinSlackTask, '0 0 * * * *');
this.taskmanager.addAndScheduleTask(this.updateSpark, '0 * * * * *'); this.taskmanager.addAndScheduleTask(this.updateSpark, '0 * * * * *');
this.taskmanager.addAndScheduleTask(this.updateHost, '0 0 0 * * *'); this.taskmanager.addAndScheduleTask(this.updateHost, '0 0 0 * * *');
this.taskmanager.addAndScheduleTask(this.updateCloudly, '30 */2 * * * *'); this.taskmanager.addAndScheduleTask(this.updateCloudly, '30 */2 * * * *');
@ -91,7 +79,6 @@ export class SparkTaskManager {
* stops the taskmanager * stops the taskmanager
*/ */
public async stop() { public async stop() {
this.taskmanager.descheduleTask(this.checkinSlackTask);
this.taskmanager.descheduleTask(this.updateSpark); this.taskmanager.descheduleTask(this.updateSpark);
this.taskmanager.descheduleTask(this.updateHost); this.taskmanager.descheduleTask(this.updateHost);
this.taskmanager.descheduleTask(this.updateCloudly); this.taskmanager.descheduleTask(this.updateCloudly);