This a prototype of using Postgres as broker and backend for Machinery.
Broker: it just polls the database each second so for efficiency you need to use a message queue (e.g. AMQP).
Backend: it simply uses Postgres database for storing task details.
This prototype help me to understand how Machinery works and to know how good is GORM.
- Golang >= 1.6
- Postgres >= 9.4 (need
uuid
andjsonb
)
Take a look to the example
folder.
SQL requests' logging can be enabled in database.go
.
MIT
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request