Title: The time set in run_daily shifts over weeks · Issue #1338 · python-telegram-bot/python-telegram-bot · GitHub
Open Graph Title: The time set in run_daily shifts over weeks · Issue #1338 · python-telegram-bot/python-telegram-bot
X Title: The time set in run_daily shifts over weeks · Issue #1338 · python-telegram-bot/python-telegram-bot
Description: In my bot I have a run_daily job which should execute each Monday night at 0:01 however it runs at some arbitrary time in the afternoon after some weeks. The server clock is correct. I think this is because even if you set a time point i...
Open Graph Description: In my bot I have a run_daily job which should execute each Monday night at 0:01 however it runs at some arbitrary time in the afternoon after some weeks. The server clock is correct. I think this i...
X Description: In my bot I have a run_daily job which should execute each Monday night at 0:01 however it runs at some arbitrary time in the afternoon after some weeks. The server clock is correct. I think this i...
Opengraph URL: https://github.com/python-telegram-bot/python-telegram-bot/issues/1338
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The time set in run_daily shifts over weeks","articleBody":"In my bot I have a run_daily job which should execute each Monday night at 0:01 however it runs at some arbitrary time in the afternoon after some weeks. The server clock is correct.\r\nI think this is because even if you set a time point in run_daily, an interval is subsequently calculated by the jobqueue class and if the job's called function takes some time to complete or the job cannot be run immediately as other jobs are running, the job is afterwards put again into the queue but with some shift! This should be fixed, e.g. that the exact time point is stored in the job object and the interval at which it has to be called again is then calculated each time.\r\n\r\n### Steps to reproduce\r\n1. Create a function that takes a long time to finish. (30min+)\r\n\r\n2. Put that function into the jobQueue using run_daily and set a specific time point at which it should run each day.\r\n\r\n3. Let it run for some days.\r\n\r\n### Expected behaviour\r\nThe job should run each day at exactly the same time.\r\n\r\n### Actual behaviour\r\nThe time at which the job runs is slowly shifting to later time points.\r\n\r\n### Configuration\r\n**Operating System:**\r\nUbuntu\r\n\r\n**Version of Python, python-telegram-bot & dependencies:**\r\nPython 3.6, python-telegram-bot v11.1.0\r\n\r\n","author":{"url":"https://github.com/MarcelBeining","@type":"Person","name":"MarcelBeining"},"datePublished":"2019-02-05T08:53:56Z","url":"https://github.com/python-telegram-bot/python-telegram-bot/issues/1338"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ab49dcaf-5757-98b5-84e5-7fc979e010ca |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B12:1D86C4:4B8A3BF:5FBBCD7:6B02588F |
| html-safe-nonce | 04d09567f09bd4c57ca270c03e01eca6d6ce1a1de9b76df1bf3d6c9bb0ed228e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjEyOjFEODZDNDo0QjhBM0JGOjVGQkJDRDc6NkIwMjU4OEYiLCJ2aXNpdG9yX2lkIjoiOTAxMTU3NTkwOTgxNTMxMDQ3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7b7e3ee3710efb56e33ae71aac66e247bf08069b11a04d26b2ed5e4a20713bd7 |
| hovercard-subject-tag | issue:406681740 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-telegram-bot/python-telegram-bot/1338/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bb372ce42065f7f5dd01c76fd9eba4cc2ccb53944257ab9468561d0265107b11/python-telegram-bot/python-telegram-bot/issues/1338 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bb372ce42065f7f5dd01c76fd9eba4cc2ccb53944257ab9468561d0265107b11/python-telegram-bot/python-telegram-bot/issues/1338 |
| og:image:alt | In my bot I have a run_daily job which should execute each Monday night at 0:01 however it runs at some arbitrary time in the afternoon after some weeks. The server clock is correct. I think this i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MarcelBeining |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python-telegram-bot/python-telegram-bot git https://github.com/python-telegram-bot/python-telegram-bot.git |
| octolytics-dimension-user_id | 16178365 |
| octolytics-dimension-user_login | python-telegram-bot |
| octolytics-dimension-repository_id | 38696925 |
| octolytics-dimension-repository_nwo | python-telegram-bot/python-telegram-bot |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 38696925 |
| octolytics-dimension-repository_network_root_nwo | python-telegram-bot/python-telegram-bot |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width