1

I have used celery-beat to get data from about 30 different APIs and save them in database. There are two prblems:

first: why it takes so long to do the task (i thought it shouldn't take more than 2-3 seconds)?

second: why a single task takes different time durations to be done?

celery:

enter image description here

terminal:

enter image description here

  • We can't answer this question without knowing the task code. It's likely that the APIs you use sometimes respond slower to you – kjaw Jan 09 '23 at 10:08
  • thanks for your answer , but i tried different APIs of different websites and still this happens @kjaw – webdeveloper Jan 09 '23 at 11:06
  • calls to the API are characterized by the fact that they will have different response times – kjaw Jan 09 '23 at 11:34

1 Answers1

0

We can't answer this question without knowing the task code. It's likely that the APIs you use sometimes respond slower to you.

Calls to the API are characterized by the fact that they will have different response times.

kjaw
  • 515
  • 2
  • 9