Skip Menu |

This queue is for tickets about the Forks-Super CPAN distribution.

Report information
The Basics
Id: 130705
Status: open
Priority: 0/
Queue: Forks-Super

People
Owner: Nobody in particular
Requestors: Jon.Freeman [...] eastspring.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Small bug in Forks::Super::Job::toShortString() in version 0.97
Date: Tue, 15 Oct 2019 05:27:01 +0000
To: "bug-forks-super [...] rt.cpan.org" <bug-forks-super [...] rt.cpan.org>
From: Jon Freeman <Jon.Freeman [...] eastspring.com>
Hi, Thank you for all the great work you have done in Forks::Super. I have a small bug to report in version 0.97 of Forks::Super::Job::toShortString(): After a DEFERRED job has changed to REAPED, the output of toString() changes from "...;state=DEFERRED;..." to "...;state=REAPED;..." as expected, but the output of toShortString() remains "...;state=DEFERRED;...", indefinitely. This bug is reproducible. I am using 64-bit Strawberry Perl 5.28.1 on Windows 10. Its impact is definitely minor because I can easily avoid it by calling toString() instead of toShortString(). Many thanks for your kind attention. Regards, Jon Jon Freeman Director/Quantitative Solutions & Analytics E: Jon.Freeman@eastspring.com<mailto:Jon.Freeman@eastspring.com> Eastspring Investments (Singapore) Limited --------------------------------------------------------------------- Disclaimer This email is governed by terms and conditions found on http://www.eastspring.com/email-terms-and-conditions which contain important disclaimers. ---------------------------------------------------------------------
Yep, toShortString is caching some fields like the job state that are not static. Quick fix is to delete line 265 in lib/Forks/Super/Job.pm. 264: if (defined $job->{short_string}) { 265: return $job->{short_string}; 266: }