kibertoad / toad-scheduler

In-memory Node.js and browser job scheduler
MIT License
564 stars 25 forks source link

Get execution id for logging purposes #201

Open gustavhartz opened 1 year ago

gustavhartz commented 1 year ago

I'm building an application where I'm using toad-scheduler. Works great, but for logging purposes I would like to attach an ID/context to the execution of a task. The idea is that I then can add this id to all logging inside the tasks and easily identify the correct logs.

Thanks for building this!

mousseq commented 9 months ago

I would like to second this request. For logging and debugging purposes, it would be helpful to have some context associated with job and task execution. Assigning a unique id (different from the user assigned id) to each job and task and a counter to identify each execution of a job and task would be very helpful for debugging and logging.

kibertoad commented 9 months ago

thanks, I'll add this in the nearby future