modelRT/constants
douxu 809e1cd87d Refactor: extract task constants to dedicated constants package
- Add constants/task.go with centralized task-related constants
    - Task priority levels (default, high, low)
    - Task queue configuration (exchange, queue, routing key)
    - Task message settings (max priority, TTL)
    - Task retry settings (max retries, delays)
    - Test task settings (sleep duration, max limit)

  - Update task-related files to use constants from constants package:
    - handler/async_task_create_handler.go
    - task/queue_message.go
    - task/queue_producer.go
    - task/retry_manager.go
    - task/test_task.go
    - task/types.go (add TypeTest)
    - task/worker.go
2026-04-22 17:20:26 +08:00
..
alert.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
attrs_key.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
buffer.go optimzie logic of real time data pull api 2025-12-12 17:22:20 +08:00
busbar_section.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
business_code.go optimize reponse code and business code of measurement sub api 2026-01-26 16:29:50 +08:00
context.go implement real time data computing api 2025-11-14 16:34:34 +08:00
deploy_mode.go optimize code of redis init 2026-01-28 16:49:12 +08:00
electrical_components.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
event.go optimize struct of rabbitmq event 2026-03-02 17:00:09 +08:00
log_mode.go fix bug of server deploy 2025-12-11 16:42:25 +08:00
measurement.go feat:implement search support for abbreviated token ranges (e.g., token4-token7) 2025-12-15 16:49:38 +08:00
recommend_keys.go optimize the logic for loading the cache of measurement nodes for traversing components 2025-12-25 17:17:20 +08:00
redis.go optimize code of measurement recommend and logger output 2025-10-15 17:08:32 +08:00
response_code.go optimzie code of constants package 2026-01-16 17:08:28 +08:00
rtdata_subscription.go optimize code of redis connenct func and real time data calculate 2026-01-27 17:41:17 +08:00
task.go Refactor: extract task constants to dedicated constants package 2026-04-22 17:20:26 +08:00
telemetry_imit.go add constants varibale of power system events 2026-02-12 17:09:08 +08:00
time.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
togologic.go feat(token-parse): 1. add func of parse token 2.add func of query grid、zone、station、component 3.modify package of constant 2025-08-05 15:20:07 +08:00
trace.go optimize code of measurement recommend and logger output 2025-10-15 17:08:32 +08:00