Method for realizing timed task atomicity by using database lock
A timed task and database technology, applied in the information field, can solve problems such as business data inconsistency, data inconsistency, affecting task execution schedules, etc., to avoid dirty data problems, ensure uniqueness, and easy to implement methods.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example
[0027] For a first example, see figure 1 with figure 2 As shown, the present invention provides a method for utilizing database locks to realize the atomicity of timed tasks, including the following steps: S1, setting multiple groups of virtual machine nodes, each group of virtual machine nodes is equipped with an ntp server, and multiple nodes deploy the ntp server , the purpose is to keep the multi-node time consistent, the multi-node time consistency ensures the time lock consistency of the scheduled tasks of multiple copies, and maintains task consistency;
[0028] S2. Set a time lock for the timed task generated in step S1, and set a time specification corresponding to the time lock of the timed task;
[0029] S3. According to the time specification in step S2, set the primary key of the time lock, set the timed task with the time lock to preempt the database row-level lock, set the time lock field as the primary key in the database, and ensure the uniqueness of the tim...
no. 2 example
[0043] In the second embodiment, an electronic device includes a processor, and a memory that communicates with the processor and stores instructions executable by the processor. The steps of a method for realizing the atomicity of a timed task by using a database lock are described.
no. 3 example
[0044] In the third embodiment, a server includes at least one processor, and a memory communicated with the processor, the memory stores instructions executable by the at least one processor, and the instructions are processed by the processor The processor executes, so that the at least one processor executes the steps of the method for implementing the atomicity of the timed task by using the database lock described in the first embodiment.
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



