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 found myself a few times wishing for more insight about what jobs actually do and what their results are. Currently, I have a cron job which loops through a bunch of database records and calls an external API with some attributes from these records. Somewhere between the job code and the API returns, something goes wrong and I am having trouble finding out what precisely.
In the dashboard, the jobs just show up as successful with no more info whatsoever. It would be so nice if I could just put together an array of the results for the iterations of the loop in the job and return it as a result of the perform method. That return value could then be displayed in the dashboard's job view by simply calling to_s or to_json on the returned object. That would allow for instant insight into what the job actually did or resulted in.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I found myself a few times wishing for more insight about what jobs actually do and what their results are. Currently, I have a cron job which loops through a bunch of database records and calls an external API with some attributes from these records. Somewhere between the job code and the API returns, something goes wrong and I am having trouble finding out what precisely.
In the dashboard, the jobs just show up as successful with no more info whatsoever. It would be so nice if I could just put together an array of the results for the iterations of the loop in the job and return it as a result of the
performmethod. That return value could then be displayed in the dashboard's job view by simply callingto_sorto_jsonon the returned object. That would allow for instant insight into what the job actually did or resulted in.All reactions