Closed tmkontra closed 1 year ago
I've opened a PR with an alternative implementation of a fix. My approach is to fall back to the simpler .__str__()
representation of the Job
when it does not have the attributes needed to construct a pretty .__repr__()
representation.
Thanks for reporting and debugging! This has been resolved in #569 and will be part of the next release.
Line 284 (and similarly line 285 for kwargs) assumes self.job_func is not None (and has the "args" attribute). I think it needs to use logic similar to line 264 (and line 265, respectively for kwargs).
It may be helpful to extract line 264 to a reusable property:
I can draft a PR if that would be helpful.
For context, I am using
schedule
as a schedule-builder interface, (i.e. just Job definitions withoutdo
).