8 Commits

Author SHA1 Message Date
Austin Winstanley 8e54a30a70 updated to .Net Standard / Core 2.0.0 2017-09-12 22:30:11 -05:00
Austin Winstanley 690e97e0e5 Fixed Appveyor CI badge 2017-07-18 03:17:51 -05:00
Austin Winstanley 59e2bcf293 Fixed AppVeyor build badge 2017-07-18 03:05:15 -05:00
Austin Winstanley 15bfa38032 fixed Travis CI link 2 2017-07-18 02:57:56 -05:00
Austin Winstanley 62ec953b07 Fixed TravisCI build link 2017-07-18 02:56:58 -05:00
Austin Winstanley c8cad4c8b2 Merge pull request #23 from Fewzion/master
Fix bug with getting a stale JobQueues query result that resulted in the
2017-07-18 02:18:31 -05:00
Joerg Kiegeland 64f4927e1b Fix bug with getting a stale JobQueues query result that resulted in the
same job being executed multiple times by different worker threads (e.g.
consider a Hangfire job then sending out the same email multiple times).
2017-07-08 22:29:45 +10:00
Austin Winstanley b0c3b5e2ed added AppVeyor CI for Windows builds 2017-04-28 17:48:50 -05:00
7 changed files with 69 additions and 31 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
language: csharp
solution: Hangfire.Raven.sln
mono: none
dotnet: 1.0.1
dotnet: 2.0.0
dist: trusty
sudo: required
script:
+12 -8
View File
@@ -1,11 +1,17 @@
# Hangfire RavenDB
[![Build Status](https://travis-ci.org/RefreshingIO/hangfire-ravendb.svg?branch=master)](https://travis-ci.org/RefreshingIO/hangfire-ravendb)
## Build Status
`Platform` | `Master`
--- | ---
**Windows** | [![Build status](https://ci.appveyor.com/api/projects/status/hcmu0b0p62mbuwen?svg=true)](https://ci.appveyor.com/project/CadyIO/hangfire-ravendb)
**Linux / OS X** | [![Travis CI Build Status](https://travis-ci.org/CadyIO/hangfire-ravendb.svg?branch=master)](https://travis-ci.org/CadyIO/hangfire-ravendb)
## Overview
RavenDB job storage for Hangfire
Usage
--------
## Usage
This is how you connect to a ravendb server (local or remote)
```csharp
@@ -40,7 +46,7 @@ Recurring jobs were never been simpler, just call the following method to perfor
RecurringJob.AddOrUpdate(() => Console.WriteLine("Transparent!"), Cron.Daily);
```
**Continuations**
## Continuations
Continuations allow you to define complex workflows by chaining multiple background jobs together.
@@ -49,8 +55,7 @@ var id = BackgroundJob.Enqueue(() => Console.WriteLine("Hello, "));
BackgroundJob.ContinueWith(id, () => Console.WriteLine("world!"));
```
License
--------
## License
Copyright © 2013-2014 Sergey Odinokov.
@@ -67,7 +72,6 @@ GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see [http://www.gnu.org/licenses/](http://www.gnu.org/licenses).
Known Bugs
----------
## Known Bugs
Hangfire.Tests requires RavenDB.Client which requires .Net 4.5. Until RavenDB 4.0 is released, Hangfire.Tests cannot be included and run.
+33
View File
@@ -0,0 +1,33 @@
version: 1.0.{build}
# branches to build
branches:
# whitelist
only:
- master
- production
# blacklist
except:
- gh-pages
# build configuration
configuration:
- Debug
- Release
# build platform
platform: Any CPU
# environment variables
environment:
# Don't report back to the mothership
DOTNET_CLI_TELEMETRY_OPTOUT: 1
# scripts to run before build
before_build:
- cmd: appveyor-retry dotnet restore -v Minimal
# run dotnet cli instead of msbuild
build_script:
- dotnet build
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp1.1</TargetFramework>
<Version>3.0.0</Version>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<TargetFramework>netcoreapp2.0</TargetFramework>
<Version>3.1.0</Version>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.0.0</FileVersion>
<Description>RavenDB job storage for Hangfire - AspNetCore Example</Description>
<Authors>Refreshing Collective &lt;contact@refreshing.io&gt;</Authors>
<Company>Refreshing Collective LLC</Company>
@@ -22,12 +22,12 @@
<PackageTargetFallback>$(PackageTargetFallback);portable-net45+win8+wp8+wpa81;</PackageTargetFallback>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Hangfire.AspNetCore" Version="1.6.12" />
<PackageReference Include="Microsoft.AspNetCore" Version="1.1.1" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="1.1.2" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="1.1.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="1.1.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="1.1.0" />
<PackageReference Include="Hangfire.AspNetCore" Version="1.6.16" />
<PackageReference Include="Microsoft.AspNetCore" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.0.0" />
<PackageReference Include="Microsoft.AspNetCore.StaticFiles" Version="2.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="2.0.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.BrowserLink" Version="2.0.0" />
</ItemGroup>
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="1.0.0" />
@@ -5,10 +5,10 @@
</PropertyGroup>
<PropertyGroup>
<TargetFramework>netstandard1.3</TargetFramework>
<Version>3.0.0</Version>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<TargetFramework>netcoreapp2.0</TargetFramework>
<Version>3.1.0</Version>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.0.0</FileVersion>
<Description>RavenDB job storage for Hangfire - Console Example</Description>
<Authors>Refreshing Collective &lt;contact@refreshing.io&gt;</Authors>
<Company>Refreshing Collective LLC</Company>
@@ -38,8 +38,8 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Hangfire.Core" Version="1.6.12" />
<PackageReference Include="RavenDB.Client" Version="3.5.4-patch-35196" />
<PackageReference Include="Hangfire.Core" Version="1.6.16" />
<PackageReference Include="RavenDB.Client" Version="3.5.5-patch-35220" />
</ItemGroup>
</Project>
+6 -6
View File
@@ -1,10 +1,10 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.3</TargetFramework>
<Version>3.0.0</Version>
<AssemblyVersion>3.0.0.0</AssemblyVersion>
<FileVersion>3.0.0.0</FileVersion>
<TargetFramework>netcoreapp2.0</TargetFramework>
<Version>3.1.0</Version>
<AssemblyVersion>3.1.0.0</AssemblyVersion>
<FileVersion>3.1.0.0</FileVersion>
<Description>RavenDB job storage for Hangfire</Description>
<Authors>Refreshing Collective &lt;contact@refreshing.io&gt;</Authors>
<Company>Refreshing Collective LLC</Company>
@@ -24,8 +24,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Hangfire.Core" Version="1.6.12" />
<PackageReference Include="RavenDB.Client" Version="3.5.4-patch-35196" />
<PackageReference Include="Hangfire.Core" Version="1.6.16" />
<PackageReference Include="RavenDB.Client" Version="3.5.5-patch-35220" />
</ItemGroup>
</Project>
@@ -62,6 +62,7 @@ namespace Hangfire.Raven.JobQueues
foreach (var job in repository.Query<Hangfire_JobQueues.Mapping, Hangfire_JobQueues>()
.Where(fetchCondition)
.Where(job => job.Queue == queue)
.Customize(x => x.WaitForNonStaleResultsAsOfNow())
.OfType<JobQueue>())
{
job.FetchedAt = DateTime.UtcNow;