-
Notifications
You must be signed in to change notification settings - Fork 133
PostgreSqlFetchedJob npgsql DateTimeOffset change for timestamptz column #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
PostgreSqlFetchedJob npgsql DateTimeOffset change for timestamptz column #385
Conversation
There are no What are the problems that you speak of? Neither PR makes sense as they are right now - this one now has a different CLR type from what's expected by Npgsql (should be timestamp -> DateTime), the other PR removes a safeguard which ensures only the exact same job is deleted. |
Sorry, you're right! This whole debacle with timestamp changes with Npgsql is a blur at this point. But still, the datetime should be what it is. What's the problem with current implementation? I only see what the potential fixes are, but not what the problem is. Do the dates mismatch? Or? |
Problem is that after job executed and marked as Succeeded. I expect that it should be removed from jobqueue table(hard delete). However, they are still remaining in jobqueue table. I debug it and change DateTime to DateTimeOffSet delete operation works. Maybe you should try, i dont event figure out that no one is noticed Note: Datetime Kind is Local which is +03:00 for me. |
Have you had a chance to look at it? |
No, not during holiday season. |
I fixed the build so the tests could run. Unfortunately, one of them fails, and that one does relate to the change. |
I had a look at the mapping table and Can you provide a minimal reproducible example? All environments and applications on my end work correctly, I have no zombie rows in the table. Are you using the appcontext switch to bring back the legacy behavior? I personally never used it and not really sure if it can mess these queries. Based on
it feels like you may be using the switch. Please confirm that. |
Regarding #384 PR - if it doest not sound good . With the help of this PR you may change DateTime type to DateTimeOffSet in PostgreSqlFetchedJob according to Npgsql Mapping Table => https://www.npgsql.org/doc/types/basic.html. So that, there will be no problem deleting jobs from jobqueue table.