question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update JobService interface

See original GitHub issue

Let’s keep a consist interface across services: For example, create() to create a new instance of some object A. The JobService defines method names with the pattern *Job, but we can clean things up a bit given that the service performs actions on a job instance.

JobService

  • create() - Create a Job
  • get() - Retrieve a job
  • getLatestVersion() - Retrieve the latest version of a job
  • getAllVersions() - Retrieve all versions of a job
  • getAll() - Retrieve all jobs
  • updateRunState() - Sets job run state to: NEW, RUNNING , COMPLETED, FAILED, or ABORTED

Ideally, we’ll want to address issue #229 first that introduces class JobRunId

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
wslulciuccommented, Jan 4, 2019

For less CRUDy things, we can just continue to name descriptively?

Yep, sounds like a solid naming convention to me! For more service-specific logic / actions, more context on the methods action is preferred.

0reactions
wslulciuccommented, Oct 24, 2019

Fixed #627

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android update activity UI from service - Stack Overflow
8 Answers 8 ; from service to activity to update UI. ResultReceiver receiver = new ; new Handler()) { protected void onReceiveResult(int resultCode,...
Read more >
JobService - Android Developers
You are responsible for overriding JobService#onStartJob(JobParameters) , which ... String) to retrieve a LocationManager for controlling location updates.
Read more >
JobService (Decision Server Insights Java API) - IBM
Submits a job that corresponds to the given global variable name in order to update its value. The job is submitted to be...
Read more >
JobService interface | Microsoft Learn
Any error in the service. NOTE: This property will not be serialized. It can only be populated by the server. jobServiceType. Endpoint type....
Read more >
UI ICE: Login - ND.gov
You are about to enter Job Service North Dakota's Unemployment Insurance Internet Claims Entry System (UI ICE). Before you can use UI ICE,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found