It should go to the first week, yes, but
second. Not comment at this moment until
unless I clear the more leads so then
I can see the output right whether my
query is working or that should be
handled by the Anthony and.
Can you put that scenario in the text
back? Sure, sure, sure.
OK So what I'm saying
is this is my.
I just. Sally job table.
For status equals 2.
Because you? OK, so I have all these
leads over here, correct?Cool, so
now let's say you have a score in. All
right, let's say I also do and.
Scores it's, runs this query, right? It's
not null, right? Right now I only
get one. But let's say for the
sake of the argument, right, I get
all these leads over here, right? So
which way you would then what I'm
saying is your output will be. Ordered
by the best lead like this is the first
lead that we should start with because
yes you have tried and leads can keep
coming anytime, right scheduler runs
right, you send five leads then the 60
seconds later or whenever the schedule
runs, we have two more right by that time
we see that two of those have been picked
up right now we have. Be more appended,
right? So all those things can happen
too, right? You see what I'm trying to
say here So first instance of scheduler
runs you sent a total of five leads
over here, right? You send something like
this yeah, I'm going to handle OK, so
once I once it comes right?Database
if it is not handling in the database
I already put the ascending order but if
it is not locked but I'm doing the
Java site mapping and I'm sending The Who
are the best lead and whose vacant since
long I'm going to send that one. OK
so if you send that then. That's
part of yesterday actually. I wanted to,
but I will test it. I am going to
take care. Yeah, I think I need some more
records or and then just change the
values of the scores over here and just
creates a priority list and then you can
then see if the ordering is happening
correctly, right? We can do that one.
Yeah, we already have. You can just
add some score over here, right? And then
what's it called? Add some values over
here and make sure that your logic is
working correctly, right? So Anthony,
you're starting with the first one, and
then we have multiple threads for each of
those, right? Processing. Yeah,
yeah. I can't do it.
I will check that one and tomorrow I'm
going to confirm on that one. Yeah, my
love is working. Otherwise I need to do
the sock in the JavaScript, yes. So I
am going to take mostly logic will work
so. It is not working. Then
I need to do some sorting.
People take that. And for
the priority list, you're only sending
what's in the DB, correct? Or are you
also sending? I'm sorry if I've asked you
this before. Or are you also sending the
other?EPS appended to
this, you are right actually, yeah, if
I'm appending the other server, OK,
perfect, perfect. Then Anthony, for yours
you would have to see in each
thread, right? Take this list, right?
Priority one available, yes, Ring the
phone, send websocket message.
Separate thread same thing is happening
right We can have multiple threads right
We want to make sure that right the
status are updating are getting updated
promptly and the status is not getting
updated promptly What can happen is you
can have the phone ring twice for the
same one right So let's.
Melissa, I think your piece is pretty
much done. Whisper, your piece is done.
So Anthony can now start with your piece
of Misha Tomorrow, insert some data in
the table. You already have data in the
table, right? You can change it to create
at least 10 records exactly. Let's test
it. See there's something out there.
Make that data for two of them in
stores. Come on
that one my very works well and good.
Otherwise I will do the same thing. I
think Malesh this season is going to
talk. OK that I'm going to take care.
OK, good Malesh. Yeah.
So, uh, I said like one
scenario you were pointing out, right.
Uh. It
didn't complete it. I mean, you you went
back to Notepad. Yes. What was that?
Yeah. I think it was along the same
lines, only I think yes, basically the
other one, if you maybe pull up this,
this piece over here.
You were saying that if there are more
leads than the VPS, something that. Yeah,
yeah, that. Yeah, that can also actually
happen, right. So let's say I have a
one has sort of five EPS, right?
Scheduler runs, right, right. The
scheduler runs, yeah, right. It sends the
data to these three for. Right
scheduler is running every one minute or
how often is the scheduler running?
I think for now every minute, I
think so every minute, right. So then
you could send Yep, you get these
three, right. OK, not kind of minute
fix that declined to say, yeah, no,
no, I need to say as soon
as it completes, current process
completes, there is a delay. One minute.
OK, OK, makes sense.
OK, OK, OK. Otherwise if you run a drug,
that is again another problem. Ohh. Yes?
Suppose say one term takes 10 to 11
minutes, it will complete 10:50 minutes.
From 11 minutes it is one minute delay.
OK, makes sense. Yeah, try to fix it. Fix
still there. Yeah, that's right. OK,
so first instance of scheduler runs. You
get a total of three over here
right now.
So we are going through and
there's only two VPS available, right?
So this process takes right schedule
runs right. So sorry to interrupt,
I shared raised his hand twice.
So ohh, Aisha, you go ahead.
Yeah, no, I didn't want to interrupt.
Actually. No, that's fine. Same, same.
But yeah, yeah. So like today, I just
wanted to put it out there. I still
haven't got the data there. The team is
working on it. Most probably tomorrow
I'll be getting it. Then I'll start on
the machine learning part, OK. In
the meantime, are you? Can you create
like?Just something
like based on the business rules,
something like assign some scoring and
all. Or I just want to see if
we can have some sort of request payload
and all. Maybe they can
maybe should we create a box service
Manish which were Anthony? So because if
our piece is done back in piece is done,
can we just test with the mock service
that hey, we call this mock service, you
get a score, you get a VPS list and you
can continue testing, right?Because
I think we should be done by next week.
Right now main thing main thing would be
testing. Right. Should we create a
mock steps in the meantime? Because I
think are you still waiting on the data?
It would take him some time to train the
data to see first profile the data, then
see what data works, what does not work
at all. How easy would it be to spin up
a mock service right locally or in the
dev environment? That is you send the VPS?
This spits out a random score, a random
technician ID list, or a VPS list for
testing purposes so that we can test the
full flow. Is that
possible? So for that you guys can do one
thing right. You can just create a mock
Flask API and which is speeding up. Yeah,
yeah, that's I'm saying. So maybe
internally for the back end developers,
can we create a mock service?
Or maybe can we do something if local
host, right? If you're testing, if you're
running it locally, just create a
function, right, that mimics that
basically mimics the same behavior as the
AI coloring model where you send an input
and it just spits out a random score,
right? Just give it some. Hey
give a score between this range. Give
a score, get this priority list. Can
we do that for testing purposes?
Basically mocking. Uh yeah,
yes. We can do something
right where where you calling the AI
quality model, We can we can do that one.
That's OK. And get that, Yeah, just
some random scores, right. Just some
random score, random score, random,
right. We have the list, we can
exactly we can. It's a simple function
we can create, Hey, if environment is
local host, right, right. Instead of
calling the API run. This function get
a random number, use a random number
generator between this, this, this, get
that score, create a random VPS list and
insert that so that we can use that
for our testing. And then when Ayesha's
model is ready, we can just see if
dev, test, prod use that model. I'm just
thinking because. I know
I don't rajshahi
Java APK.
Even not even yeah, even not
yeah, otherwise for again, it's for
you don't need to spend time.
So we can make with that
once we've done all these things
right, we can do that.
Have a hard time to drop but quickly
let me one thing to this scenario over
here. Let's say scheduler gives you a
list of these three leads. OK now when
you say the scheduler runs right until
one cycle of the scheduler instead one
cycle the scheduler is until these three
have been answered. Or let's say if
these three have not been answered, well,
the schedulers stay active, the threads
will stay active, right? Right.
Yeah, I mean, uh, these three leads have
to be answered. OK, then, then, then,
then Malaysia, I think we, we, we are
good. But I was thinking, yeah, let's say
if the scheduler runs right, you get
these 312 of them have been answered. One
has not been answered, right, because we
don't have that many people. Then I get
three more right in the next iteration.
But no. But the good thing is. In each
iteration of scheduler it will make sure
everything it had those are answered then
then the schedule runs again to pick up
the next ones. Then I think we are good.
Then I think we are good. Yep. OK, I do
have to drop, but I think this is a very
good discussion. We made really good
progress, right? So your piece is almost
done, right? The API. Changes which way
your piece is done, you can check in the
code, make the changes that Malaise
requested, make sure that you're
filtering by score, not null, right? So
that we're only picking up the ones that
are being scored. Then Anthony, tomorrow
we'll test your changes, right? The
business logic that you have that the
leads are ordered. Now what you have to
do is Anthony, take the output from the
scheduler. Right, yeah, take the hash
map, right, starting with 12345 right
order, see if one is active. If
active you send the notification
websocket message and you update the
status to that one ringing then in
each separate threads, right, The key is
with each message that is being sent
message. That is being received right
away. What's it called? Status is being
updated in the technician table.
Otherwise we would have the problem where
the same VPS is getting multiple calls or
someone who might be active, we might
think he's interactive with someone who
is inactive. Might we might think he's
active because you have multiple threads.
So you have yeah, your JVM is not going
to have one. You you cannot, right? So
the stent, the database becomes your
source of truth. Now the virtual memory
makes sense, makes sense so that I can
add the quick sync check before sending
the next one. Yes, So,
uh, check in your code, right? Just make
the changes, which right Malish Anthony,
see if any other comments right and we
will work off this branch, right? So
tomorrow we will test this first piece.
Anthony, you have the starting for this
one started making your changes. If any
questions reach out to me if anything.
OK, sure. Yeah,
checking in the code that not equal
to null conditions score nautical to come
null conditions. Right now only I'm
checking with that code, you can take
it off.
Go ahead. I was just gonna ask you any
other comments for basically everything
else looks good. The flow wise where that
we talked about, we're all aligned. OK,
good. Yeah, One thing like we both
discussed yesterday, I already
communicated to visual as well, like
sending the response back to UI without
waiting for the data model API response,
right?After we submit a green
light form, so that change is needed,
which one we discussed from this. So
yeah, tomorrow we'll connect if you are
available, right? You will be available,
right? Yeah, yeah, yeah, yeah, yeah. Both
connect and we'll see how to. OK.
Yeah. So that's the So when you
say, yeah, yeah, so 5 million. So
this change, I'm going to do it
right now and order by, order by,
I'm going to check it tomorrow and
parallel execution that thing and
asynchronous call these four items on me,
the first item I'm going to.
Send it right now, I'm going to check in
and I will post certain group on
Saturday. Sounds
good. OK, I do have to drop, right? So
again, let me repeat tomorrow, Vishwa,
let's test the output. I just, I want to,
if we can run that flow that is locally
call the API, pull a debugger point, see
the status is getting updated, then run
the scheduler, right? I want to see the
output if I want to put 10 records in the
DB. Uh, different scores at different
times. I want to see the output that is
coming from the scheduler. Then I want to
see what Anthony, how you will take it
and how you will create a separate
function for each and then run them in
multiple threads. OK, so Anthony, visa
will have a status output anyway. It's
coming or exactly? Yeah, so. Yeah, I'm
just making sure that the order is
exactly coming as expected, expected, or
I need to do the sort that I'm
going to do for sure, uh, check it
tomorrow. And that is the first thing I'm
going to do order. The second thing is
the asynchronous call from the. I
think I went to open the final thing is,
uh, parallel mechanism. That's the last
thing I'm going to do Yeah. And ohh, now
you, you have that you once we see that
there, you should be able to debug. You
should get the output from scheduler, run
some data and then you can start your
changes. OK, yeah, you can. It's not a
stopper for Anthony. Stop watching that,
OK? Yeah, I do have to drop. Ping
me if anything, OK? Yeah. So yeah, I
feel changes are good, right? I'm going
to mess up in that feature branch. You
can take it from that feature branch on
them, OK. OK, try again.
I'm going to do that change. I'm going
to mess up enough, which I thought I
will post that message in the group. OK,
Thank you, thank you, thank you, thank
you, thank you. Umm.