-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
jobs: create jobs ignoring user session timezone #123632
base: master
Are you sure you want to change the base?
Conversation
Release note (bug fix): fixes a bug where jobs created in session with non-zero session timezone offsets could hang before starting or report incorrect creation times when viewed in SHOW JOBS and the console. Epic: none.
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
TODO test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Definitely seems like one we want a test for as you mention, but the overall fix looks good.
cols := []string{"id", "created", "status", "created_by_type", "created_by_id", "job_type"} | ||
placeholders := []string{"$1", "now() at time zone 'utc'", "$2", "$3", "$4", "$5"} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[existing] Not sure these variables+sprintf contribute to the readability much. But no need to change them here.
Release note (bug fix): fixes a bug where jobs created in session with non-zero session timezone offsets could hang before starting or report incorrect creation times when viewed in SHOW JOBS and the console.
Epic: none.