huytar...@gmail.com
unread,Apr 29, 2015, 6:36:28 PM4/29/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to action...@googlegroups.com
Hi All,
Question:
What can I do to help maintain a graceful-shutdown?
Background story:
I am spawning non-recurring tasks to retrieve information from, say, accuweather (relying on caching, fetches are infrequent).
After we have launched tasks, I have observed that we're hitting the 30 sec timeout in start.js when actionhero attempts to shutdown.
I imagine that I might have missed a step in the configuration dance somewhere along the way. As a temporary workaround, I've setup an initializer to remove tasks explicitly with api.tasks.del().
If we use api.tasks.del(), the worker's don't seem to get cleaned at the end. Instead, they are cleaned up after actionhero starts again - which will be fine in the short term.
Any guidance or education on the matter would greatly be appreciated.
Thanks in advance,
Huy.