Skip to content
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

Tasks stuck in active state for days #113

Open
alanhamlett opened this issue Aug 2, 2018 · 1 comment
Open

Tasks stuck in active state for days #113

alanhamlett opened this issue Aug 2, 2018 · 1 comment

Comments

@alanhamlett
Copy link
Contributor

alanhamlett commented Aug 2, 2018

I've noticed some tasks are getting stuck in state active.

>>> count, tasks = Task.tasks_from_queue(tiger, queue + '.' + subqueue, 'active')
>>> count
1
>>> tasks
[<Task <function archive_data_for_user_and_month at 0x7fb18d5c8598>>]
>>> tasks[0]._data.get('unique')
True
>>> tasks[0]._data.get('time_last_queued')
1532891849.573912
>>> tasks[0]._ts
datetime.datetime(2018, 7, 30, 2, 37, 2, 150757)
>>> datetime.utcnow()
datetime.datetime(2018, 8, 2, 7, 55, 27, 503967)

Any idea as to a cause, and should I periodically look for and retry these tasks or should this be fixed inside tasktiger?

@killthekitten
Copy link

Could you also provide an example code of the task?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants