![]() ![]() Regardless of whether every single job has finished its work or has run out of time, at the next start hour I have to re-launch them. I run an internal loop where I make a call to the repository every 5 seconds until either the time runs out or I get my result which depends on the calls to the repository.each job performs the same thing, i.e.:.a cycle that launches the jobs that I create dynamically.In Kotlin, the for loop works like the forEach. This time is the difference between when I launch them and the next startHour. Generally, the for loop is used to iterate through the given block of code for the specified number of times. calculate the maximum time that jobs have to do their job before being stopped and restarted,. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |