July 2021
Intermediate to advanced
176 pages
4h 14m
English
The Task module is useful for running single async functions, but as logic becomes more complex, you will need a sharper tool. In this chapter, we’ll look at how to create long-lived processes that also run in the background, but offer greater control and more flexibility.
Concurrent work often takes a long time to complete, such as when you are importing a large amount of user data from another service or relying on third-party APIs, for example. This presents several challenges when using the Task module. What if an API service goes briefly offline or a network error causes the task to fail? Do you need to increase the :timeout setting because the network is slow? How do you show progress to ...
Read now
Unlock full access