## No BibUpload scheduled? Then we don't care about bibsched
return""
## Let's get an estimate about how many processes are waiting in the queue.
## Our bibupload might be somewhere in it, but it's not really so important
## WRT informing the user.
_=gettext_set_language(ln)
res=run_sql("SELECT id,proc,runtime,status,priority FROM schTASK WHERE (status='WAITING' AND runtime<=NOW()) OR status='SLEEPING'")
pre=_("Note that your submission as been inserted into the bibliographic task queue and is waiting for execution.\n")
ifserver_pid():
## BibSched is up and running
msg=_("The task queue is currently running in automatic mode, and there are currently %s tasks waiting to be executed. Your record should be available within a few minutes and searchable within an hour or thereabouts.\n")%(len(res))
else:
msg=_("Because of a human intervention or a temporary problem, the task queue is currently set to the manual mode. Your submission is well registered but may take longer than usual before it is fully integrated and searchable.\n")