You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got confused by the names of the two run* commands because I expected them to, well, run the tasks but in fact even ./flow task:runSingle only schedules a task – or even doesn't do anything if one is scheduled already.
(PS: I copied the naming to my TaskModule package which makes it even more confusing)
Suggestion
I propose to deprecate the two commands task:run and task:runSingle in favor of a new command task:schedule (or similar) with an optional filter to schedule tasks by id etc.
(task:run and task:runSingle should still work of course for B/C but they would be hidden from ./flow help)
Additionally I could imagine another command task:execute that allows to immediately run a task whether it is scheduled or not.
@daniellienert I could take care of this suggestion, but would like to hear your opinion on it, first
I'am fine with the renaming and I would absolutely like to have a better solution for runSingle which directly executes the task. I already searched for an elegant solution but did not find any and feedback in general to the module was rare. I love to see you using the package. If you like to discuss other things and concepts, just ping me.
Update: Unfortunately the undertaking turned out to be more complex than I had anticipated.. Right now I miss the personal itch (or task) to take care of this
Activity
daniellienert commentedon Feb 22, 2022
Hey @bwaidelich,
Yeah absolutely!
I'am fine with the renaming and I would absolutely like to have a better solution for
runSinglewhich directly executes the task. I already searched for an elegant solution but did not find any and feedback in general to the module was rare. I love to see you using the package. If you like to discuss other things and concepts, just ping me.bwaidelich commentedon Jul 15, 2022
Update: Unfortunately the undertaking turned out to be more complex than I had anticipated.. Right now I miss the personal itch (or task) to take care of this