Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix Problems when frontend and database are in a different timezone #34

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

jankatins
Copy link
Member

@jankatins jankatins commented Apr 24, 2020

The problem was that a) the frontend generated timestamps without timezones which postgresql then interpreted as the UTC but which were actually in the timezone which you ran the python code and b) the closing of open runs after an exception which kills the ETL runner itself (not individual tasks) after an error happened to insert a timestamp with timezone of the time on the postgresql server.

-> the error only happens when an exception happens which triggers this code path, e.g. because something shuts down the the runner (e.g. docker instance is shut down or ctrl+c on the command line).

Should fix mara/mara-example-project-2#12

@martin-loetzsch
Copy link
Member

Looks like a no-brainer :)

@jankatins
Copy link
Member Author

Confirmation that this fixes the problem: mara/mara-example-project-2#12 (comment)

@jankatins jankatins merged commit 43b120e into master Apr 27, 2020
@martin-loetzsch martin-loetzsch deleted the fix_time_differences branch June 9, 2020 14:39
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

time zone issue
2 participants