mirror of
https://github.com/hibiken/asynq.git
synced 2026-07-17 08:22:10 +08:00
Introduce Task Results
* Added Retention Option to specify retention TTL for tasks * Added ResultWriter as a client interface to write result data for the associated task
This commit is contained in:
@@ -199,9 +199,9 @@ func printTable(cols []string, printRows func(w io.Writer, tmpl string)) {
|
||||
tw.Flush()
|
||||
}
|
||||
|
||||
// formatPayload returns string representation of payload if data is printable.
|
||||
// If data is not printable, it returns a string describing payload is not printable.
|
||||
func formatPayload(payload []byte) string {
|
||||
// sprintBytes returns a string representation of the given byte slice if data is printable.
|
||||
// If data is not printable, it returns a string describing it is not printable.
|
||||
func sprintBytes(payload []byte) string {
|
||||
if !isPrintable(payload) {
|
||||
return "non-printable bytes"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user