update jobs
This commit is contained in:
parent
fbc31dc7ef
commit
7358ca67e8
3
job.go
3
job.go
@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"archive/zip"
|
"archive/zip"
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"compress/zlib"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
@ -18,7 +19,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func createJob(jobTypeID64 int64, priority int32, userID64 int64, trigger int64, schedule time.Time, payload []byte) (int64, error) {
|
func createJob(jobTypeID64 int64, priority int32, userID64 int64, trigger int64, schedule time.Time, payload []byte) (int64, error) {
|
||||||
zb := make(bytes.Buffer)
|
zb := new(bytes.Buffer)
|
||||||
zw := zlib.NewWriter(&zb)
|
zw := zlib.NewWriter(&zb)
|
||||||
zw.Write(payload)
|
zw.Write(payload)
|
||||||
zw.Close()
|
zw.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user