Sending intermediate status updates #28
Unanswered
Skrattoune
asked this question in
Q&A
Replies: 1 comment
-
I also do not know how to create your own Huey signals. And the question is: what should be the trigger here? Pass a "status" text to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Quick question.
most of my tasks are multi-steps ... and take some time
That's the reason I wanted to implement them as asynchronous tasks
For some of them, it make sense to declare each steps as chained tasks in huey (using
mytask.s().then().then()
syntax)For some other tasks, declaring a different sub-tasks for each step is far from optimal and complicates a lot the structure.
I was expecting to send a text update in addition to the
process_info.update(n=task_length)
(similar toprocess_info.update(status='new records created', n=task_length)
)I went through the code and deduced such a functionality it is presently not implemented.
Then, exploring a bit further, I have the impression that if I could generate from the task code an instruction to create a custom
Signal
orSignalInfoModel
(similar toprocess_info.new_signal(status='new records created', n=task_length)
), it would do the trick and update the task status accordingly.Going through django-huey code, it does not seem easy to generate a custom
Signal
Did anyone already implement this kind of functionality? or is there any plan to add it in the near future?
Beta Was this translation helpful? Give feedback.
All reactions