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.

Feature request: Passing the scheduled start time to jobs

See original GitHub issue

Currently there are no way for the job to know what is the scheduled start time (only the current time by doing datetime.now()). This feature would be useful for time sensitive jobs (e.g. extra handling if the job is delayed)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:10
  • Comments:22 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
agronholmcommented, Jul 23, 2019

This will be implemented in v4.0 in such a manner that the target function can receive all sorts of information about the job.

1reaction
agronholmcommented, Aug 17, 2022

Implemented in v4.0.0a1 via the contextvar apscheduler.current_job.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature Request - Start time on Jobs
Right now, a user can schedule the jobs to execute every "x" minutes. In my case, I was running the job every 15...
Read more >
Feature Request: Run now option on scheduled jobs
While it is possible to run “start jobs” from jobs section but it can be time consuming if there are multiple and parameters...
Read more >
Feature Requests: What are they and how to manage them
Here are a few tips to help you start honing in on a repeatable feature request management process for your team. Identify a...
Read more >
Feature request response email templates
Answer feature request emails professionally and kindly regardless of the (good or bad) news you're delivering to your customers.
Read more >
Solved: generating request from Schedule job
Solved: i have been trying to generate Request ticket from Schedule Jobs using the following script var cartId = GlideGuid.generate(null); var cart =...
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