[GH-ISSUE #575] [FEATURE REQUEST] Create new task in CLI or asynqmon #1290

Open
opened 2026-03-07 22:08:20 +03:00 by kerem · 2 comments
Owner

Originally created by @isdzulqor on GitHub (Nov 21, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/575

Originally assigned to: @hibiken on GitHub.

Is your feature request related to a problem? Please describe.
I'm always frustrated when trying to simulate task creation locally. There's no such feature for creating a new task in asynq tool CLI, nor in asynqmon.

Describe the solution you'd like
Provide task creation via CLI or asynqmon to make it easier to debug locally. Example command in CLI, could be like this

asynq task enqueue --queue=example-queue --payload="{\"type\":\"UPDATE_VIEWER_COUNT\",\"stream_id\":83929120323,\"exec_at\":1663659030,\"interval\":300,\"exp_at\":1663662630}" 

Describe alternatives you've considered

Additional context

Originally created by @isdzulqor on GitHub (Nov 21, 2022). Original GitHub issue: https://github.com/hibiken/asynq/issues/575 Originally assigned to: @hibiken on GitHub. **Is your feature request related to a problem? Please describe.** I'm always frustrated when trying to simulate task creation locally. There's no such feature for creating a new task in asynq tool CLI, nor in asynqmon. **Describe the solution you'd like** Provide task creation via CLI or asynqmon to make it easier to debug locally. Example command in CLI, could be like this ``` asynq task enqueue --queue=example-queue --payload="{\"type\":\"UPDATE_VIEWER_COUNT\",\"stream_id\":83929120323,\"exec_at\":1663659030,\"interval\":300,\"exp_at\":1663662630}" ``` **Describe alternatives you've considered** - **Additional context** -
Author
Owner

@hibiken commented on GitHub (Dec 23, 2022):

Great feature request! I'd love to see this feature implemented.

<!-- gh-comment-id:1363530573 --> @hibiken commented on GitHub (Dec 23, 2022): Great feature request! I'd love to see this feature implemented.
Author
Owner

@vernonr3 commented on GitHub (Jan 6, 2023):

Just wondering @isdzulqor. Were your expecting the parameters within the suggested json payload (as an example) to be transmitted to the other end for a task "executor" to interpret and use - or did you expect the engine to make use of them?

<!-- gh-comment-id:1373973376 --> @vernonr3 commented on GitHub (Jan 6, 2023): Just wondering @isdzulqor. Were your expecting the parameters within the suggested json payload (as an example) to be transmitted to the other end for a task "executor" to interpret and use - or did you expect the engine to make use of them?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1290
No description provided.