Progress for Long Operations at Server

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

Hi, gurus!
Please assist, how can I make a progress for long operations which are performed at server? For example I want to convert some data in a huge catalog during an update of the infobase. This operation might take for example 20 minutes and I would like to display a user the progress of this operaton not to get interrupted in the middle of something when they will reboot a server.
The problem is that when I start running this operation the client stops responding and I can not make calls to the server to get the progress and display it to the user.
Thanks in advice.

 
#2
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company:

I have the same problem. If someone have a good solution?

 
#3
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 23, 2011
Company:

Pprogress can be used only if the task can be divided into parts and run them in parts. If possible - should be in the loop on the client side call to perform the next portion of code to perform tasks after changing the value of the progress and make a call RefreshDataRepresentation().
No other way.
Unfortunately, the web client, and this did not work.

 
#4
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

Thank you for reply, Escander.
The problem in division is that the query takes about 30% of the operation and other parts are using the result. How yould I keep a hudge query result between calls to the server?
And what if to use scheduled jobs for that?

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 23, 2011
Company:

Do not quite understand the question, poor knowledge of English.
From the server-side code nedosupen call to a client, so the implementation progress bar will be available only for problems in which the long process of well quantized into smaller parts more or less the same time ispolneniya, pichem that-be control loop could be placed on the server side. But unfortunately even temptablesmanager not accessible from the client.

 
#6
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Nov 24, 2011
Company:

"nedosupen"(nedostupen) - unavilable
" time ispolneniya" - run time
"pichem".... hm if this "prichem" then = at that
elseif "pishem" then "write"

 
#7
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

So, what about scheduled jobs for this taks?

 
#8
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Nov 24, 2011
Company:

#8 i think you can not do this. Shedulled Tasks Will have some troubles when you using it.

 
#9
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

What's wrong with it?

 
#10
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Nov 23, 2011
Company:

John Smith, this is a known feature of the system.

 
#11
People who like this:0Yes/0No
Active user
Rating: 3
Joined: Jul 20, 2011
Company:

Plz, explain, I can't get it. What's wrong with scheduled jobs?

 
#12
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Nov 24, 2011
Company:

If You will run many(more than 1 and this will in multiuser) sheduled jobs then 1s will crash with message "Менеджер заданий не активен" = "Shedule job manager unnactive"(i don't now how it will written in english)/ This error is unDEBUGEable. This CAN(! without rules, in any time) error apear till one job runing and begining work next job. I'm using 1S like 1S without Sheduled job. And when i need sheduled job in 1S i'm using Windows job manager wich start with "ROBOTuser" wich make what i need OnStart method and close program. Sorry for my bad english, but i think You can't use sheduled jobs in Your case.

 
#13
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Nov 24, 2011
Company:

clear "CAN(! without rules, in any time)" pls ))

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.