On 12/3/2019 10:07 AM, Phil Stracchino wrote:
On 2019-12-03 09:15, Radosław Korzeniewski wrote:
Hello,

wt., 3 gru 2019 o 14:27 Martin Simmons <mar...@lispworks.com
<mailto:mar...@lispworks.com>> napisał(a):

     Is the current timing useful for some other situation?


I do not understand your question.
     It seems like a bug to me too.  To continue your analogy, it is like the
     restaurant forcing you to choose a dish when you book the table,
     before you've
     seen the menu of the day.


No, absolutely not. When you execute the copy job then all required data
is available and copy jobs simply start, so the menu is available when
you book a table.
But when you go to the restaurant then an admin stop you entering the
room and force you wait until the next day when menu changed - so it is> not a 
surprise.
But if you showed up at breakfast time and the maitre'd has made you
wait until supper before letting you have your table, he should not
force you to make your menu selection from the breakfast menu.  You
should get to choose from the supper menu, because that's what the
restaurant is serving from NOW.


That is not the case. The job begins (ie. enters the job queue) when it is scheduled. The job goes into a wait-state if there are higher priority jobs and/or unavailable storage devices, but is still in the job queue. When conditions are met, it resumes (ie. enters running state). It may go into a wait-state again at some point if, for example, the media it writes to becomes full. It does not get a new snapshot of the catalog each time it resumes from a wait-state. A line has to be drawn somewhere. Should the job evaluate the selection each time it resumes from wait? If it did, then it could potentially run indefinitely.  I would guess that the devs chose to evaluate the selection at schedule time because if evaluated at each entry into the running state it would make the job non-deterministic and it may run forever.

In the analogy, you show up for breakfast time and the maitre'd seats you at a table and gives you a breakfast menu, the only menu available at that time. There are other diners who arrived before you did, so you have to wait your turn to order. When your turn comes, you don't see anything on the menu that you want, so you order nothing and get up and leave. The waiter didn't bring you another menu because he or she didn't know you wanted to wait until particular other people showed up later and finished their meals before you ordered.





_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel

Reply via email to