Retry HTTP requests
This commit is contained in:
parent
86b1345c17
commit
d7c13b975f
24 changed files with 145 additions and 93 deletions
17
src/queue/processors/http/index.ts
Normal file
17
src/queue/processors/http/index.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import deliverPost from './deliver-post';
|
||||
import follow from './follow';
|
||||
import performActivityPub from './perform-activitypub';
|
||||
import processInbox from './process-inbox';
|
||||
import reportGitHubFailure from './report-github-failure';
|
||||
import unfollow from './unfollow';
|
||||
|
||||
const handlers = {
|
||||
deliverPost,
|
||||
follow,
|
||||
performActivityPub,
|
||||
processInbox,
|
||||
reportGitHubFailure,
|
||||
unfollow
|
||||
};
|
||||
|
||||
export default (job, done) => handlers[job.data.type](job).then(() => done(), done);
|
||||
Loading…
Add table
Add a link
Reference in a new issue