On Fri, Jan 21, 2022 at 12:19 PM Cameron Simpson <c...@cskk.id.au> wrote:

> If you can define a task in a single line of text


I can define my tasks in a single command line.


> you could run
> something like this on the server:
>
>     tail -f task_list.txt | while read -r spec; do run the task from
> $spec; done
>

Nice.

Put that in a tmux or screen session.
>
> Task submission is then just appending a spec to the text file:
>
>     echo "specification here" >> task_list.txt
>

Love it.

Dumb as rocks, but effective. I've run simple workers like this.
>

I might build a nice wrapper around it, but that will work.

Probably "run the task from $spec" should invoke a shell script to run
> exactly one task collecting the output, logging the times etc.
>

I can redirect the task output to text files so I can check what happened
after the fact.

Thanks for the reply.
_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam on the list, report it: 
https://pagure.io/fedora-infrastructure

Reply via email to