{"id":21535396,"url":"https://github.com/rocketbase-io/db-scheduler-log","last_synced_at":"2025-10-04T09:46:45.855Z","repository":{"id":92684982,"uuid":"606196041","full_name":"rocketbase-io/db-scheduler-log","owner":"rocketbase-io","description":"extension for db-scheduler that registers as log-service","archived":false,"fork":false,"pushed_at":"2024-03-22T15:29:34.000Z","size":79,"stargazers_count":20,"open_issues_count":2,"forks_count":4,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-30T22:41:50.243Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rocketbase-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-24T20:27:32.000Z","updated_at":"2025-09-24T09:29:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"c551ed31-c307-424e-9159-6003de31f6f7","html_url":"https://github.com/rocketbase-io/db-scheduler-log","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/rocketbase-io/db-scheduler-log","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketbase-io%2Fdb-scheduler-log","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketbase-io%2Fdb-scheduler-log/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketbase-io%2Fdb-scheduler-log/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketbase-io%2Fdb-scheduler-log/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rocketbase-io","download_url":"https://codeload.github.com/rocketbase-io/db-scheduler-log/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rocketbase-io%2Fdb-scheduler-log/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278295845,"owners_count":25963427,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T03:15:04.094Z","updated_at":"2025-10-04T09:46:45.842Z","avatar_url":"https://github.com/rocketbase-io.png","language":"Java","funding_links":[],"categories":["\u003ca name=\"Java\"\u003e\u003c/a\u003eJava"],"sub_categories":[],"readme":"# db-scheduler-log\n\n![build status](https://github.com/rocketbase-io/db-scheduler-log/workflows/build/badge.svg)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.rocketbase.extension/db-scheduler-log/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.rocketbase.extension/db-scheduler-log)\n[![License](http://img.shields.io/:license-apache-brightgreen.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)\n\n## Getting started\n\n1. Add maven dependency\n\n```xml\n\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.rocketbase.extension\u003c/groupId\u003e\n    \u003cartifactId\u003edb-scheduler-log\u003c/artifactId\u003e\n    \u003cversion\u003e${version}\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n2. Create the `scheduled_execution_logs` table in your database-schema. See table definition\n   for [postgresql](db-scheduler-log/src/test/resources/postgresql_tables.sql), [oracle](db-scheduler-log/src/test/resources/oracle_tables.sql), [mssql](db-scheduler-log/src/test/resources/mssql_tables.sql)\n   or [mysql](db-scheduler-log/src/test/resources/mysql_tables.sql).\n\n\u003e :mega: It's highly recommended to create the log-table with daily partitions based on time_started with a proper\n\u003e retention when you have a huge amount of running tasks... otherwise you could run out of disk-space quite soon.\n\n3. Customize the scheduler to use extended StatsRegistry.\n\n```java\nfinal JdbcLogRepository jdbcLogRepository=new JdbcLogRepository(dataSource,new JavaSerializer(),JdbcLogRepository.DEFAULT_TABLE_NAME,new Snowflake());\n\nfinal Scheduler scheduler=Scheduler\n        .create(dataSource)\n        .startTasks(hourlyTask)\n        .threads(5)\n        .statsRegistry(new LogStatsPlainRegistry(jdbcLogRepository))\n        .build();\n```\n\n## Spring Boot usage\n\nFor Spring Boot applications, there is a starter `db-scheduler-log-spring-boot-starter` making the scheduler-log-wiring\nvery simple.\n\n### Prerequisites\n\n- An existing Spring Boot application\n- A working `DataSource` with schema initialized. (In the example HSQLDB is used and schema is automatically applied.)\n\n### Getting started\n\n1. Add the following Maven dependency\n    ```xml\n    \u003cdependency\u003e\n        \u003cgroupId\u003eio.rocketbase.extension\u003c/groupId\u003e\n        \u003cartifactId\u003edb-scheduler-log-spring-boot-starter\u003c/artifactId\u003e\n        \u003cversion\u003e${version}\u003c/version\u003e\n    \u003c/dependency\u003e\n    ```\n   **NOTE**: This includes the db-scheduler-spring-boot-starter dependency itself.\n2. Do configuration explained on db-scheduler...\n   3Run the app.\n\n### Configuration options\n\nConfiguration is mainly done via `application.properties`. Configuration of table-name is done by properties.\n\n```\n# application.properties example showing default values\n\ndb-scheduler-log.enabled=true\ndb-scheduler-log.table-name=scheduled_execution_logs\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocketbase-io%2Fdb-scheduler-log","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frocketbase-io%2Fdb-scheduler-log","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frocketbase-io%2Fdb-scheduler-log/lists"}