{"id":21984686,"url":"https://github.com/cadyio/hangfire-ravendb","last_synced_at":"2025-04-30T07:29:30.284Z","repository":{"id":1767052,"uuid":"44409895","full_name":"CadyIO/hangfire-ravendb","owner":"CadyIO","description":"RavenDB job storage for Hangfire","archived":false,"fork":false,"pushed_at":"2022-12-07T18:55:49.000Z","size":7455,"stargazers_count":18,"open_issues_count":14,"forks_count":35,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-04-07T11:38:55.493Z","etag":null,"topics":["c-sharp","dotnet","dotnet-core","hangfire","ravendb","recurring-tasks","scheduled-jobs"],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/Hangfire.Raven/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CadyIO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-16T20:50:25.000Z","updated_at":"2023-08-15T07:48:19.000Z","dependencies_parsed_at":"2023-01-11T16:05:50.313Z","dependency_job_id":null,"html_url":"https://github.com/CadyIO/hangfire-ravendb","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CadyIO%2Fhangfire-ravendb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CadyIO%2Fhangfire-ravendb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CadyIO%2Fhangfire-ravendb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CadyIO%2Fhangfire-ravendb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CadyIO","download_url":"https://codeload.github.com/CadyIO/hangfire-ravendb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251660291,"owners_count":21623220,"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":["c-sharp","dotnet","dotnet-core","hangfire","ravendb","recurring-tasks","scheduled-jobs"],"created_at":"2024-11-29T18:10:46.367Z","updated_at":"2025-04-30T07:29:30.256Z","avatar_url":"https://github.com/CadyIO.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hangfire RavenDB\n\n## Build Status\n\n`Platform` | `Master`\n--- | ---\n**Windows** | [![Build status](https://ci.appveyor.com/api/projects/status/hcmu0b0p62mbuwen?svg=true)](https://ci.appveyor.com/project/CadyIO/hangfire-ravendb)\n**Linux / OS X** | [![Travis CI Build Status](https://travis-ci.org/CadyIO/hangfire-ravendb.svg?branch=master)](https://travis-ci.org/CadyIO/hangfire-ravendb)\n\n## Overview\n\nRavenDB job storage for Hangfire\n\n## Usage\n\nThis is how you connect to a ravendb server (local or remote)\n```csharp\nGlobalConfiguration.Configuration.UseRavenStorage(\"connection_string\", \"database_name\");\n```\n\nThis is how you connect to an embedded ravendb instance\n```csharp\nGlobalConfiguration.Configuration.UseEmbeddedRavenStorage();\n```\n\nTo enqueue a background job you must have the following in the code somewhere at least once or the background job queue will not process\n```csharp\nvar client = new BackgroundJobServer();\n\\\\then you can do this, which runs once\nBackgroundJob.Enqueue(() =\u003e Console.WriteLine(\"Background Job: Hello, world!\"));\n```\n\n[**Delayed tasks**](http://docs.hangfire.io/en/latest/users-guide/background-methods/calling-methods-with-delay.html)\n\nScheduled background jobs are being executed only after given amount of time.\n\n```csharp\nBackgroundJob.Schedule(() =\u003e Console.WriteLine(\"Reliable!\"), TimeSpan.FromDays(7));\n```\n\n[**Recurring tasks**](http://docs.hangfire.io/en/latest/users-guide/background-methods/performing-recurrent-tasks.html)\n\nRecurring jobs were never been simpler, just call the following method to perform any kind of recurring task using the [CRON expressions](http://en.wikipedia.org/wiki/Cron#CRON_expression).\n\n```csharp\nRecurringJob.AddOrUpdate(() =\u003e Console.WriteLine(\"Transparent!\"), Cron.Daily);\n```\n\n## Continuations\n\nContinuations allow you to define complex workflows by chaining multiple background jobs together.\n\n```csharp\nvar id = BackgroundJob.Enqueue(() =\u003e Console.WriteLine(\"Hello, \"));\nBackgroundJob.ContinueWith(id, () =\u003e Console.WriteLine(\"world!\"));\n```\n\n## License\n\nCopyright © 2013-2014 Sergey Odinokov.\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU Lesser General Public License as published by\nthe Free Software Foundation, either version 3 of the License, or\n(at your option) any later version.\n\nThis program is distributed in the hope that it will be useful,\nbut WITHOUT ANY WARRANTY; without even the implied warranty of\nMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\nGNU Lesser General Public License for more details.\n\nYou should have received a copy of the GNU Lesser General Public License\nalong with this program.  If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses).\n\n## Known Bugs\n\nHangfire.Tests requires RavenDB.Client which requires .Net 4.5. Until RavenDB 4.0 is released, Hangfire.Tests cannot be included and run.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadyio%2Fhangfire-ravendb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcadyio%2Fhangfire-ravendb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcadyio%2Fhangfire-ravendb/lists"}