Skip to content

Latest commit

 

History

History
731 lines (648 loc) · 45.6 KB

CHANGELOG.md

File metadata and controls

731 lines (648 loc) · 45.6 KB

Changelog

0.8.0 - 2024-05-29

Added

  • Introduce IntoTaskHandlerResult trait
  • Job stream now yield as much job as the concurrency option defines
  • Add get_ext() helper method on WorkerContext

Other

  • Add app state documentation in README

0.7.2 - 2024-05-28

Added

  • Add extensions supports

Other

  • (deps) update rust crate serde to 1.0.203
  • (deps) update rust crate syn to 2.0.66
  • (deps) update rust crate syn to 2.0.65
  • (deps) update rust crate anyhow to 1.0.86
  • (deps) update all non-major dependencies
  • (deps) update rust crate syn to 2.0.64
  • (deps) update rust crate serde to 1.0.202
  • (deps) update rust crate syn to 2.0.63
  • (deps) update rust crate syn to 2.0.62

0.7.1 - 2024-05-08

Other

  • (deps) update all non-major dependencies
  • (deps) update all non-major dependencies
  • (deps) update rust crate tokio-util to 0.7.11
  • (deps) update rust crate serde to 1.0.200
  • (deps) update rust crate serde to 1.0.199
  • (deps) update all non-major dependencies
  • (deps) update rust crate serde to 1.0.198
  • (deps) update rust crate serde_json to 1.0.116
  • (deps) update rust crate chrono to 0.4.38
  • (deps) update rust crate syn to 2.0.59
  • (deps) update all non-major dependencies
  • (deps) update rust crate serde_qs to 0.13.0
  • (deps) update rust crate syn to 2.0.58
  • (deps) update rust crate syn to 2.0.57
  • (deps) update rust crate tokio to 1.37.0
  • (deps) update rust crate chrono to 0.4.37
  • (deps) update rust crate serde_json to 1.0.115
  • (deps) update rust crate syn to 2.0.55
  • (deps) update rust crate indoc to 2.0.5
  • (deps) update rust crate uuid to 1.8.0
  • (deps) update rust crate syn to 2.0.53
  • (deps) update all non-major dependencies
  • (deps) update rust crate chrono to 0.4.35
  • (deps) update rust crate syn to 2.0.52

0.7.0 - 2024-02-28

Added

  • Try simplifying TaskHandler trait
  • Add more metadata field to job crate
  • Extract Job struct into its own crate
  • Add JobSpec builder

Other

  • fix README invalid code
  • Refactor from macro based to trait based
  • (deps) update rust crate syn to 2.0.51
  • (deps) update all non-major dependencies
  • (deps) update rust crate anyhow to 1.0.80
  • Remove unecessary whitespace on queries
  • (deps) update rust crate syn to 2.0.49
  • Exclude macros crate from coverage since coverage can't be

0.6.2 - 2024-02-14

Other

  • Include README in rust docs
  • Update README
  • (deps) update rust crate thiserror to 1.0.57
  • (deps) update codecov/codecov-action action to v4

0.6.1 - 2024-02-12

Other

  • Update badge
  • Include badge in README
  • remove unused file
  • Add cron test
  • Verbose tarpaulin
  • Add codecov token
  • Fix coverage path
  • Add more time for runs_jobs_in_parallel to process job
  • Rename tarpaulin job to coverage
  • Split check into multiple files
  • Wait more time for jobs to be processed for tarpaulin
  • Add .run() test
  • (deps) update rust crate chrono to 0.4.34

0.6.0 - 2024-02-07

Added

  • Added cleanup, completed_jobs, force_unlock_workers,
  • Make add_job util returns the DbJob
  • Add migration 11 locked job error
  • Add final run_once tests
  • Add remove_job helper

Other

  • [breaking] Rename helpers mod to worker_utils
  • Make add_job return Job instead of DbJob
  • More run_once tests

0.5.0 - 2024-02-04

Other

  • Add more complex test cases for run_once
  • Add more run_once test
  • Rename test file
  • Add more run_once cases & refactor
  • simplify job_count code
  • Add more integration tests
  • (deps) update rust crate tokio to 1.36.0
  • Add the first integration test
  • Rename create_helpers method to create_utils
  • Fix ci permissions
  • release

0.4.0 - 2024-01-31

Added

  • Port breaking migration algorithm
  • Add pg version checking
  • Add initial support for breaking
  • Add run_once
  • Sync with latest graphile worker changes
  • add_job & add_raw_job
  • Add helpers
  • Make simple macro example working
  • Add task macro
  • Add task handler definitions
  • Abort running tasks 5 seconds after shutdown signal
  • Handle job_key & job_key_mode in cron
  • Add release xtask (#32)
  • Cron runner done ✔️
  • Add backfill handling for crontab
  • Added utilities for CrontabFill
  • Handle process job error and stop stream
  • Done with parsing crontab
  • All parsing done
  • Add query parser
  • Can now complete jobs !
  • First working POC of hashmap of async fns
  • Add migration
  • first commit

Fixed

  • Rustfmt
  • Fix a bug where jobs would block event loop
  • Add correct feature flag for sqlx dependency
  • Fix typo in Cargo package keywords
  • use modulus instead of substraction for duration remaining

Other

  • Remove xtask
  • Add release workflow
  • Rename lib to graphile_worker
  • (deps) update rust crate itertools to 0.12.1
  • Fix tests
  • (deps) update rust crate serde_json to 1.0.113
  • Add comments
  • Update flake dependencies
  • Update flake buildInputs
  • Add nix flake
  • (deps) update all non-major dependencies
  • (deps) update rust crate chrono to 0.4.33
  • (deps) update rust crate chrono to 0.4.32
  • (deps) update rust crate regex to 1.10.3
  • (deps) update rust crate clap to 4.4.18
  • (deps) update rust crate clap to 4.4.17
  • (deps) update rust crate clap to 4.4.16
  • (deps) update rust crate clap to 4.4.15
  • (deps) update rust crate clap to 4.4.14
  • (deps) update rust crate serde to 1.0.195
  • (deps) update all non-major dependencies
  • (deps) update rust crate serde_json to 1.0.111
  • (deps) update rust crate syn to 2.0.47
  • Add mroe license
  • Add more precision in README.md
  • Add license & fix typos in README
  • (deps) update all non-major dependencies
  • Add comments
  • (deps) update rust crate syn to 2.0.45
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (deps) update all non-major dependencies
  • (deps) update rust crate quote to 1.0.34
  • Fmt
  • Add code comment on WorkerHelpers and add_job
  • Fix invalid example in README
  • Reduce README.md example
  • Remove invalid chunks in README.md
  • Update README
  • Add comment on the WorkerHelpers::new method
  • (deps) update all non-major dependencies
  • (deps) update rust crate clap to 4.4.12
  • (deps) update actions/checkout action to v4
  • (deps) update rust crate anyhow to 1.0.77
  • Remove unused import
  • Remove duration in TaskAbort timeout log
  • (deps) update rust crate thiserror to 1.0.52
  • (deps) update all non-major dependencies
  • Add comments to crontab_types
  • Add more cases in should_run_at doc tests
  • (deps) update rust crate clap to 4.2.5
  • (deps) update all non-major dependencies
  • (deps) update rust crate tracing-subscriber to 0.3.17
  • (deps) update rust crate regex to 1.8.1
  • (deps) update rust crate regex to 1.8.0
  • (deps) update all non-major dependencies
  • (deps) update rust crate clap to 4.2.3
  • (deps) update rust crate clap to 4.2.2
  • (deps) update rust crate serde_json to 1.0.96
  • (deps) update rust crate serde to 1.0.160
  • (deps) update rust crate futures to 0.3.28
  • (deps) update rust crate clap to 4.2.1
  • (deps) update rust crate clap to 4.2.0
  • (deps) update rust crate serde to 1.0.159
  • (deps) update all non-major dependencies
  • (deps) update rust crate serde_json to 1.0.95
  • (deps) update rust crate regex to 1.7.3
  • (deps) update rust crate clap to 4.1.13
  • (deps) update rust crate clap to 4.1.12
  • (release) [email protected]
  • (release) Fix changelog not using latest tag for new changelog
  • (release) Remove unused import
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) Add URL to tag release in github
  • Print error to STERR instead of STDOUT
  • Use git push --tags command instead of git push --follow-tags
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • Fix release script adding dependencies
  • (deps) update rust crate toml_edit to 0.19.8
  • (deps) update all non-major dependencies
  • Release script now update dependencies version for non updated
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • Update release script
  • (shutdown_signal) Use tokio macros features
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (release) [email protected]
  • (deps) update rust crate serde to 1.0.158
  • (deps) update all non-major dependencies
  • (deps) update rust crate serde to 1.0.156
  • (deps) update rust crate chrono to 0.4.24
  • (deps) update rust crate serde to 1.0.155
  • (deps) update rust crate futures to 0.3.27
  • (deps) update rust crate serde to 1.0.154
  • (deps) update rust crate serde to 1.0.153
  • (deps) update rust crate thiserror to 1.0.39
  • (deps) update rust crate serde_json to 1.0.94
  • (deps) update rust crate serde_qs to 0.12.0
  • (deps) update rust crate tokio to 1.26.0
  • (deps) update rust crate once_cell to 1.17.1
  • (deps) update rust crate serde_json to 1.0.93
  • (deps) update all non-major dependencies
  • (deps) update rust crate futures to 0.3.26
  • (deps) update rust crate tokio to 1.25.0
  • (deps) update rust crate tokio to 1.24.2
  • (deps) update rust crate nom to 7.1.3
  • (deps) update rust crate serde_qs to 0.11.0
  • (deps) update rust crate tokio to 1.24.1
  • (deps) update rust crate tokio to 1.24.0
  • (deps) update rust crate tokio to 1.23.1
  • (deps) update rust crate nom to 7.1.2
  • (deps) update rust crate once_cell to 1.17.0
  • (deps) update rust crate serde to 1.0.152
  • Adds signal handling
  • (deps) update rust crate num_cpus to 1.15.0
  • Fix error in code block in README
  • Add differences with graphile-worker in README
  • Add crontab runner to the worker main run function
  • Add license field for crontab_runner toml file
  • Specify version for workspace packages
  • Remove keywords and categories from packages metadata
  • Include https:// in package metadata documentation and homepage
  • Add license to crontab_types
  • Prepare packages for publishing
  • Apply clippy lint
  • (deps) update all non-major dependencies
  • Remove unused deps
  • Add renovate
  • Remove all features flags on clippy check
  • Remove nightly flag
  • Allow dead code for temporarly unused function
  • Clippy fixes
  • Add CI
  • Remove unused test
  • Improve README
  • Fix typo
  • Add README
  • Refactor folder structure
  • first attempts at crontab_runner
  • Use u32 for crontab value
  • Update schedule_crontab_jobs_at signature
  • Added should_run_at documentation
  • Add CrontabTimer tests
  • Refactor folder structure
  • reexport error kind
  • Remove unused regexes module
  • Replace manual digit parsing with character::complete::u8
  • attempt at nom parsing crontab
  • cleanup
  • Remove empty file
  • Refactor folder structure
  • Remove unused Error
  • Refactor worker
  • Added example
  • dynamic fn map
  • Clippy fixes
  • extract escape_identifier
  • Remove .env file
  • Gitignore .env file

✨Features

  • feat: Sync with latest graphile worker changes (ab25f29)
  • feat: add_job & add_raw_job (97133ae)
  • feat: Add helpers (0af898b)
  • feat: Make simple macro example working (5ceb9b1)
  • feat: Add task macro (e5106f7)
  • feat: Add task handler definitions (3c38898)
  • feat: Abort running tasks 5 seconds after shutdown signal (adfb5a8)
  • feat: Handle job_key & job_key_mode in cron (faa9d12)
  • feat: Add release xtask (#32) (f7fee4d)
  • feat: Cron runner done ✔️ (361906e)
  • feat: Add backfill handling for crontab (3775f4f)
  • feat: Added utilities for CrontabFill (59bb0cf)
  • feat: Handle process job error and stop stream (6301761)
  • feat: Done with parsing crontab (39fba1a)
  • feat: All parsing done (75c5429)
  • feat: Add query parser (579e34d)
  • feat: Can now complete jobs ! (efd829a)
  • feat: First working POC of hashmap of async fns (e2e30dc)
  • feat: Add migration (26492a1)
  • feat: first commit (0cd3b97)

🐛 Fixes

  • fix: Rustfmt (39841ad)
  • fix: Fix a bug where jobs would block event loop (4861dd4)
  • fix: Add correct feature flag for sqlx dependency (15f8330)
  • fix: Fix typo in Cargo package keywords (012d4ee)
  • fix: use modulus instead of substraction for duration remaining (9ea0a52)

🧹 chores

🧪 Tests

  • test: Add CrontabTimer tests (a432ad8)

📝 Docs

  • docs: Add code comment on WorkerHelpers and add_job (ddb97a8)
  • docs: Added should_run_at documentation (3b9fe96)

🤖 CI

  • ci: Update release script (3614a76)
  • ci: Add renovate (a78ffcf)
  • ci: Remove all features flags on clippy check (fb20e9b)
  • ci: Add CI (80d7fb5)

🛠 Dev

  • dev(release): Fix changelog not using latest tag for new changelog (eae80d6)
  • dev(release): Remove unused import (04cd052)
  • dev(release): Add URL to tag release in github (6266cc2)
  • dev: Print error to STERR instead of STDOUT (8fe3ecd)
  • dev: Use git push --tags command instead of git push --follow-tags (625fd10)
  • dev: Fix release script adding dependencies (5c7cb61)

🚧 WIP

  • wip: Adds signal handling (a8d11b2)
  • wip: first attempts at crontab_runner (4c59b2e)
  • wip: attempt at nom parsing crontab (c48e972)
  • wip: dynamic fn map (8464613)

🛠 Dev

  • dev(release): Fix changelog not using latest tag for new changelog (eae80d6)
  • dev(release): Remove unused import (04cd052)

🧹 chores

🛠 Dev

  • dev(release): Add URL to tag release in github (6266cc2)
  • dev: Print error to STERR instead of STDOUT (8fe3ecd)
  • dev: Use git push --tags command instead of git push --follow-tags (625fd10)
  • dev: Fix release script adding dependencies (5c7cb61)

0.3.0

🧹 chores

🛠 Dev

  • dev: Fix release script adding dependencies (5c7cb61)

0.2.0

✨Features

  • feat: Add release xtask (#32) (f7fee4d)
  • feat: Cron runner done ✔️ (361906e)
  • feat: Add backfill handling for crontab (3775f4f)
  • feat: Added utilities for CrontabFill (59bb0cf)
  • feat: Handle process job error and stop stream (6301761)
  • feat: Done with parsing crontab (39fba1a)
  • feat: All parsing done (75c5429)
  • feat: Add query parser (579e34d)
  • feat: Can now complete jobs ! (efd829a)
  • feat: First working POC of hashmap of async fns (e2e30dc)
  • feat: Add migration (26492a1)
  • feat: first commit (0cd3b97)

🐛 Fixes

  • fix: Add correct feature flag for sqlx dependency (15f8330)
  • fix: Fix typo in Cargo package keywords (012d4ee)
  • fix: use modulus instead of substraction for duration remaining (9ea0a52)

🧹 chores

  • chore(release): [email protected] (d3ec037)
  • chore(release): [email protected] (6ec53f6)
  • chore(release): [email protected] (be084df)
  • chore(release): [email protected] (d894609)
  • chore(release): [email protected] (e82bf12)
  • chore(shutdown_signal): Use tokio macros features (674f1ec)
  • chore(release): [email protected] (4b2b809)
  • chore(release): [email protected] (c10a4d2)
  • chore(release): [email protected] (7d03c47)
  • chore(release): [email protected] (06f7db2)
  • chore(release): [email protected] (a1c332a)
  • chore(release): [email protected] (a910b4f)
  • chore(deps): update rust crate serde to 1.0.158 (4643dcb)
  • chore(deps): update all non-major dependencies (629a3dd)
  • chore(deps): update rust crate serde to 1.0.156 (86685ec)
  • chore(deps): update rust crate chrono to 0.4.24 (5676a7c)
  • chore(deps): update rust crate serde to 1.0.155 (f98fde2)
  • chore(deps): update rust crate futures to 0.3.27 (2163377)
  • chore(deps): update rust crate serde to 1.0.154 (abddcf5)
  • chore(deps): update rust crate serde to 1.0.153 (374f207)
  • chore(deps): update rust crate thiserror to 1.0.39 (0790a3f)
  • chore(deps): update rust crate serde_json to 1.0.94 (a969360)
  • chore(deps): update rust crate serde_qs to 0.12.0 (94df8c9)
  • chore(deps): update rust crate tokio to 1.26.0 (9d8cd06)
  • chore(deps): update rust crate once_cell to 1.17.1 (9e9d8aa)
  • chore(deps): update rust crate serde_json to 1.0.93 (7eb2054)
  • chore(deps): update all non-major dependencies (3ecb31d)
  • chore(deps): update rust crate futures to 0.3.26 (8a89947)
  • chore(deps): update rust crate tokio to 1.25.0 (b28f180)
  • chore(deps): update rust crate tokio to 1.24.2 (035b7fa)
  • chore(deps): update rust crate nom to 7.1.3 (5833efd)
  • chore(deps): update rust crate serde_qs to 0.11.0 (e6700bc)
  • chore(deps): update rust crate tokio to 1.24.1 (9bc0335)
  • chore(deps): update rust crate tokio to 1.24.0 (43ebddf)
  • chore(deps): update rust crate tokio to 1.23.1 (d20c0b6)
  • chore(deps): update rust crate nom to 7.1.2 (038f4d2)
  • chore(deps): update rust crate once_cell to 1.17.0 (c52bb61)
  • chore(deps): update rust crate serde to 1.0.152 (a6115cb)
  • chore(deps): update rust crate num_cpus to 1.15.0 (2a7ef10)
  • chore: Fix error in code block in README (3bf9f51)
  • chore: Add differences with graphile-worker in README (bce3367)
  • chore: Add crontab runner to the worker main run function (340445a)
  • chore: Add license field for crontab_runner toml file (9266308)
  • chore: Specify version for workspace packages (8e03f22)
  • chore: Remove keywords and categories from packages metadata (798bded)
  • chore: Include https:// in package metadata documentation and homepage (ebffd12)
  • chore: Add license to crontab_types (3cd31cb)
  • chore: Prepare packages for publishing (5d99f5c)
  • chore: Apply clippy lint (66e3894)
  • chore(deps): update all non-major dependencies (bdb33af)
  • chore: Remove unused deps (bb09685)
  • chore: Remove nightly flag (05b4c63)
  • chore: Allow dead code for temporarly unused function (e5b4329)
  • chore: Clippy fixes (506f98c)
  • chore: Remove unused test (5ac1deb)
  • chore: Improve README (d0434ce)
  • chore: Fix typo (6557171)
  • chore: Add README (5ab6f7f)
  • chore: Refactor folder structure (ed29cec)
  • chore: Use u32 for crontab value (956937e)
  • chore: Update schedule_crontab_jobs_at signature (8d5e1e3)
  • chore: Refactor folder structure (df41490)
  • chore: reexport error kind (f6921a8)
  • chore: Remove unused regexes module (c9cdf04)
  • chore: Replace manual digit parsing with character::complete::u8 (f5d680d)
  • chore: cleanup (f7647a6)
  • chore: Remove empty file (e748520)
  • chore: Refactor folder structure (fdb0fc8)
  • chore: Remove unused Error (ea794e6)
  • chore: Refactor worker (2e06b42)
  • chore: Added example (4273672)
  • chore: Clippy fixes (db5ec81)
  • chore: extract escape_identifier (cb423aa)
  • chore: Remove .env file (edfc81c)
  • chore: Gitignore .env file (4a61b9a)

🧪 Tests

  • test: Add CrontabTimer tests (a432ad8)

📝 Docs

  • docs: Added should_run_at documentation (3b9fe96)

🤖 CI

  • ci: Update release script (3614a76)
  • ci: Add renovate (a78ffcf)
  • ci: Remove all features flags on clippy check (fb20e9b)
  • ci: Add CI (80d7fb5)

🚧 WIP

  • wip: Adds signal handling (a8d11b2)
  • wip: first attempts at crontab_runner (4c59b2e)
  • wip: attempt at nom parsing crontab (c48e972)
  • wip: dynamic fn map (8464613)