Skip to content

Avoiding delay for HTTP in HTTP requests. #2658

Closed Answered by MrSerth
seemantTUI asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @seemantTUI,

this sounds like a pretty good use case for a background job. In Rails, you may use ActiveJob for this purpose -- here is a guide to get started. ActiveJob can be configured with different job backends. In CodeOcean (and CodeHarbor) that's SolidQueue (see here). If you configured CodeOcean according to the local setup guide, you should be good and can start using ActiveJob (without worrying about the backend). We don't have a developer-defined job in CodeOcean yet (only those created by other libraries), but if you want to get a peak look, I would recommend taking a look at ActiveJobs in CodeHarbor. In case something goes wrong, you can also reschedule a job (e.g., because…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MrSerth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
ruby Pull requests that update Ruby code
2 participants