@@ -13,12 +13,12 @@ public class ScheduleHangfireJobs
13
13
public void UpdateCommunityBlogPosts ( PerformContext context )
14
14
{
15
15
var service = new BlogPostsService ( ) ;
16
- RecurringJob . AddOrUpdate ( ( ) => service . UpdateBlogPostsJsonFile ( context ) , Cron . HourInterval ( 1 ) ) ;
16
+ RecurringJob . AddOrUpdate < BlogPostsService > ( "📝 Community blog posts" , x => x . UpdateBlogPostsJsonFile ( context ) , Cron . HourInterval ( 1 ) ) ;
17
17
}
18
18
19
19
public void GetGitHubPullRequests ( )
20
20
{
21
- RecurringJob . AddOrUpdate ( ( ) => UpdatePullRequests ( ) , Cron . HourInterval ( 1 ) ) ;
21
+ RecurringJob . AddOrUpdate < ScheduleHangfireJobs > ( "🚀 Get Umbraco-CMS PRs" , x => x . UpdatePullRequests ( ) , Cron . HourInterval ( 1 ) ) ;
22
22
}
23
23
24
24
public void UpdatePullRequests ( )
@@ -30,25 +30,25 @@ public void UpdatePullRequests()
30
30
public void GenerateReleasesCache ( PerformContext context )
31
31
{
32
32
var releasesService = new ReleasesService ( ) ;
33
- RecurringJob . AddOrUpdate ( ( ) => releasesService . GenerateReleasesCache ( context ) , Cron . HourInterval ( 1 ) ) ;
33
+ RecurringJob . AddOrUpdate < ReleasesService > ( "💎 Release cache" , x => x . GenerateReleasesCache ( context ) , Cron . HourInterval ( 1 ) ) ;
34
34
}
35
35
36
36
public void UpdateGitHubIssues ( PerformContext context )
37
37
{
38
38
var gitHubService = new GitHubService ( ) ;
39
39
var repository = new Community . Models . Repository ( "Umbraco-CMS" , "umbraco" , "Umbraco-CMS" , "Umbraco-CMS" ) ;
40
- RecurringJob . AddOrUpdate ( $ "[IssueTracker] Update { repository . Name } ", ( ) => gitHubService . UpdateIssues ( context , repository ) , Cron . MinuteInterval ( 15 ) ) ;
40
+ RecurringJob . AddOrUpdate ( $ "📝 Update issues { repository . Name } ", ( ) => gitHubService . UpdateIssues ( context , repository ) , Cron . MinuteInterval ( 15 ) ) ;
41
41
}
42
42
43
43
public void FetchStaticApiDocumentation ( PerformContext context )
44
44
{
45
45
var staticApiDocumentationService = new StaticApiDocumentationService ( ) ;
46
- RecurringJob . AddOrUpdate ( ( ) => staticApiDocumentationService . FetchNewApiDocs ( context ) , Cron . MinuteInterval ( 5 ) ) ;
46
+ RecurringJob . AddOrUpdate < StaticApiDocumentationService > ( "📝 Docs" , x => x . FetchNewApiDocs ( context ) , Cron . MinuteInterval ( 5 ) ) ;
47
47
}
48
48
public void FetchMastodonPosts ( PerformContext context )
49
49
{
50
50
var mastodonService = new MastodonService ( ) ;
51
- RecurringJob . AddOrUpdate ( ( ) => mastodonService . GetStatuses ( 10 ) , Cron . MinuteInterval ( 2 ) ) ;
51
+ RecurringJob . AddOrUpdate < MastodonService > ( "️💥 Get Masto posts" , x => x . GetStatuses ( 10 ) , Cron . MinuteInterval ( 2 ) ) ;
52
52
}
53
53
}
54
54
}
0 commit comments