Comments (3)
Thanks for report and good analysis. Fixed in GIT with _make_event() in consumer classes.
Alternative would be to have _event_class, but that is not good unless shared somehow with walker.
So I kept things simple ATM.
Please test.
from skytools-legacy.
Hi, thanks for the quick fix.
Unfortunately there are still problems:
Traceback (most recent call last):
File "/usr/local/lib64/python2.6/site-packages/skytools/scripting.py", line 568, in run_func_safely
return func()
File "/usr/local/lib64/python2.6/site-packages/pgq/baseconsumer.py", line 257, in work
self._launch_process_batch(db, batch_id, ev_list)
File "/usr/local/lib64/python2.6/site-packages/pgq/baseconsumer.py", line 286, in _launch_process_batch
self.process_batch(db, batch_id, list)
File "/usr/local/lib64/python2.6/site-packages/pgq/baseconsumer.py", line 233, in process_batch
self.process_event(db, ev)
File "./av2te_consumer.py", line 166, in process_event
ev.tag_done()
File "/usr/local/lib64/python2.6/site-packages/pgq/consumer.py", line 23, in tag_done
self._walker.tag_event_done(self)
AttributeError: 'AV2TEConsumer' object has no attribute 'tag_event_done'
I believe the problem is due to this line:
https://github.com/markokr/skytools/blob/master/python/pgq/consumer.py#L64
which attempts to create a RetriableWalkerEvent by passing self
as the walker-parameter.
However self
here is a Consumer-instance so does not have a tag_event_done method.
I think you meant to pass an instance of RetriableBatchWalker instead of self
?
from skytools-legacy.
we don't have walker there. The right fix is to use RetryableEvent.
I did some reorg too, to make stuff more obvious next time.
Please test.
from skytools-legacy.
Related Issues (20)
- londiste3 should complain if triggers are not in place HOT 1
- simple londiste3 replication standby server error HOT 12
- unique key names are not escaped HOT 3
- Bug with a branch node worker HOT 2
- node 2 worker crashing - baseconsumer getting 4 args instead of 3. HOT 1
- creating leaf sets node location incorrectly HOT 7
- PgQ python framework can not be used anymore with python2.4
- PK update HOT 1
- role pgq_admin cannot bulk_insert_events
- londiste3 create-root failed with "could not access file "$libdir/pgq_lowlevel"" HOT 10
- Skytools SQL has a missing function HOT 2
- londiste3 error with import pkgloader HOT 7
- What database permissions does Skytools 3 require?
- How to remove/delete events? event_failed() function is missing.
- Incomplete string interpolation HOT 1
- tarball is missing libusual files
- Can I use skytools for postgres 8.4? HOT 1
- Make possible to write on branch node
- londiste doesn't copy all significant digits with double presicion data type
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from skytools-legacy.