calling task inside one task isn't cause issue? #416
Answered
by
s3rius
KAMRON-DEVELOPER
asked this question in
Q&A
|
I have two tasks which are "sync_batch_from_db_to_redis(offset: int = 0, limit: int = 100, batch_size: int = 100)" and "sync_batch_from_redis_to_db(offset: int = 0, limit: int = 100, batch_size: int = 100)". can I call the function itself inside it's own? these functions should sync data from redis to database and wise versa. won't happen rice condition? |
Answered by
s3rius
Mar 5, 2025
Replies: 1 comment 1 reply
|
can I call multiple tasks inside another task? I'm planning to use one distribute_restore_tasks to give workers portion of the data to sync(restore)). so each worker done own portion. I will fetch keys or items count from redis or db and give them to workers. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes you can do so. Taskiq-pipelines were build using this concept. And actually you might find this plugins useful for your usecase.