meetings / gearsloth

Gearman job persistence and delayed execution system
MIT License
2 stars 0 forks source link

What is getDomain? #81

Closed tstarck closed 9 years ago

tstarck commented 9 years ago

Ejector code seems to use adapter.getDomains function.

That is it? Should it be in database api documentation?

amv commented 9 years ago

Should be in the adapter documentation. There are also other interfaces for testing purposes that the adapters have and which should be documented.

getDomains() should return an array of the domains (separated storages for tasks) which the ejector can reach. Ejector posts a separate eject function for each domain it reaches, and controllers are supposed to use a domain-specific ejector function (included in the task description by the runner) to eject tasks.

The ducumentation will get updated when the "fs-adapter" branch is merged to master.