albrow / jobs

A persistent and flexible background jobs library for go.
MIT License
499 stars 47 forks source link

Export job.freq #16

Closed epelc closed 9 years ago

epelc commented 9 years ago

It would be useful if we could see the job frequency for recurring jobs.

albrow commented 9 years ago

@epelc Thanks for opening this. I can make job.freq accessible through a getter method easily, but making it settable in a safe way would require changing a lot of things about the underlying architecture. Is getting it could enough for you?

epelc commented 9 years ago

@albrow I just wanted a getter similar to Key() or NextTime().

albrow commented 9 years ago

Okay thanks. I'll add this in 0.3.1.

albrow commented 9 years ago

Implemented in https://github.com/albrow/jobs/commit/1df6f597ddc26ce1d713061e866abe9b0dd899cb. I also added getter methods for a lot of the other fields. This will be included in version 0.3.1 on master.