Skip to content

Commit

Permalink
feat: Add support for ignoring gzip and gzip files in write-to-gzip-f…
Browse files Browse the repository at this point in the history
…ile example
  • Loading branch information
WangYihang committed Sep 6, 2024
1 parent 1355e44 commit 093ee12
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions examples/write-to-gzip-file/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.gz
*.gzip
2 changes: 1 addition & 1 deletion examples/write-to-gzip-file/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func main() {
gojob.WithMaxRuntimePerTaskSeconds(16),
gojob.WithResultFilePath("result.txt.gz"),
gojob.WithStatusFilePath("status.json"),
gojob.WithMetadataFilePath("status.json"),
gojob.WithMetadataFilePath("metadata.json"),
).
Start()
for line := range 16 {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/WangYihang/gojob
go 1.22.6

require (
github.com/WangYihang/uio v0.0.0-20240906030653-6e960648c0b6
github.com/WangYihang/uio v0.0.0-20240906040721-305cfedd121a
github.com/google/uuid v1.6.0
github.com/jessevdk/go-flags v1.5.0
github.com/prometheus/client_golang v1.19.0
Expand Down
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ github.com/WangYihang/uio v0.0.0-20240905152743-19ba2df5e6a6 h1:4r+fK+dAO7ry5gtF
github.com/WangYihang/uio v0.0.0-20240905152743-19ba2df5e6a6/go.mod h1:5WoqViIAdldkfhEyOaceDjpfH4wazQDLz86aJVnHnGQ=
github.com/WangYihang/uio v0.0.0-20240906030653-6e960648c0b6 h1:Ig0Hu89i+nOY6wgLzOY5x0KBBDqr417uwOtsvr9Pzz8=
github.com/WangYihang/uio v0.0.0-20240906030653-6e960648c0b6/go.mod h1:5WoqViIAdldkfhEyOaceDjpfH4wazQDLz86aJVnHnGQ=
github.com/WangYihang/uio v0.0.0-20240906032945-575b80997943 h1:e5MSNG/CiJXIK/wKAcPShZUqLkir9TUXnlypwGudWTM=
github.com/WangYihang/uio v0.0.0-20240906032945-575b80997943/go.mod h1:5WoqViIAdldkfhEyOaceDjpfH4wazQDLz86aJVnHnGQ=
github.com/WangYihang/uio v0.0.0-20240906040721-305cfedd121a h1:IGsqxTs+mCkAfJdm3p2rwjlxPhKLyWou80tsDtVSEKM=
github.com/WangYihang/uio v0.0.0-20240906040721-305cfedd121a/go.mod h1:5WoqViIAdldkfhEyOaceDjpfH4wazQDLz86aJVnHnGQ=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
github.com/beorn7/perks v1.0.1/go.mod h1:G2ZrVWU2WbWT9wwq4/hrbKbnv/1ERSJQ0ibhJ6rlkpw=
github.com/caarlos0/env v3.5.0+incompatible h1:Yy0UN8o9Wtr/jGHZDpCBLpNrzcFLLM2yixi/rBrKyJs=
Expand Down

0 comments on commit 093ee12

Please sign in to comment.