{"id":20779639,"url":"https://github.com/smartlogic/logging_worker","last_synced_at":"2025-04-30T20:05:12.464Z","repository":{"id":24650211,"uuid":"28060101","full_name":"smartlogic/logging_worker","owner":"smartlogic","description":"Log background workers","archived":false,"fork":false,"pushed_at":"2018-02-14T18:51:44.000Z","size":34,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-30T20:03:17.774Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartlogic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"MIT-LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-12-15T22:51:16.000Z","updated_at":"2024-02-15T15:45:41.000Z","dependencies_parsed_at":"2022-08-23T01:51:01.978Z","dependency_job_id":null,"html_url":"https://github.com/smartlogic/logging_worker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Flogging_worker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Flogging_worker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Flogging_worker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartlogic%2Flogging_worker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartlogic","download_url":"https://codeload.github.com/smartlogic/logging_worker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251774895,"owners_count":21641731,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-17T13:29:05.322Z","updated_at":"2025-04-30T20:05:12.410Z","avatar_url":"https://github.com/smartlogic.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LoggingWorker\n\nLoggingWorker lets you create a record each time a background worker is run. It handles this automatically for you. There will be a new `JobRun` model that contains each run.\n\n## Installation\n\nAdd logging_worker to your Gemfile\n\n```ruby\n  gem 'logging_worker', :github =\u003e 'smartlogic/logging_worker'\n```\n\nBundle it!\n\n    $ bundle install\n\nInstall migrations\n\n    $ rake logging_worker_engine:install:migrations\n\nAdd to your workers.\n\n```ruby\nclass MyWorker\n  include Sidekiq::Worker\n  # Using prepend is VERY important\n  prepend LoggingWorker::Worker\n\n  # ...\nend\n```\n\n## JobRun\n\nEach time a background job is performed a new `JobRun` will be created. `JobRun` has the following attributes:\n\n- `worker_class` worker class that performed the job\n- `arguments` arguments used for running the job\n- `successful` if the job finished successfully, with no errors\n- `completed_at` when the job finished, regardless of success status\n- `log` Log of the job\n- `error_message` if the job errored, the error message\n- `error_backtrace` if the job errored, the error backtrace\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlogic%2Flogging_worker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartlogic%2Flogging_worker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartlogic%2Flogging_worker/lists"}