Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mstgnz/cronjob
Includes defining cronjob of multiple projects
https://github.com/mstgnz/cronjob
cronjob go htmx postgres
Last synced: 1 day ago
JSON representation
Includes defining cronjob of multiple projects
- Host: GitHub
- URL: https://github.com/mstgnz/cronjob
- Owner: mstgnz
- License: apache-2.0
- Created: 2024-03-27T13:25:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-05-22T11:12:58.000Z (8 months ago)
- Last Synced: 2024-05-22T11:37:30.548Z (8 months ago)
- Topics: cronjob, go, htmx, postgres
- Language: Go
- Homepage:
- Size: 1.57 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Cronjob
### Timed TriggerIt is difficult to manage cronjob tasks on a server. This project provides an environment where you can define your cronjob tasks. It allows you to manage and track your scheduled tasks in a more flexible way.
## Features
- Cronjob Definitions: Define cronjob tasks for each of your projects.
- URL Information: Specify which URL to send requests to for each cronjob.
- Task Scheduling: Determine when tasks will execute.
- Logging: Detailed logs include task execution times and responses.
- Email Notifications: Optionally send notifications to specified email addresses.
- Message Notifications: Optionally send notifications to specified phone number.## Considerations
This application utilizes a database locking mechanism to prevent duplicated cronjob tasks when running multiple instances in a Kubernetes (k8s) environment.The instance that first adds a record to the "triggered" table will be the one to trigger the cronjob task. Subsequent instances will be prevented from creating a new record due to an existing one, thereby preventing duplicate task executions. Completed tasks are then removed from the "triggered" table.
However, it is strongly recommended that users implement additional control mechanisms on their own systems.
## Kubernetes Deployment
The application is designed to run in a Kubernetes environment with high availability and scalability in mind. We provide comprehensive Kubernetes configurations and deployment guides in the [k8s](k8s) directory.
Key deployment features include:
- High availability with multiple replicas
- Automatic scaling based on CPU and Memory usage
- Rolling updates for zero-downtime deployments
- Health checks and self-healing capabilities
- SSL/TLS termination with automatic certificate management
- Centralized configuration managementFor detailed deployment instructions and configuration options, please refer to the [Kubernetes Deployment Guide](k8s/README.md).
## Contributing
This project is open-source, and contributions are welcome. Feel free to contribute or provide feedback of any kind.## License
This project is licensed under the Apache License. See the [LICENSE](LICENSE) file for more details.