Skip to content

Conversation

@Himmelschmidt
Copy link
Contributor

@Himmelschmidt Himmelschmidt commented Dec 26, 2025

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
Copy link

codecov-commenter commented Jan 7, 2026

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
Member

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

@Himmelschmidt
Copy link
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
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
Member

Commits must have verified signatures.

@Himmelschmidt

@Himmelschmidt
Copy link
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
Copy link
Member

geofmureithi commented Jan 8, 2026 via email

@geofmureithi
Copy link
Member

geofmureithi commented Jan 8, 2026 via email

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