You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am running the two consumers in docker containers. The to run the process is:
defmain(queue_name, processor):
""" queue is blocking as long as there are no tasks. """foriinrange(20):
try:
pq=PQ(database.connection())
breakexceptpeewee.OperationalErroraserr:
print(err)
# the database is still not receiving connectionsifre.search("Connection refused", err.args[0]):
time.sleep(1)
try:
pq.create()
excepterrors.DuplicateTable:
print("queue table already exists")
queue=pq[queue_name]
print("waiting for jobs ...")
forjobinqueue:
ifjobisnotNone:
print("Processing job id %d"%job.id)
try:
processor(**job.data).process()
exceptapi.ViesErrorasE:
queue.put(job.data, schedule_at='5m')
exceptExceptionasE:
print("Something weired happend with that data: ", job.data)
raiseE
When I start a fresh postgresql container I see the following logs:
$ docker logs -f vatprocessor
Sending emails via smtpd:25
processing vat queue
could not connect to server: Connection refused
Is the server running on host "db" (172.18.0.2) and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "db" (172.18.0.2) and accepting
TCP/IP connections on port 5432?
NOTICE: function pq_notify() does not exist, skipping
waiting for jobs ...
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
NOTICE: function pq_notify() does not exist, skipping
Processing job id 1
If I stop the containers and restart them again, I no longer see the NOTICE message.
As far as I can tell my code works fine, despite the notice. I am just curious to know why I am seeing this message.
I believe it comes for the database it's as I could not find any reference to it in the code.
The text was updated successfully, but these errors were encountered:
portal@db:portaldb> drop function if exists pq_notify() cascade;
You're about to run a destructive command.
Do you want to proceed? (y/n): y
Your call!
NOTICE: function pq_notify() does not exist, skipping
DROP FUNCTION
Time: 0.004s
portal@db:portaldb>
I am running the two consumers in docker containers. The to run the process is:
When I start a fresh postgresql container I see the following logs:
If I stop the containers and restart them again, I no longer see the NOTICE message.
As far as I can tell my code works fine, despite the notice. I am just curious to know why I am seeing this message.
I believe it comes for the database it's as I could not find any reference to it in the code.
The text was updated successfully, but these errors were encountered: