taskiq icon indicating copy to clipboard operation
taskiq copied to clipboard

[schedule_by_cron] improve arguments management

Open gael-soude opened this issue 3 months ago • 0 comments

Today if we call schedule_by_cron with our task arguments we can't use source or cron arguments names as they are already used by schedule_by_cron itself.

Maybe it would be cleaner to pass arguments with a variable name instead ? This will avoid collisions between args names.

task = await task_kicker.schedule_by_cron(
    source=..., 
    cron=..., 
    args_dict={...})

gael-soude avatar Aug 27 '25 16:08 gael-soude