Skip to content

feat: use DateTime abstraction from apalis-sql#30

Merged
geofmureithi merged 1 commit into
apalis-dev:mainfrom
Himmelschmidt:feat/update-apalis-sql-imports
Jan 9, 2026
Merged

feat: use DateTime abstraction from apalis-sql#30
geofmureithi merged 1 commit into
apalis-dev:mainfrom
Himmelschmidt:feat/update-apalis-sql-imports

Conversation

@Himmelschmidt

@Himmelschmidt Himmelschmidt commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Use DateTime and DateTimeExt from apalis-sql instead of direct chrono dependency.

Adds chrono and time feature flags for datetime library selection.

Related: apalis-dev/apalis#655

@Himmelschmidt Himmelschmidt changed the title feat: use SqlDateTime abstraction from apalis-sql feat: use DateTime abstraction from apalis-sql Jan 7, 2026
@codecov-commenter

codecov-commenter commented Jan 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 66.66667% with 4 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/lib.rs 0.00% 2 Missing ⚠️
src/from_row.rs 88.88% 1 Missing ⚠️
src/shared.rs 0.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@geofmureithi

Copy link
Copy Markdown
Member

@Himmelschmidt Did you run tests locally? I think you are basing your HEAD an old version and need to rebase

@Himmelschmidt

Copy link
Copy Markdown
Contributor Author

@Himmelschmidt Did you run tests locally? I think you are basing your HEAD an old version and need to rebase

I have run the tests and aside from the doctest there were no failures. I didn't fix it before, figured it might be out of scope, fixed it now.

But I don't think that's what you were talking about

@geofmureithi

Copy link
Copy Markdown
Member

I didn't fix it before, figured it might be out of scope, fixed it now.

But the previous doctests passed, what changed?

@geofmureithi

Copy link
Copy Markdown
Member

Commits must have verified signatures.

@Himmelschmidt

@Himmelschmidt

Copy link
Copy Markdown
Contributor Author

I didn't fix it before, figured it might be out of scope, fixed it now.

But the previous doctests passed, what changed?

Wasn't there a new TaskBuilderExt added? I believe it was added in rc1 and when I started this PR, the apalis deps were still pointing at beta 1 (iirc).

If you'd like, i can delete this one and start fresh from HEAD to get a clean commit history

@geofmureithi

geofmureithi commented Jan 8, 2026 via email

Copy link
Copy Markdown
Member

@geofmureithi

geofmureithi commented Jan 8, 2026 via email

Copy link
Copy Markdown
Member

Replace direct chrono dependency with DateTime/DateTimeExt from apalis-sql,
enabling support for both chrono and time datetime libraries via feature flags.

Changes:
- Add `chrono` (default) and `time` feature flags
- Use DateTimeExt::from_unix_timestamp instead of chrono::Utc.timestamp_opt
- Update apalis dependencies to 0.7.0-rc.2
- Move chrono to dev-dependencies (only needed for tests/examples)

Related: apalis-dev/apalis#655
@Himmelschmidt Himmelschmidt force-pushed the feat/update-apalis-sql-imports branch from 962de03 to 2ecb4ce Compare January 8, 2026 19:33
@geofmureithi geofmureithi merged commit 7ae73de into apalis-dev:main Jan 9, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants