Comments (10)
Do you have reproducible code and screenshots?
from asynq.
I have same problem.
from asynq.
@xmwilldo thanks for reporting an issue.
Did you specify your timezone via SchedulerOpts.Location
?
If so, would you mind providing some code snippets to help me investigate further?
from asynq.
@hibiken Yes, I tried but it didn't work.
loc, _ := time.LoadLocation("Asia/Shanghai")
mgr, err := asynq.NewPeriodicTaskManager(
asynq.PeriodicTaskManagerOpts{
PeriodicTaskConfigProvider: &TrainPeriodicTaskProvider{
ctx: l.ctx,
svcCtx: l.svcCtx,
},
RedisConnOpt: asynq.RedisClientOpt{
Addr: l.svcCtx.Config.Redis.Host,
Password: l.svcCtx.Config.Redis.Pass,
DB: 10,
},
SchedulerOpts: &asynq.SchedulerOpts{
Location: loc,
},
SyncInterval: 10 * time.Second,
},
)
if err != nil {
log.Fatalf("could new PeriodicTaskManager: %v", err)
}
from asynq.
I have these scheduled tasks, each task executes at least ten sub-tasks, but the statistical results are as follows:
from asynq.
It's probably related to this one? hibiken/asynqmon#295
UI shows everything in UTC so I think we need to open a FR to support different timezone in the UI.
from asynq.
This doesn't seem to matter, because the ui just shows the data in redis, and the data recorded in redis itself is wrong
from asynq.
from asynq.
I see.
We need to update these helpers to be timezone aware (currently always use UTC):
Lines 169 to 172 in fde294b
Lines 174 to 177 in fde294b
This may be a good first issue for someone's who's looking to contribute.
from asynq.
I would also like to participate, but this PR#683 already exists. Thanks!
from asynq.
Related Issues (20)
- Is there a memory leak issue here? because pubsub is not close
- [FEATURE REQUEST] Implement other Brokers in my code HOT 1
- [BUG] WARN: recoverer: could not move task to archive: INTERNAL_ERROR: redis eval error: NOT FOUND HOT 5
- [FEATURE REQUEST] Separate Consumer from Server HOT 4
- Question: Individual ServerInfo and identifying current server via UUID HOT 2
- [FEATURE REQUEST] Support for dragonfly HOT 1
- How to synchronize task information between asynq and database? HOT 5
- [FEATURE REQUEST] Will your add the TraceId option HOT 1
- [FEATURE REQUEST] Expose method within handler to shutdown server HOT 1
- support other redis libarary? HOT 1
- [FEATURE REQUEST] Ability to modify a task's Payload in middleware
- [FEATURE REQUEST] Task callbacks HOT 1
- [FEATURE REQUEST] Task or Queue broadcasting HOT 2
- [BUG] memory overflow issue
- [FEATURE REQUEST] Add Metadata/Headers Field for Distributed Tracing in asynq.Task HOT 2
- [FEATURE REQUEST] Multiple copies running inside the container
- [BUG] rate.NewSemaphore: type conversion failure (MakeRedisClient error?) HOT 3
- When used together with the grpc service, grpc cannot exit normally. HOT 1
- [FEATURE REQUEST] redis client version compatibility HOT 9
- [FEATURE REQUEST] Globally limit active task number according to task type HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asynq.