{"action":"created","issue":{"url":"https://api.github.com/repos/coleifer/huey/issues/379","repository_url":"https://api.github.com/repos/coleifer/huey","labels_url":"https://api.github.com/repos/coleifer/huey/issues/379/labels{/name}","comments_url":"https://api.github.com/repos/coleifer/huey/issues/379/comments","events_url":"https://api.github.com/repos/coleifer/huey/issues/379/events","html_url":"https://github.com/coleifer/huey/issues/379","id":389384146,"node_id":"MDU6SXNzdWUzODkzODQxNDY=","number":379,"title":"cannot schedule tasks on django","user":{"login":"valhallen13","id":22431032,"node_id":"MDQ6VXNlcjIyNDMxMDMy","avatar_url":"https://avatars1.githubusercontent.com/u/22431032?v=4","gravatar_id":"","url":"https://api.github.com/users/valhallen13","html_url":"https://github.com/valhallen13","followers_url":"https://api.github.com/users/valhallen13/followers","following_url":"https://api.github.com/users/valhallen13/following{/other_user}","gists_url":"https://api.github.com/users/valhallen13/gists{/gist_id}","starred_url":"https://api.github.com/users/valhallen13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valhallen13/subscriptions","organizations_url":"https://api.github.com/users/valhallen13/orgs","repos_url":"https://api.github.com/users/valhallen13/repos","events_url":"https://api.github.com/users/valhallen13/events{/privacy}","received_events_url":"https://api.github.com/users/valhallen13/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-12-10T16:34:56Z","updated_at":"2018-12-19T14:41:22Z","closed_at":"2018-12-10T19:39:05Z","author_association":"NONE","body":"Hi,\r\n\r\nI cannot schedule a task to run after a delay using the schedule after upgrading to django 1.11.\r\nthis is how im testing it:\r\n```my_task.schedule(args=('string1'), delay=10)```\r\n\r\nBelow is the error that i get.\r\n```\r\nhuey.consume.worker | Error adding task to schedule: my_app.tasks.queue_task_mark_email_message_as_failed_after_time: 64334559-08c9-43be-9a90-25c77067854e @2018-12-10 17:19:47.424274\r\n```\r\n These are my settings:\r\n```   \r\nHUEY = {\r\n    'name': 'my-tasks',\r\n    # 'backend': 'huey.backends.redis_backend',  # required.\r\n    'result_store': True,  # Store return values of tasks.\r\n    'events': True,  # Consumer emits events allowing real-time monitoring.\r\n    'store_none': False,  # If a task returns None, do not save to results.\r\n    'always_eager': False,  # If DEBUG=True, run synchronously.\r\n    'store_errors': True,  # Store error info if task throws exception.\r\n    'blocking': False,  # Poll the queue rather than do blocking pop.\r\n    'backend_class': 'huey.RedisHuey',  # Use path to redis huey by default,\r\n    'connection': {\r\n        'host': 'localhost',\r\n        'port': 6379,\r\n        'db': 0,\r\n        'connection_pool': None,  # Definitely you should use pooling!\r\n        # ... tons of other options, see redis-py for details.\r\n    \r\n        # huey-specific connection parameters.\r\n        'read_timeout': 1,  # If not polling (blocking pop), use timeout.\r\n        'max_errors': 1000,  # Only store the 1000 most recent errors.\r\n        'url': None,  # Allow Redis config via a DSN.\r\n    },\r\n    'consumer': {\r\n        'workers': 3,\r\n        'worker_type': 'thread',\r\n        'initial_delay': 0.1,  # Smallest polling interval, same as -d.\r\n        'backoff': 1.15,  # Exponential backoff using this rate, -b.\r\n        'max_delay': 10.0,  # Max possible polling interval, -m.\r\n        'utc': True,  # Treat ETAs and schedules as UTC datetimes.\r\n        'scheduler_interval': 1,  # Check schedule every second, -s.\r\n        'periodic': True,  # Enable crontab feature.\r\n        'check_worker_health': True,  # Enable worker health checks.\r\n        'health_check_interval': 1,  # Check worker health every second.\r\n    },\r\n```\r\n\r\nI had to comment backend because it was breaking periodic tasks .\r\n\r\nIs this a bug or is this a configuration error? \r\nThanks,\r\nTudor"},"comment":{"url":"https://api.github.com/repos/coleifer/huey/issues/comments/448618914","html_url":"https://github.com/coleifer/huey/issues/379#issuecomment-448618914","issue_url":"https://api.github.com/repos/coleifer/huey/issues/379","id":448618914,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0ODYxODkxNA==","user":{"login":"vladlep","id":1110074,"node_id":"MDQ6VXNlcjExMTAwNzQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1110074?v=4","gravatar_id":"","url":"https://api.github.com/users/vladlep","html_url":"https://github.com/vladlep","followers_url":"https://api.github.com/users/vladlep/followers","following_url":"https://api.github.com/users/vladlep/following{/other_user}","gists_url":"https://api.github.com/users/vladlep/gists{/gist_id}","starred_url":"https://api.github.com/users/vladlep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladlep/subscriptions","organizations_url":"https://api.github.com/users/vladlep/orgs","repos_url":"https://api.github.com/users/vladlep/repos","events_url":"https://api.github.com/users/vladlep/events{/privacy}","received_events_url":"https://api.github.com/users/vladlep/received_events","type":"User","site_admin":false},"created_at":"2018-12-19T14:41:21Z","updated_at":"2018-12-19T14:41:21Z","author_association":"NONE","body":"So I think i found it. If I change to `redis==2.10.6` instead of `redis==3.0.1` the scheduling seems to work. \r\nThey released their 3.x versions on Nov 15 and I presume they change some interface and now huey does not work with the new release.\r\n\r\nSo I would recommend to adapt  the documentation until huey is adapted.\r\n`pip install redis`  to `pip install redis==2.10.6`\r\n\r\nI will continue my testing to make sure other things are working now still. "}}
{"actor":{"display_login":"vladlep"}}