Skip to content
This repository has been archived by the owner on Oct 12, 2018. It is now read-only.

Hangfire jobs keep stopping #51

Open
MacsDickinson opened this issue Jul 11, 2015 · 1 comment
Open

Hangfire jobs keep stopping #51

MacsDickinson opened this issue Jul 11, 2015 · 1 comment

Comments

@MacsDickinson
Copy link
Member

There's been a few scenarios where hangfire is showing no active or recurring jobs. I think this is happening when the server or site is restarted.

This needs further investigation

@MacsDickinson
Copy link
Member Author

Figured out what is causing the memory leak. When we get throttled by the meetup api an exception is thrown in the processing task. This causes the task to stop processing without disposing of the database session correctly.

The tasks need to be updated to handle errors gracefully but we will also part solve this by throttling our requests to the api when they start complaining.

Rather than having the hangfire tasks query the meetup api directly I'm going to make use of a message queue. Our group and event sync tasks will simply fire messages into the message queue, requesting for a group or event to be looked up on the meetup api. We will then have a separate task reading from the queue and checking against the meetup api. This task will recognise if the connection is being throttled and will slow the execution accordingly.

MacsDickinson added a commit that referenced this issue Oct 11, 2015
…ocess. Hangfire tasks trigger incremental updates but these are then queued as messages on a message queue.
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

1 participant