Replies: 3 comments 14 replies
-
As you said, that approach is not feasible. |
Beta Was this translation helpful? Give feedback.
-
Oh, I found "HTTP long polling".
Since our proxy server is asynchronous, I think we can implement this concept quite easily. |
Beta Was this translation helpful? Give feedback.
-
If I use a |
Beta Was this translation helpful? Give feedback.
-
First, I managed to make a scheduler based on the queued experiments fetched from
artiq-proxy
:and this shows three experiments waiting to be run.
However, each experiment goes through the entire procedure (after
pending
) in 0.1s or so.This means that the scheduler must fetch the information (
"status"
value in specific, varying amongrunning
,analyzing
,deleting
) almost every 10ms.And this is what I get using
artiq-proxy
to fetch the current status value with frequency 1ms:This monstrous amount of GET requests knocks down the server after a long amount of time, and I believe this can be solved only by modifying the artiq_master.py itself to emit a signal when a data change is made.
Also, it makes repeated (but unnecessary for almost all of the time) refreshing of
QListView
of the scheduler, along with the problem of making a menu feature as the item gets refreshed too quickly.I do not think this is the best way to implement it. Would there be any different approach to this problem?
Thank you in advance.
Beta Was this translation helpful? Give feedback.
All reactions