Files
plane/monitor/cli/pkg/constants/errors/errors.go
T
Henit ChobisaandGitHub e652592b07 feat: Added DNS Validation Endpoint to Monitor as an HTTP Endpoint (#471)
* feat: added worker for executing and scheduling parallel tasks

* feat: implemented worker based execution over cron handlers

* feat: added router to package to run go fiber for dns validation

* chore: added router package to go workspace

* feat: added dns route controller

* feat: added dns validation handler for route

* feat: added healthcheck as a core function

* feat: implemented worker for scheduling and running multiple tasks over goroutines

* feat: added cron and http start handlers

* feat: added prime scheduler handler to comply with prime scheduler

* feat: implemented worker in cli start command

* feat: added tests for dns validation handler

* feat: added run test script to run test inside monitor

* feat: added test for background worker

* feat: implemented graceful shutdown for cancellation of jobs

* feat: added readme for core package

* fix: worker cancellation of tasks with ctx

* fix: added closing channels in worker

* fix: handled case for repeated keys in dns validation endpoint
2024-06-24 13:09:05 +05:30

21 lines
834 B
Go

package error_msgs
// ------------------ CMD Errors ----------------------
const (
LICENSE_ABSENT = "expecting a license to be available in OS Env under 'LICENSE_KEY', none found"
MACHINE_SIG_ABSENT = "expecting a signature to be available in OS Env under 'MACHINE_SIGNATURE', none found"
LICENSE_VERSION_ABSENT = "expecting a version to be available in OS Env under 'LICENSE_VERSION', none found"
)
// ------------------ Worker Errors -------------------
const (
WORKER_PREFIX = "[WORKER] "
F_WORKER_ALREADY_RUNNING = WORKER_PREFIX + "Worker already running with scheduled %d jobs, and %d finished"
)
// ----------------- CRON Errors ----------------------
const (
CRON_PREFIX = "[SCHEDULER] "
F_ERROR_REPORTING_STATUS = CRON_PREFIX + "Recived Error while reporting health status, %v"
)